* valops.c (value_assign): Move 'buffer' to the enclosing block,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-09-13 Jim Blandy <jimb@redhat.com>
2
3 * valops.c (value_assign): Move 'buffer' to the enclosing block,
4 so that its storage isn't referenced after its lifetime ends.
5
6 2004-09-13 Andrew Cagney <cagney@gnu.org>
7
8 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
9 * configure: Re-generate.
10 * nlm/Makefile.in (TAGS): Update.
11 * Makefile.in (TAGS): Update.
12 * config/vax/nbsd.mt (TM_FILE): Update.
13 * config/sparc/vxworks.mt (TM_FILE): Update.
14 * config/sparc/sol2.mt (TM_FILE): Update.
15 * config/sparc/sol2-64.mt (TM_FILE): Update.
16 * config/sparc/obsd64.mt (TM_FILE): Update.
17 * config/sparc/obsd.mt (TM_FILE): Update.
18 * config/sparc/nbsd64.mt (TM_FILE): Update.
19 * config/sparc/nbsd.mt (TM_FILE): Update.
20 * config/sparc/linux64.mt (TM_FILE): Update.
21 * config/sparc/linux.mt (TM_FILE): Update.
22 * config/sparc/fbsd.mt (TM_FILE): Update.
23 * config/sh/wince.mt (TM_FILE): Update.
24 * config/sh/nbsd.mt (TM_FILE): Update.
25 * config/sh/linux.mt (TM_FILE): Update.
26 * config/sh/embed.mt (TM_FILE): Update.
27 * config/s390/s390.mt (TM_FILE): Update.
28 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
29 * config/rs6000/rs6000.mt (TM_FILE): Update.
30 * config/rs6000/aix4.mt (TM_FILE): Update.
31 * config/powerpc/vxworks.mt (TM_FILE): Update.
32 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
33 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
34 * config/powerpc/obsd.mt (TM_FILE): Update.
35 * config/powerpc/nbsd.mt (TM_FILE): Update.
36 * config/powerpc/linux.mt (TM_FILE): Update.
37 * config/powerpc/aix.mt (TM_FILE): Update.
38 * config/pa/obsd.mt (TM_FILE): Update.
39 * config/pa/linux.mt (TM_FILE): Update.
40 * config/pa/hppahpux.mt (TM_FILE): Update.
41 * config/pa/hppa64.mt (TM_FILE): Update.
42 * config/pa/hppa.mt (TM_FILE): Update.
43 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
44 * config/mips/wince.mt (TM_FILE): Update.
45 * config/mips/vxmips.mt (TM_FILE): Update.
46 * config/mips/nbsd.mt (TM_FILE): Update.
47 * config/mips/linux.mt (TM_FILE): Update.
48 * config/mips/irix6.mt (TM_FILE): Update.
49 * config/mips/irix5.mt (TM_FILE): Update.
50 * config/mips/embed.mt (TM_FILE): Update.
51 * config/m68k/vxworks68.mt (TM_FILE): Update.
52 * config/m68k/st2000.mt (TM_FILE): Update.
53 * config/m68k/os68k.mt (TM_FILE): Update.
54 * config/m68k/obsd.mt (TM_FILE): Update.
55 * config/m68k/nbsd.mt (TM_FILE): Update.
56 * config/m68k/monitor.mt (TM_FILE): Update.
57 * config/m68k/linux.mt (TM_FILE): Update.
58 * config/m68k/cisco.mt (TM_FILE): Update.
59 * config/ia64/linux.mt (TM_FILE): Update.
60 * config/ia64/aix.mt (TM_FILE): Update.
61 * config/ia64/ia64.mt (TM_FILE): Update.
62 * config/i386/vxworks.mt (TM_FILE): Update.
63 * config/i386/obsd64.mt (TM_FILE): Update.
64 * config/i386/obsd.mt (TM_FILE): Update.
65 * config/i386/nto.mt (TM_FILE): Update.
66 * config/i386/nbsd64.mt (TM_FILE): Update.
67 * config/i386/nbsd.mt (TM_FILE): Update.
68 * config/i386/linux64.mt (TM_FILE): Update.
69 * config/i386/linux.mt (TM_FILE): Update.
70 * config/i386/i386sol2.mt (TM_FILE): Update.
71 * config/i386/i386lynx.mt (TM_FILE): Update.
72 * config/i386/fbsd64.mt (TM_FILE): Update.
73 * config/i386/fbsd.mt (TM_FILE): Update.
74 * config/i386/cygwin.mt (TM_FILE): Update.
75 * config/h8300/h8300.mt (TM_FILE): Update.
76 * config/frv/frv.mt (TM_FILE): Update.
77 * config/cris/cris.mt (TM_FILE): Update.
78 * config/arm/wince.mt (TM_FILE): Update.
79 * config/arm/nbsd.mt (TM_FILE): Update.
80 * config/arm/linux.mt (TM_FILE): Update.
81 * config/arm/embed.mt (TM_FILE): Update.
82 * config/alpha/nbsd.mt (TM_FILE): Update.
83 * config/alpha/fbsd.mt (TM_FILE): Update.
84 * config/alpha/alpha.mt (TM_FILE): Update.
85 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
86 * config/alpha/alpha-linux.mt (TM_FILE): Update.
87
88 Eliminate event_loop_p, always has the value 1.
89 * defs.h (event_loop_p): Delete macro.
90 * breakpoint.c (until_break_command): Simplify.
91 * utils.c (prompt_for_continue): Simplify.
92 * tracepoint.c (read_actions): Simplify.
93 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
94 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
95 (set_prompt, init_main): Simplify.
96 (init_signals, disconnect): Delete, unused.
97 * remote.c (remote_async_resume)
98 (extended_remote_async_create_inferior): Simplify.
99 * mi/mi-interp.c (mi_input): Delete, unused.
100 (mi_interpreter_resume, mi_command_loop): Simplify.
101 * interps.c (current_interp_command_loop): Simplify.
102 * infrun.c (proceed): Simplify.
103 * infcmd.c (run_command, continue_command, step_1, jump_command)
104 (until_command, advance_command, finish_command)
105 (interrupt_target_command): Simplify.
106 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
107
108 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
109 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
110 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
111 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
112 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
113 * mips-tdep.c (mips_dump_tdep): Do not print same.
114
115 2004-09-12 Andrew Cagney <cagney@gnu.org>
116
117 * valprint.c (print_longest): Use fputs_filtered. Make "val"
118 const.
119 * Makefile.in (valprint.o): Delete explict rule.
120
121 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
122 reported by Dave Anderson.
123
124 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
125
126 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
127
128 2004-09-12 Salvador E. Tropea <set@users.sf.net>
129 Andrew Cagney <cagney@gnu.org>
130
131 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
132 (mi_cmd_data_list_register_values)
133 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
134 the register number computation.
135
136 2004-09-12 Andrew Cagney <cagney@gnu.org>
137
138 * ppcnbsd-nat.c: Include "inf-ptrace.h".
139 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
140 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
141 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
142 target.
143 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
144 inf-ptrace.o and inf-child.o.
145 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
146 * Makefile.in: Update dependencies.
147
148 2004-09-11 Andrew Cagney <cagney@gnu.org>
149
150 * language.c (hex_string, hex_string_custom): Move from here ...
151 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
152 (CELLSIZE): Increase to 50.
153 * language.h (hex_string, hex_string_custom): Move from here ...
154 * defs.h: ... to here.
155 * Makefile.in: Update all dependencies.
156
157 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
158
159 * language.c (local_hex_format_custom): Remove.
160 (local_hex_string): Rename to hex_string, use C format, and move to
161 utils.c
162 (local_hex_string_custom): Rename to hex_string_custom and change
163 interface. Now uses C format. Move to utils.c
164 (local_octal_format_custom): Remove.
165 (local_decimal_format_custom): Remove.
166 (unknown_language_defn): Remove language-specific number
167 formatting entries.
168 (auto_language_defn): Ditto.
169 (local_language_defn): Ditto.
170 * language.h (struct language_format_info): Delete declaration.
171 (struct language_defn): Remove language_format_info fields
172 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
173 (local_binary_format): Remove macro.
174 (local_binary_format_prefix): Remove macro.
175 (local_binary_format_specifier): Remove macro.
176 (local_binary_format_suffix): Remove macro.
177 (local_octal_format): Remove macro.
178 (local_octal_format_prefix): Remove macro.
179 (local_octal_format_specifier): Remove macro.
180 (local_octal_format_suffix): Remove macro.
181 (local_decimal_format): Remove macro.
182 (local_decimal_format_prefix): Remove macro.
183 (local_decimal_format_specifier): Remove macro.
184 (local_decimal_format_suffix): Remove macro.
185 (local_hex_format): Remove macro.
186 (local_hex_format_prefix): Remove macro.
187 (local_hex_format_specifier): Remove macro.
188 (local_hex_format_suffix): Remove macro.
189 (local_decimal_format_custom): Remove.
190 (local_octal_format_custom): Remove.
191 (local_hex_format_custom): Remove.
192 (local_hex_string): Rename to hex_string and move to defs.h.
193 (local_hex_string_custom): Rename to hex_string_custom, change
194 interface, and move to defs.h.
195 * utils.c: (int_string): New function.
196 (hex_string): New function (from language.c).
197 (hex_string_custom): New function (from language.c).
198 (octal2str): New function.
199 (decimal2str): Add width parameter.
200 (paddr_u): Use new decimal2str interface.
201 (paddr_d): Ditto.
202 * defs.h (hex_string): Declare.
203 (hex_string_custom): Declare.
204 (int_string): Declare.
205 * printcmd.c (print_scalar_formatted): Remove localized binary
206 formatting.
207 * valprint.c (print_longest): Use int_string.
208 (print_floating): Use C hex format.
209 (print_hex_chars): Ditto.
210 (print_binary_chars): Remove language-specific formatting.
211 (print_octal_chars): Use C octal format.
212 (print_decimal_chars): Delocalize format.
213 (print_decimal): Remove.
214 * ada-lang.c (ada_language_defn): Remove language-specific number
215 formatting entries.
216 * p-lang.c (pascal_language_defn): Ditto.
217 * c-lang.c (c_language_defn): Ditto.
218 (cplus_language_defn): Ditto.
219 (asm_language_defn): Ditto.
220 (minimal_language_defn): Ditto.
221 * f-lang.c (f_language_defn): Ditto.
222 * jv-lang.c (java_language_defn): Ditto.
223 * m2-lang.c (m2_language_defn): Ditto.
224 * scm-lang.c (scm_language_defn): Ditto.
225 * objc-lang.c (objc_language_defn): Ditto.
226 * memattr.c (mem_info_command): Use renamed hex_string_custom with
227 new interface.
228 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
229 * ui-out.c (ui_out_field_core_addr): Ditto.
230 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
231 * exec.c (print_section_info): Ditto.
232 * i387-tdep.c (print_i387_status_word): Ditto.
233 (print_i387_control_word): Ditto.
234 (i387_print_float_info): Ditto.
235 * maint.c (maint_print_section_info): Ditto.
236 * solib.c (info_sharedlibrary_command): Ditto.
237 * somsolib.c (som_sharedlibrary_info_command): Ditto.
238 * symtab.c (print_msymbol_info): Ditto.
239 * tracepoint.c (tracepoints_info): Ditto.
240 * solib-frv.c (lm_base): Ditto.
241 (frv_current_sos): Ditto.
242 (enable_break2): Ditto.
243 (enable_break): Ditto.
244 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
245 (process_one_symbol): Ditto.
246 * infcmd.c (program_info): Ditto.
247 * mdebugread.c (parse_partial_symbols): Ditto.
248 * symfile.c (add_symbol_file_command): Ditto.
249 * cli/cli-cmds.c (edit_command): Ditto.
250 (list_command): Ditto.
251 * infcall.c (call_function_by_hand): Ditto.
252 * remote-vx.c (vx_run_files_info): Ditto.
253 (vx_wait): Ditto.
254 (vx_attach): Ditto.
255 (vx_detach): Ditto.
256 (vx_kill): Ditto.
257 * aix-thread.c (pdc_symbol_addrs): Ditto.
258 (pdc_read_regs): Ditto.
259 (pdc_write_regs): Ditto.
260 (pdc_read_data): Ditto.
261 (pdc_write_data): Ditto.
262 * d10v-tdep.c (display_trace): Ditto.
263 * rs6000-nat.c (find_toc_address): Ditto.
264 * aix-thread.c: Don't include language.h.
265 * buildsym.c: Ditto.
266 * dbxread.c: Ditto.
267 * mdebugread.c: Ditto.
268 * rs6000-nat.c: Ditto.
269 * buildsym.c (make_blockvector): Use renamed hex_string.
270
271 2004-09-10 Jason Molenda (jmolenda@apple.com)
272
273 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
274 chars after 'if' or 'while' commands in user-defined commands.
275
276 2004-09-08 Jim Blandy <jimb@redhat.com>
277
278 Fix bug reported and analyzed by Olivier Crete:
279 * symfile.c (copy_section_addr_info): New function.
280 (symbol_file_add_with_addrs_or_offsets): Use it to save the
281 original set of address arguments, instead of handwritten code
282 that uses one length to allocate and a different length to
283 initialize. Use make_cleanup_free_section_addr_info.
284 * symfile.h (copy_section_addr_info): New declaration.
285 * utils.c: #include "symfile.h".
286 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
287 New functions.
288 * defs.h (make_cleanup_free_section_addr_info): New declaration.
289 * Makefile.in (utils.o): Update dependencies.
290
291 2004-09-08 Andrew Cagney <cagney@gnu.org>
292
293 * thread-db.c (keep_thread_db): Delete.
294 (thread_db_new_objfile, thread_db_create_inferior)
295 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
296
297 2004-09-08 Mark Kettenis <kettenis@gnu.org>
298
299 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
300 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
301 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
302 (i386_frameless_signal_p): Remove prototype.
303 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
304 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
305 I386_SSE_NUM_REGS.
306 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
307 instead of FP0_REGNUM.
308 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
309 of FP0_REGNUM and FPC_REGNUM.
310
311 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
312 (sunos_solib_create_inferior_hook): Don't call
313 sunos_relocate_main_executable.
314
315 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
316 solib_svr4_fetch_link_map_offsets to
317 svr4_ilp32_fetch_link_map_offsets.
318 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
319 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
320 svr4_ilp32_fetch_link_map_offsets.
321 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
322
323 2004-09-07 Jim Blandy <jimb@redhat.com>
324
325 * frame.h (frame_register): Doc fix.
326
327 2004-09-07 Andrew Cagney <cagney@gnu.org>
328
329 * vx-share/wait.h: Delete #ifdef USG.
330 * utils.c (request_quit): Ditto.
331 * tui/tui.c (tui_reset): Ditto.
332 * remote.c: Ditto.
333 * remote-sds.c: Ditto.
334 * remote-rdi.c: Ditto.
335 * mdebugread.c: Ditto.
336 * m68klinux-nat.c: Ditto.
337 * infttrace.c: Ditto.
338 * infptrace.c: Ditto.
339 * i386v-nat.c: Ditto.
340 * exec.c: Ditto.
341 * dbxread.c: Ditto.
342 * core-aout.c: Ditto.
343
344 2004-09-05 Joel Brobecker <brobecker@gnat.com>
345
346 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
347 heuristic_proc_desc.
348 (mips_insn32_frame_cache): Likewise.
349
350 2004-09-04 Joel Brobecker <brobecker@gnat.com>
351
352 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
353 left behind by error.
354
355 2004-09-04 Joel Brobecker <brobecker@gnat.com>
356
357 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
358 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
359
360 2004-09-04 Joel Brobecker <brobecker@gnat.com>
361
362 * config/rs6000/xm-aix4.h: Remove this file.
363 * config/rs6000/aix4.mh (XM_FILE): Delete.
364
365 2004-09-04 Joel Brobecker <brobecker@gnat.com>
366
367 * config/rs6000/xm-rs6000.h: Remove this file.
368 * config/rs6000/rs6000.mh (XM_FILE): Remove.
369
370 2004-09-03 Andrew Cagney <cagney@gnu.org>
371
372 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
373 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
374 only use.
375
376 * mips-tdep.c (temp_saved_regs): Delete.
377 (set_reg_offset): Replace saved_regs parameter with this_cache.
378 (heuristic_proc_desc, mips16_heuristic_proc_desc)
379 (mips32_heuristic_proc_desc): Add this_cache parameter.
380 (mips_insn32_frame_cache, mips_insn16_frame_cache)
381 (after_prologue): Pass a NULL this_cache.
382
383 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
384 non-kernel trap prologues.
385
386 * mips-tdep.c (find_proc_desc): Delete function.
387 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
388 simplify.
389 (mips_insn16_frame_cache): Replace find_proc_desc with code from
390 mips_insn32_frame_cache.
391
392 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
393 Simplify as NEXT_FRAME is NULL.
394 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
395
396 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
397 local variable.
398 (mips_skip_prologue): Update.
399
400 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
401 "cur_frame" parameter.
402 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
403 (mips_insn32_frame_cache, find_proc_desc): Update
404
405 * config/vax/nm-obsd.h: Delete file.
406 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
407 * config/vax/nm-nbsd.h: Delete file.
408 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
409 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
410 * config/sh/nm-nbsd.h: Delete file.
411 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
412 * config/rs6000/nm-rs6000ly.h: Delete file.
413 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
414 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
415 * config/powerpc/nm-obsd.h: Delete file.
416 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
417 * config/powerpc/nm-nbsd.h: Delete file.
418 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
419 * config/pa/nm-obsd.h: Delete file.
420 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
421 * config/mips/nm-nbsd.h: Delete file.
422 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
423 * config/m88k/nm-obsd.h: Delete file.
424 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
425 * config/m68k/nm-nbsd.h: Delete file.
426 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
427 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
428 * config/i386/nm-nbsd.h: Delete file.
429 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
430 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
431 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
432 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
433 * config/i386/nm-i386lynx.h: Delete file.
434 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
435 * config/arm/nm-nbsd.h: Delete file.
436 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
437 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
438
439 * config/i386/tm-fbsd.h: Delete file.
440 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
441 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
442
443 * config/rs6000/tm-rs6000-aix4.h: Delete file.
444 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
445 * config/rs6000/aix4.mt (TM_FILE): Set to
446 config/rs6000/tm-rs6000.h.
447 * config/powerpc/tm-ppc-aix.h: Delete file.
448 * config/powerpc/aix.mt (TM_FILE): Set to
449 config/rs6000/tm-rs6000.h.
450 * config/m68k/tm-linux.h: Delete file.
451 * config/m68k/linux.mt (TM_FILE): Set to solib.h
452 * config/i386/tm-linux64.h: Delete file.
453 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
454 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
455
456 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
457 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
458 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
459 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
460 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
461 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
462 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
463 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
464 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
465
466 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
467 gdb_host_cpu.
468
469 2004-09-02 Joel Brobecker <brobecker@gnat.com>
470
471 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
472 Minor reformatting. Some code factoring.
473
474 2004-09-02 Andrew Cagney <cagney@gnu.org>
475
476 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
477 * config/vax/tm-nbsd.h: Delete file.
478 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
479 * config/sparc/tm-vxworks.h: Delete file.
480 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
481 * config/sparc/tm-nbsd.h: Delete file.
482 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
483 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
484 * config/sparc/tm-linux.h: Delete file.
485 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
486 * config/s390/tm-linux.h: Delete file.
487 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
488 * config/pa/tm-bsd.h: Delete file.
489 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
490 * config/m68k/tm-obsd.h: Delete file.
491 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
492 * config/m68k/tm-nbsd.h: Delete file.
493 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
494 * config/i386/tm-vxworks.h: Delete file.
495 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
496 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
497 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
498 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
499 * config/i386/tm-nbsd.h: Delete file.
500 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
501 * config/i386/tm-i386lynx.h: Delete file.
502 * config/cris/cris.mt (TM_FILE): Set to solib.h.
503 * config/cris/tm-cris.h: Delete file.
504
505 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
506 * configure: Re-generate.
507 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
508 * config/arm/tm-nbsd.h: Delete file.
509
510 * config/powerpc/tm-ppcle-sim.h: Delete.
511 * config/powerpc/tm-ppcle-eabi.h: Delete.
512 * config/powerpc/tm-nbsd.h: Delete.
513 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
514 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
515 tm-ppcle-eabi.h.
516
517 * config/i386/nto.mh (NAT_FILE): Delete.
518 * config/i386/nm-nto.h: Delete.
519
520 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
521 * config/m68k/tm-os68k.h: Ditto.
522 * config/m68k/tm-monitor.h: Ditto.
523 * config/m68k/tm-cisco.h: Ditto.
524 * config/m68k/st2000.mt (TM_FILE): Delete.
525 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
526 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
527 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
528 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
529
530 * config/m68k/tm-st2000.h: Delete.
531 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
532 * config/sparc/fbsd.mt (TM_FILE): Delete.
533 * config/sparc/tm-fbsd.h: Delete.
534
535 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
536 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
537 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
538
539 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
540 GDB_TM_FILE and GDB_XM_FILE.
541 * gdbarch.c: Re-generate.
542 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
543 quotes in macro definition.
544 * configure.in: Re-generate.
545
546 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
547 validating architecture methods.
548 * gdbarch.c: Re-generate.
549
550 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
551 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
552 GDB_MULTI_ARCH_PARTIAL.
553 * gdbarch.h: Re-generate.
554
555 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
556 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
557 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
558 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
559 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
560 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
561 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
562 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
563 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
564 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
565 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
566 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
567
568 2004-09-01 Andrew Cagney <cagney@gnu.org>
569
570 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
571 and main_func_highpc.
572 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
573 * objfiles.c (init_entry_point_info, objfile_relocate): Update
574 * nlmread.c (nlm_symfile_read): Update.
575
576 2004-09-01 Joel Brobecker <brobecker@gnat.com>
577
578 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
579 (mips_insn32_frame_cache): Inline call to find_proc_desc.
580 (find_proc_desc): Remove dead code.
581
582 2004-09-01 Joel Brobecker <brobecker@gnat.com>
583
584 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
585
586 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
587
588 * observer.sh: Add struct so_list declaration.
589 * Makefile.in: Add dependencies on observer.h for solib.c and
590 breakpoint.c.
591 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
592 function.
593 (_initialize_breakpoint): Register
594 disable_breakpoints_in_unloaded_shlib as an observer of the
595 "solib unloaded" observation event.
596 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
597 call decode_line_1 so unfound breakpoint errors are silent.
598 * solib.c (update_solib_list): When a solib is discovered to have
599 been unloaded by the program, notify all observers of the
600 "solib unloaded" observation event.
601
602 2004-09-01 Andrew Cagney <cagney@gnu.org>
603
604 * frame.c: Include "objfiles.h".
605 (inside_main_func): New function.
606 (get_prev_frame): Use new inside_main_func.
607 * Makefile.in (frame.o): Update dependencies.
608 * defs.h (inside_main_func): Delete declaration.
609 * blockframe.c (inside_main_func): Delete function.
610
611 2004-08-31 Jim Blandy <jimb@redhat.com>
612
613 * dwarf2read.c (is_vtable_name): New function, based on logic from
614 read_structure_type, but passing the correct length to strncmp,
615 and using 'sizeof' instead of 'strlen'.
616 (read_structure_type): Call it.
617
618 2004-08-31 Joel Brobecker <brobecker@gnat.com>
619
620 * config/powerpc/aix.mh: Add comment.
621
622 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
623
624 * MAINTAINERS: Add self to Write-After-Approval.
625
626 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
627
628 * MAINTAINERS: Add self to Write-After-Approval.
629
630 2004-08-30 Andrew Cagney <cagney@gnu.org>
631
632 Fix PR breakpoints/1757.
633 * infrun.c (struct execution_control_state): Replace
634 remove_breakpoints_on_following_step with
635 step_after_step_resume_breakpoint.
636 (init_execution_control_state): Update.
637 (handle_inferior_event): For signals, when stepping off a
638 breakpoint, set step_after_step_resume_breakpoint. When
639 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
640 (keep_going): Delete code handling
641 remove_breakpoints_on_following_step.
642
643 2004-08-29 David Lecomber <david@streamline-computing.com>
644
645 Fix PR gdb/648
646 * language.h (enum array_ordering): New enum.
647 * language.h (struct language_defn): New la_array_ordering
648 attribute.
649 * language.c (unknown_language_defn, auto_language_defn)
650 (local_language_defn): Ditto.
651 * ada-lang.c (ada_language_defn): Ditto.
652 * c-lang.c (c_language_defn, cplus_language_defn)
653 (asm_language_defn, minimal_language_defn): Ditto.
654 * f-lang.c (f_language_defn): Ditto.
655 * jv-lang.c (java_language_defn): Ditto.
656 * m2-lang.c (f_language_defn): Ditto.
657 * objc-lang.c (objc_language_defn): Ditto.
658 * p-lang.c (pascal_language_defn): Ditto.
659 * scm-lang.c (scm_language_defn): Ditto.
660 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
661 oriented large to small in type structure.
662 * dwarf2read.c (read_array_order): New function.
663 (read_array_type): Use read_array_order to check row/column
664 major ordering.
665
666 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
667
668 * target.c (target_resize_to_sections): Check
669 current_target.to_sections for an old value when updating.
670
671 2004-08-27 Joel Brobecker <brobecker@gnat.com>
672
673 * procfs.c (dbx_link_bpt_addr): New static global variable.
674 (dbx_link_shadow_contents): New static global variable.
675 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
676 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
677 if we just hit it.
678 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
679 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
680 from run to run.
681 (procfs_create_inferior): Remove syssgi syscall-exit notifications
682 after the inferior has been forked.
683 (remove_dbx_link_breakpoint): New function.
684 (dbx_link_addr): New function.
685 (insert_dbx_link_bpt_in_file): New function.
686 (insert_dbx_link_bpt_in_region): New function.
687 (insert_dbx_link_breakpoint): New function.
688 (proc_trace_syscalls_1): New function, extracted from
689 proc_trace_syscalls.
690 (proc_trace_syscalls): Replace extract code by call to
691 proc_trace_syscalls_1.
692 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
693 is no longer valid.
694
695 2004-08-25 Jim Blandy <jimb@redhat.com>
696
697 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
698
699 2004-08-25 Andrew Cagney <cagney@gnu.org>
700
701 * infrun.c (struct execution_control_state): Delete field
702 "stepping_through_sigtramp".
703 (init_execution_control_state): Do not set same.
704 (context_switch): Do not pass same to save_infrun_state and
705 load_infrun_state.
706 * gdbthread.h (struct thread_info): Delete field
707 stepping_through_sigtramp.
708 (save_infrun_state, load_infrun_state): Delete parameter
709 stepping_through_sigtramp.
710 * thread.c (load_infrun_state, save_infrun_state): Update.
711
712 * infrun.c: Re-indent. Move expression operators to the beginning
713 of the line. Remove long disabled #if 0 code.
714
715 2004-08-24 Andrew Cagney <cagney@gnu.org>
716
717 * doublest.h (floatformat_ieee_quad): Rename
718 floatformat_ia64_quad.
719 * doublest.c (floatformat_ieee_quad): Rename
720 floatformat_ia64_quad.
721 (_initialize_doublest): Update.
722
723 2004-08-24 Jim Blandy <jimb@redhat.com>
724
725 * dwarf2expr.h (struct dwarf_expr_context): New members
726 'num_pieces' and 'pieces', for returning the result of an
727 expression that uses DW_OP_piece.
728 (struct dwarf_expr_piece): New struct type.
729 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
730 pieces.
731 (free_dwarf_expr_context): Free pieces, if any.
732 (add_piece): New function.
733 (execute_stack_op): Implement DW_OP_piece.
734 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
735 expression is a list of pieces, print an error message.
736 (dwarf2_loc_desc_needs_frame): If the expression yields
737 pieces, and any piece is in a register, then we need a frame.
738
739 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
740 the stack until we've decided what sort of result the evaluation
741 has produced. Use separate variables, with more specific names.
742
743 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
744
745 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
746 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
747 (arm_netbsd_init_abi_common): Register them.
748
749 2004-08-22 Mark Kettenis <kettenis@gnu.org>
750
751 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
752
753 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
754 safe_frame_unwind_memory instead of target_read_memory.
755
756 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
757 Reorder includes.
758 (fetch_register, store_register): Remove prototypes.
759 (child_resume): Reorganize code and comments such that it is
760 grouped a bit more logically.
761 (attach): Explicitly compare errno against 0.
762 (detach): Likewise. Use perror_with_name instead of
763 print_sys_errmsg.
764 * Makefile.in (infptrace.o): Update dependencies.
765
766 * ia64-linux-nat.c: Update copyright year.
767 (fetch_debug_register, store_debug_register)
768 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
769 PTRACE_TYPE_ARG3.
770 * config/ia64/nm-linux.h: Update copyright year.
771 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
772
773 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
774 from CORE_ADDR to struct frame_info *. Use
775 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
776 (amd64_linux_sigtramp_p): Adjust for changed signature of
777 and64_linux_sigtramp_start
778
779 * gdb_ptrace.h: GNU/Linux.
780
781 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
782 Remove defines.
783
784 * infptrace.c: Include "gdb_assert.h".
785 (PTRACE_XFER_TYPE): Remove define.
786 (offsetof): Only define if U_REGS_OFFSET isn't defined.
787 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
788 Tweak comment.
789 (fetch_inferior_registers, store_inferior_registers): Remove
790 redundant culry braces. Tweak comment. s/regno/regnum.
791 * Makefile.in (infptrace.o): Update dependencies.
792
793 * configure.in: Change test for return type of ptrace to default
794 to `long' instead of `int'.
795 * configure: Regenerate.
796
797 2004-08-21 Mark Kettenis <kettenis@gnu.org>
798
799 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
800
801 * configure.in: Check for ttrace function.
802 * configure, config.in: Regenerate.
803
804 * gdb_ptrace.h: New file.
805 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
806 <sys/ptrace.h>.
807 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
808 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
809 (attach): Don't define PT_ATTACH.
810 (detach): Don't define PT_DETACH.
811 * Makefile.in (gdb_ptrace_h): New variable.
812 (infptrace.o): Update dependencies.
813
814 2004-08-16 Mark Kettenis <kettenis@gnu.org>
815
816 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
817 instead of `int' if not already defined.
818 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
819 PTRACE_TYPE_ARG3.
820 * infptrace.c (call_ptrace): Revert change that replaced
821 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
822
823 2004-08-15 Mark Kettenis <kettenis@gnu.org>
824
825 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
826 Remove defines.
827
828 * linux-nat.c (kill_inferior): Add missing third and fourth
829 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
830
831 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
832 PTRACE_TYPE_RET.
833
834 * proc-why.c (proc_prettyfprint_why): Fix format string.
835
836 * solib-osf.c (osf_current_sos): Remove unsused label.
837
838 * configure.in: Add <ncurses/ncurses.h> to the list of possible
839 curses headers.
840 * configure, config.in: Regenerate.
841 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
842 <ncurses/ncurses.h>.
843
844 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
845 * config/nm-nbsd.h: Update copyright year.
846 (PTRACE_ARG3_TYPE): Remove define.
847
848 * sparc-nat.c (fetch_inferior_registers)
849 (store_inferior_registers, sparc_xfer_wcookie):
850 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
851
852 * alphabsd-nat.c (fetch_inferior_registers):
853 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
854 PTRACE_TYPE_ARG3.
855 * amd64bsd-nat.c (fetch_inferior_registers)
856 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
857 PTRACE_TYPE_ARG3.
858 * armnbsd-nat.c: Update copyright year.
859 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
860 (store_register, store_regs, store_fp_register, store_fp_regs):
861 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
862 * hppabsd-nat.c (fetch_inferior_registers)
863 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
864 PTRACE_TYPE_ARG3.
865 * i386bsd-nat.c (fetch_inferior_registers)
866 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
867 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
868 * m68kbsd-nat.c (fetch_inferior_registers)
869 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
870 PTRACE_TYPE_ARG3.
871 * m88kbsd-nat.c (fetch_inferior_registers)
872 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
873 PTRACE_TYPE_ARG3.
874 * mipsnbsd-nat.c: Update copyright year.
875 (fetch_inferior_registers, store_inferior_registers):
876 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
877 * ns32knbsd-nat.c: Update copyright year.
878 (fetch_inferior_registers, store_inferior_registers):
879 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
880 * ppcnbsd-nat.c (fetch_inferior_registers):
881 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
882 PTRACE_TYPE_ARG3.
883 * ppcobsd-nat.c (fetch_inferior_registers):
884 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
885 PTRACE_TYPE_ARG3.
886 * shnbsd-nat.c: Update copyright year.
887 (fetch_inferior_registers, store_inferior_registers):
888 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
889 * vaxbsd-nat.c (fetch_inferior_registers)
890 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
891 PTRACE_TYPE_ARG3.
892
893 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
894 PTRACE_TYPE_ARG3.
895 * infptrace.c (call_ptrace, child_resume, attach, detach)
896 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
897 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
898 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
899 PTRACE_TYPE_ARG3.
900
901 2004-08-14 Mark Kettenis <kettenis@gnu.org>
902
903 * defs.h: Remove out-of-date comment.
904 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
905 [!GETENV_PROVIDED] (getenv): Remove prototype.
906
907 * standalone.c: Remove file.
908 * Makefile.in (standalone.o): Remove dependency.
909
910 * i386-linux-nat.c (dummy_sse_values): Remove function and
911 prototype.
912 (i386_linux_dr_get): Fix typo in comment.
913 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
914
915 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
916
917 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
918 from declaration.
919 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
920 from definition.
921
922 2004-08-13 Mark Kettenis <kettenis@gnu.org>
923
924 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
925 parenthesis in definition.
926 * configure: Regenerated.
927
928 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
929
930 * PROBLEMS: Mention build/1411.
931
932 2004-08-09 Robert Millan <robertmh@gnu.org>
933
934 Committed by Nathanael Nerode.
935 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
936 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
937
938 2004-08-12 Andrew Cagney <cagney@gnu.org>
939
940 * NEWS: Mention fixes in GDB 6.2.1.
941 * PROBLEMS: Remove mention of mips-irix.
942
943 2004-08-11 Joel Brobecker <brobecker@gnat.com>
944
945 * config/powerpc/xm-aix.h: Delete.
946 * config/powerpc/aix.mh (MH_FILE): Remove.
947 * config/powerpc/aix432.mh (MH_FILE): Remove.
948
949 2004-08-11 Joel Brobecker <brobecker@gnat.com>
950
951 * config/powerpc/aix.mh: Remove obsolete comment.
952 * config/powerpc/aix432.mh: Likewise.
953
954 2004-08-11 Joel Brobecker <brobecker@gnat.com>
955
956 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
957
958 2004-08-11 Joel Brobecker <brobecker@gnat.com>
959
960 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
961 this file is now empty.
962 * config/xm-aix4.h: Remove, this file is no longer included
963 anywhere.
964
965 2004-08-11 Joel Brobecker <brobecker@gnat.com>
966
967 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
968 that file is now empty.
969 (termdef): Remove prototype, function no longer used.
970
971 2004-08-11 Joel Brobecker <brobecker@gnat.com>
972
973 * doc/gdbint.texinfo (Host Definition): Remove documentation
974 for USE_O_NOCTTY, no longer used.
975 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
976 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
977
978 2004-08-11 Joel Brobecker <brobecker@gnat.com>
979
980 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
981 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
982 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
983
984 2004-08-11 Mark Kettenis <kettenis@gnu.org>
985
986 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
987 instead of FIVE_ARG_PTRACE.
988
989 * inflow.c (O_NOCTTY): Define to zero if not already defined.
990 (new_tty): Use O_NOCTTY unconditionally.
991
992 2004-08-10 Mark Kettenis <kettenis@gnu.org>
993
994 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
995 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
996 fflush on stdout.
997
998 2004-08-10 Joel Brobecker <brobecker@gnat.com>
999
1000 * xcoff_symfile_finish: Replace last call to xmfree by call
1001 to xfree.
1002
1003 2004-08-10 Andrew Cagney <cagney@gnu.org>
1004
1005 * main.c (captured_main): Delete call to init_malloc.
1006 * defs.h (init_malloc): Delete declaration.
1007 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1008 (init_malloc): Delete functions.
1009
1010 * defs.h (xmfree): Delete.
1011 * utils.c (xmfree): Delete function.
1012 (xfree): Inline calls to xmfree and mfree.
1013 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1014 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1015 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1016 * somread.c (som_symfile_finish): Ditto.
1017 * objfiles.c (allocate_objfile, free_objfile):
1018 * nlmread.c (nlm_symfile_finish): Ditto.
1019 * hpread.c (hpread_symfile_finish): Ditto.
1020 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1021 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1022 * coffread.c (coff_symfile_finish): Ditto.
1023
1024 * defs.h (xmcalloc): Delete declaration.
1025 * utils.c (xmcalloc): Delete.
1026 (xcalloc): Inline calls to xmcalloc and mcalloc.
1027 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1028 xcalloc and xfree.
1029 * symtab.c (create_demangled_names_hash): Ditto.
1030
1031 * defs.h (xmrealloc): Delete.
1032 * utils.c (xmrealloc): Delete.
1033 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1034 * symmisc.c (extend_psymbol_list): Use xrealloc.
1035 * source.c (find_source_lines): Ditto.
1036 * hpread.c (hpread_lookup_type): Ditto.
1037 * dbxread.c (add_bincl_to_list): Ditto.
1038
1039 * utils.c (xmmalloc): Delete.
1040 (xmalloc): Inline xmmalloc and mmalloc calls.
1041 (msavestring): Use xmalloc.
1042 * defs.h (xmmalloc): Delete declaration.
1043 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1044 xmmalloc.
1045 * symmisc.c (extend_psymbol_list): Ditto.
1046 * symfile.c (init_psymbol_list): Ditto.
1047 * source.c (find_source_lines): Ditto.
1048 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1049 * elfread.c (elf_symtab_read): Ditto.
1050 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1051 * coffread.c (coff_symfile_init): Ditto.
1052
1053 2004-08-10 David Carlton <carlton@bactrian.org>
1054
1055 * MAINTAINERS: Remove David Carlton from c++ testsuite
1056 maintainers.
1057
1058 2004-08-10 Jerome Guitton <guitton@gnat.com>
1059
1060 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1061 print a line feed before the prompt.
1062
1063 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1064
1065 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1066
1067 2004-08-09 Joel Brobecker <brobecker@gnat.com>
1068
1069 General cleanup of the AIX xm include file:
1070 * config/xm-aix4.h (fd_set): Remove undefine.
1071 Remove include of <sys/select.h>.
1072 (HAVE_TERMIO): Remove define.
1073 (USG): Likewise.
1074 (NULL): Remove redefine.
1075 (alloca): Remove #pragma.
1076 (vfork): Remove define.
1077 (termdef): Remove.
1078 (SIGWINCH_HANDLER): Remove.
1079 (SIGWINCH_HANDLER_BODY): Remove.
1080
1081 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1082
1083 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1084 GDB_OSABI_OPENBSD_ELF.
1085
1086 2004-08-07 Robert Millan <robertmh@gnu.org>
1087
1088 * bsd-kvm.c: Check for nlist.h before including it.
1089
1090 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1091
1092 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1093 sigcontext' offset consistency checks for ancient BSD.
1094
1095 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1096
1097 * configure.in: Check for <sys/types.h>. Check return and
1098 argument types of ptrace.
1099 * configure, config.in: Regenerate.
1100
1101 2004-08-09 Jim Blandy <jimb@redhat.com>
1102
1103 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1104 rs6000_register_sim_regno): Doc fixes.
1105
1106 2004-08-08 Joel Brobecker <brobecker@gnat.com>
1107
1108 * mips-tdep.c: Include "floatformat.h".
1109 (n32n64_floatformat_always_valid): New function.
1110 (floatformat_n32n64_long_double_big): New constant.
1111 (mips_gdbarch_init): Set size and format of long double
1112 for N32 and N64 ABIs.
1113 * Makefile.in (mips-tdep.o): Update dependencies.
1114
1115 2004-08-08 Andrew Cagney <cagney@gnu.org>
1116
1117 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1118 print. Improve script's error messages.
1119 * gdbarch.h: Re-generate.
1120
1121 * gdbarch.sh (pformat): New function.
1122 (float_format, double_format, long_double_format): List with bit
1123 members. Use pformat when printing.
1124 * gdbarch.c, gdbarch.h: Re-generate.
1125
1126 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1127
1128 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1129 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1130 (ppcnbsd_supply_pcb): New function.
1131 (_initialize_ppcnbsd_nat): New prototype and function.
1132 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1133 (LOADLIBES): New variable.
1134 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1135
1136 2004-08-08 Andrew Cagney <cagney@gnu.org>
1137
1138 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1139 (builtin_type_ieee_double, builtin_type_ia64_quad)
1140 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1141 BE/LE floating-point types.
1142 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1143 (builtin_type_ieee_double, builtin_type_ia64_quad)
1144 (builtin_type_ia64_spill): Declare.
1145 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1146 (floatformat_ieee_double, floatformat_arm_ext)
1147 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1148 of LE/BE floatformats.
1149 * doublest.h: (struct floatformat, floatformat_ieee_single)
1150 (floatformat_ieee_double, floatformat_arm_ext)
1151 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1152
1153 2004-08-08 Mark Kettenis <kettenis@gnu.org>
1154
1155 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1156
1157 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1158 instead of regcache_raw_supply when storing the registers.
1159
1160 * i386gnu-nat.c: Update copyright year.
1161 (gnu_store_registers): Don't use deprecated_registers and
1162 deprecated_registers_valid. Use regcache_valid_p and
1163 regcache_raw_supply instead.
1164
1165 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1166 frame_pc_unwind.
1167
1168 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1169 variables. Incapitalized "process".
1170
1171 * configure.in: Add cursesX to the list of possible curses libs.
1172 Add cursesX.h to the list of possible curses headers.
1173 * configure, config.in: Regenerate.
1174
1175 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1176
1177 * configure.in: Test for struct lwp in <sys/lwp.h>.
1178 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1179 the offset of l_addr in struct lwp.
1180
1181 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1182
1183 * bsd-kvm.c: Include "gdbcore.h"
1184 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1185
1186 2004-08-07 Andrew Cagney <cagney@gnu.org>
1187
1188 * gdbtypes.c (build_flt, build_complex): New functions.
1189 (gdbtypes_post_init): Use.
1190
1191 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1192
1193 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1194 through to builtin_type_uint128.
1195
1196 * c-exp.y: Use builtin_type function to obtain builtin types.
1197
1198 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1199 builtin_uint128.
1200 * gdbtypes.c (gdbtypes_post_init): Update.
1201 (build_gdbtypes): Move initialization of builtin_type_int0
1202 through to builtin_type_uint128 from here ...
1203 (_initialize_gdbtypes): ... to here.
1204 * d10v-tdep.c (d10v_register_type): Update.
1205
1206 * doublest.c: Update copyright.
1207 (floatformat_from_length): Call error when floatformat is NULL.
1208 (extract_floating_by_length): Remove NULL fmt check.
1209 (store_floating_by_length): Ditto.
1210
1211 2004-08-07 Andrew Cagney <cagney@gnu.org>
1212
1213 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1214 that the register is valid.
1215
1216 2004-08-05 Mark Kettenis <kettenis@chello.nl>
1217
1218 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1219 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1220 struct frame_info *. Use safe_frame_unwind_memory instead of
1221 deprecated_read_memory_nobpt.
1222 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1223 changed signature of i386_linux_sigtramp_start and
1224 i386_linux_rt_sigtramp_start.
1225
1226 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1227 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1228 instead of deprecated_read_memory_nobpt.
1229 (i386nbsd_sigtramp_p): Adjust for changed signature of
1230 i386nbsd_sigtramp_offset.
1231
1232 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1233 safe_frame_unwind_memory instead of target_read_memory.
1234
1235 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1236 !NO_SYS_FILE.
1237 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1238 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1239 (_initialize_kernel_u_addr): Remove prototype and function.
1240 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1241 !NO_SYS_FILE.
1242 * xcoffread.c: Likewise.
1243
1244 2004-08-06 Mark Kettenis <kettenis@gnu.org>
1245
1246 * vax-nat.c: New file.
1247 * vaxbsd-nat.c: Tweak comment.
1248 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1249 vaxnbsd-tdep.c.
1250 (vax-nat.o): New dependency.
1251 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1252 (vax-*-ultrix2*): Remove.
1253 * config/vax/vax.mh: New file.
1254 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1255 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1256 (vax_register_u_addr): New prototype.
1257 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1258 * config/vax/vaxult2.mh: Remove file.
1259 * config/vax/vaxult.mh: Remove file.
1260 * config/vax/vaxbsd.mh: Remove file.
1261 * config/vax/vax.mt (TM_FILE): Remove.
1262 * config/vax/tm-vaxbsd.h: Remove file.
1263
1264 2004-08-06 Joel Brobecker <brobecker@gnat.com>
1265
1266 * aix-thread.c (get_signaled_thread): New function.
1267 (iter_trap): Delete, no longer used.
1268 (iter_tid): New function.
1269 (pd_update): Find the thread that received the SIGTRAP signal
1270 by first locating the kernel thread, and then finding its
1271 associated thread.
1272
1273 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1274
1275 * lin-lwp.c (child_wait): Continue inferior after processing
1276 PTRACE_EVENT_CLONE event.
1277
1278 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1279
1280 * MAINTAINERS: Add self to Write-After-Approval.
1281
1282 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1283
1284 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1285 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1286
1287 2004-08-05 Andrew Cagney <cagney@gnu.org>
1288
1289 * config/xm-sysv4.h: Delete file.
1290 * config/mips/xm-irix5.h: Delete file.
1291 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1292 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1293 * config/ia64/xm-aix.h: Delete file.
1294 * config/ia64/aix.mh (XM_FILE): Delete.
1295 * config/pa/xm-hppah.h: Delete file.
1296 * config/pa/hpux11w.mh (XM_FILE): Delete.
1297 * config/pa/hpux11.mh (XM_FILE): Delete.
1298 * config/pa/hpux1020.mh (XM_FILE): Delete.
1299 * config/pa/hppahpux.mh (XM_FILE): Delete.
1300
1301 * config/alpha/xm-alphalinux.h: Delete file.
1302 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1303 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1304 * config/alpha/xm-alphaosf.h: Delete file.
1305 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1306 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1307 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1308 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1309
1310 * config/i386/xm-i386v.h: Delete file.
1311 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1312 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1313 * config/i386/xm-i386sco.h: Delete file.
1314 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1315 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1316 * config/i386/xm-i386v4.h: Delete file.
1317 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1318 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1319 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1320 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1321
1322 * config/vax/xm-vax.h: Delete file.
1323 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1324 * config/vax/xm-vaxult2.h: Delete file.
1325 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1326 * config/vax/vaxult2.mh (XM_FILE): Delete.
1327 * config/vax/xm-vaxult.h: Delete file.
1328 * config/vax/vaxult.mh (XM_FILE): Delete.
1329 * config/vax/xm-vaxbsd.h: Delete file.
1330 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1331
1332 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1333 * gdbarch.h, gdbarch.c: Re-generate.
1334 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1335 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1336 * frame.h: Delete deprecated_read_fp from comments.
1337 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1338 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1339
1340 2004-08-04 Mark Kettenis <kettenis@gnu.org>
1341
1342 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1343 trampoline in OpenBSD 3.5-current.
1344
1345 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1346 SSE registers.
1347
1348 * Makefile.in: Remove embedded page breaks.
1349
1350 2004-08-04 Jim Blandy <jimb@redhat.com>
1351
1352 * regcache.c (regcache_raw_read): Assert that, after calling
1353 target_fetch_registers, the register we're reading is cached.
1354
1355 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1356 a call to 'internal_error', with a more helpful error message.
1357 * rs6000-tdep.c (e500_pseudo_register_read,
1358 e500_pseudo_register_write, rs6000_store_return_value): Same.
1359
1360 2004-08-04 Andrew Cagney <cagney@gnu.org>
1361
1362 * Makefile.in: Update dependencies.
1363
1364 2004-08-04 Jim Blandy <jimb@redhat.com>
1365
1366 Change the layout of the PowerPC E500 raw register cache to allow
1367 the lower 32-bit halves of the GPRS to be their own raw registers,
1368 not pseudoregisters.
1369 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1370 add ppc_ev0_upper_regnum flag.
1371 * rs6000-tdep.c: #include "reggroups.h".
1372 (spe_register_p): Recognize the ev upper half registers as SPE
1373 registers.
1374 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1375 registers.
1376 (e500_move_ev_register): New function.
1377 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1378 vector registers are the pseudo-registers now, formed by splicing
1379 together the gprs and the upper-half registers.
1380 (e500_register_reggroup_p): New function.
1381 (P): Macro deleted.
1382 (P8, A4): New macro.
1383 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1384 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1385 macros.
1386 (registers_e500): Rearrange register set so that the raw register
1387 set contains 32-bit GPRs and upper-half registers, and the SPE
1388 vector registers become pseudo-registers.
1389 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1390 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1391 register numbers are now the same for the E500 as they are for
1392 other PowerPC variants. Register e500_register_reggroup_p as the
1393 register group function for the E500.
1394 * Makefile.in (rs6000-tdep.o): Update dependencies.
1395
1396 Adapt PPC E500 native support to the new raw regcache layout.
1397 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1398 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1399 (fetch_spe_register, store_spe_register): Handle fetching/storing
1400 all the SPE registers at once, if regno == -1. These now take
1401 over the job of fetch_spe_registers and store_spe_registers.
1402 (fetch_spe_registers, store_spe_registers): Deleted.
1403 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1404 unconditionally; they're always raw. Fetch/store SPE upper half
1405 registers, if present, instead of ev registers.
1406 (fetch_register, store_register): Remove sanity checks: gprs are
1407 never pseudo-registers now, so we never need to even mention any
1408 registers that are ever pseudoregisters.
1409
1410 Use a fixed register numbering when communicating with the PowerPC
1411 simulator.
1412 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1413 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1414 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1415 New functions.
1416 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1417 init_sim_regno_table.
1418 * Makefile.in (gdb_sim_ppc_h): New variable.
1419 (rs6000-tdep.o): Update dependencies.
1420
1421 2004-08-02 Andrew Cagney <cagney@gnu.org>
1422
1423 * cris-tdep.c (cris_register_size): Restore function, still used
1424 locally.
1425
1426 * gdbarch.sh (deprecated_target_read_fp)
1427 (deprecated_frame_locals_address, deprecated_frame_args_address)
1428 (deprecated_frame_chain_valid, deprecated_frame_chain)
1429 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1430 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1431 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1432 * gdbarch.h, gdbarch.c: Re-generate.
1433 * regcache.c (deprecated_read_fp): Do not call
1434 DEPRECATED_TARGET_READ_FP_P.
1435 * infcmd.c (default_print_registers_info): Do not call
1436 DEPRECATED_DO_REGISTERS_INFO.
1437 * frame-base.c (default_frame_locals_address): Do not call
1438 DEPRECATED_FRAME_LOCALS_ADDRESS.
1439 (default_frame_args_address): Do not call
1440 DEPRECATED_FRAME_ARGS_ADDRESS.
1441
1442 * gdbarch.sh (deprecated_register_raw_size)
1443 (deprecated_register_virtual_size:int): Delete.
1444 * gdbarch.h, gdbarch.c: Re-generate.
1445 * cris-tdep.c (cris_register_size): Delete.
1446 (cris_gdbarch_init): Update.
1447 * alpha-tdep.c (alpha_register_raw_size)
1448 (alpha_register_virtual_size): Delete.
1449 (alpha_gdbarch_init): Update.
1450
1451 * gdbarch.sh (deprecated_register_virtual_type)
1452 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1453 (deprecated_dummy_write_sp): Delete.
1454 * gdbarch.h, gdbarch.c: Re-generate.
1455
1456 * gdbarch.sh (deprecated_register_bytes): Delete.
1457 * gdbarch.h, gdbarch.c: Re-generate.
1458 * regcache.c (deprecated_register_bytes): New function.
1459 * regcache.h (deprecated_register_bytes): Declare.
1460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1461 * v850-tdep.c (v850_gdbarch_init): Update.
1462 * sh64-tdep.c (sh64_gdbarch_init): Update.
1463 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1464 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1465 * mcore-tdep.c (mcore_gdbarch_init): Update.
1466 * cris-tdep.c (cris_gdbarch_init): Update.
1467 * arm-tdep.c (arm_gdbarch_init): Update.
1468 * remote.c (init_remote_state): Update.
1469 * remote-vx.c (vx_prepare_to_store): Update.
1470 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1471 * irix5-nat.c (fetch_core_registers): Update.
1472 * cris-tdep.c (cris_register_bytes_ok): Update.
1473 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1474
1475 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1476 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1477 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1478 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1479 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1480 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1481 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1482 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1483 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1484 with mips_insn16 and mips_insn32.
1485
1486 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1487 * rs6000-tdep.c (rs6000_push_dummy_call)
1488 (rs6000_extract_return_value): Use register_size.
1489 * xstormy16-tdep.c (xstormy16_get_saved_register)
1490 (xstormy16_extract_return_value): Ditto.
1491 * valops.c (value_assign): Ditto.
1492 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1493 * v850-tdep.c (v850_extract_return_value): Ditto.
1494 * tracepoint.c (collect_symbol): Ditto.
1495 * target.c (debug_print_register): Ditto.
1496 * stack.c (frame_info): Ditto.
1497 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1498 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1499 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1500 (store_register_using_P): Ditto.
1501 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1502 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1503 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1504 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1505 * regcache.c (deprecated_read_register_bytes)
1506 (deprecated_write_register_bytes, read_register)
1507 (write_register): Ditto.
1508 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1509 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1510 * monitor.c (monitor_supply_register, monitor_fetch_register)
1511 (monitor_store_register): Ditto.
1512 * mn10300-tdep.c (mn10300_pop_frame_regular)
1513 (mn10300_print_register): Ditto.
1514 * mipsv4-nat.c (fill_fpregset): Ditto.
1515 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1516 (mips64_fill_fpregset): Ditto.
1517 * mi/mi-main.c (register_changed_p, get_register)
1518 (mi_cmd_data_write_register_values): Ditto.
1519 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1520 * irix5-nat.c (fill_gregset, fetch_core_registers):
1521 * infrun.c (write_inferior_status_register): Ditto.
1522 * infptrace.c (fetch_register, store_register): Ditto.
1523 * infcmd.c (default_print_registers_info): Ditto.
1524 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1525 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1526 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1527 * hpux-thread.c (hpux_thread_fetch_registers)
1528 (hpux_thread_store_registers): Ditto.
1529 * hppah-nat.c (store_inferior_registers, fetch_register):
1530 * findvar.c (value_from_register): Ditto.
1531 * dve3900-rom.c (fetch_bitmapped_register):
1532 * cris-tdep.c (cris_gdbarch_init): Ditto.
1533 * alpha-tdep.h: Ditto.
1534 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1535
1536 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1537 DEPRECATED_REGISTER_RAW_SIZE from comments.
1538 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1539 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1540 DEPRECATED_REGISTER_RAW_SIZE.
1541 * findvar.c (value_of_register): Simplify by assuming that the
1542 registers raw and virtual sizes are identical.
1543 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1544 comment.
1545 * arch-utils.c (generic_register_size): Simplify by assuming
1546 register_type.
1547
1548 * regcache.c (legacy_read_register_gen, real_register)
1549 (legacy_write_register_gen): Delete, not used.
1550
1551 * regcache.c (struct regcache_descr): Delete legacy_p.
1552 (init_legacy_regcache_descr): Delete function.
1553 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1554 Do not use deprecated register functions.
1555 (regcache_raw_read, deprecated_write_register_gen):
1556 (deprecated_read_register_gen, regcache_raw_write): Delete code
1557 predicated on legacy_p.
1558 (register_size): Delete check against register raw size.
1559
1560 * cris-tdep.c (cris_register_type): Replace
1561 cris_register_virtual_type.
1562 (cris_gdbarch_init): Update, set register_type.
1563
1564 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1565 * gdbarch.h, gdbarch.c: Re-generate.
1566 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1567 (arm_gdbarch_init) Do not set frameless function invocation.
1568 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1569 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1570 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1571 (frv_gdbarch_init): Do not set frameless function invocation.
1572 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1573 * sh-tdep.c (sh_gdbarch_init): Ditto.
1574 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1575 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1576 * avr-tdep.c (avr_gdbarch_init): Ditto.
1577
1578 * blockframe.c (legacy_frame_chain_valid): Delete function.
1579
1580 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1581 and pc. Update comments.
1582 (pc_in_dummy_frame): Delete function.
1583 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1584 use the "id".
1585 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1586 call_hi, top and pc, use the id.
1587 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1588
1589 * dummy-frame.c: Include "gdb_string.h".
1590 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1591 (generic_save_dummy_frame_tos): Delete.
1592 (dummy_frame_push): New function, replaces above.
1593 * dummy-frame.h: Update copyright.
1594 (dummy_frame_push): Declare.
1595 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1596 (generic_save_call_dummy_addr): Delete declarations.
1597 * infcall.c: Include "dummy-frame.h".
1598 (call_function_by_hand): Add locals caller_regcache,
1599 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1600 with call to frame_save_as_regcache plus cleanup. Delete calls to
1601 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1602 Move clear_proceed_status to just before the resume, add call to
1603 dummy_frame_push (discard cleanup).
1604 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1605 (dummy-frame.o): Add $(gdb_string_h).
1606
1607 2004-08-01 Andrew Cagney <cagney@gnu.org>
1608
1609 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1610 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1611 * dummy-frame.c (find_dummy_frame): Delete.
1612 (struct dummy_frame_cache, dummy_frame_sniffer)
1613 (dummy_frame_prev_register, dummy_frame_this_id)
1614 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1615 frame unwinder using a dummy_frame_cache.
1616
1617 2004-08-01 Andrew Cagney <cagney@gnu.org>
1618
1619 * frame.h (frame_save_as_regcache): Declare.
1620 * frame.c (frame_save_as_regcache): New function.
1621 (do_frame_read_register): Replace do_frame_unwind_register.
1622 (frame_pop): Use frame_save_as_regcache.
1623 * dummy-frame.c (generic_push_dummy_frame): Use
1624 frame_save_as_regcache.
1625
1626 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1627
1628 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1629 file as included until we record the first line in the linetable.
1630
1631 2004-08-01 Andrew Cagney <cagney@gnu.org>
1632
1633 * frame.h (deprecated_pop_dummy_frame)
1634 (deprecated_read_register_dummy)
1635 (deprecated_generic_find_dummy_frame): Delete.
1636 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1637 (deprecated_read_register_dummy)
1638 (deprecated_find_dummy_frame_regcache)
1639 (discard_innermost_dummy)
1640 (deprecated_pop_dummy_frame): Delete.
1641 (dummy_frame_this_id): Simplify.
1642 (struct dummy_frame): Delete "fp" and "sp".
1643 (find_dummy_frame): Simplify.
1644 (generic_push_dummy_frame): Do not set "fp" or "sp".
1645 (fprint_dummy_frames): Do not print "fp" and "sp"
1646
1647 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1648
1649 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1650 (struct i386_insn): New structure.
1651 (i386_match_insn): New function.
1652 (i386_frame_setup_skip_insns): New variable.
1653 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1654 array i386_frame_setup_insns of instructions that should be
1655 skipped inside the frame setup sequence.
1656
1657 2004-08-01 Andrew Cagney <cagney@gnu.org>
1658
1659 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1660 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1661 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1662 * stack.c (frame_info): Delete references to
1663 DEPRECATED_FRAME_INIT_SAVED_REGS and
1664 deprecated_get_frame_saved_regs.
1665 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1666 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1667 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1668 (frame_unwind_register_signed)
1669 (frame_unwind_register_unsigned)
1670 (frame_unwind_unsigned_register): Use register_size.
1671 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1672 (deprecated_frame_xmalloc_with_cleanup)
1673 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1674 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1675
1676 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1677 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1678 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1679 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1680
1681 * infcall.c (call_function_by_hand): Do not use
1682 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1683 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1684 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1685 DEPRECATED_STACK_ALIGN.
1686
1687 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1688
1689 Committed by Andrew Cagney.
1690 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1691
1692 2004-08-01 Andrew Cagney <cagney@gnu.org>
1693
1694 * mips-tdep.c (mips16_frame_cache)
1695 (mips16_frame_this_id, mips16_frame_prev_register)
1696 (mips16_frame_unwind, mips16_frame_sniffer)
1697 (mips16_frame_base_address, mips16_frame_base)
1698 (mips16_frame_base_sniffer, mips32_frame_cache)
1699 (mips32_frame_this_id, mips32_frame_prev_register)
1700 (mips32_frame_unwind, mips32_frame_sniffer)
1701 (mips32_frame_base_address, mips32_frame_base)
1702 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1703 separate heuristic mips16 and mips32 unwinders.
1704 (mips_stub_frame_cache, mips_stub_frame_this_id)
1705 (mips_stub_frame_prev_register)
1706 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1707 (mips_stub_frame_base_address, mips_stub_frame_base)
1708 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1709 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1710 match true mdebug frames.
1711 (non_heuristic_proc_desc): Add forward declaration.
1712
1713 2004-08-01 Andrew Cagney <cagney@gnu.org>
1714
1715 * config/mips/tm-irix6.h: Delete file.
1716 * config/mips/tm-irix5.h: Delete file.
1717 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1718 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1719
1720 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1721 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1722 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1723 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1724 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1725 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1726 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1727 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1728 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1729 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1730 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1731 (TARGET_SIGNAL_RAW_VALUES): Delete.
1732 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1733 Delete.
1734 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1735 (TARGET_HW_WATCH_LIMIT): Delete.
1736 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1737 * minimon.h: Delete file.
1738
1739 * trad-frame.c (trad_frame_get_this_base)
1740 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1741 functions.
1742 * trad-frame.h (trad_frame_set_this_base)
1743 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1744
1745 2004-07-31 Andrew Cagney <cagney@gnu.org>
1746
1747 * trad-frame.c (trad_frame_get_prev_register): Rename
1748 trad_frame_get_prev_register.
1749 * vax-tdep.c (vax_frame_prev_register): Update.
1750 * trad-frame.h: Update.
1751 * trad-frame.c (trad_frame_get_register): Update.
1752 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1753 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1754 Update.
1755 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1756 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1757 Update.
1758 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1759 Update.
1760 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1761 Update.
1762 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1763 Update.
1764 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1765 Update.
1766 * s390-tdep.c (s390_frame_prev_register)
1767 (s390_stub_frame_prev_register)
1768 (s390_sigtramp_frame_prev_register): Update.
1769 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1770 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1771 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1772 * m88k-tdep.c (m88k_frame_prev_register)
1773 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1774 * m32r-tdep.c (m32r_frame_prev_register): Update.
1775 * hppa-tdep.c (hppa_frame_prev_register_helper)
1776 * frv-tdep.c (frv_frame_prev_register): Update.
1777 * d10v-tdep.c (d10v_frame_prev_register): Update.
1778 * cris-tdep.c (cris_frame_prev_register): Update.
1779 * avr-tdep.c (avr_frame_prev_register): Update.
1780 * arm-tdep.c (arm_prologue_prev_register)
1781 (arm_sigtramp_prev_register): Update.
1782
1783 2004-07-31 Andrew Cagney <cagney@gnu.org>
1784
1785 * frame.h (legacy_saved_regs_unwind)
1786 (legacy_frame_chain_valid, legacy_frame_p)
1787 (enum frame_type): Delete UNKNOWN_FRAME.
1788 * dummy-frame.c (dummy_frame_this_id): Simplify.
1789 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1790 * frame.c (struct frame_info): Delete the field "type".
1791 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1792 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1793 (legacy_saved_regs_unwind, legacy_frame_p)
1794 (frame_type_from_pc): Delete.
1795 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1796 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1797
1798 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1799
1800 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1801 indentation.
1802
1803 * mips-nat.c: Remove file.
1804 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1805 (mips-nat.o): Remove dependency.
1806
1807 * infptrace.c: Update copyright year.
1808 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1809 explicitly setting the buffer to all zeroes.
1810
1811 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1812 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1813
1814 2004-07-30 Andrew Cagney <cagney@gnu.org>
1815
1816 * GDB 6.2 released from gdb_6_2-branch.
1817
1818 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1819
1820 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1821
1822 * exec.c (exec_file_attach):
1823 * nto-tdep.c (nto_find_and_open_solib):
1824 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1825 * solib.c (solib_open):
1826 * somsolib.c (som_solib_sizeof_symbol_table):
1827 * source.c (is_regular_file, openp, open_source_file):
1828 * symfile.c (symfile_bfd_open):
1829 * wince.c (upload_to_device): Differentiate between the search for
1830 binary and source files.
1831
1832 2004-07-30 Andrew Cagney <cagney@gnu.org>
1833
1834 * complaints.c (_initialize_complaints): Pass NULL to
1835 add_setshow_zinteger_cmd for help_doc.
1836 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1837
1838 2004-07-30 Andrew Cagney <cagney@gnu.org>
1839
1840 Fix PR i18n/761.
1841 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1842 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1843 $(PACKAGE).pot and update-po.
1844 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1845 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1846 (update-po): New rules.
1847 (localedir): Define using autoconf.
1848 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1849 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1850 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1851 * configure.in: Generate CATALOGS and LINGUAS from contents of
1852 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1853 * configure: Re-generate.
1854 * po/gdbtext: New file
1855
1856 2004-07-30 Jerome Guitton <guitton@gnat.com>
1857
1858 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1859 order.
1860
1861 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1862
1863 * dwarf2read.c (read_file_scope): Set producer if attribute
1864 present.
1865 (struct dwarf2_cu): Added new member producer.
1866
1867 2004-07-30 Jerome Guitton <guitton@gnat.com>
1868
1869 * inflow.c (kill_command): release file handles in BFD.
1870 * exec.c (exec_file_attach): Ditto.
1871 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1872
1873 2004-07-29 Andrew Cagney <cagney@gnu.org>
1874
1875 * PROBLEMS (mips-irix): Note that it is broken.
1876
1877 2004-07-29 Andrew Cagney <cagney@gnu.org>
1878
1879 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1880 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1881
1882 * config/xm-nbsd.h: Delete file.
1883 * config/arm/xm-nbsd.h: Delete file.
1884 * config/i386/xm-nbsd.h: Delete file.
1885 * config/ns32k/xm-nbsd.h: Delete file.
1886 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1887 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1888 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1889 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1890 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1891
1892 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1893 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1894 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1895 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1896 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1897 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1898
1899 * config/powerpc/xm-linux.h: Delete empty file.
1900 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1901 * config/powerpc/linux.mh (XM_FILE): Delete.
1902 * config/m68k/xm-linux.h: Delete empty file.
1903 * config/m68k/linux.mh (XM_FILE): Delete.
1904 * config/ia64/xm-linux.h: Delete empty file.
1905 * config/ia64/linux.mh (XM_FILE): Delete.
1906 * config/arm/xm-linux.h: Delete empty file.
1907 * config/arm/linux.mh (XM_FILE): Delete.
1908
1909 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1910 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1911 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1912 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1913 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1914 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1915 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1916 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1917
1918 * config/m68k/xm-m68k.h: Delete file.
1919 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1920 copyright.
1921 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1922 * config/pa/xm-linux.h: Delete empty file.
1923 * config/pa/linux.mh (XM_FILE): Delete.
1924 * config/i386/xm-i386.h: Delete empty file.
1925 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1926 "i386/xm-i386.h".
1927 * config/i386/obsdaout.mh (XM_FILE): Delete.
1928 * config/i386/obsd64.mh (XM_FILE): Delete.
1929 * config/i386/fbsd64.mh (XM_FILE): Delete.
1930 * config/i386/nto.mh (XM_FILE): Delete.
1931 * config/i386/obsd.mh (XM_FILE): Delete.
1932 * config/i386/linux64.mh (XM_FILE): Delete.
1933 * config/i386/linux.mh (XM_FILE): Delete.
1934 * config/i386/i386sol2.mh (XM_FILE): Delete.
1935 * config/i386/i386gnu.mh (XM_FILE): Delete.
1936 * config/i386/fbsd.mh (XM_FILE): Delete.
1937 * config/i386/nbsd64.mh (XM_FILE): Delete.
1938
1939 2004-07-29 Andrew Cagney <cagney@gnu.org>
1940
1941 * config/pa/xm-linux.h: Do not include "floatformat.h".
1942 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1943 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1944 * config/i386/xm-i386.h: Do not include "floatformat.h".
1945 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1946 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1947 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1948 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1949 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1950 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1951 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1952 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1953 * configure, config.in: Regenerate.
1954 * configure.host (gdb_host_float_format, gdb_host_double_format)
1955 (gdb_host_long_double_format): Set according to the host.
1956
1957 2004-07-29 Andrew Cagney <cagney@gnu.org>
1958
1959 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1960
1961 2004-07-28 Andrew Cagney <cagney@gnu.org>
1962
1963 * PROBLEMS: Mention threads/1650.
1964 * NEWS: Mention the NPTL fix.
1965
1966 2004-07-28 Andrew Cagney <cagney@gnu.org>
1967
1968 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1969 (add_setshow_cmd_full): Make static.
1970 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1971 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1972 * cli/cli-decode.c (add_setshow_filename_cmd)
1973 (add_setshow_string_cmd): New functions.
1974 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1975 * mips-tdep.c (_initialize_mips_tdep): Update.
1976 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1977 * cli/cli-logging.c (_initialize_cli_logging): Update.
1978 * complaints.c (_initialize_complaints): Update.
1979 * remote.c (_initialize_remote): Update.
1980
1981 2004-07-28 Andrew Cagney <cagney@gnu.org>
1982
1983 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1984 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1985 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1986 print parameters. Make string parameters constant.
1987 * command.h: Update. Update copyright.
1988 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1989 * observer.c (_initialize_observer): Ditto.
1990 * frame.c (_initialize_frame): Ditto.
1991 * complaints.c (_initialize_complaints): Ditto.
1992 * maint.c (_initialize_maint_cmds): Ditto.
1993 * target.c (initialize_targets): Ditto.
1994 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1995 * infcall.c (_initialize_infcall): Ditto.
1996 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1997 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1998 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1999 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2000 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2001
2002 2004-07-28 Andrew Cagney <cagney@gnu.org>
2003
2004 * gdbtypes.c (lookup_primitive_typename): Delete function.
2005 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2006 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2007 * gdbtypes.c (lookup_typename): Ditto.
2008 * f-exp.y (yylex): Ditto.
2009 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2010
2011 * scm-lang.c (c_builtin_types): Delete extern declaration.
2012 (scm_language_defn): Replace
2013 string_char_type and primitive_type_vector with
2014 la_language_arch_info.
2015 * jv-lang.c (java_language_defn): Replace
2016 string_char_type and primitive_type_vector with
2017 la_language_arch_info.
2018 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2019 c_builtin_types in comment.
2020 * c-lang.h (struct language_arch_info): Declare opaque.
2021 (c_language_arch_info): Declare.
2022 (c_builtin_types): Delete declaration.
2023 * c-lang.c (c_language_arch_info): Set string_char_type to
2024 builtin_char, not builtin_true_char. Make global.
2025 (c_builtin_types): Delete array.
2026 (asm_language_defn, minimal_language_defn): Replace
2027 string_char_type and primitive_type_vector with
2028 la_language_arch_info.
2029
2030 2004-07-28 Andrew Cagney <cagney@gnu.org>
2031
2032 * gdbtypes.h (struct builtin_type): Rename true_char to
2033 builtin_true_char.
2034 * gdbtypes.c (gdbtypes_post_init): Update.
2035 * c-lang.c (arch_info): New function.
2036 (enum c_primitive_types): New enum.
2037 (c_language_defn): Instead of string_char_type and
2038 primitive_type_vector set la_language_arch_info.
2039
2040 2004-07-28 Andrew Cagney <cagney@gnu.org>
2041
2042 * language.h (struct language_arch_info): Fix typo
2043 s/primative/primitive/.
2044 * gdbtypes.c (lookup_primitive_typename): Ditto.
2045 * language.c (language_lookup_primitive_type_by_name)
2046 (unknown_language_arch_info): Ditto.
2047
2048 2004-07-27 Andrew Cagney <cagney@gnu.org>
2049
2050 * defs.h (enum language): Add nr_languages.
2051 * language.h (struct language_arch_info): Define.
2052 (struct language_defn): Add la_language_arch_info.
2053 (language_lookup_primative_type_by_name): Declare.
2054 (language_string_char_type): Declare.
2055 * language.c (_initialize_language, language_gdbarch_post_init)
2056 (struct language_gdbarch, language_gdbarch_data): Implement
2057 per-architecture language information.
2058 (unknown_language_arch_info, language_string_char_type)
2059 (language_lookup_primative_type_by_name): New functions.
2060 (unknown_language_defn, auto_language_defn)
2061 (local_language_defn): Set la_language_arch_info to
2062 unknown_language_arch_info.
2063 (unknown_builtin_types): Delete.
2064 * gdbtypes.c (lookup_primitive_typename): Use
2065 language_lookup_primative_type_by_name.
2066 (create_string_type): Use language_string_char_type.
2067 * values.c (value_from_string): Use language_string_char_type.
2068 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2069 * p-lang.c (pascal_language_defn): Ditto.
2070 * m2-lang.c (m2_language_defn): Ditto.
2071 * jv-lang.c (java_language_defn): Ditto.
2072 * objc-lang.c (objc_language_defn): Ditto.
2073 * f-lang.c (f_language_defn): Ditto.
2074 * c-lang.c (c_language_defn, cplus_language_defn)
2075 (asm_language_defn, minimal_language_defn): Ditto.
2076
2077 2004-07-27 Andrew Cagney <cagney@gnu.org>
2078
2079 * gdbtypes.h (struct builtin_type): Declare.
2080 (builtin_type): Declare.
2081 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2082 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2083 (gdbtypes_post_init): New function.
2084 (builtin_type): New function.
2085
2086 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2087
2088 * remote-m32r-sdi.c: Fix breakpoint bug.
2089 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2090 recv_char_data, recv_long_data): New functions to replace communication
2091 sequences.
2092
2093 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2094
2095 Document PR threads/1650.
2096 * PROBLEMS (Threads): Document problem with many threads
2097
2098 2004-07-26 Andrew Cagney <cagney@gnu.org>
2099
2100 * gdb-mi.el: Move from here ...
2101 * mi/gdb-mi.el: ... to here.
2102
2103 2004-07-26 Andrew Cagney <cagney@gnu.org>
2104
2105 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2106 * main.c (captured_main): When in batch mode always detach.
2107
2108 2004-07-26 Andrew Cagney <cagney@gnu.org>
2109
2110 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2111 and h8300 as broken.
2112 * NEWS: END-OF-LIFE frame compatibility module.
2113 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2114 specific comments.
2115
2116 2004-07-26 Andrew Cagney <cagney@gnu.org>
2117
2118 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2119 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2120 * wince.c (_initialize_wince): Update.
2121 * win32-nat.c (_initialize_win32_nat): Update.
2122 * varobj.c (_initialize_varobj): Update.
2123 * valops.c (_initialize_valops): Update.
2124 * utils.c (initialize_utils, initialize_utils): Update.
2125 * tui/tui-win.c (_initialize_tui_win): Update.
2126 * top.c (init_main): Update.
2127 * symfile.c (_initialize_symfile): Update.
2128 * source.c (_initialize_source): Update.
2129 * somsolib.c (_initialize_som_solib): Update.
2130 * solib.c (_initialize_solib): Update.
2131 * solib-frv.c (_initialize_frv_solib): Update.
2132 * serial.c (_initialize_serial): Update.
2133 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2134 * remote.c (_initialize_remote, _initialize_remote): Update.
2135 * remote-vx.c (_initialize_vx): Update.
2136 * remote-utils.c (_initialize_sr_support): Update.
2137 * remote-sds.c (_initialize_remote_sds): Update.
2138 * remote-mips.c (_initialize_remote_mips): Update.
2139 * remote-e7000.c (_initialize_remote_e7000): Update.
2140 * proc-api.c (_initialize_proc_api): Update.
2141 * printcmd.c: Update.
2142 * parse.c (_initialize_parse): Update.
2143 * pa64solib.c (_initialize_pa64_solib): Update.
2144 * p-valprint.c (_initialize_pascal_valprint): Update.
2145 * monitor.c (_initialize_remote_monitors): Update.
2146 * mips-tdep.c (_initialize_mips_tdep): Update.
2147 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2148 * maint.c (_initialize_maint_cmds): Update.
2149 * lin-lwp.c (_initialize_lin_lwp): Update.
2150 * language.c (_initialize_language): Update.
2151 * kod.c (_initialize_kod): Update.
2152 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2153 * i386-tdep.c (_initialize_i386_tdep): Update.
2154 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2155 * gdbarch.sh: Update.
2156 * gdbarch.c: Re-generate.
2157 * gdb-events.sh: Update.
2158 * gdb-events.c: Re-generate.
2159 * frame.c (_initialize_frame): Update.
2160 * exec.c: Update.
2161 * demangle.c (_initialize_demangler): Update.
2162 * dcache.c (_initialize_dcache): Update.
2163 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2164 * cp-valprint.c (_initialize_cp_valprint): Update.
2165 * corefile.c (_initialize_core): Update.
2166 * command.h: Update.
2167 * cli/cli-decode.h: Update.
2168 * cli/cli-cmds.c (init_cli_cmds): Update.
2169 * charset.c (_initialize_charset): Update.
2170 * breakpoint.c (_initialize_breakpoint): Update.
2171 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2172 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2173 * aix-thread.c (_initialize_aix_thread): Update.
2174
2175 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2176
2177 Partial fix for PR backtrace/1718.
2178 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2179 that GCC migrates into the prolugue. Don't handle any
2180 instructions that clobber %ebx.
2181
2182 2004-07-23 Andrew Cagney <cagney@gnu.org>
2183
2184 Use regcache_raw_collect instead of regcache_collect.
2185 * regcache.h (regcache_collect): Delete declaration.
2186 * regcache.c (regcache_colect): Delete function.
2187 * win32-nat.c (do_child_store_inferior_registers): Update.
2188 * sol-thread.c (sol_thread_store_registers): Update.
2189 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2190 * rs6000-nat.c (store_register): Update.
2191 * remote.c (store_register_using_P, remote_store_registers): Update.
2192 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2193 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2194 (fill_vrregset, store_spe_registers, fill_gregset)
2195 (fill_gregset): Update.
2196 * nto-procfs.c (procfs_store_registers): Update.
2197 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2198 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2199 * m68klinux-nat.c (store_register, fill_gregset): Update.
2200 * m68k-tdep.c (fill_gregset): Update.
2201 * infptrace.c (store_register): Update.
2202 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2203 * i386-linux-nat.c (store_register, fill_gregset): Update.
2204 * hppa-linux-nat.c (fill_gregset): Update.
2205 * go32-nat.c (store_register): Update.
2206 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2207 (store_fp_regs): Update.
2208 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2209 (store_nwfpe_extended, store_fpregister, store_fpregs)
2210 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2211 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2212 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2213 (store_regs_user_thread, store_regs_kernel_thread): Update.
2214
2215 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2216
2217 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2218 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2219 encoding.
2220 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2221 member of `struct comp_unit'.
2222
2223 2004-07-23 Andrew Cagney <cagney@gnu.org>
2224
2225 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2226 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2227
2228 2004-07-23 Martin Hunt <hunt@redhat.com>
2229 Kevin Buettner <kevinb@redhat.com>
2230
2231 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2232 alignment was being added to the offset instead of multiplied.
2233
2234 2004-07-23 Mark Kettenis <kettenis@gnu.org>
2235
2236 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2237 changed signal trampoline in OpenBSD 3.5-current.
2238
2239 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2240 <machine/pcb.h> and "bsd-kvm.h".
2241 (sparc64nbsd_supply_pcb): New function.
2242 (_initialize_sparc64nbsd_nat): Renamed from
2243 _initialize_sparcnbsd_nat. Enable libkvm interface.
2244 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2245 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2246 (LOADLIBES): New variable.
2247
2248 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2249
2250 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2251
2252 2004-07-21 Andrew Cagney <cagney@gnu.org>
2253
2254 Use regcache_raw_supply instead of supply_register.
2255 * regcache.h (supply_register): Delete declaration.
2256 * regcache.c (supply_register): Delete function.
2257 * wince.c (do_child_fetch_inferior_registers): Update.
2258 * win32-nat.c (do_child_fetch_inferior_registers)
2259 (fetch_elf_core_registers): Update.
2260 * v850ice.c (v850ice_fetch_registers): Update.
2261 * thread-db.c (thread_db_store_registers): Update.
2262 * sol-thread.c (sol_thread_store_registers): Update.
2263 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2264 * rs6000-nat.c (fetch_register): Update.
2265 * rom68k-rom.c (rom68k_supply_one_register): Update.
2266 * remote.c (remote_wait, remote_async_wait): Update.
2267 * remote-st.c (get_hex_regs): Update.
2268 * remote-sim.c (gdbsim_fetch_register): Update.
2269 * remote-sds.c (sds_fetch_registers): Update.
2270 * remote-rdp.c (remote_rdp_fetch_register): Update.
2271 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2272 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2273 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2274 * remote-hms.c (init_hms_cmds): Update.
2275 * remote-est.c (init_est_cmds): Update.
2276 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2277 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2278 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2279 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2280 (fetch_register, supply_vrregset, supply_vrregset)
2281 (fetch_spe_registers): Update.
2282 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2283 * monitor.c (monitor_supply_register): Update.
2284 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2285 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2286 (mipsnbsd_supply_fpreg): Update.
2287 * mips-nat.c (fetch_inferior_registers)
2288 (fetch_core_registers): Update.
2289 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2290 (supply_fpregset, mips64_supply_gregset)
2291 (mips64_supply_fpregset): Update.
2292 * m68klinux-nat.c (fetch_register, supply_gregset)
2293 (supply_fpregset): Update.
2294 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2295 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2296 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2297 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2298 * infptrace.c (fetch_register): Update.
2299 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2300 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2301 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2302 (gnu_fetch_registers, gnu_store_registers): Update.
2303 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2304 * i386-linux-nat.c (fetch_register, supply_gregset)
2305 (dummy_sse_values): Update.
2306 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2307 * hppah-nat.c (fetch_register): Update.
2308 * hppa-linux-nat.c (fetch_register, supply_gregset)
2309 (supply_fpregset): Update.
2310 * go32-nat.c (fetch_register): Update.
2311 * dve3900-rom.c (fetch_bitmapped_register)
2312 (_initialize_r3900_rom): Update.
2313 * cris-tdep.c (supply_gregset): Update.
2314 * abug-rom.c (init_abug_cmds): Update.
2315 * core-aout.c (fetch_core_registers): Update.
2316 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2317 (fetch_register, fetch_fp_register): Update.
2318 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2319 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2320 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2321 * alphanbsd-tdep.c (fetch_core_registers): Update.
2322 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2323 * alpha-nat.c (fetch_osf_core_registers)
2324 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2325 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2326 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2327
2328 2004-07-21 Andrew Cagney <cagney@gnu.org>
2329
2330 * PROBLEMS: Mention breakpoints/1702.
2331 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2332 that is known to work.
2333
2334 2004-07-21 Andrew Cagney <cagney@gnu.org>
2335
2336 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2337 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2338 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2339 (handle_inferior_event): Wrap call to deprecated
2340 IGNORE_HELPER_CALL in #ifdef.
2341 * config/mips/tm-nbsd.h: Update.
2342
2343 2004-07-20 Jim Blandy <jimb@redhat.com>
2344
2345 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2346 bfd_mach_ppc has no segment registers.
2347
2348 Include PowerPC SPR numbers for special-purpose registers.
2349 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2350 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2351 new member in initializer.
2352 (S, S4, SN4, S64): New macros for defining special-purpose
2353 registers.
2354 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2355 registers_403, registers_403GC, registers_505, registers_860,
2356 registers_601, registers_602, registers_603, registers_604,
2357 registers_750, registers_e500): Use them.
2358
2359 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2360 replace references with expression used to initialize variable.
2361
2362 2004-07-20 Andrew Cagney <cagney@gnu.org>
2363
2364 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2365 read_memory_nobpt.
2366 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2367 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2368 (s390_sigtramp_frame_sniffer): Update.
2369 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2370 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2371 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2372 (mips32_fetch_instruction): Update.
2373 * mcore-tdep.c (get_insn): Update.
2374 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2375 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2376 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2377 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2378 (i386_linux_rt_sigtramp_start): Update.
2379 * i386-linux-nat.c (child_resume): Update.
2380 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2381 * hppa-linux-tdep.c (insns_match_pattern): Update.
2382 * gdbcore.h: Update.
2383 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2384 * frame.c (safe_frame_unwind_memory): Update.
2385 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2386 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2387 * alpha-tdep.c (alpha_read_insn): Update.
2388
2389 2004-07-20 Andrew Cagney <cagney@gnu.org>
2390
2391 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2392 containing both bytes and mask. Add "frame_type".
2393 * tramp-frame.c (tramp_frame_start): Update.
2394 (tramp_frame_prepend_unwinder): Update.
2395 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2396 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2397 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2398 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2399
2400 2004-07-19 Eli Zaretskii <eliz@gnu.org>
2401
2402 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2403 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2404 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2405 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2406
2407 2004-07-17 Andrew Cagney <cagney@gnu.org>
2408
2409 * NEWS, PROBLEMS: Update for 6.2.
2410
2411 * README: Update to 6.2.
2412
2413 * utils.c (xvasprintf): Call xstrvprintf.
2414
2415 * parse.c: Update copyright.
2416 (null_post_parser): Eliminate ARGSUSED.
2417
2418 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2419 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2420 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2421
2422 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2423 * ppc-linux-nat.c: Use "Linux kernel".
2424 * hppa-linux-tdep.c: Use GNU/Linux.
2425 * hppa-linux-nat.c: Use GNU/Linux.
2426 * dwarfread.c: Add [sic] to use of Linux.
2427
2428 * hppa-linux-nat.c: Do not include <string.h>.
2429 (supply_fpregset): Remove "register" attribute.
2430
2431 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2432
2433 2004-07-17 Mark Kettenis <kettenis@gnu.org>
2434
2435 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2436 * configure, config.in: Regenerated.
2437
2438 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2439 "bsd-kvm.h".
2440 (vaxbsd_supply_pcb): New function.
2441 (_initialize_vaxbsd_nat): New prototype and function.
2442 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2443 solib-sunos.o.
2444 (LOADLIBES): New variable.
2445 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2446 (LOADLIBES): New variable.
2447 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2448 (LOADLIBES): New variable.
2449 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2450
2451 2004-07-16 Andrew Cagney <cagney@gnu.org>
2452
2453 * defs.h (event_loop_p): Replace variable declaration with macro,
2454 always 1.
2455 * main.c (captured_main): Delete options "-async" and "-noasync".
2456 (event_loop_p): Delete variable.
2457 * NEWS: Mention that "-async" and "-noasync" were removed.
2458
2459 2004-07-16 Andrew Cagney <cagney@gnu.org>
2460
2461 * remote-m32r-sdi.c: Re-indent.
2462
2463 2004-07-16 Jim Blandy <jimb@redhat.com>
2464
2465 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2466 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2467 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2468 missing MPC823 SPRs.
2469 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2470 incorrect. (This was corrected in GDB's register name tables on
2471 2004-07-14.)
2472
2473 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2474 should be "esasrr" ("ESA Save and Restore Register").
2475
2476 2004-07-16 Andrew Cagney <cagney@gnu.org>
2477
2478 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2479 calls, no longer applicable. Update comments and rename parameter
2480 "step_frame" to "return_frame".
2481
2482 2004-07-16 Andrew Cagney <cagney@gnu.org>
2483
2484 * frame.c (fprint_field): New function.
2485 (fprint_frame_id): Use fprint_field.
2486
2487 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2488
2489 * ada-lang.c (ada_language_defn): Remove commented out code.
2490
2491 2004-07-15 Jim Blandy <jimb@redhat.com>
2492
2493 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2494 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2495
2496 2004-07-14 Jim Blandy <jimb@redhat.com>
2497
2498 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2499
2500 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2501
2502 * ppc-tdep.h (ppc_num_srs): New enum constant.
2503
2504 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2505 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2506 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2507 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2508 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2509 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2510 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2511 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2512 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2513 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2514 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2515 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2516 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2517 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2518 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2519 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2520 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2521 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2522 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2523 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2524 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2525 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2526 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2527 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2528 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2529 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2530 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2531 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2532 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2533 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2534 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2535 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2536 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2537 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2538 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2539 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2540 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2541 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2542 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2543 special-purpose register numbers.
2544
2545 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2546 manual mentions 'md_twb', but many mention 'm_twb', and at that
2547 point in the register list.)
2548
2549 2004-07-14 Andrew Cagney <cagney@gnu.org>
2550
2551 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2552 instead of "internal-error".
2553
2554 2004-07-10 Joel Brobecker <brobecker@gnat.com>
2555
2556 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2557 that was inserted inside a comment.
2558
2559 2004-07-10 Randolph Chung <tausq@debian.org>
2560
2561 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2562 function.
2563 (hppa_hpux_push_dummy_code): New function.
2564 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2565 Set find_global_pointer method.
2566
2567 2004-07-10 Mark Kettenis <kettenis@gnu.org>
2568
2569 * NEWS: Mention BSD libkvm interface.
2570
2571 2004-07-10 Michael Snyder <msnyder@redhat.com>
2572
2573 * symfile.c (generic_load): Comment typo.
2574 * stack.c (get_selected_block): Ditto.
2575 * regcache.c (regcache_cooked_read): Ditto.
2576 * monitor.c (monitor_debug): Ditto.
2577 * mips-tdep.c (mips_read_pc): Ditto.
2578 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2579 * gdb_mbuild.sh: Ditto.
2580 * gdbarch.sh: Ditto.
2581 * gdbarch.h: Ditto.
2582
2583 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2584
2585 * ada-tasks.c: Remove file.
2586
2587 Remove ARI problems:
2588
2589 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2590 beginning of line.
2591
2592 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2593 Add comment.
2594 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2595 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2596 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2597 (UMIN_OF_SIZE): Remove.
2598 (max_of_type): New function to replace orphan macro in gdbtypes.h
2599 (min_of_type): Ditto.
2600 (discrete_type_high_bound): Use max_of_type.
2601 (discrete_type_low_bound): Use min_of_type.
2602 (possible_user_operator_p): Move operator to beginning of line.
2603 (ada_is_variant_part): Ditto.
2604 (ensure_lval): Rewrite to avoid deprecated operations.
2605 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2606 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2607 (ada_enum_name): Remove assignments in 'if' statements.
2608 (build_ada_types): Add gdbarch parameter.
2609 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2610 with gdbarch_data_register_post_init.
2611 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2612 add_show_from_set.
2613
2614 * ada-valprint.c (inspect_it): Remove declaration.
2615 (repeat_count_threshold): Remove declaration.
2616 (ada_print_floating): Remove assignments in 'if' statements.
2617 (print_str): Move operator to beginning of line.
2618
2619 2004-07-08 Jim Blandy <jimb@redhat.com>
2620
2621 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2622
2623 2004-07-08 Bob Rossi <bob@brasko.net>
2624
2625 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2626
2627 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2628
2629 * language.h (struct_language_defn): Add new function pointer:
2630 la_class_name_from_physname. Also add new prototype for
2631 language_class_name_from_physname.
2632 * language.c (language_class_name_from_physname): New function.
2633 (unk_lang_class_name): Ditto.
2634 (unknown_language_defn, auto_language_defn): Change
2635 to add unk_lang_class_name function pointer for
2636 la_class_name_from_physname.
2637 (local_language_defn): Ditto.
2638 * dwarf2read.c (guess_structure_name): Change to call
2639 language_class_name_from_physname.
2640 (determine_class_name): Ditto.
2641 * cp-support.c (class_name_from_physname): Renamed.
2642 (cp_class_name_from_physname): New name of function.
2643 * cp-support.h: Ditto.
2644 * c-lang.c (c_language_defn): Change to add NULL
2645 for class_name_from_physname function pointer.
2646 (cplus_language_defn): Change to add cp_class_name_from_physname.
2647 * jv-lang.c (java_class_name_physname): New function.
2648 (java_find_last_component): New static routine.
2649 (java_language_defn): Add java_class_name_from_physname pointer.
2650 * ada-lang.c (ada_language_defn): Change to add NULL
2651 for class_name_from_physname function pointer.
2652 * f-lang.c (f_language_defn): Ditto.
2653 * m2-lang.c (m2_language_defn): Ditto.
2654 * objc-lang.c (objc_language_defn): Ditto.
2655 * p-lang.c (pascal_language_defn): Ditto.
2656 * scm-lang.c (scm_language_defn): Ditto.
2657
2658 2004-07-06 Andrew Cagney <cagney@gnu.org>
2659
2660 Patch from Bart Robinson.
2661 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2662 (O_LARGEFILE): Define to 0, if not defined.
2663
2664 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2665
2666 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2667 <machine/pcb.h> and "bsd-kvm.h".
2668 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2669 (m68kbsd_supply_pcb): New function.
2670 (_initialize_m68kbsd_nat): New prototype and function.
2671 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2672 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2673 (LOADLIBES): New variable.
2674 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2675 (LOADLIBES): New variable.
2676
2677 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2678
2679 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2680
2681 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2682 <sys/proc.h>.
2683 (bsd_kvm_cmdlist): New variable.
2684 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2685 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2686 command and "kvm proc" command.
2687 * Makefile.in (bsd-kvm.o): Update dependencies.
2688
2689 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2690
2691 * osabi.c: Update copyright year.
2692 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2693 notes if EI_OSABI is set to ELFOSABI_HPUX.
2694
2695 2004-07-01 Michael Snyder <msnyder@redhat.com>
2696
2697 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2698 that seems to have gotten whacked out of line.
2699
2700 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2701
2702 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2703 code.
2704
2705 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2706
2707 * ada-lang.c (decode_packed_array): Minor change to comment.
2708 (ada_value_slice_ptr): New function.
2709 (ada_value_slice): New function.
2710 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2711 test. Don't know why it is there.
2712 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2713 to avoid dereferencing huge arrays from which one is slicing.
2714 (empty_array): Correct to return an array rather than
2715 a subrange value.
2716 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2717 on empty arrays (let'em use 'FIRST instead).
2718
2719 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2720
2721 Address complaints from gdb_ari.sh:
2722
2723 * ada-exp.y: Include gdb_string.h rather than string.h.
2724 (convert_char_literal): Reformat declaration.
2725 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2726 * ada-lex.l: Change use of free to xfree (the macro would do so
2727 anyway, but this is harmless).
2728 Include gdb_string.h rather than string.h.
2729 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2730
2731 * ada-lang.c (parse): Remove K&Rism in parameter list.
2732 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2733
2734 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2735
2736 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2737 dead code.
2738
2739 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2740
2741 * alphabsd-nat.c: Update copyright year.
2742 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2743
2744 2004-06-29 Joel Brobecker <brobecker@gnat.com>
2745
2746 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
2747 (i386_cygwin_in_solib_call_trampoline): New function.
2748 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2749 and skip_trampoline_code gdbarch methods.
2750
2751 2004-06-29 Jim Blandy <jimb@redhat.com>
2752
2753 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2754 name actually used in the dependency lists.
2755
2756 2004-06-29 Randolph Chung <tausq@debian.org>
2757
2758 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2759
2760 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2761
2762 * win32-nat.c (child_pid_to_exec_file): New function.
2763 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2764 functionality.
2765
2766 2004-06-28 Andrew Cagney <cagney@gnu.org>
2767
2768 * defs.h (xstrvprintf): Declare.
2769 * utils.c (xstrvprintf): New function.
2770 (internal_vproblem, xstrprintf, xasprintf)
2771 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2772 * serial.c (serial_printf): Ditto.
2773 * complaints.c (vcomplaint): Ditto.
2774
2775 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2776
2777 * infcmd.c (attach_command): Move call to target_terminal_inferior
2778 behind loading symbol table.
2779
2780 2004-06-28 Andrew Cagney <cagney@gnu.org>
2781
2782 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2783 change - add back extern deprecated_ui_loop_hook declaration.
2784
2785 2004-06-28 Andrew Cagney <cagney@gnu.org>
2786
2787 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2788 xstrprintf.
2789 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2790 (c_value_of_variable): Ditto.
2791 * utils.c (internal_vproblem): Ditto.
2792 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2793 * remote.c (add_packet_config_cmd): Ditto.
2794 * remote-rdp.c (rdp_set_command_line): Ditto.
2795 * regcache.c (regcache_dump): Ditto.
2796 * frv-tdep.c (new_variant, new_variant): Ditto.
2797 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2798 (fbsd_find_memory_regions): Ditto.
2799 * breakpoint.c (create_thread_event_breakpoint)
2800 (create_breakpoints): Ditto.
2801 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2802 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2803
2804 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2805
2806 * ada-lang.c: Re-indent file, with some massaging to help indent
2807 a bit when the result is otherwise really too ugly.
2808
2809 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2810
2811 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2812 code_addr_p and special_addr_p to 'unsigned int'.
2813
2814 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2815
2816 * i386v4-nat.c: Update copyright year and tweak comment.
2817 (regmap): Remove trailing comma.
2818 (supply_gregset): Rename local variable i to regnum. Call
2819 regcache_raw_supply instead of supply_register.
2820 (fill_gregset): Rename argument regno to regnum. Call
2821 regcache_raw_collect instead of regcache_collect.
2822
2823 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2824
2825 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2826 and special_addr_p.
2827 (frame_id_build, frame_id_build_special): Update comments.
2828 (frame_id_build_wild): New prototype.
2829 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2830 struct frame_id fields.
2831 (frame_id_build_wild): New function.
2832 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2833
2834 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2835
2836 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2837 hppabsd-tdep.c.
2838
2839 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2840
2841 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2842
2843 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2844
2845 * ada-lang.c: Re-indent file.
2846
2847 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2848
2849 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2850 (no_symtab_msg): Likewise.
2851
2852 2004-06-27 Andreas Schwab <schwab@suse.de>
2853
2854 * source.c: Fix whitespace.
2855
2856 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2857
2858 * configure.in: Include <sys/param.h> for td_pcb test.
2859 * configure: Regenerated.
2860
2861 * i386nbsd-nat.c: New file.
2862 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2863 i386obsd-nat.c and i386obsd-tdep.c.
2864 (i386nbsd-nat.o): New dependency.
2865 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2866 bsd-kvm.o.
2867 (LOADLIBES): New variable.
2868 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2869 bsd-kvm.o.
2870 (LOADLIBES): New variable.
2871
2872 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2873 (LOADLIBES): New variable.
2874
2875 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2876 fetching from BSD_KVM_PADDR. Correctly lookup address for
2877 "_thread0".
2878
2879 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2880 "bsd-kvm.h".
2881 (amd64fbsd_supply_pcb): New funcion.
2882 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2883
2884 2004-06-27 <david@streamline-computing.com>
2885
2886 Partial fix for PR cli/1056.
2887 * valarith.c: Check for zero in division and remainder
2888 evaluation.
2889
2890 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2891
2892 * i387-tdep.c: Remove excessive whitespace.
2893
2894 2004-06-26 Andrew Cagney <cagney@gnu.org>
2895
2896 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2897 * gdb-events.h, gdb-events.c: Re-generate.
2898 * tui/tui-hooks.c (tui_install_hooks): Update.
2899 (tui_remove_hooks): Update.
2900 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2901
2902 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2903
2904 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2905 (gregset_t, fpregset_t): Remove typedefs.
2906 (REG_OFFSET): Rename argument.
2907 (amd64bsd_r_reg_offset): Rename from reg_offset.
2908 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2909 Remove functions.
2910 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2911 of reg_offset.
2912 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2913
2914 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2915
2916 * vax-tdep.c: Tweak comment.
2917
2918 Add OpenBSD/hppa support.
2919 * NEWS (New native configurations): Mention OpenBSD/hppa.
2920 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2921 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2922 files.
2923 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2924 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2925 * configure.host: Add hppa*-*-openbsd*.
2926 * configure.tgt: Add hppa*-*-openbsd*.
2927
2928 2004-06-25 Andrew Cagney <cagney@gnu.org>
2929
2930 * defs.h (deprecated_ui_loop_hook): Deprecated.
2931 * wince.c (child_wait): Update.
2932 * win32-nat.c (child_wait): Update.
2933 * v850ice.c (v850ice_wait): Update.
2934 * top.c (deprecated_ui_loop_hook): Update.
2935 * serial.h: Update.
2936 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2937 (do_unix_readchar): Update.
2938 * ser-tcp.c (net_open): Update.
2939 * remote-sim.c (gdb_os_poll_quit): Update.
2940 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2941
2942 2004-06-24 Andrew Cagney <cagney@gnu.org>
2943
2944 * defs.h (deprecated_pre_add_symbol_hook)
2945 (deprecated_post_add_symbol_hook): Deprecated.
2946 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2947 (symbol_file_add_with_addrs_or_offsets): Update references.
2948
2949 2004-06-24 Andrew Cagney <cagney@gnu.org>
2950
2951 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2952 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2953 * wince.c (ui_loop_hook): Delete extern declaration.
2954 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2955 * v850ice.c (ui_loop_hook): Delete extern declaration..
2956 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2957 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2958 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2959 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2960 ui_loop_hook declaration.
2961
2962 2004-06-24 Andrew Cagney <cagney@gnu.org>
2963
2964 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2965 entry_func_highpc fields.
2966 * objfiles.c (init_entry_point_info): Do not clear
2967 entry_func_lowpc and entry_func_highpc.
2968 (objfile_relocate): Do not relocate entry_func_lowpc and
2969 entry_func_highpc.
2970 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2971 entry_func_highpc.
2972 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2973 entry_func_highpc.
2974 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2975 entry_func_lowpc and entry_func_highpc with call to
2976 inside_entry_func.
2977
2978 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2979
2980 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2981 quad-precision floating point arguments in registers.
2982
2983 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2984
2985 From Michael Mueller <m.mueller99@kay-mueller.de>:
2986 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2987 account.
2988
2989 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2990
2991 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2992 to -1.
2993 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2994 untriggered watchpoints to a separate if clause. Update function
2995 comment regarding STOPPED_BY_WATCHPOINT argument.
2996
2997 2004-06-22 Jim Blandy <jimb@redhat.com>
2998
2999 * gdbarch.sh: Doc fix.
3000
3001 2004-06-21 Martin Hunt <hunt@redhat.com>
3002 Kevin Buettner <kevinb@redhat.com>
3003
3004 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3005 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3006 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3007 to set_gdbarch_sp_regnum(). Use cooked register number.
3008 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3009
3010 2004-06-21 Andrew Cagney <cagney@gnu.org>
3011
3012 * gdbarch.sh: When the macro field is empty, do not generate a
3013 macro definition. When the macro field is "=", generate the macro
3014 name from the upper-case function name.
3015 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3016 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3017 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3018 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3019 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3020 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3021 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3022 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3023 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3024 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3025 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3026 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3027 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3028 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3029 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3030 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3031 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3032 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3033 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3034 (DEPRECATED_USE_STRUCT_CONVENTION)
3035 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3036 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3037 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3038 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3039 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3040 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3041 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3042 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3043 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3044 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3045 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3046 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3047 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3048 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3049 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3050 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3051 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3052 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3053
3054 2004-06-21 Andrew Cagney <cagney@gnu.org>
3055
3056 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3057 macro name, and the function rather than macro value. Only wrap
3058 macro print statements in #ifdef. Move format logic to where it
3059 is needed.
3060 * gdbarch.c: Re-generate.
3061
3062 * gdbarch.sh (read): Delete "print_p" and "description", add
3063 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3064 Delete references to print_p.
3065 (TARGET_ARCHITECTURE): Delete print predicate.
3066 * gdbarch.c: Re-generate.
3067
3068 * gdbarch.sh: Check that multi-arch methods do not provide a
3069 macro.
3070 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3071 (print_registers_info, print_float_info, print_vector_info)
3072 (adjust_breakpoint_address, remote_translate_xfer_address)
3073 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3074 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3075 name from the multi-arch definition.
3076
3077 2004-06-20 Andrew Cagney <cagney@gnu.org>
3078
3079 * gdbarch.sh: Sort by the function, instead of macro name.
3080 * gdbarch.c: Re-generate.
3081
3082 2004-06-20 Andrew Cagney <cagney@gnu.org>
3083
3084 * gdbarch.sh: Use the function, instead of macro name in
3085 errors and the log file.
3086 (return_value): Remove stray ":" in spec.
3087
3088 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3089 * gdbarch.h, gdbarch.c: Re-generate.
3090 * Makefile.in (arch-utils.o): Update dependencies.
3091 * values.c (using_struct_return): Move code calling
3092 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3093 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3094 to legacy_return_value, simplify.
3095 * infcmd.c (print_return_value): Move code calling
3096 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3097 to legacy_return_value, simplify.
3098 * infcall.c (call_function_by_hand): Move code calling
3099 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3100 * arch-utils.c: Update copyright. Include "gdbcore.h".
3101 (legacy_return_value): New function.
3102 * arch-utils.h: Update copyright.
3103 (legacy_return_value): Declare.
3104
3105 2004-06-20 Andrew Cagney <cagney@gnu.org>
3106
3107 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3108 * gdbarch.h, gdbarch.c: Re-generate.
3109 * values.c (using_struct_return): Update call.
3110 * mcore-tdep.c: Update comment.
3111 * infcall.c (call_function_by_hand): Update comment.
3112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3113 * arch-utils.h (always_use_struct_convention): Update.
3114 * v850-tdep.c (v850_gdbarch_init): Update.
3115 * sh64-tdep.c (sh64_gdbarch_init): Update.
3116 * sh-tdep.c (sh_gdbarch_init): Update.
3117 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3118 * mips-tdep.c (mips_gdbarch_init): Update.
3119 * mcore-tdep.c (mcore_gdbarch_init): Update.
3120 * m32r-tdep.c (m32r_gdbarch_init): Update.
3121 * ia64-tdep.c (ia64_gdbarch_init): Update.
3122 * h8300-tdep.c (h8300_gdbarch_init): Update.
3123 * frv-tdep.c (frv_gdbarch_init): Update.
3124 * cris-tdep.c (cris_gdbarch_init): Update.
3125 * arm-tdep.c (arm_gdbarch_init): Update.
3126 * alpha-tdep.c (alpha_gdbarch_init): Update.
3127
3128 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3129
3130 * PROBLEMS: Add more specific information, and a work-around,
3131 for PR gdb/1458.
3132
3133 2004-06-18 Andrew Cagney <cagney@gnu.org>
3134
3135 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3136 * gdbarch.h, gdbarch.c: Re-generate.
3137 * ada-lang.c (ada_finish_decode_line_1): Update.
3138 * infrun.c (handle_inferior_event): Update.
3139 * infcall.c (find_function_addr): Update.
3140 * linespec.c (minsym_found): Update.
3141 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3142 Update.
3143 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3144 * cli/cli-cmds.c (disassemble_command): Update.
3145 * vax-tdep.c (vax_gdbarch_init): Update.
3146
3147 2004-06-18 Mark Kettenis <kettenis@gnu.org>
3148
3149 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3150
3151 2004-06-17 Andrew Cagney <cagney@gnu.org>
3152
3153 GDB 6.1.1 released from the GDB 6.1 branch.
3154 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3155 * PROBLEMS: Ditto.
3156
3157 2004-06-16 Daniel Jacobowitz <dan@debian.org>
3158
3159 PR gdb/1658
3160 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3161 operation as a uleb128. Found by Michael Coulter.
3162
3163 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3164
3165 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3166 make it non-static.
3167 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3168 to ada-lang.h; this is needed to be able to implement the kill command
3169 in multi-task mode.
3170 (task_ptid): Ditto.
3171 (task_entry): Ditto.
3172 (task_list): Ditto.
3173 (ada_build_task_list): Ditto.
3174
3175 * ada-lang.c: Conditionalize routines and data structures related
3176 to breakpoints, exceptions, completion, and symbol caching on
3177 GNAT_GDB, since these are not yet used in the submitted public sources.
3178 (ada_main_name): Editorial: Move definition out of exception-related
3179 code.
3180
3181 2004-06-15 Andrew Cagney <cagney@gnu.org>
3182
3183 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3184 deprecated_pc_in_call_dummy.
3185
3186 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3187
3188 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3189 bfd_get_section_size_before_reloc or _raw_size.
3190 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3191 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3192 (dwarf2_read_section): Likewise.
3193 * elfread.c (elf_locate_sections): Likewise.
3194 * gcore.c (derive_heap_segment): Likewise.
3195 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3196 * remote-e7000.c (e7000_load): Likewise.
3197 * remote-m32r-sdi.c (m32r_load): Likewise.
3198 * remote-mips.c (mips_load_srec): Likewise.
3199 (pmon_load_fast): Likewise.
3200 * remote.c (compare_sections_command): Likewise.
3201 * symfile.c (add_section_size_callback): Likewise.
3202 (load_section_callback): Likewise.
3203 (pc_in_unmapped_range): Likewise.
3204 (pc_in_mapped_range): Likewise.
3205 (sections_overlap): Likewise.
3206 (list_overlays_command): Likewise.
3207 (simple_overlay_update_1): Likewise.
3208 (simple_overlay_update): Likewise.
3209 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3210 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3211
3212 2004-06-14 Randolph Chung <tausq@debian.org>
3213
3214 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3215 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3216 static.
3217 (hppa_hpux_inferior_created): New function.
3218 (hppa_hpux_init_abi): Register observer.
3219 * symfile.c (hp_cxx_exception_support_initialized)
3220 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3221 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3222
3223 2004-06-14 Randolph Chung <tausq@debian.org>
3224
3225 * MAINTAINERS (Write After Approval): Alphabetize my entry
3226 correctly.
3227
3228 2004-06-14 Andrew Cagney <cagney@gnu.org>
3229
3230 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3231 testsuite maintainer.
3232
3233 2004-06-13 Andrew Cagney <cagney@gnu.org>
3234
3235 * infcmd.c (print_return_value): Fix logic, allow
3236 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3237
3238 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3239 defining any macros.
3240 * gdbarch.h: Re-generate.
3241
3242 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3243 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3244 * gdbarch.h: Re-generate.
3245
3246 * values.c (generic_use_struct_convention): Don't check gcc_p.
3247
3248 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3249 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3250 * gdbarch.h, gdbarch.c: Regenerate.
3251 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3252 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3254 deprecated_max_register_raw_size and
3255 deprecated_max_register_virtual_size.
3256 * v850-tdep.c (v850_gdbarch_init): Ditto.
3257 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3258 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3259 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3260 * cris-tdep.c (cris_gdbarch_init): Ditto.
3261
3262 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3263 * gdbarch.h, gdbarch.c: Re-generate.
3264 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3265 (m68hc11_use_struct_convention): Delete function.
3266 (m68hc11_extract_struct_value_address): Delete function.
3267 (m68hc11_return_value): New function.
3268 (m68hc11_gdbarch_init): Instead of store_return_value,
3269 extract_return_value, return_value_on_stack,
3270 deprecated_extract_struct_value_address and use_struct_convention,
3271 set return_value.
3272 * values.c (using_struct_return): Do not call
3273 RETURN_VALUE_ON_STACK.
3274 * arch-utils.h (generic_return_value_on_stack_not): Delete
3275 declaration.
3276 * arch-utils.c (generic_return_value_on_stack_not): Delete
3277 function.
3278
3279 2004-06-12 Andrew Cagney <cagney@gnu.org>
3280
3281 * values.c (register_value_being_returned): Delete function.
3282 * infcmd.c (legacy_return_value): Delete function.
3283 * infcall.c (call_function_by_hand): Inline
3284 "register_value_being_returned", simplify.
3285 * values.c (using_struct_return): Update comment, refer to
3286 print_return_value instead of register_value_being_returned.
3287 * infcmd.c (print_return_value): Inline calls to
3288 register_value_being_returned and legacy_return_value. Simplify.
3289
3290 2004-06-11 Randolph Chung <tausq@debian.org>
3291
3292 * somread.c (som_symtab_read): Exclude gcc local symbols.
3293
3294 2004-06-11 Randolph Chung <tausq@debian.org>
3295
3296 * infrun.c (handle_inferior_event): Handle the case when a
3297 trampoline ends up in the runtime resolver, and if the trampoline
3298 has no name. Rearrange the code so that all the trampoline
3299 processing happens before other step-out-of-range handling.
3300
3301 2004-06-11 Martin Hunt <hunt@redhat.com>
3302
3303 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3304 has no fpu.
3305
3306 2004-06-10 Andrew Cagney <cagney@gnu.org>
3307
3308 * blockframe.c (legacy_inside_entry_func): Delete.
3309 (legacy_frame_chain_valid): Inline call to
3310 legacy_inside_entry_func, simplify.
3311
3312 2004-06-10 Bob Rossi <bob@brasko.net>
3313
3314 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3315 * dwarf2read.c (partial_die_info): Add dirname field.
3316 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3317 (read_partial_die): Save away DW_AT_comp_dir.
3318 * defs.h (symtab_to_filename): Removed.
3319 * source.c (find_and_open_source): Added.
3320 (open_source_file): Just calls find_and_open_source.
3321 (symtab_to_filename): Removed.
3322 (symtab_to_fullname, psymtab_to_fullname): Added.
3323 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3324 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3325 symtab_to_filename.
3326 * symtab.h (partial_symtab): Add dirname field.
3327 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3328 (mi_cmd_file_list_exec_source_file): Call new function
3329 symtab_to_fullname to find fullname.
3330 (mi_cmd_file_list_exec_source_files): Added.
3331 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
3332 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3333
3334 2004-06-10 Andrew Cagney <cagney@gnu.org>
3335
3336 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3337 to generic_use_struct_convention, the default value.
3338
3339 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3340 of abort.
3341
3342 * ns32k-tdep.c (ns32k_push_arguments): New function.
3343 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3344 * infcall.c (call_function_by_hand): Call error instead of
3345 legacy_push_arguments.
3346 * value.h (legacy_push_arguments): Delete declaration.
3347 * valops.c (legacy_push_arguments): Delete function.
3348 (value_push): Delete function.
3349
3350 2004-06-10 Brian Ford <ford@vss.fsi.com>
3351
3352 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3353 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3354 info.
3355 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3356
3357 2004-06-10 Andrew Cagney <cagney@gnu.org>
3358
3359 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3360 * gdbarch.h, gdbarch.c: Re-generate.
3361 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3362 parameters.
3363 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3364 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3365 deprecated_pc_in_call_dummy instead of
3366 DEPRECATED_PC_IN_CALL_DUMMY.
3367 (arm_skip_prologue): Ditto.
3368 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3369 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3370 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3371 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3372 Ditto.
3373 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3374 (sh64_init_extra_frame_info, sh64_get_saved_register)
3375 (sh64_pop_frame): Ditto.
3376 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3377 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3378 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3379 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3380 (h8300_pop_frame): Ditto.
3381 * blockframe.c (legacy_inside_entry_func)
3382 (legacy_frame_chain_valid): Ditto.
3383 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3384 to deprecated_pc_in_call_dummy.
3385
3386 2004-06-09 Andrew Cagney <cagney@gnu.org>
3387
3388 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3389 provide a default value.
3390 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3391 * gdbarch.h, gdbarch.c: Re-generate.
3392 * arch-utils.c (generic_convert_register_p): Rename
3393 legacy_convert_register_p
3394 (legacy_register_to_value, legacy_value_to_register): Delete
3395 functions.
3396 * arch-utils.h (generic_convert_register_p): Rename
3397 legacy_convert_register_p.
3398 (legacy_register_to_value, legacy_value_to_register): Delete
3399 declarations.
3400
3401 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3402 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3403 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3404 * gdbarch.h, gdbarch.c: Re-generate.
3405 * infcmd.c (default_print_registers_info): Simplify.
3406 * findvar.c (value_of_register): Simplify.
3407 * mi/mi-main.c (get_register): Simplify.
3408 * arch-utils.c (legacy_convert_register_p): Always return 0.
3409 (legacy_register_to_value, legacy_value_to_register): Always call
3410 internal_error.
3411
3412 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3413 #ifdef CLEAR_INSN_CACHE code.
3414 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3415 Delete #ifdef CLEAR_DEFERRED_STORES code.
3416
3417 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3418
3419 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3420 copyright.
3421 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3422
3423 * config/mips/mipsv4.mh: Delete file.
3424
3425 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3426 unreferenced macro.
3427 (hpread_adjust_stack_address): Delete declaration.
3428
3429 2004-06-08 Andrew Cagney <cagney@gnu.org>
3430
3431 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3432 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3433 PTRACE_ATTACH / PTRACE_DETACH available call error.
3434 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3435 * infttrace.c (update_thread_state_after_attach, attach, detach):
3436 Remove #ifdef wrappers.
3437 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3438 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3439 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3440 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3441 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3442 * config/nm-linux.h (ATTACH_DETACH): Delete.
3443 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3444 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3445 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3446 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3447 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3448
3449 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
3450
3451 * configure.in: Set $configdir to the right OS specific value.
3452 Use value when setting $tcldir and $tkdir.
3453 * configure: Regenerate.
3454
3455 2004-06-06 Paul Brook <paul@codesourcery.com>
3456
3457 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3458 records.
3459
3460 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3461
3462 * ada-lang.c (lookup_symbol_in_language): New function to allow
3463 re-use of another language's symbol lookup code. (Placed here
3464 temporarily while Ada support is being integrated into the public
3465 tree).
3466 (restore_language): New auxiliary function for
3467 lookup_symbol_in_language.
3468 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3469 temporarily while Ada support is being integrated into the public
3470 tree).
3471
3472 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3473
3474 * Makefile.in (check//%): New.
3475
3476 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3477 (mn10300_store_return_value): Rewrite.
3478 (mn10300_type_align): New.
3479 (mn10300_use_struct_convention): Rewrite.
3480 (mn10300_return_value): New, using all of the above.
3481 (mn10300_pop_frame_regular): Add saved_regs_size.
3482 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3483
3484 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3485 regs if PC is on movm.
3486
3487 2004-06-07 Jim Blandy <jimb@redhat.com>
3488
3489 Add native Linux support for the PowerPC E500.
3490 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3491 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3492 all architectures except the E500.
3493 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3494 #definitions.
3495 (struct gdb_evrregset_t): New type.
3496 (have_ptrace_getsetevrregs): New variable.
3497 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3498 fetch_spe_registers): New functions.
3499 (fetch_register): Call fetch_spe_register as appropriate.
3500 Assert that we're only passed raw register numbers.
3501 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3502 Don't fetch gprs if they're pseudoregisters.
3503 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3504 store_spe_registers): New functions.
3505 (store_register): Call store_spe_register as appropriate.
3506 Assert that we're only passed raw register numbers.
3507 (store_ppc_registers): Call store_spe_registers as appropriate.
3508 Don't store gprs if they're pseudoregisters.
3509
3510 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3511
3512 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3513 struct if one exists, even if we are dealing with a zombie thread.
3514
3515 2004-06-07 Andrew Cagney <cagney@gnu.org>
3516
3517 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3518 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3519 Rename PC_REQUIRES_RUN_BEFORE_USE.
3520 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3521 #ifdef.
3522
3523 2004-06-07 Randolph Chung <tausq@debian.org>
3524
3525 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3526 unwinding after sp has been saved to the stack but before the end
3527 of the prologue, and after the fp has been modified but before it has
3528 been saved to the stack.
3529 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3530 Remove superfluous definitions.
3531 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3532
3533 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3534
3535 Committed by Randolph Chung.
3536 * hppa-linux-nat.c: Include the correct version of the header file
3537 depending on the kernel version.
3538
3539 2004-06-06 Randolph Chung <tausq@debian.org>
3540
3541 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3542 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3543
3544 2004-06-06 Randolph Chung <tausq@debian.org>
3545
3546 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3547 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3548 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3549 * hppa-tdep.c (hppa_symbol_address): New function definition.
3550 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3551
3552 2004-06-06 Randolph Chung <tausq@debian.org>
3553
3554 * hppa-tdep.h (struct value): Forward declaration.
3555 (gdbarch_tdep): Define tdep find_global_pointer method.
3556 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3557 associated with the function we are trying to call, and write it
3558 to the gp register.
3559 (hppa32_convert_from_funct_ptr_addr): New function.
3560 (hppa_find_global_pointer): New function.
3561 (hppa_gdbarch_init): Set default find_global_pointer method; set
3562 convert_from_func_ptr_addr method.
3563 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3564 (hppa_linux_init_abi): Set find_global_pointer method.
3565 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3566
3567 2004-06-06 Randolph Chung <tausq@debian.org>
3568
3569 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3570 to struct value *function.
3571 * gdbarch.c: Regenerate.
3572 * gdbarch.h: Likewise.
3573 * infcall.c (call_function_by_hand): Pass entire function value
3574 to push_dummy_call.
3575
3576 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3577 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3578 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3579 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3580 * arm-tdep.c (arm_push_dummy_call): Likewise.
3581 * avr-tdep.c (avr_push_dummy_call): Likewise.
3582 * cris-tdep.c (cris_push_dummy_call): Likewise.
3583 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3584 * frv-tdep.c (frv_push_dummy_call): Likewise.
3585 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3586 * hppa-tdep.c (hppa32_push_dummy_call)
3587 (hppa64_push_dummy_call): Likewise.
3588 * i386-tdep.c (i386_push_dummy_call): Likewise.
3589 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3590 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3591 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3592 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3593 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3594 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3595 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3596 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3597 (ppc64_sysv_abi_push_dummy_call): Likewise.
3598 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3599 (ppc64_sysv_abi_push_dummy_call): Likewise.
3600 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3601 * s390-tdep.c (s390_push_dummy_call): Likewise.
3602 * sh-tdep.c (sh_push_dummy_call_fpu)
3603 (sh_push_dummy_call_nofpu): Likewise.
3604 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3605 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3606 * vax-tdep.c (vax_push_dummy_call): Likewise.
3607
3608 2004-06-04 Jim Blandy <jimb@redhat.com>
3609
3610 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3611 gdbarch argument to register_size.
3612
3613 * rs6000-tdep.c (rs6000_store_return_value): Use
3614 regcache_cooked_write_part instead of
3615 deprecated_write_register_bytes.
3616 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3617 not gdbarch_deprecated_store_return_value.
3618
3619 * ppc-linux-nat.c (store_register, fetch_register): Remove
3620 incorrect assertions. Simplify and generalize handling of
3621 transfers whose sizes are not multiples of, or less than, sizeof
3622 (PTRACE_XFER_TYPE).
3623
3624 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3625
3626 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3627 as a new thread event.
3628 * thread-db.c (thread_get_info_callback): If the thread is a
3629 zombie, return TD_THR_ZOMBIE.
3630 (thread_from_lwp): If thread_get_info_callback returns
3631 TD_THR_ZOMBIE, check if the thread is still on the thread list
3632 and return a -1 ptid if not found.
3633 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3634 change the status to TARGET_WAITKIND_SPURIOUS.
3635
3636 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3637
3638 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3639 double values in little endian mode.
3640
3641 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3642
3643 Committed by Andrew Cagney.
3644 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3645 after last enum constant to avoid error from IBM C
3646 compiler.
3647
3648 2004-06-02 Jim Blandy <jimb@redhat.com>
3649
3650 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3651 to 'message', and make it local to the lone block that uses it.
3652
3653 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3654
3655 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3656
3657 * ada-exp.y: Update copyright notice.
3658 Include block.h.
3659
3660 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3661 SPECIAL_VARIABLE and unify the treatment of these cases.
3662
3663 (write_attribute_call0): Remove.
3664 (write_attribute_call1): Remove.
3665 (write_attribute_calln): Remove.
3666 (save_qualifier): Add missing semicolon.
3667
3668 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3669 temporarily disabled to allow compilation with FSF head version.
3670
3671 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3672 use individual operators (OP_*) for all attributes.
3673 (exp syntax): Use write_int.
3674 Handle STRING literals with OP_STRING.
3675 (variable syntax): Add limit parameter to calls to
3676 write_object_renaming.
3677
3678 (temp_parse_space): New definition to hold entities that need
3679 only live until the next call to ada_parse.
3680 (string_to_operator): Rename fields of ada_opname_table entries.
3681
3682 (write_var_from_sym): Record block.
3683 (write_var_from_name): Minor reformatting.
3684 Make sure saved name is properly encoded in the case of multiple
3685 matches, and set its language to Ada.
3686 Update comment.
3687 Modify to indicate unresolved name as symbol in the UNRESOLVED
3688 namespace, allocated in temp_parse_space.
3689 (write_int): New function.
3690
3691 (write_object_renaming): Add max_depth parameter to limit
3692 chains of object renamings.
3693 Handle case where root of renaming expression is itself a renaming.
3694 Use temp_parse_space for temporary name buffer.
3695 Handle renamings to dereferenced pointers (___XEXA suffices).
3696
3697 (ada_parse, yyerror, string_to_operator,
3698 write_var_from_sym, write_var_from_name, write_attribute_call0,
3699 write_attribute_call1, write_attribute_calln,
3700 write_object_renaming): Protoize.
3701
3702 (_initialize_ada_exp): New function.
3703
3704 * ada-lang.c: Update copyright notice.
3705 General terminology change to conform to GNAT compiler usage:
3706 mangle => encode, demangle => decode
3707 Include gdb_obstack.h.
3708 Include gdb_regex.h
3709 Include frame.h
3710 Include hashtab.h
3711 Include completer.h
3712 Include gdb_stat.h
3713 Include block.h
3714 Include infcall.h
3715
3716 (ADA_RETAIN_DOTS): Make sure this is defined.
3717 (TRUNCATION_TOWARDS_ZERO): Define.
3718 (struct string_vector): Define.
3719 (unresolved_names): Remove definition.
3720 (xnew_string_vector): New function.
3721 (string_vector_append): New function.
3722 (extract_string): Make static.
3723 (ada_unqualified_name): New function.
3724 (add_angle_brackets): New function.
3725 (function_name_from_pc): New function.
3726 (place_on_stack): Rename to ensure_lval.
3727
3728 (ensure_lval): Renamed from place_on_stack.
3729 Make identity on lvals.
3730 Update comment.
3731 (is_nonfunction): New interface.
3732 Only symbols in LOC_CONST class can be enumerals.
3733 (fill_in_ada_prototype): Remove; now independent of language.
3734 (add_defn_to_vec): Add obstack and symtab arguments.
3735 Use obstack to hold collected definitions.
3736 (num_defns_collected): New function.
3737 (defns_collected): New function.
3738 (ada_resolve_subexp): Rename to resolve_subexp.
3739 (resolve_subexp): Renamed from ada_resolve_subexp.
3740 (ada_op_name): Return non-const result.
3741 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3742 other purposes.
3743
3744 (to_fixed_array_type): Add declaration.
3745 (coerce_unspec_val_to_type): Remove offset parameter.
3746 (find_sal_from_funcs_and_line): New interface.
3747 (find_line_in_linetable): Ditto.
3748
3749 (all_sals_for_line): Rename to ada_sals_for_line and make
3750 global.
3751 Add new parameter. When set, do not ask the user to choose the
3752 instance, but use the first one found instead.
3753 Use given line number in returned sals.
3754 Fix comment.
3755 Skip the prologue if funfirstline is set.
3756 Correct for memory leak when 0 lines found.
3757
3758 (value_pos_atr): Use pos_atr.
3759 (pos_atr): New function.
3760 (standard_lookup): Add block parameter.
3761
3762 (makeTimeStart): Remove declaration and uses.
3763 (makeTimeStop): Remove declaration and uses.
3764
3765 (ada_completer_word_break_characters): Allow for VMS.
3766 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3767 (raise_sym_name): New constant.
3768 (raise_unhandled_sym_name): New constant.
3769 (raise_assert_sym_name): New constant.
3770 (process_raise_exception_name): New constant.
3771 (longest_exception_template): New constant.
3772 (warning_limit): New variable to limit warnings during expression
3773 evaluation.
3774 (warnings_issued): New variable to keep track of warnings issued.
3775 (known_runtime_file_name_patterns): New constant.
3776 (known_auxiliary_function_name_patterns): New constant.
3777 (symbol_list_obstack): New variable.
3778
3779 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3780 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3781 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3782 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3783 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3784 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3785 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3786 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3787 and strcmp.
3788
3789 (ada_get_field_index): New function.
3790 (lim_warning): New function.
3791 (ada_translate_error_message): New function.
3792 (MAX_OF_SIZE): New function.
3793 (MIN_OF_SIZE): New function.
3794 (UMAX_OF_SIZE): New function.
3795 (UMIN_OF_SIZE): New function.
3796 (discrete_type_high_bound): New function.
3797 (discrete_type_low_bound): New function.
3798 (base_type): New function.
3799 (do_command): Remove.
3800
3801 (ada_update_initial_language): Use language_ada, not language_unknown.
3802 (ada_encode): Renamed from ada_mangle.
3803 Obey ADA_RETAIN_DOTS.
3804 (ada_decode): Renamed from ada_demangle.
3805 Update coding conventions.
3806 (decoded_names_store): New hash table.
3807 (ada_decode_symbol): New function.
3808 (ada_la_decode): New function.
3809
3810 (modify_general_field): Correct computations of offset and bit
3811 position.
3812 (desc_base_type): Handle ref types, too.
3813 (ada_is_direct_array_type): New function.
3814
3815 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3816 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3817 (ada_is_bogus_array_descriptor,ada_type_of_array,
3818 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3819 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3820 ada_is_array_descriptor_type.
3821
3822 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3823 (ada_is_packed_array_type): Handle pointers or
3824 references to packed arrays as well.
3825 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3826 (decode_packed_array_type): Search for the packed array type
3827 symbol in the currently selected block and associated
3828 superblocks too.
3829 Use lookup_symbol again.
3830
3831 (decode_packed_array): Handle pointers and references.
3832 Update call to coerce_unspec_val_to_type.
3833 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3834 (ada_value_primitive_packed_val): Improve comment.
3835
3836 (ada_index_type): Substitute int type for "undefined".
3837 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3838 ada_array_langth, ada_is_string_type): Use renamed
3839 ada_is_simple_array_type.
3840 (empty_array): New function.
3841
3842 (ada_resolve): Rename to resolve.
3843 (resolve): Make static.
3844 Call renamed resolve_subexp.
3845 Update comment.
3846 (ada_resolve_subexp): Rename to resolve_subexp.
3847 (resolve_subexp): Update comment.
3848 Decomment disabled code.
3849 Add LOC_COMPUTED* cases.
3850 Modify to use temporary struct symbols (marked as being in
3851 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3852 OP_UNRESOLVED_VALUE.
3853 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3854 Add OP_STRING case.
3855 Remove OP_ARRAY.
3856 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3857 Use new ada_lookup_symbol_list interface.
3858 Use new ada_resolve_function interface.
3859 Remove OP_TYPE case.
3860
3861 (ada_args_match): Idiot proof against null actuals.
3862 Use intermediate variables to clarify.
3863 (ada_resolve_function): Update comment and interface.
3864 (mangled_ordered_before): Rename to encoded_ordered_before and
3865 update comment.
3866 (sort_choices): Update comment and interface.
3867 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3868 (user_select_syms): New interface.
3869 Use new sort_choices interface.
3870 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3871 (possible_user_operator_p): Idiot-proof against null values.
3872 (ada_simple_renamed_entity): Don't make cleanup; rely on
3873 caller to free result string.
3874 Remove const from return type.
3875 (make_array_descriptor): Rename uses of place_on_stack to
3876 ensure_lval.
3877 Make sure that arrays are on stack.
3878
3879 (HASH_SIZE): Define.
3880 (struct cache_entry): Define.
3881 (cache_space): Define.
3882 (cache): Define.
3883 (clear_ada_sym_cache): New function.
3884 (find_entry): New function.
3885 (lookup_cached_symbol): New function.
3886 (defn_vector_size): Define.
3887 (cache_symbol): New function.
3888 (defn_symbols): Remove.
3889
3890 (standard_lookup): Use lookup_symbol_in_language to get effect of
3891 C lookup.
3892 Cache results.
3893
3894 (symbol_completion_match): New function.
3895 (symbol_completion_add): New function.
3896 (ada_make_symbol_completion_list): New function.
3897
3898 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3899 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3900 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3901 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3902
3903 (ada_lookup_simple_minsym): New function.
3904 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3905
3906 (add_symbols_from_enclosing_procs): New interface.
3907 Conditionalize more helpfully.
3908 Don't bother if program isn't running.
3909 Use new interface to get_frame_block.
3910 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3911
3912 (remove_extra_symbols): New interface.
3913 (xget_renaming_scope): New function.
3914 (is_package_name): New function.
3915 (renaming_is_visible): New function.
3916 (remove_out_of_scope_renamings): New function.
3917
3918 (ada_lookup_symbol_list): New interface.
3919 Properly reinitialize the symbol list obstack.
3920 Don't call add_symbols_from_enclosing_procs if we start from a
3921 static or global block.
3922 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3923 add_symbols_from_enclosing_procs.
3924 Add symtab data to cached entries.
3925 Handle symbols prefixed with
3926 "standard__" specially; strip prefix and don't look in local symbols.
3927 Do not include out of scope renaming symbols in list of
3928 symbols returned.
3929 Add const to block parameter.
3930 Move check for non-local, non-global symbols earlier.
3931 Remove timing stuff.
3932 (ada_lookup_symbol): New interface.
3933 Find symtab as well.
3934 (ada_lookup_symbol_nonlocal): New function.
3935
3936 (is_name_suffix): Enhance suffix detection to recognize
3937 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3938 (is_dot_digits_suffix): New function.
3939 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3940
3941 (ada_add_block_symbols): New interface. Use obstack to return results
3942 in a vector of struct ada_symbol_infos. Add symtab argument.
3943 Use new interface to add_defn_to_vec.
3944 Remove calls to fill_in_ada_prototype.
3945 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3946
3947 (ada_finish_decode_line_1): Add const qualification to local to fix
3948 warning.
3949 Start looking in static block for functions to avoid attempts
3950 to search frame chain for up-level variables.
3951 Adapt to new ada_sals_for_line interface.
3952 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3953 Handle quoting of the function name inside the spec string.
3954 Skip prologue when funfirstline is set and update the
3955 function documentation to that effect.
3956
3957 (debug_print_lines, debug_print_block, debug_print_blocks,
3958 debug_print_symtab): Remove.
3959
3960 (ada_main_name): New function.
3961 (ada_exception_breakpoint_type): New function.
3962 (is_known_support_routine): New function.
3963 (ada_find_printable_frame): Renamed from find_printable_frame and made
3964 global.
3965 Remove level parameter.
3966 Use new interface to select_frame.
3967
3968 (begin_command): Remove.
3969 (ada_adjust_exception_stop): New function.
3970 (ada_print_exception_stop): New function.
3971 (exception_name_from_cond): New function.
3972 (ada_report_exception_break): Replace disabled code with
3973 conditionalization on GNAT_GDB.
3974 Get the exception name from the condition string.
3975 Remove and move functionality into new functions
3976 ada_print_exception_breakpoint_task and
3977 ada_print_exception_breakpoint_nontask.
3978 (error_breakpoint_runtime_sym_not_found): New function.
3979 (is_runtime_sym_defined): New function.
3980 (ada_breakpoint_rewrite): Uncomment suppressed code.
3981 Use symbolic error-message and runtime-symbol names.
3982 Surround runtime symbol names in quotes.
3983 Allow non-specific breakpoints on exceptions and assertions before
3984 program starts.
3985
3986 (ada_is_tagged_type): Add parameter.
3987 (ada_is_tag_type): New function.
3988 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3989 (ada_variant_discrim_type): Ditto.
3990 (value_tag_from_contents_and_address): New function.
3991 (type_from_tag): New function.
3992 (struct tag_args): New structure used to communicate with
3993 ada_tag_name_1.
3994 (ada_tag_name_1): New function.
3995 (ada_tag_name): New function.
3996
3997 (ada_scan_number): Update comment.
3998 (find_struct_field): New function.
3999 (ada_search_struct_field): Make static.
4000 (ada_value_struct_elt): New version that returns references when
4001 given pointers or references to structs.
4002 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4003 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4004 interface.
4005 (ada_value_ind): Use new ada_to_fixed_value interface.
4006 (ada_coerce_ref): Ditto.
4007 (field_offset): Remove.
4008
4009 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4010 (ada_find_renaming_symbol): New function.
4011 (ada_prefer_type): Prefer named types over unnamed ones.
4012 (variant_field_index): New function.
4013 (contains_variant_part): Removed: subsumed by variant_field_index.
4014 (ada_template_to_fixed_record_type): New function, mostly from
4015 template_to_fixed_record_type.
4016 (template_to_fixed_record_type):
4017 Do not scan the type fields beyond the last one; prevents a
4018 potential SEGV.
4019 Handle case where variant field is listed BEFORE discriminant it
4020 depends on.
4021 Fix calculation of record length when bit length is
4022 not evenly divisible by char length.
4023 Move code to ada_template_to_fixed_record_type and call it.
4024
4025 (template_to_static_fixed_type): Revise comment.
4026 Modify to work on ordinary record types as well as templates,
4027 so as to handle fields that use ___XVE or ___XVU encodings.
4028 (to_record_with_fixed_variant_part): Fill out comment.
4029 Initialize C++ stuff in right type.
4030 Allow case where DVAL is null.
4031 Handle case where variant field is not last.
4032 Fix typo concerning record length.
4033 (to_fixed_record_type): Decomment disabled code.
4034 (to_fixed_record_type): Use variant_field_index instead of
4035 contains_variant_part.
4036 (to_fixed_variant_branch_type): Ditto.
4037 (to_fixed_array_type): Decomment disabled code.
4038 (ada_to_fixed_type): Convert tagged types to the specific type.
4039 Deactivate the size-check for array types in order to avoid
4040 some false size alarms.
4041 (to_static_fixed_type): Decomment disabled code.
4042 Modify to call template_to_static_fixed_type
4043 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4044 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4045 Remove valaddr argument, as it is never really used.
4046 (ada_to_fixed_value): Change interface to act on single struct value*
4047 operand.
4048 (adjust_pc_past_prologue): New function.
4049 (ada_attribute_name): Modify to take enum exp_opcode argument.
4050
4051 (ada_enum_name): Recognize new homonym-distinguishing convention.
4052 Adjust local variable's type to remove compiler warning.
4053 Fix a small problem in the part that unqualifies the enumeration name.
4054 (ada_value_binop): New function.
4055 (ada_value_equal): New function.
4056
4057 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4058 Don't give error message when not doing normal evaluation
4059 and a tagged type doesn't seem to contain a structure member.
4060 Give error message for packed arrays.
4061 For indexing arrays, handle pointers to packed arrays correctly.
4062 Handle case of 'first and 'last attributes of bare integral type
4063 without encoded subtype info.
4064 Remove some unnecessary casts.
4065 Fix uninitialized value of type in computing 'first, 'last, or 'length
4066 of array object.
4067 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4068 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4069 calls.
4070 Attributes are now exp_opcode values.
4071 Correct treatment of 'modulus.
4072 Better error message for taking 'length of wrong kind of type;
4073 improve comment.
4074 Change EVAL_NORMAL to noside for consistency.
4075 Use ada_value_binop for DIV, MOD, REM.
4076 Make special case out of array of length 0, since an argument
4077 of 0 upsets some platforms' malloc.
4078 Use OP_STRING instead of OP_ARRAY.
4079 For slice, add check that we have an array type before extracting
4080 a slice out of it. Avoids a SEGV.
4081 When evaluating an array slice, if the array type is a reference to
4082 an aligner type, then replace the aligner type by the actual type.
4083 Decomment disabled code.
4084 Remove some dead code.
4085 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4086 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4087 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4088 and UNOP_MBR to UNOP_IN_RANGE.
4089 If an array type has a parallel ___XVE type, then use it.
4090 Turn arrays into pointers for lvalue arrays.
4091 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4092 bounds error and handle 0-length slices.
4093 Use lim_warning.
4094 When selecting fields, apply ada_to_fixed_value (because the fields
4095 might have ___XVU or ___XVE encodings even if not dynamic.)
4096 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4097 (ada_is_system_address_type): New function.
4098
4099 (get_var_value): Use new interface to ada_lookup_symbol_list.
4100 (get_int_var_value): New interface.
4101 (to_fixed_range_type): Allow unknown bound, with warning.
4102 (ada_is_modular_type): Decomment disabled code.
4103 (ADA_OPERATORS): New definition.
4104 (ada_operator_length): New function.
4105 (ada_expr_op_name): New function.
4106 (ada_forward_operator_length): New function.
4107 (ada_dump_subexp_body): New function.
4108 (ada_print_subexp): New function.
4109 (ada_exp_descriptor): New constant.
4110 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4111 (ada_language_defn): Add ada_exp_descriptor entry.
4112 Change ada_parse => parse.
4113 Add post-parser entry.
4114 Use ada-specific non-local symbol lookup.
4115 Don't use C-style arrays.
4116 String lower-bound is 1.
4117 Decomment disabled code.
4118 (parse): New function.
4119 New fields ada_translate_error_message, ada_lookup_symbol,
4120 ada_lookup_minimal_symbol.
4121
4122 * ada-lang.h: Update copyright dates.
4123 Replace the mangle/demangle terminology throughout by the
4124 more appropriate encode/decode one.
4125 Include breakpoint.h.
4126 Forward declare struct partial_symbol, struct block.
4127 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4128 (EXTRACT_ADDRESS): Remove.
4129 (EXTRACT_INT): Remove.
4130 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4131 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4132 (MAX_RENAMING_CHAIN_LENGTH): Define.
4133 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4134
4135 (enum task_states): Remove.
4136 ada_task_states: Remove.
4137 (fat_string): Remove.
4138 (struct entry_call): Remove.
4139 (struct task_fields): Remove.
4140 (struct task_entry): Remove.
4141
4142 (struct ada_symbol_info): Define.
4143 (enum ada_attribute): Remove.
4144 (enum ada_operator): Define.
4145
4146 (ada_get_field_index): Declare.
4147 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4148 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4149 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4150 (ada_lookup_symbol_list): New interface.
4151 (ada_decode_symbol): Declare.
4152 (ada_decode): Declare.
4153 (ada_lookup_symbol): New interface.
4154 (ada_update_initial_language): Declare.
4155 (ada_lookup_simple_minsym): Declare.
4156 (user_select_syms): New interface.
4157 (ada_sals_for_line): Declare.
4158 (ada_is_tagged_type): New interface.
4159 (ada_tag_name): Declare.
4160 (ada_lookup_struct_elt_type): Remove declaration.
4161 (ada_search_struct_field): Remove declaration.
4162 (ada_attribute_name): New interface.
4163 (ada_is_system_address_type): Declare.
4164 (ada_to_fixed_value): Remove declaration.
4165 (ada_template_to_fixed_record_type_1): Declare.
4166 (get_int_var_value): New interface.
4167 (ada_find_any_symbol): Declare.
4168 (ada_find_renaming_symbol): Declare.
4169 (ada_mangle): Rename to ada_encode.
4170 (ada_simple_renamed_entity): Remove const.
4171 (ada_main_name): Declare.
4172 (get_current_task): Rename to ada_get_current_task.
4173 (get_entry_number): Remove declaration.
4174 (ada_report_exception_break): Remove declaration.
4175 (ada_print_exception_breakpoint_nontask): Declare.
4176 (ada_print_exception_breakpoint_task): Declare.
4177 (ada_find_printable_frame): Declare.
4178
4179 * ada-lex.l: Update copyright notices.
4180 Use xmalloc and xfree instead of malloc and free.
4181 Use new interface to name_lookup.
4182 Use new interface to
4183 ada_mangle=>ada_encode.
4184 Redo handling of '$...' variable to parallel current treatment
4185 in c-exp.y.
4186 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4187 digit_to_int, strtoulst, processInt, processReal, processId,
4188 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4189 yywrap): Protoize.
4190
4191 (processInt): Use cast to remove harmless warning.
4192 (processReal): Modify to get rid of compiler warning on scan formats.
4193
4194 (processId): Replace xmalloc with obstack_alloc for name and remove
4195 call to ada_name_string_cleanup.
4196 Remove obsolete disabled code.
4197 (name_lookup): Ditto.
4198 New interface.
4199 Use obsavestring on temp_parse_space instead of savestring
4200 on name, and remove call to ada_name_string_cleanup.
4201 Free string returned from ada_simple_renamed_entity.
4202 Use new interface to ada_lookup_symbol_list.
4203 Decomment disabled code.
4204 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4205 not types.
4206 When a type name lookup succeeds as a result of
4207 lookup_primitive_typename, check for regular type entry that has not
4208 yet been read in.
4209 Limit length of chain of renamed symbols we are willing to follow.
4210 Do not break names beginning with "standard__" into segments.
4211 (block_lookup): Use new interface to ada_lookup_symbol_list.
4212
4213 * ada-typeprint.c: Update copyright notice.
4214 (demangled_type_name): Rename to decoded_type_name.
4215 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4216 (print_range_bound): Correct handling of negative
4217 bounds that make the index type looked unsigned under STABS.
4218 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4219 (print_range_type_named): Use the builtin int type if no type
4220 corresponding to the given type name could be found.
4221 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4222 Add some bullet-proofing.
4223 (print_variant_clauses): Allow for variant branches with ___XVU
4224 encodings that are not dynamic fields.
4225 Use new interface to ada_is_tagged_type.
4226 (print_record_type): Allow for fields with ___XVE encodings that
4227 are not dynamic fields.
4228 Use new interface to ada_is_tagged_type.
4229 (ada_print_type): ada_is_array_descriptor =>
4230 ada_is_array_descriptor_type.
4231
4232 * ada-valprint.c: Update copyright notice.
4233 Include gdb_string.h
4234 Include infcall.h
4235 (ui_memcpy): New function.
4236 (ada_print_floating): New function.
4237 (ada_print_str): Order arguments correctly.
4238 Correct handling of empty arrays and arrays of 0-length items.
4239 ada_is_array_descriptor => ada_is_array_descriptor_type
4240 Print values of type System.Address in hexadecimal format.
4241 Use ada_print_floating to print floating-point numbers in Ada format.
4242 Print class tag values with type names.
4243 No longer print the address of reference values. Avoids
4244 a potential confusion.
4245 (ada_value_print): Stop printing the object type for reference
4246 values, but preserve that behavior for access types. Avoids
4247 a potential confusion.
4248 Simplify one conditional expression, as the first part is now
4249 necessarily true.
4250 ada_is_array_descriptor => ada_is_array_descriptor_type
4251 Add check for arrays for null records, and print them by hand.
4252
4253 2004-06-01 Jim Blandy <jimb@redhat.com>
4254
4255 * ppc-tdep.h: Delete unused 'regoff' member.
4256 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4257
4258 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4259
4260 Fix PR symtab/1661.
4261 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4262 (hpread_read_struct_type): Likewise.
4263
4264 2004-06-01 Andrew Cagney <cagney@gnu.org>
4265
4266 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4267 instead of xasprintf.
4268 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4269 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4270 (mi_cmd_data_list_register_names)
4271 (mi_cmd_data_list_changed_registers)
4272 (mi_cmd_data_list_register_values)
4273 (get_register, mi_cmd_data_write_register_values)
4274 (mi_cmd_data_write_register_values)
4275 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4276 (mi_cmd_target_download, mi_cmd_target_select)
4277 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4278 (mi_execute_cli_command, mi_execute_async_cli_command)
4279 (mi_execute_async_cli_command): Ditto.
4280 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4281 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4282
4283 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4284 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4285 error_last_message instead of mi_error_last_message.
4286 * mi/mi-main.c (mi_error_last_message): Delete function.
4287
4288 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4289 "invalid number of columns" error. Delete redundant "out of
4290 memory" check.
4291
4292 2004-05-31 Mark Kettenis <kettenis@gnu.org>
4293
4294 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4295 (gregset_t, fpregset_t): Remove typedefs.
4296 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4297 (REG_OFFSET): Rename argument.
4298 (i386bsd_r_reg_offset): Rename from reg_offset.
4299 (REG_ADDR): Remove macro.
4300 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4301 functions.
4302 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4303 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4304 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4305 instead of supply_gregset.
4306 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4307 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4308 instead of fill_gregset.
4309 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4310
4311 * i386bsd-nat.c: Don't include "gregset.h".
4312 (supply_gregset, fill_gregset): Make static.
4313 (supply_fpregset, fill_fpregset): Remove.
4314 * Makefile.in (i386bsd-nat.o): Update dependencies.
4315
4316 2004-05-30 Mark Kettenis <kettenis@gnu.org>
4317
4318 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4319 "gdb_assert.h". Con't include "gregset.h".
4320 (fbsd_make_corefile_notes): Use regset-based core file support
4321 instead off fill_gregset and fill_fpregset.
4322 * Makefile.in (fbsd-proc.o): Update dependencies.
4323
4324 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4325 instructions.
4326 (m88k_frame_prev_register): Simplify code a bit.
4327
4328 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4329 (amd64_collect_fpregset): New function.
4330 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4331
4332 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4333
4334 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4335 (i386_collect_gregset): New function.
4336 (i386_supply_fpregset): Adjust comment.
4337 (i386_collect_fpregset): New function.
4338 (i386_regset_from_core_section): Use i386_collect_gregset and
4339 i386_collect_fpregset.
4340
4341 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4342 handle VALUEP being null.
4343
4344 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4345
4346 2004-05-29 Mark Kettenis <kettenis@gnu.org>
4347
4348 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4349
4350 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4351 assembler in OpenBSD 3.5-current.
4352 (amd64obsd_sigcontext_addr): Likewise.
4353
4354 2004-05-28 Jim Blandy <jimb@redhat.com>
4355
4356 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4357 register set, so our regcache isn't declared "legacy" and our E500
4358 pseudoregister read and write functions aren't ignored.
4359 (rs6000_register_byte, rs6000_register_raw_size,
4360 rs6000_register_virtual_type, rs6000_register_convertible,
4361 rs6000_register_convert_to_virtual,
4362 rs6000_register_convert_to_raw): Deleted.
4363 (rs6000_register_type, rs6000_convert_register_p,
4364 rs6000_register_to_value, rs6000_value_to_register): New
4365 functions.
4366 (rs6000_gdbarch_init): Don't register
4367 gdbarch_deprecated_register_size,
4368 gdbarch_deprecated_register_bytes,
4369 gdbarch_deprecated_register_byte,
4370 gdbarch_deprecated_register_raw_size,
4371 gdbarch_deprecated_register_virtual_type,
4372 gdbarch_deprecated_register_convertible,
4373 gdbarch_deprecated_register_convert_to_virtual, or
4374 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4375 register gdbarch_register_type, gdbarch_convert_register_p,
4376 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4377
4378 2004-05-26 Jim Blandy <jimb@redhat.com>
4379
4380 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4381 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4382 functions, updated to match the register numberings used in GCC.
4383 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4384 rs6000_dwarf2_reg_to_regnum as register number conversions
4385 functions for STABS and Dwarf2.
4386
4387 2004-05-26 Randolph Chung <tausq@debian.org>
4388
4389 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4390 in header file.
4391
4392 2004-05-25 Joel Brobecker <brobecker@gnat.com>
4393
4394 * NEWS: Document new "start" command.
4395
4396 2004-05-25 Randolph Chung <tausq@debian.org>
4397
4398 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4399 hppa-linux.
4400
4401 2004-05-25 Randolph Chung <tausq@debian.org>
4402
4403 * hppa-hpux-tdep.c (offsetof): Define.
4404 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4405 (hppa32_hpux_frame_base_before_sigtramp)
4406 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4407 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4408 (hppa64_hpux_frame_base_before_sigtramp)
4409 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4410 functions.
4411 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4412 (hppa_hpux_sigtramp_frame_unwind_cache)
4413 (hppa_hpux_sigtramp_frame_this_id)
4414 (hppa_hpux_sigtramp_frame_prev_register)
4415 (hppa_hpux_sigtramp_frame_unwind)
4416 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4417 (hppa_hpux_init_abi): Register sigtramp unwinder.
4418 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4419
4420 2004-05-25 Randolph Chung <tausq@debian.org>
4421
4422 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4423 and multiple stack unwinds.
4424 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4425
4426 2004-05-25 Andrew Cagney <cagney@gnu.org>
4427
4428 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4429 * symfile-mem.h: Delete file.
4430 * symfile-mem.c: Do not include "symfile-mem.h".
4431 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4432 "struct bfd_section". When an error do not bother returning NULL.
4433 (add_symbol_file_from_memory_command): Use "struct bfd" and
4434 "struct bfd_section".
4435 * Makefile.in (symfile_mem_h): Delete.
4436 (symfile-mem.o): Update dependencies.
4437
4438 2004-05-25 Nick Roberts <nickrob@gnu.org>
4439
4440 * gdb-mi.el: New file.
4441
4442 2004-05-25 Andrew Cagney <cagney@gnu.org>
4443
4444 * inftarg.c: Include "observer.h".
4445 (child_attach, child_create_inferior): Notify inferior_created.
4446 * corelow.c: Include "observer.h".
4447 (core_open): Notify inferior_created.
4448 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4449
4450 2004-05-25 Andrew Cagney <cagney@gnu.org>
4451
4452 * target.h (struct target_ops): Add from_tty to
4453 to_create_inferior.
4454 (target_create_inferior, find_default_create_inferior): Update.
4455 * infcmd.c (run_command): Update.
4456 * wince.c (child_create_inferior): Update.
4457 * win32-nat.c (child_create_inferior): Update.
4458 * uw-thread.c (uw_thread_create_inferior): Update.
4459 * thread-db.c (thread_db_create_inferior): Update.
4460 * target.c (debug_to_create_inferior)
4461 (find_default_create_inferior): Update.
4462 (maybe_kill_then_create_inferior): Update.
4463 * sol-thread.c (sol_thread_create_inferior): Update.
4464 * remote.c (extended_remote_async_create_inferior)
4465 (extended_remote_create_inferior): Update.
4466 * remote-vx.c (vx_create_inferior): Update.
4467 * remote-st.c (st2000_create_inferior): Update.
4468 * remote-sim.c (gdbsim_create_inferior): Update.
4469 * remote-sds.c (sds_create_inferior): Update.
4470 * remote-rdp.c (remote_rdp_create_inferior): Update.
4471 * remote-rdi.c (arm_rdi_create_inferior): Update.
4472 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4473 * remote-e7000.c (e7000_create_inferior): Update.
4474 * procfs.c (procfs_create_inferior): Update.
4475 * ocd.c (ocd_create_inferior): Update.
4476 * ocd.h (ocd_create_inferior): Update.
4477 * nto-procfs.c (procfs_create_inferior): Update.
4478 * monitor.c (monitor_create_inferior): Update.
4479 * lin-lwp.c (lin_lwp_create_inferior): Update.
4480 * inftarg.c (child_create_inferior): Update.
4481 * hpux-thread.c (hpux_thread_create_inferior): Update.
4482 * gnu-nat.c (gnu_create_inferior): Update.
4483
4484 2004-05-25 Andrew Cagney <cagney@gnu.com>
4485
4486 * MAINTAINERS: Update e-mail address.
4487
4488 2004-05-24 Randolph Chung <tausq@debian.org>
4489
4490 * thread.c (info_threads_command, thread_apply_all_command)
4491 (thread_apply_command, thread_command, do_captured_thread_select):
4492 Remove HPUXHPPA-specific code.
4493
4494 2004-05-24 Randolph Chung <tausq@debian.org>
4495
4496 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4497 unused symbols.
4498 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4499 references.
4500
4501 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4502
4503 * infcmd.c (kill_if_already_running): New function, extracted
4504 from run_command().
4505 (run_command): Replace extracted code by call to
4506 kill_if_already_running().
4507 (start_command): New function.
4508 (_initialize_infcmd): Add "start" command.
4509
4510 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4511
4512 Add OpenBSD/m88k support.
4513 * NEWS (New native configurations): Mention OpenBSD/m88k.
4514 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4515 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4516 * Makefile.in (m88k_tdep_h): New variable.
4517 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4518 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4519 * configure.host: Add m88*-*-openbsd*.
4520 * configure.tgt: Add m88*-*-openbsd*.
4521
4522 2004-05-24 Jim Blandy <jimb@redhat.com>
4523
4524 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4525 to approve changes.
4526
4527 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4528
4529 * symtab.c (fixup_section): Search section table when lookup by
4530 name fails.
4531
4532 2004-05-24 Randolph Chung <tausq@debian.org>
4533
4534 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4535 be "small_struct".
4536
4537 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4538
4539 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4540 register number in regcache_raw_collect call.
4541 (m68kbsd_collect_fpregset): Likewise.
4542 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4543
4544 * regset.h (struct regset): Add back `regset' member.
4545
4546 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4547
4548 * configure.in: Check for td_pcb in `struct thread'.
4549 * configure, config.in: Regenerated.
4550
4551 * dpx2-nat.c: Remove file.
4552 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4553 (dpx2-nat.o): Remove dependencies.
4554
4555 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4556 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4557 (amd64obsd_supply_pcb): New function.
4558 (_initialize_amd64obsd_nat): Enable libkvm interface.
4559 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4560 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4561 (LOADLIBES): New variable.
4562
4563 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4564 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4565 (sparc32nbsd_supply_pcb): New function.
4566 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4567 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4568 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4569 (LOADLIBES): New variable.
4570
4571 2004-05-22 Mark Kettenis <kettenis@gnu.org>
4572
4573 * bsd-kvm.c, bsd-kvm.h: New files.
4574 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4575 "bsd-kvm.h".
4576 (i386fbsd_supply_pcb): New function.
4577 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4578 (i386fbsd-nat.o): Update dependencies.
4579 (bsd_kvm_h): New variable.
4580 (bsd-kvm.o): New dependency.
4581 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4582 (LOADLIBES): New variable.
4583
4584 * regset.c: Tweak comment.
4585 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4586 macro.
4587 * regset.h: Update copyright year.
4588 (struct regset): Remove `descr' member, add `gdbarch' member.
4589 (regset_alloc): Adjust prototype and comment.
4590 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4591 (i386_supply_fpregset): Likewise.
4592 (i386_regset_from_core_section): Update call to regset_alloc.
4593 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4594 REGSET->arch.
4595 (i386obsd_aout_regset_from_core_section): Update call to
4596 regset_alloc.
4597 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4598 REGSET->arch.
4599 (i386nbsd_aout_regset_from_core_section): Update call to
4600 regset_alloc.
4601 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4602 REGSET->arch.
4603 (amd64_regset_from_core_section): Update call to regset_alloc.
4604 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4605 REGSET->arch.
4606 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4607 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4608 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4609 (sparc32nbsd_init_abi): Update call to regset_alloc.
4610 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4611 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4612 (sparc64obsd_init_abi): Update call to regset_alloc.
4613 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4614 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4615 (sparc64nbsd_init_abi): Update call to regset_alloc.
4616 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4617 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4618 (sparc64fbsd_init_abi): Update call to regset_alloc.
4619
4620 2004-05-22 Jim Blandy <jimb@redhat.com>
4621
4622 * ppc-tdep.h (spe_register_p): New declaration.
4623 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4624 ppc_spefscr_regnum.
4625 * rs6000-tdep.c (spe_register_p): New function.
4626 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4627 spefscr.
4628 (rs6000_gdbarch_init): Initialize the new members of the tdep
4629 structure.
4630
4631 2004-05-21 Jim Blandy <jimb@redhat.com>
4632
4633 * ppc-linux-nat.c (fetch_register): Move code back to be next
4634 to the comment that describes it. (Moved code, instead of
4635 comment, for symmetry with store_register.)
4636
4637 Allocate regset structures in the gdbarch's obstack, not using
4638 xmalloc.
4639 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4640 Add 'arch' argument. Allocate the regset on arch's obstack, not
4641 using xmalloc.
4642 * regset.h (regset_alloc): Update declaration.
4643 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4644 gdbarch argument.
4645 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4646 * i386-tdep.c (i386_regset_from_core_section): Same.
4647 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4648 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4649 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4650 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4651 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4652 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4653
4654 2004-05-21 Joel Brobecker <brobecker@gnat.com>
4655
4656 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4657
4658 2004-05-21 Jim Blandy <jimb@redhat.com>
4659
4660 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4661 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4662
4663 2004-05-20 Jim Blandy <jimb@redhat.com>
4664
4665 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4666
4667 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4668
4669 * regset.h: Make prototype const-correct.
4670 * regset.c (regset_xmalloc): Make const-correct.
4671
4672 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4673
4674 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4675 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4676 (symbol_search_name): Declare.
4677
4678 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4679 (iter_name_next_hashed): Ditto.
4680 (iter_name_next_linear): Ditto.
4681 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4682
4683 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4684 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4685 (symbol_search_name): New function.
4686
4687 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4688
4689 * minsyms.c (build_minimal_symbol_hash_tables): Change
4690 test for adding to demangled hash table to check for difference
4691 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4692
4693 2004-05-19 Jim Blandy <jimb@redhat.com>
4694
4695 Use a constructor function to create regset structures.
4696 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4697 (struct regset): Use supply_regset_ftype. Add new
4698 'collect_regset' member.
4699 (regset_xmalloc): New declaration.
4700 * regset.c: New file.
4701 * am64-tdep.c (amd64_regset_from_core_section): Use
4702 regset_xmalloc to construct regset structures.
4703 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4704 * i386-tdep.c (i386_regset_from_core_section): Same.
4705 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4706 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4707 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4708 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4709 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4710 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4711 * Makefile.in (COMMON_OBS): Add regset.o.
4712 (regset.o): New rule.
4713
4714 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4715
4716 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4717 and pthread_cond_wait.c.
4718
4719 2004-05-18 Jim Blandy <jimb@redhat.com>
4720
4721 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4722 before the mach-specific switch, and then let the individual cases
4723 override the defaults, rather than leaving them uninitialized
4724 until the switch and then setting them in each case.
4725
4726 2004-05-18 Randolph Chung <tausq@debian.org>
4727
4728 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4729 millicode functions.
4730
4731 2004-05-18 Randolph Chung <tausq@debian.org>
4732
4733 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4734 references to dld_flags_buffer consistent.
4735
4736 2004-05-18 Randolph Chung <tausq@debian.org>
4737
4738 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4739 it for unwinding the stack.
4740
4741 2004-05-18 Randolph Chung <tausq@debian.org>
4742
4743 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4744 Undefine these so we can overide them using gdbarch.
4745
4746 2004-05-18 Randolph Chung <tausq@debian.org>
4747
4748 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4749 handling for 64-bit HPUX (elf).
4750
4751 2004-05-18 Daniel Jacobowitz <dan@debian.org>
4752
4753 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4754 constants.
4755 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4756 * ia64-tdep.c (examine_prologue): Likewise.
4757 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4758 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4759
4760 2004-05-18 Mark Kettenis <kettenis@gnu.org>
4761
4762 * vax-tdep.c (vax_return_value): Implement
4763 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4764
4765 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4766
4767 * vax-tdep.c (vax_return_value): Fix typo.
4768
4769 2004-05-17 Andrew Cagney <cagney@redhat.com>
4770
4771 * MAINTAINERS: Mark Salter was also responsible for
4772 testsuite/config/
4773
4774 * NEWS: Mention signal fixes.
4775
4776 2004-05-17 Randolph Chung <tausq@debian.org>
4777
4778 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4779 check to see if we are unwinding an export stub. Export stubs clobber
4780 the %rp in the call path and stores the original rp in a stack slot.
4781
4782 2004-05-17 Jim Blandy <jimb@redhat.com>
4783
4784 * MAINTAINERS: Update address for J.T. Conklin.
4785
4786 2004-05-17 Randolph Chung <tausq@debian.org>
4787
4788 * hppa-tdep.c: Remove superfluous #include's.
4789 * Makefile.in (hppa-tdep.o): Update dependencies.
4790
4791 2004-05-17 Randolph Chung <tausq@debian.org>
4792
4793 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4794 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4795 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4796 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4797 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4798 Remove static function declarations.
4799
4800 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4801
4802 * alphabsd-nat.c: Update copyright year.
4803 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4804
4805 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4806 and M68K_A2_REGNUM.
4807
4808 * m68k-tdep.c (m68k_svr4_return_value): Implement
4809 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4810
4811 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4812
4813 * sol-thread.c Update copyright year. Fix various coding
4814 standards violations. Tweak a few comments.
4815 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4816 Delete prototypes.
4817
4818 2004-05-15 Randolph Chung <tausq@debian.org>
4819
4820 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4821 as pointer instead of array reference since HPUX compiler does
4822 not accept unsized array arguments.
4823 * somsolib.c (dld_flags_buffer): Use constant array size.
4824
4825 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4826
4827 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4828 offset with decimal offset.
4829 (amd64obsd_sigcontext_addr): Return correct address for entire
4830 signal trampoline.
4831
4832 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4833 instead of get_frame_base.
4834
4835 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4836 (fill_gregset): Use regcache_raw_collect.
4837
4838 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4839 ppcobsd-tdep.c.
4840
4841 * config/sparc/tm-nbsd64.h: Remove file.
4842 * config/tm-sunos.h: Remove file.
4843
4844 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4845
4846 * rs6000-tdep.c (store_param_on_stack_p): New function,
4847 an improved version of some code extracted from skip_prologue().
4848 (skip_prologue): Use store_param_on_stack_p() to detect
4849 instructions saving a parameter on the stack. Detect when r0
4850 is used to save a parameter.
4851 Do not mark "li rx, SIMM" instructions as part of the prologue,
4852 unless the following instruction is also part of the prologue.
4853
4854 2004-05-14 Andrew Cagney <cagney@redhat.com>
4855
4856 * infrun.c (handle_inferior_event): Simplify
4857 STEP_OVER_UNDEBUGGABLE.
4858
4859 * infrun.c (handle_step_into_function): Delete function.
4860 (handle_inferior_event): Inline calls to
4861 handle_step_into_function.
4862
4863 2004-05-14 Jerome Guitton <guitton@gnat.com>
4864
4865 * rs6000-nat.c: Fix a comment.
4866
4867 2004-05-12 David Anderson <davea@sgi.com>
4868
4869 Committed by Jim Blandy <jimb@redhat.com>:
4870 * regcache.c (struct regcache_descr): fix comment spelling.
4871
4872 2004-05-13 J. Brobecker <brobecker@gnat.com>
4873
4874 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4875 Fixes a link link failure.
4876
4877 2004-05-13 J. Brobecker <brobecker@gnat.com>
4878
4879 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4880 error that was causing the build to fail.
4881
4882 2004-05-13 J. Brobecker <brobecker@gnat.com>
4883
4884 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4885 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4886
4887 2004-05-13 Andrew Cagney <cagney@redhat.com>
4888
4889 * infrun.c (handle_inferior_event): Check for
4890 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4891 calls. Update comments.
4892
4893 2004-05-13 Jim Blandy <jimb@redhat.com>
4894
4895 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4896 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4897 (store_regs_user_thread, store_regs_kernel_thread): Use
4898 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4899 * ppc-linux-nat.c (fill_gregset): Same.
4900 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4901 (ppc_linux_sigtramp_cache): Same.
4902 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4903 (ppcnbsd_sigtramp_cache_init): Same.
4904 * rs6000-nat.c (fetch_core_registers): Same.
4905 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4906 (rs6000_frame_cache): Same.
4907
4908 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4909 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4910 of assuming that the gprs are numbered starting with zero.
4911 * ppc-linux-nat.c (fill_gregset): Same.
4912 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4913 * ppcnbsd-nat.c (getregs_supplies): Same.
4914 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4915 * rs6000-nat.c (fetch_core_registers): Same.
4916 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4917
4918 2004-05-07 Michael Snyder <msnyder@redhat.com>
4919
4920 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4921 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4922
4923 2004-05-13 Andrew Cagney <cagney@redhat.com>
4924
4925 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4926
4927 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4928
4929 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4930 base_address for shared libraries.
4931
4932 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4933
4934 * MAINTAINERS (write after approval): Add myself.
4935
4936 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4937
4938 * breakpoint.c (bpstat_stop_status): Add new argument
4939 STOPPED_BY_WATCHPOINT. Use it instead of testing
4940 target_stopped_data_address agaist 0 to check whether
4941 or not we stopped due to a hardware watchpoint.
4942 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4943 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4944 with new argument.
4945
4946 2004-05-12 Jim Blandy <jimb@redhat.com>
4947
4948 * configure.in: When checking whether we should use the -bbigtoc
4949 option, don't forget to restore the original value of LDFLAGS.
4950 * configure: Regenerated.
4951
4952 2004-05-12 Andrew Cagney <cagney@redhat.com>
4953
4954 * thread.c (load_infrun_state): Delete step_sp.
4955 * infrun.c (context_switch): Ditto.
4956 * inferior.h (step_sp): Ditto.
4957 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4958 * gdbthread.h (struct thread_info, save_infrun_state)
4959 (restore_infrun_state): Ditto.
4960
4961 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4962
4963 * MAINTAINERS (write after approval): Add myself.
4964
4965 2004-05-12 Andrew Cagney <cagney@redhat.com>
4966
4967 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4968 eliminate reference to step_sp.
4969 (struct execution_control_state, init_execution_control_state)
4970 (handle_inferior_event, keep_going): Delete update_step_sp and
4971 step_sp.
4972 * infcmd.c (step_sp): Note that variable is unused.
4973
4974 2004-05-11 Andrew Cagney <cagney@redhat.com>
4975
4976 * infrun.c (step_over_function): Delete function.
4977 (handle_step_into_function): Use insert_step_resume_breakpoint.
4978 (insert_step_resume_breakpoint): Fix assertion.
4979
4980 2004-05-11 Nick Roberts <nickrob@gnu.org>
4981
4982 * utils.c (defaulted_query): Just use the normal query input type
4983 when printing the annotations.
4984
4985 2004-05-11 Andrew Cagney <cagney@redhat.com>
4986
4987 * infrun.c (handle_inferior_event): Simplify code handling
4988 step-into or return-from a signal trampoline.
4989
4990 2004-05-11 Andrew Cagney <cagney@redhat.com>
4991
4992 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4993 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4994
4995 2004-05-10 Jim Blandy <jimb@redhat.com>
4996
4997 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4998 with a call to internal_error.
4999
5000 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5001 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5002 processor variant lacks those registers.
5003 (ppc_floating_point_unit_p): Change description to make it clear
5004 that this returns info about the ISA, not the ABI.
5005 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5006 return true or false by checking tdep->ppc_fp0_regnum and
5007 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5008 arch/mach switching done in rs6000_gdbarch_init; it's better to
5009 keep that logic there, and just check the results here.
5010 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5011 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5012 floating-point registers.
5013 (ppc_supply_fpregset, ppc_collect_fpregset)
5014 (rs6000_push_dummy_call, rs6000_extract_return_value)
5015 (rs6000_store_return_value): Assert that we have floating-point
5016 registers.
5017 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5018 (rs6000_frame_cache): Don't note the locations at which
5019 floating-point registers were saved if we have no fprs.
5020 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5021 registers.
5022 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5023 (store_regs_user_thread, store_regs_kernel_thread): Only call
5024 supply_fprs / fill_fprs if we actually have floating-point
5025 registers.
5026 (special_register_p): Check ppc_fpscr_regnum before matching
5027 against it.
5028 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5029 supply / collect fpscr if we don't have it.
5030 * ppc-bdm.c: #include "gdb_assert.h".
5031 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5032 have floating-point registers, since I can't test this code on
5033 FP-free systems to adapt it.
5034 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5035 fpscr and floating point register numbers if they don't exist.
5036 (fetch_register): Assert that we have floating-point registers
5037 before we reach the code that handles them.
5038 (store_register): Same. And use tdep instead of calling
5039 gdbarch_tdep again.
5040 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5041 don't have them.
5042 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5043 fprs and fpscr if we don't have them.
5044 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5045 don't have them.
5046 * ppcnbsd-nat.c: #include "gdb_assert.h".
5047 (getfpregs_supplies): Assert that we have floating-point registers.
5048 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5049 * ppcobsd-tdep.c: #include "gdb_assert.h".
5050 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5051 have floating-point registers.
5052 * rs6000-nat.c (regmap): Don't match against the fpscr and
5053 floating point register numbers if they don't exist.
5054 (fetch_inferior_registers, store_inferior_registers,
5055 fetch_core_registers): Only fetch / store / supply the
5056 floating-point registers and the fpscr if we have them.
5057 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5058 (ppcobsd-tdep.o): Update dependencies.
5059
5060 2004-05-10 Andrew Cagney <cagney@redhat.com>
5061
5062 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5063 (context_switch): Do not switch through_sigtramp_breakpoint.
5064 * gdbthread.h (save_infrun_state, load_infrun_state)
5065 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5066 and structure member.
5067 * thread.c (load_infrun_state, save_infrun_state): Update.
5068
5069 2004-05-10 Mark Kettenis <kettenis@gnu.org>
5070
5071 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5072
5073 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5074
5075 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5076 throughout.
5077 * aclocal.m4: Regenerate.
5078
5079 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5080
5081 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5082
5083 2004-05-10 Andrew Cagney <cagney@redhat.com>
5084
5085 * infrun.c (check_sigtramp2): Delete function.
5086 (handle_inferior_event): When single stepping, and taking a
5087 signal, set a breakpoint at the signal return address. Delete
5088 redundant calls to check_sigtramp2.
5089 (insert_step_resume_breakpoint): New function.
5090 (through_sigtramp_breakpoint, handle_inferior_event)
5091 (follow_exec, wait_for_inferior, fetch_inferior_event)
5092 (currently_stepping, keep_going): Delete most uses of
5093 through_sigtramp_breakpoint, not that it should be deleted.
5094 (delete_breakpoint_current_contents): Delete function.
5095
5096 2004-05-10 Randolph Chung <tausq@debian.org>
5097
5098 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5099 target.
5100 * config/pa/tm-linux.h: New file.
5101
5102 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
5103
5104 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5105 of prefixes. Don't print the prefix twice in the CLI.
5106
5107 2004-05-10 Jim Blandy <jimb@redhat.com>
5108
5109 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5110 collect all the gprs.
5111
5112 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5113 loop collecting gprs.
5114
5115 2004-05-09 Andrew Cagney <cagney@redhat.com>
5116
5117 * remote-vx.c (net_step): Delete step-range code.
5118 * remote.c (remote_resume, init_all_packet_configs)
5119 (set_remote_protocol_E_packet_cmd)
5120 (show_remote_protocol_E_packet_cmd)
5121 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5122 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5123 (show_remote_protocol_e_packet_cmd): Ditto.
5124
5125 2004-05-09 Mark Kettenis <kettenis@gnu.org>
5126
5127 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5128
5129 * hppa-tdep.h: Update copyright year.
5130 (struct trad_frame_saved_reg): Add opaque declaration.
5131
5132 * amd64-tdep.c (amd64_return_value): Implement
5133 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5134
5135 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5136 (m68k_value_to_register): New functions.
5137 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5138 value_to_register.
5139
5140 * defs.h (enum return_value_convention): Add
5141 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5142 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5143 * infcmd.c (legacy_return_value): New function.
5144 (print_return_value): Rwerite to implement
5145 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5146 * values.c (using_struct_return): Check for inequality to
5147 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5148 RETURN_VALUE_STRUCT_CONVENTION.
5149 * i386-tdep.c (i386_return_value): Implement
5150 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5151
5152 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5153 include "symtab.h", "opcode/vax.h" and "inferior.h".
5154 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5155 to read_memory_unsigned_integer.
5156 (vax_gdbarch_init): Reorder.
5157 (_initialize_vax_tdep): Spell out prototype.
5158 * Makefile.in (vax-tdep.o): Update dependencies.
5159
5160 2004-05-08 Andrew Cagney <cagney@redhat.com>
5161
5162 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5163 * target.c (target_detach, target_disconnect): Ditto.
5164
5165 * infcall.c (call_function_by_hand): When no
5166 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5167 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5168 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5169 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5170 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5171
5172 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5173 * gdbarch.h, gdbarch.c: Re-generate.
5174 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5175 deprecated_fix_call_dummy.
5176 * v850-tdep.c (v850_gdbarch_init): Ditto.
5177 * infcall.c (call_function_by_hand): Do not call
5178 DEPRECATED_FIX_CALL_DUMMY.
5179
5180 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5181 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5182 * gdbarch.h, gdbarch.c: Re-generate.
5183 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5184 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5185 deprecated_sizeof_call_dummy_words.
5186 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5187 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5188 * v850-tdep.c (v850_gdbarch_init): Ditto.
5189 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5190 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5191 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5192 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5193 * arch-utils.h (legacy_call_dummy_words)
5194 (legacy_sizeof_call_dummy_words): Delete declarations.
5195 * arch-utils.c (legacy_call_dummy_words)
5196 (legacy_sizeof_call_dummy_words): Delete variables.
5197
5198 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5199 * gdbarch.h, gdbarch.c: Re-generate.
5200 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5201 * infcall.c (call_function_by_hand): Eliminate call to
5202 DEPRECATED_PUSH_DUMMY_FRAME.
5203 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5204 push_dummy_frame.
5205 (ns32k_push_dummy_frame): Delete function.
5206
5207 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5208 deprecated_call_dummy_breakpoint_offset or
5209 deprecated_call_dummy_start_offset.
5210 * dummy-frame.c, arm-tdep.c: Update comments.
5211 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5212 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5213 * gdbarch.h, gdbarch.c: Re-generate.
5214
5215 * infcall.c (legacy_push_dummy_code): Delete function.
5216 (push_dummy_code): Delete call.
5217
5218 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5219 * gdbarch.h, gdbarch.c: Re-generate.
5220 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5221 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5222 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5223 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5224
5225 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5226 (struct frame_info): Delete opaque declaration.
5227 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5228 * frame.c (get_frame_type): Delete call.
5229
5230 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5231 pc_in_call_dummy.
5232 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5233 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5234
5235 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5236
5237 * alphanbsd-tdep.c: Include "gdb_string.h".
5238 * armnbsd-tdep.c: Update copyright year.
5239 Include "gdb_string.h".
5240 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5241 dependencies.
5242
5243 * delta68-nat.c: Remove file.
5244 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5245 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5246 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5247 (delta68-nat.o): Remove dependency.
5248
5249 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5250 function.
5251 (m68k_gdbarch_init): Don't set
5252 deprecated_frameless_function_invocation.
5253
5254 2004-05-07 Randolph Chung <tausq@debian.org>
5255
5256 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5257 read_memory_nobpt for code reading when doing frame unwinding.
5258 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5259
5260 2004-05-07 Randolph Chung <tausq@debian.org>
5261
5262 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5263 instead of sp, handle sigaltstack case.
5264 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5265 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5266 signal handler and not that of the caller.
5267 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5268 hppa_linux_sigtramp_find_sigcontext.
5269
5270 2004-05-07 Randolph Chung <tausq@debian.org>
5271
5272 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5273 hppa-linux-nat.c.
5274 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5275 * hppa-linux-nat.c (fetch_register, store_register): Define.
5276 (fetch_inferior_registers, store_inferior_registers): Define.
5277 (supply_gregset): Add comment and clean up some unneeded code.
5278 (fill_gregset): Add comment and fix so that it saves registers in
5279 the right place in the gregset.
5280 (fill_fpregset): Fix buffer overrun problem.
5281 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5282
5283 2004-05-07 Randolph Chung <tausq@debian.org>
5284
5285 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5286 do common handling of the pcoqt register.
5287 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5288 to use helper function.
5289 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5290 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5291 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5292 generic fallback unwinder when all else fails.
5293 (hppa_gdbarch_init): Add fallback sniffer.
5294 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5295 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5296 to use helper function.
5297
5298 2004-05-08 Joel Brobecker <brobecker@gnat.com>
5299
5300 * config/djgpp/fnchange.lst: Add translation rules for
5301 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5302
5303 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5304
5305 * frame.c (get_prev_frame_1): Work around GCC bug.
5306 * frame.h: Add comment about GCC bug.
5307
5308 2004-05-07 Andrew Cagney <cagney@redhat.com>
5309
5310 * observer.c: Include "commands.h" and "gdbcmd.h".
5311 (observer_debug, _initialize_observer): Add the
5312 command "set/show debug observer".
5313 * observer.sh: When observer debugging, log notify calls.
5314 * Makefile.in (observer.o): Update dependencies.
5315
5316 2004-05-07 Jason Molenda (jmolenda@apple.com)
5317
5318 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5319
5320 2004-05-07 Jim Blandy <jimb@redhat.com>
5321
5322 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5323 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5324 to recognize gpr regnums, instead of assuming that
5325 tdep->ppc_fp0_regnum marks the end of the general-purpose
5326 registers.
5327
5328 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5329 the given architecture has floating-point registers.
5330
5331 2004-05-07 Andrew Cagney <cagney@redhat.com>
5332
5333 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5334 macro defined to 1.
5335 * gdbarch.h, gdbarch.c: Re-generate.
5336 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5337 deprecated_use_generic_dummy_frames.
5338
5339 2004-05-07 Brian Ford <ford@vss.fsi.com>
5340
5341 * NEWS: Mention Cygwin DWARF 2 support.
5342
5343 2004-05-07 Andrew Cagney <cagney@redhat.com>
5344
5345 * objfiles.h (struct entry_info): Delete unused fields
5346 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5347 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5348 * mipsread.c (mipscoff_symfile_read): Update.
5349 * mdebugread.c (parse_partial_symbols): Update.
5350 * dwarfread.c (read_file_scope): Update.
5351 * dwarf2read.c (read_file_scope): Update.
5352 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5353 * coffread.c (complete_symtab): Update.
5354
5355 2004-05-07 Mark Kettenis <kettenis@gnu.org>
5356
5357 * infcall.c (_initialize_infcall): Fix typo.
5358
5359 2004-05-07 Andrew Cagney <cagney@redhat.com>
5360
5361 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5362 * command.h (add_setshow_zinteger_cmd): Declare.
5363
5364 2004-05-06 Randolph Chung <tausq@debian.org>
5365
5366 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5367 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5368 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5369 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5370 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5371 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5372 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5373 definitions ...
5374 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5375 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5376 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5377 (hppa64_hpux_frame_find_saved_regs_in_sig)
5378 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5379 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5380 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5381 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5382 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5383 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5384 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5385 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5386 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5387 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5388 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5389 (hppa32_register_type, hppa_cannot_store_register)
5390 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5391 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5392 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5393 * pa64solib.c (pa64_solib_have_load_event)
5394 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5395 (pa64_solib_unloaded_library_pathname): Likewise.
5396 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5397 (som_solib_library_pathname): Likewise.
5398
5399 2004-05-05 Jim Ingham <jingham@apple.com>
5400
5401 * breakpoint.c (create_breakpoints): Copy the ignore count and
5402 thread id over from the pended breakpoint to the actual
5403 breakpoint.
5404
5405 2004-05-05 Andrew Cagney <cagney@redhat.com>
5406
5407 * gdbarch.sh (PARM_BOUNDARY): Delete.
5408 gdbarch.h, gdbarch.c: Re-generate.
5409 * valops.c (PARM_BOUNDARY): Delete macro.
5410 (value_push): Delete PARM_BOUNDARY code.
5411 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5412
5413 2004-05-04 Jim Blandy <jimb@redhat.com>
5414
5415 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5416 Don't assume that the gprs, fprs, and UISA sprs are
5417 contiguous, start at register number zero, and end with fpscr.
5418 Instead, use the numbers from the tdep structure.
5419
5420 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5421 should no longer be used in code specific to the RS6000 and its
5422 derivatives.
5423 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5424 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5425 tdep->ppc_fp0_regnum.
5426 (ppc_supply_fpregset, ppc_collect_fpregset)
5427 (rs6000_push_dummy_call, rs6000_extract_return_value)
5428 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5429 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5430 FP0_REGNUM.
5431 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5432 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5433 Same.
5434 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5435 bdm_ppc_store_registers): Same.
5436 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5437 (store_register, fill_fpregset): Same.
5438 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5439 (ppc_linux_supply_fpregset): Same.
5440 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5441 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5442 Same.
5443 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5444 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5445 ppc64_sysv_abi_return_value): Same.
5446 * rs6000-nat.c (regmap, fetch_inferior_registers)
5447 (store_inferior_registers, fetch_core_registers): Same.
5448
5449 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5450
5451 * m68knbsd-nat.c: Remove file.
5452 * m68knbsd-tdep.c: Remove file.
5453 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5454 dependencies.
5455 * configure.host: Add m68k-*-netbsdelf*.
5456 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5457 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5458 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5459 (XM_FILE): Remove.
5460 * config/m68k/nbsdelf.mh: New file.
5461 * config/m68k/nbsd.mt: New file.
5462 * config/m68k/nbsdaout.mt: Remove file.
5463 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5464 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5465 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5466 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5467 (use_struct_convention): Remove prototype.
5468 (USE_STRUCT_CONVENTION): Remove define.
5469 * config/m68k/xm-nbsd.h: Remove file.
5470
5471 2004-05-04 Michael Snyder <msnyder@redhat.com>
5472
5473 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5474 reg_struct_return method (as gcc usually does for cross targets).
5475
5476 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5477
5478 Committed by Andrew Cagney.
5479 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5480 alignment padding when accessing ucontext struct members.
5481
5482 2004-05-04 Jim Blandy <jimb@redhat.com>
5483
5484 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5485 'ppc_gplast_regnum' member.
5486 (ppc_num_gprs): New enum constant.
5487 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5488 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5489 * rs6000-nat.c (regmap, fetch_inferior_registers,
5490 store_inferior_registers): Same.
5491 * rs6000-tdep.c (e500_pseudo_register_read)
5492 (e500_pseudo_register_write): Same.
5493 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5494
5495 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5496 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5497 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5498 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5499 FPLAST_REGNUM.
5500 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5501 Same.
5502 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5503 * rs6000-nat.c (regmap, fetch_inferior_registers)
5504 (store_inferior_registers): Same.
5505
5506 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5507 with FPLAST_REGNUM.
5508
5509 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5510
5511 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5512 failure detected by recent versions of GCC.
5513 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5514 to be consistent with the usage in dwarf2_create_include_psymtab.
5515
5516 2004-05-03 Michael Snyder <msnyder@redhat.com>
5517
5518 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5519 (heuristic_proc_start): Whitespace cleanup.
5520
5521 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5522
5523 * sun3-nat.c: Remove file.
5524 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5525 dependencies.
5526 (ALLDEPFILES): Remove sun3-nat.c.
5527 (sun3-nat.o): Remove dependencies.
5528
5529 * i386-interix-nat.c, i386-interix-tdep.c,
5530 config/i386/nm-interix.h, config/i386/interix.mh,
5531 config/i386/interix.mt: Remove files.
5532 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5533 dependencies.
5534
5535 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5536
5537 * m68k-tdep.h (struct gdbarch_tdep): Add member
5538 struct_value_regnum.
5539 (m68k_svr4_init_abi): New prototype.
5540 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5541 different calling conventions.
5542 (m68k_extract_return_value): Remove code dealing with single-field
5543 structs.
5544 (m68k_store_return_value): Remove code dealing with single-field
5545 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5546 (m68k_extract_struct_value_address): Remove function.
5547 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5548 (m68k_reg_struct_return_p, m68k_return_value)
5549 (m68k_svr4_return_value): New functions.
5550 (m68k_use_struct_convention): Remove function.
5551 (m68k_push_dummy_call): Use new struct_value_regnum member of
5552 `struct gdbarch_tdep' instead of hardcoded register number to
5553 store STRUCT_ADDR.
5554 (m68k_svr4_init_abi): New function.
5555 (m68k_gdbarch_init): Don't set extract_return_value,
5556 store_return_values, deprecated_extract_struct_value_address and
5557 use_struct_convention. Set return_value instead. Initialize new
5558 struct_value_regnum member of `struct gdbarch_tdep'.
5559 * m68klinux-tdep.c: Update copyright year.
5560 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5561 (m68k_linux_extract_struct_value_address): Remove function.
5562 (m68k_linux_init_abi): Don't set extract_return_value,
5563 store_return_values, deprecated_extract_struct_value_address and
5564 use_struct_convention. Call m68k_svr4_init_abi but override the
5565 new struct_value_regnum member of `struct gdbarch_tdep'.
5566 * Makefile.in (m68k-tdep.o): Update dependencies.
5567
5568 2004-05-03 J. Brobecker <brobecker@gnat.com>
5569
5570 * dwarf2read.c (line_header): Add new included_p field in
5571 field file_names.
5572 (partial_die_info): New field has_stmt_list. New field line_offset.
5573 (dwarf2_create_include_psymtab): New function.
5574 (dwarf2_build_include_psymtabs): New function.
5575 (add_file_name): Add forward declaration. Initialize new field.
5576 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5577 to be able to determine the list of files included by the
5578 given unit, and build their associated psymtabs.
5579 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5580 files as well.
5581 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5582 (read_file_scope): Update call to dwarf_decode_lines.
5583 (read_partial_die): Handle DW_AT_stmt_list attributes.
5584
5585 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5586
5587 Unfix PR gdb/1626.
5588 * configure.in: Revert special case for osf5.*.
5589 * configure: Regenerate.
5590
5591 2004-05-02 Jim Blandy <jimb@redhat.com>
5592
5593 Move the symbol-file-from-memory functions into their own file.
5594 * symfile-mem.c, symfile-mem.h: New files.
5595 * symfile.c (symbol_file_add_from_bfd): New function.
5596 (symbol_file_add): Call symbol_file_add_from_bfd.
5597 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5598 Moved to symfile-mem.c.
5599 (_initialize_symfile): Move definition of
5600 add-symbol-file-from-memory command to symfile-mem.c.
5601 * symfile.h (symbol_file_add_from_bfd): New declaration.
5602 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5603 * config/powerpc/linux.mt (TDEPFILES): Same.
5604 * Makefile.in (SFILES): Add symfile-mem.c.
5605 (symfile_mem_h): New variable.
5606 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5607 (symfile-mem.o): New rule.
5608
5609 2004-05-01 Andrew Cagney <cagney@redhat.com>
5610
5611 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5612 frame_find_by_id instead of frame_relative_level.
5613 (do_enable_breakpoint): Ditto.
5614 * thread.c: Update copyright.
5615 (info_threads_command): Ditto, simplify.
5616
5617 * frame.c (deprecated_generic_get_saved_register): Delete
5618 function, moved to "xstormy16-tdep.c".
5619 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5620 deprecated_generic_get_saved_register from "frame.c".
5621 (xstormy16_frame_saved_register): Call
5622 xstormy16_get_saved_register.
5623 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5624 static.
5625 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5626 * frame.h (deprecated_generic_get_saved_register): Delete.
5627
5628 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5629
5630 * dwarfread.c: Update documentation on the state of dwarf-1.
5631
5632 2004-05-01 Andrew Cagney <cagney@redhat.com>
5633
5634 * stack.c (select_frame_command): Delete call to
5635 frame_relative_level.
5636 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5637 Delete #if0 code.
5638 (frame_info): Do not print FRAMELESS.
5639 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5640 (catch_info): Delete #if0 code.
5641
5642 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5643 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5644 of frame_relative_level.
5645 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5646 to SENTINEL_FRAME.
5647 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5648 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5649 frame_relative_level.
5650
5651 * frame.h (deprecated_set_frame_type): Delete declaration.
5652 * frame.c (deprecated_set_frame_type): Delete function, update
5653 comments.
5654
5655 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5656 * gdbarch.h, gdbarch.c: Re-generate.
5657 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5658 (shnbsd_pc_in_sigtramp): Delete.
5659 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5660 pc_in_sigtramp.
5661 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5662 pc_in_sigtramp.
5663 * frame.h: Update comments.
5664 * ppc-linux-tdep.c: Update comments.
5665 * breakpoint.c (bpstat_what): Update comments.
5666
5667 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5668 m68klinux-tdep.o's dependencies, were previously added to
5669 m68klinux-nat.o.
5670
5671 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5672 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5673 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5674 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5675 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5676
5677 * Makefile.in (m68klinux-nat.o): Update dependencies.
5678 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5679 (m68k_linux_sigtramp_frame_cache)
5680 (m68k_linux_sigtramp_frame_this_id)
5681 (m68k_linux_sigtramp_frame_prev_register)
5682 (m68k_linux_sigtramp_frame_unwind)
5683 (m68k_linux_sigtramp_frame_sniffer)
5684 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5685 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5686 names, use trad-frame.h.
5687 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5688 (struct m68k_sigtramp_info): Delete.
5689 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5690 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5691 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5692 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5693 "m68klinux-tdep.c".
5694
5695 * infrun.c (check_sigtramp2): Delete check for
5696 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5697
5698 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5699
5700 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5701
5702 2004-05-01 Andrew Cagney <cagney@redhat.com>
5703
5704 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5705 (frv_linux_sigtramp_frame_cache)
5706 (frv_linux_sigtramp_frame_this_id)
5707 (frv_linux_sigtramp_frame_prev_register)
5708 (frv_linux_sigtramp_frame_unwind)
5709 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5710 include "linux" in function and variable names, directly call
5711 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5712 the latest trad-frame code.
5713 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5714 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5715 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5716 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5717 * frv-tdep.c (frv_sigtramp_frame_cache)
5718 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5719 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5720 frv-linux-tdep.c.
5721 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5722 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5723 (frv_set_sigcontext_reg_addr): Delete function.
5724
5725 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5726 (DEPRECATED_SIGTRAMP_END): Delete.
5727 * gdbarch.h, gdbarch.c: Re-generate.
5728 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5729 * config/vax/tm-vaxbsd.h: Update copyright.
5730 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5731 (DEPRECATED_IN_SIGTRAMP): Define.
5732 * config/m68k/tm-nbsd.h: Update copyright.
5733 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5734 (DEPRECATED_IN_SIGTRAMP): Define.
5735
5736 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5737
5738 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5739 encondings. Fixes PR gdb/1628.
5740
5741 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5742 DW_CFA_restore state without a matching DW_CFA_remember_state
5743 instead of aborting. Fixes PR backtrace/1589.
5744
5745 2004-04-30 Joel Brobecker <brobecker@gnat.com>
5746
5747 * MAINTAINERS: Add self as AIX maintainer.
5748 Update my e-mail address in write-after-approval section.
5749
5750 2004-04-30 Andrew Cagney <cagney@redhat.com>
5751
5752 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5753 (legacy_get_prev_frame): Ditto.
5754
5755 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5756 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5757 * mipsread.c (sigtramp_address): Delete extern variable.
5758 (mipscoff_new_init): Delete reference.
5759 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5760 (fixup_sigtramp): Delete function.
5761 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5762 (fixup_sigtramp): Delete declarations.
5763
5764 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5765 deprecated_pc_in_sigtramp.
5766 (ppcnbsd_pc_in_sigtramp): Delete function.
5767
5768 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5769
5770 * config/m68k/nm-nbsd.h: Tweak comments.
5771 * config/m68k/nm-nbsdaout.h: Likewise.
5772
5773 2004-04-30 Andrew Cagney <cagney@redhat.com>
5774
5775 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5776 legacy_pc_in_sigtramp.
5777 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5778
5779 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5780
5781 Add OpenBSD/m68k support.
5782 * NEWS (New native configurations): Mention OpenBSD/m68k.
5783 * m68kbsd-tdep.c: New file.
5784 * m68kbsd-nat.c: New file.
5785 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5786 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5787 * configure.host: Add m68k-*-openbsd.
5788 * configure.tgt: Add m68k-*-openbsd.
5789 * config/m68k/tm-obsd.h: New file.
5790 * config/m68k/obsd.mt: New file.
5791 * config/m68k/obsd.mh: New file.
5792 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5793 m68kbsd-tdep.c.
5794
5795 2004-04-30 Andrew Cagney <cagney@redhat.com>
5796
5797 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5798 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5799
5800 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5801
5802 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5803 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5804
5805 2004-04-30 Brian Ford <ford@vss.fsi.com>
5806
5807 Revert 2004-04-16 change.
5808 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5809 (i386_coff_init_abi): Remove.
5810 * i386-tdep.h (i386_coff_init_abi): Remove.
5811 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5812
5813 2004-04-30 Andrew Cagney <cagney@redhat.com>
5814
5815 * blockframe.c (find_pc_partial_function): Delete use of
5816 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5817 DEPRECATED_SIGTRAMP_END.
5818
5819 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5820 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5821 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5822 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5823 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5824
5825 * defs.h (deprecated_inside_entry_file): Delete declaration.
5826 * blockframe.c (deprecated_inside_entry_file): Delete function.
5827 (legacy_frame_chain_valid): Delete call.
5828 * sh64-tdep.c (sh64_frame_chain): Delete call.
5829 * objfiles.h: Update comments.
5830 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5831 call.
5832 * frame.c (get_prev_frame): Delete call, update comments.
5833
5834 2004-04-30 Brian Ford <ford@vss.fsi.com>
5835
5836 * MAINTAINERS (Write After Approval): Add myself.
5837
5838 2004-04-30 Andrew Cagney <cagney@redhat.com>
5839
5840 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5841 * gdbarch.h, gdbarch.c: Re-generate.
5842 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5843 code.
5844
5845 2004-04-30 Andrew Cagney <cagney@redhat.com>
5846
5847 * gdb-events.sh (selected_thread_changed)
5848 (selected_frame_level_changed, target_changed): Delete.
5849 * gdb-events.h, gdb-events.c: Re-generate.
5850 * valops.c (value_assign): Update.
5851 * stack.c (select_frame_command, up_silently_base)
5852 (down_silently_base): Update.
5853
5854 2004-04-29 Andrew Cagney <cagney@redhat.com>
5855
5856 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5857 registers correctly.
5858 (print_gp_register_row, mips32_heuristic_proc_desc)
5859 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5860 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5861 references to mips_isa_regsize.
5862
5863 2004-04-29 Andrew Cagney <cagney@redhat.com>
5864
5865 * mips-tdep.c (struct gdbarch_tdep): Delete
5866 mips_fp_register_double.
5867 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5868 mips_abi_regsize.
5869 (mips_gdbarch_init): Do not set mips_fp_register_double.
5870 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5871
5872 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5873
5874 Committed by Andrew Cagney.
5875 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5876 function calls.
5877
5878 2004-04-29 Andrew Cagney <cagney@redhat.com>
5879
5880 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5881 gdbarch, use mips_abi, update callers.
5882 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5883 mips_abi_regsize, update callers.
5884 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5885 mips_default_abi_regsize.
5886 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5887 mips_default_abi_regsize.
5888
5889 2004-04-29 Andrew Cagney <cagney@redhat.com>
5890
5891 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5892 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5893 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5894 mips_default_abi_regsize.
5895 (mips_isa_regsize): Rename mips_regisze.
5896 * mipsnbsd-tdep.c: Update.
5897 * mips-linux-tdep.c: Update.
5898 * irix5-nat.c: Update.
5899 * mips-tdep.h (mips_isa_regsize): Update.
5900
5901 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5902 Delete all disabled code.
5903 * gdb-events.h, gdb-events.c: Re-generate.
5904
5905 2004-04-19 Jerome Guitton <guitton@gnat.com>
5906 Mark Kettenis <kettenis@gnu.org>
5907
5908 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5909 the function begins with a branch instruction.
5910
5911 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5912
5913 * i386-tdep.c: Fix spelling mistakes.
5914
5915 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5916 Andrew Cagney <cagney@redhat.com>
5917
5918 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5919 <sys/proc.h>.
5920 * acconfig.h: Provide default _KMEMUSER value.
5921 * config.in, configure: Re-generate.
5922 * NEWS: Mention fix.
5923
5924 2004-04-24 Randolph Chung <tausq@debian.org>
5925
5926 * configure.host (hppa*-*-linux*): New target.
5927 * configure.tgt (hppa*-*-linux*): Likewise.
5928 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5929 gdbarch_init_osabi() call earlier so that osabi-specific frame
5930 unwinders can be registered first.
5931 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5932 hppa-linux-nat.c.
5933 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5934 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5935 * config/pa/linux.mh: New file.
5936 * config/pa/linux.mt: New file.
5937 * config/pa/nm-linux.h: New file.
5938 * config/pa/xm-linux.h: New file.
5939 * hppa-linux-nat.c: New file.
5940 * hppa-linux-tdep.c: New file.
5941
5942 2004-04-28 Randolph Chung <tausq@debian.org>
5943
5944 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5945 return values.
5946 (hppa32_push_dummy_call): Fix small struct and floating point argument
5947 passing, and make sure the stack frame is properly aligned.
5948
5949 2004-04-28 Andrew Cagney <cagney@redhat.com>
5950
5951 * stack.c (print_stack_frame): Fix description.
5952
5953 * NEWS: Mention gdb/gdbserver/configure execute permission
5954 changed. PR server/519.
5955
5956 2004-04-28 Andrew Cagney <cagney@redhat.com>
5957
5958 * stack.c (print_stack_frame_stub): Delete declaration.
5959 (struct print_stack_frame_args, print_stack_frame)
5960 (print_frame_info, print_frame): Replace "source" with print what.
5961 Replace "print" with "print_level". Replace "args" with
5962 "print_args".
5963 * frame.h (show_and_print_stack_frame, print_stack_frame)
5964 (print_frame_info): Update declarations.
5965 * stack.c (select_and_print_frame, frame_command)
5966 (current_frame_command, up_command, down_command): Update calls -
5967 use get_selected_frame, pass "enum print_what" for source, do not
5968 call frame_relative_level.
5969 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5970 * remote-rdp.c (remote_rdp_open): Ditto.
5971 * remote-mips.c (common_open): Ditto.
5972 * remote-e7000.c (e7000_start_remote): Ditto.
5973 * ocd.c (ocd_start_remote): Ditto.
5974 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5975 * infrun.c (normal_stop): Ditto.
5976 * inflow.c (kill_command): Ditto.
5977 * infcmd.c (finish_command): Ditto.
5978 * corelow.c (core_open): Ditto.
5979 * tracepoint.c (finish_tfind_command): Ditto.
5980 * thread.c (info_threads_command, info_threads_command)
5981 (restore_current_thread, do_captured_thread_select): Ditto.
5982 * ada-tasks.c (task_command): Ditto.
5983
5984 2004-04-26 Orjan Friberg <orjanf@axis.com>
5985
5986 * frame.c: Include "observer.h".
5987 (frame_observer_target_changed): New function.
5988 (_initialize_frame): Attach target_changed observer.
5989 * regcache.c: Include "observer.h".
5990 (regcache_observer_target_changed): New function.
5991 (_initialize_regcache): Attach target_changed observer.
5992 * valops.c: Include "observer.h".
5993 (value_assign): Notify target_changed event when modifying register.
5994 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5995
5996 2004-04-26 Orjan Friberg <orjanf@axis.com>
5997
5998 From Paul Koning <pkoning@equallogic.com>:
5999 * breakpoint.c (free_valchain): New function.
6000 (insert_bp_location, delete_breakpoint): Use free_valchain.
6001 (remove_breakpoint): Do not remove the valchain.
6002 (bpstat_stop_status): If not stopped by watchpoint, skip
6003 watchpoints when generating stop status list.
6004 * infrun.c (handle_inferior_event): Make
6005 stepped_after_stopped_by_watchpoint a global variable.
6006 * remote.c (remote_stopped_data_address): Return watch data
6007 address rather than zero if stepped_after_stopped_by_watchpoint is
6008 set.
6009
6010 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6011
6012 Fix PR gdb/1626.
6013 * configure.in: Check for curses after termcap.
6014 On osf5.*, do not check for ncurses.
6015 * configure: Regenerate.
6016
6017 2004-04-25 Mark Kettenis <kettenis@gnu.org>
6018
6019 * ppcobsd-nat.c: Include "ppc-tdep.h".
6020 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6021
6022 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6023 Fixes PR tdep/1623 and PR tdep/1624.
6024
6025 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6026
6027 * xmodem.h, xmodem.c: Remove files.
6028 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6029
6030 2004-04-23 Randolph Chung <tausq@debian.org>
6031
6032 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6033 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6034 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6035 for handling stackless frames.
6036 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6037
6038 2004-04-23 Randolph Chung <tausq@debian.org>
6039
6040 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6041 starts at a pc before the frame is created.
6042
6043 2004-04-23 Joel Brobecker <brobecker@gnat.com>
6044
6045 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6046
6047 2004-04-23 Jerome Guitton <guitton@gnat.com>
6048
6049 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6050 use convert_typed_floating to get the appropriate format.
6051
6052 2004-04-22 Randolph Chung <tausq@debian.org>
6053
6054 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6055 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6056 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6057 (hppa_sign_extend): Add prototype.
6058 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6059 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6060 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6061 hppa targets will also use these functions.
6062 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6063 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6064 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6065 (hppa_gdbarch_init): Remove gdbarch setting of
6066 skip_trampoline_code, in_solib_call_trampoline and
6067 in_solib_return_trampoline.
6068 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6069 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6070 hppa_in_solib_call_trampoline.
6071 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6072 Moved from hppa-tdep.c.
6073 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6074 in_solib_call_trampoline and in_solib_return_trampoline.
6075
6076 2004-04-22 Randolph Chung <tausq@debian.org>
6077
6078 * hppa-tdep.c (hppa_debug): New variable.
6079 (find_unwind_entry, hppa_frame_cache): Add debug output.
6080 (_initialize_hppa_tdep): Add command to set debug flag.
6081
6082 2004-04-22 Andrew Cagney <cagney@redhat.com>
6083
6084 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6085 "trad-frame.h".
6086 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6087 signal trampoline unwinder.
6088 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6089
6090 2004-04-22 Mark Kettenis <kettenis@gnu.org>
6091
6092 Add OpenBSD/powerpc support.
6093 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6094 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6095 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6096 (ppc_collect_fpregset): New prototypes.
6097 * ppcobsd-nat.c: New file.
6098 * ppcobsd-tdep.c: New file.
6099 * ppcobsd-tdep.h: New file.
6100 * rs6000-tdep.c: Include "regset.h".
6101 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6102 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6103 New functions.
6104 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6105 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6106 (rs6000-tdep.o): Update dependencies.
6107 * configure.host: Add powerpc-*-openbsd.
6108 * configure.tgt: Add powerpc-*-openbsd.
6109 * config/powerpc/obsd.mh: New file.
6110 * config/powerpc/nm-obsd.h: New file.
6111 * config/powerpc/obsd.mt: New file.
6112
6113 2004-04-22 Andrew Cagney <cagney@redhat.com>
6114
6115 * frame.h (show_frame_info): Delete declaration.
6116
6117 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6118 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6119 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6120 * frv-tdep.c (frv_frame_this_id): Ditto.
6121 * avr-tdep.c (avr_frame_this_id): Ditto.
6122
6123 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
6124
6125 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6126
6127 2004-04-22 Jim Blandy <jimb@redhat.com>
6128
6129 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6130 register number zero.
6131
6132 2004-04-21 Michael Snyder <msnyder@redhat.com>
6133
6134 * mips-tdep.c (heuristic_proc_start):
6135 Warning() already prefixes "Warning: ".
6136
6137 2004-04-21 Andrew Cagney <cagney@redhat.com>
6138
6139 * annotate.h (deprecated_annotate_starting_hook)
6140 (deprecated_annotate_stopped_hook)
6141 (deprecated_annotate_exited_hook)
6142 (deprecated_annotate_signal_hook)
6143 (deprecated_annotate_signalled_hook): Deprecate.
6144 * tracepoint.h (deprecated_create_tracepoint_hook)
6145 (deprecated_delete_tracepoint_hook)
6146 (deprecated_modify_tracepoint_hook)
6147 (deprecated_trace_find_hook)
6148 (deprecated_trace_start_stop_hook): Deprecate.
6149 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6150 * remote.h (deprecated_target_resume_hook)
6151 (deprecated_target_wait_loop_hook): Deprecate.
6152 * gdbcore.h (deprecated_exec_file_display_hook)
6153 (deprecated_file_changed_hook): Deprecate.
6154 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6155 * defs.h (deprecated_modify_breakpoint_hook)
6156 (deprecated_command_loop_hook, deprecated_show_load_progress)
6157 (deprecated_print_frame_info_listing_hook)
6158 (deprecated_query_hook, deprecated_warning_hook)
6159 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6160 (deprecated_delete_breakpoint_hook)
6161 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6162 (deprecated_readline_begin_hook, deprecated_readline_hook)
6163 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6164 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6165 (deprecated_context_hook, deprecated_target_wait_hook)
6166 (deprecated_attach_hook, deprecated_detach_hook)
6167 (deprecated_call_command_hook, deprecated_set_hook)
6168 (deprecated_error_hook, deprecated_error_begin_hook)
6169 (deprecated_ui_load_progress_hook): Deprecate.
6170 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6171 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6172 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6173 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6174 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6175 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6176 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6177 * annotate.c, aix-thread.c: Update.
6178
6179 2004-04-21 Andrew Cagney <cagney@redhat.com>
6180
6181 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6182 * vaxnbsd-tdep.c: Include "gdb_string.h".
6183
6184 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6185 (add_symbol_file_from_memory_command): #if 0 function body, call
6186 error instead.
6187
6188 2004-04-21 Andrew Cagney <cagney@redhat.com>
6189
6190 * gdbcore.h: Update copyright.
6191 (deprecated_add_core_fns): Rename add_core_fns.
6192 * win32-nat.c (_initialize_core_win32): Update.
6193 * sun3-nat.c (_initialize_core_sun3): Update.
6194 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6195 * rs6000-nat.c (_initialize_core_rs6000): Update.
6196 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6197 * nto-tdep.c (_initialize_nto_tdep): Update.
6198 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6199 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6200 * mips-nat.c (_initialize_core_mips): Update.
6201 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6202 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6203 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6204 * lynx-nat.c (_initialize_core_lynx): Update.
6205 * irix5-nat.c (_initialize_core_irix5): Update.
6206 * i386-interix-nat.c (_initialize_core_interix): Update.
6207 * cris-tdep.c (_initialize_cris_tdep): Update.
6208 * corelow.c (deprecated_add_core_fns): Update.
6209 * core-regset.c (_initialize_core_regset): Update.
6210 * core-aout.c (_initialize_core_aout): Update.
6211 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6212 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6213 * alpha-nat.c (_initialize_core_alpha): Update.
6214
6215 2004-04-21 Jim Blandy <jimb@redhat.com>
6216
6217 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6218
6219 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
6220
6221 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6222 Delete.
6223 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6224 (read_attribute_value): Update calls to dwarf_alloc_block.
6225 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6226 dwarf2_tmp_obstack.
6227 (psymtab_to_symtab_1): Likewise. Clean up using
6228 free_stack_comp_unit.
6229 (add_to_cu_func_list): Use the comp_unit_obstack.
6230
6231 2004-04-19 Joel Brobecker <brobecker@gnat.com>
6232
6233 * dwarf2read.c (dwarf2_flag_true_p): New function.
6234 (die_is_declaration): Use the function above. Add some comments.
6235
6236 2004-04-19 Mark Kettenis <kettenis@gnu.org>
6237
6238 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6239 architecture when registering sparcnbsd_core_osabi_sniffer.
6240 Adjust comment.
6241
6242 2004-04-18 Mark Kettenis <kettenis@gnu.org>
6243
6244 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6245 return value.
6246
6247 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6248 * i386-tdep.c: Correct register numbering scheme comments
6249 throughout.
6250 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6251 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6252 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6253 (i386_gdb_arch_init): Likewise.
6254
6255 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6256 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6257 ppcnbsd-tdep.o.
6258
6259 * m68k-tdep.h: Tweak comments.
6260 * m68k-tdep.c: Tweak comment.
6261
6262 2004-04-17 Randolph Chung <tausq@debian.org>
6263
6264 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6265 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6266 (hppa_hpux_som_init_abi): Set is_elf to 0.
6267 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6268 * hppa-tdep.c (low_text_segment_address): Remove global.
6269 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6270 section offset to calculate segment address.
6271 (internalize_unwinds): Define low_text_segment_address as local and
6272 pass to record_text_segment_lowaddr for ELF targets.
6273 (hppa_gdbarch_init): Zero fill tdep structure.
6274 (hppa_dump_tdep): Print tdep structure.
6275 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6276
6277 2004-04-17 Randolph Chung <tausq@debian.org>
6278
6279 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6280 (hppa_gdbarch_init): Set pseudo_register_read.
6281 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6282 * regcache.c (supply_register): Remove check for
6283 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6284
6285 2004-04-17 Randolph Chung <tausq@debian.org>
6286
6287 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6288 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6289 (hpread_adjust_stack_address): Move to hpread.c.
6290 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6291 obj_private_struct): Move from tm-hppa.h.
6292 * hpread.c (hppa-tdep.h): Include.
6293 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6294 (hpread_read_function_type, hpread_read_doc_function_type)
6295 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6296 directly.
6297 * pa64solib.c (hppa-tdep.h): Include.
6298 * somsolib.c (hppa-tdep.h): Include.
6299 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6300 inferior_status): Remove unused forward declarations.
6301 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6302 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6303 obj_private_struct): Move to hppa-tdep.h.
6304 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6305
6306 2004-04-17 Randolph Chung <tausq@debian.org>
6307
6308 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6309 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6310 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6311 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6312 Remove forward declaration and make static.
6313 (hppa_reg_struct_has_addr): Remove.
6314
6315 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6316
6317 * observer.sh: Move comments in sed command to first column.
6318
6319 2004-04-16 Jason Molenda (jmolenda@apple.com)
6320
6321 * frame.c: Minor typeo corrections in comments.
6322
6323 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6324
6325 * observer.c (observer_test_first_notification_function): Update
6326 function profile.
6327 (observer_test_second_notification_function): Likewise.
6328 (observer_test_third_notification_function): Likewise.
6329
6330 2004-04-16 Mark Kettenis <kettenis@gnu.org>
6331
6332 From Brian Ford <ford@vss.fsi.com>:
6333 * i386-tdep.c (i386_coff_init_abi): New function.
6334 * i386-tdep.h (i386_coff_init_abi): New prototype.
6335 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6336 register number translation functions for DWARF and DWARF 2.
6337
6338 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6339
6340 * dwarf2read.c: Back out my previous change, it was incorrect.
6341
6342 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
6343
6344 * dwarf2read.c: Include "hashtab.h".
6345 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6346 has_namespace_info.
6347 (struct partial_die_info): Add comments. Use bitfields to reduce
6348 memory footprint. Add scope, scope_set, has_specification,
6349 spec_offset, die_parent, die_child, and die_sibling.
6350 (peek_die_abbrev): Add prototype.
6351 (partial_read_comp_unit_head): New function, broken out from
6352 dwarf2_build_psymtabs_hard.
6353 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6354 Use partial_read_comp_unit_head. Initialize the CU and
6355 comp_unit_obstack. Update calls to read_partial_die and
6356 scan_partial_symbols. Use free_stack_comp_unit and
6357 load_partial_dies.
6358 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6359 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6360 Update calls to helper functions. Remove NAMESPACE argument.
6361 Update comments.
6362 (partial_die_parent_scope, partial_die_full_name): New functions.
6363 (add_partial_symbol): Remove namespace argument. Update call to
6364 pdi_needs_namespace. Use partial_die_full_name. Handle
6365 DW_TAG_namespace. Check has_namespace_info flag.
6366 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6367 tag. Handle namespaces.
6368 (add_partial_namespace, add_partial_enumeration): Simplify.
6369 (guess_structure_name): New function, derived from
6370 add_partial_structure.
6371 (add_partial_structure): Remove.
6372 (determine_class_name): Update comment.
6373 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6374 (is_type_tag_for_partial, load_partial_dies): New functions.
6375 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6376 Record specifications instead of following them immediately.
6377 (find_partial_die_in_comp_unit, find_partial_die)
6378 (fixup_partial_die, free_stack_comp_unit)
6379 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6380 (partial_die_hash, partial_die_eq): New functions.
6381 * Makefile.in (hashtab_h): Define.
6382 (dwarf2read.o): Update dependencies.
6383 (observer_inc, observer_h): Move to the correct section.
6384
6385 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6386
6387 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6388 (die_is_declaration): Use the function above. Add comment.
6389
6390 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6391
6392 * dwarf2read.c (read_structure_scope): Identify stub types
6393 using die_is_declaration() only.
6394
6395 2004-04-15 Roland McGrath <roland@redhat.com>
6396
6397 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6398 argument instead of NAME.
6399 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6400 in call to symbol_file_add_with_addrs_or_offsets.
6401 (build_addr_info): New function, helper for ...
6402 (symbol_file_add_from_memory): New function.
6403 (add_symbol_file_from_memory_command): New function using that.
6404 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6405 (pre_add_symbol_hook): Add const to argument type.
6406 * symfile.h (symbol_file_add_from_memory): Declare it.
6407
6408 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6409
6410 * NEWS (New native configurations): Mention OpenBSD/vax.
6411 * configure.host: Add vax-*-openbsd*.
6412 * config/vax/obsd.mh: New file.
6413 * config/vax/nm-obsd.h: New file.
6414
6415 * vax-tdep.c: Include "regset.h".
6416 (vax_supply_gregset): New function.
6417 (vax_gregset): New variable.
6418 (vax_regset_from_core_section): New function.
6419 (vax_gdbarch_init): Set regset_from_core_section.
6420 * Makefile.in (vax-tdep.o): Update dependencies.
6421
6422 2004-04-15 Andrew Cagney <cagney@redhat.com>
6423
6424 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6425 (observer_normal_stop_notification_stub)
6426 (observer_attach_normal_stop, observer_detach_normal_stop):
6427 Delete, replaced by #include "observer.inc".
6428 * infrun.c (normal_stop): Pass "stop_bpstat" to
6429 observer_notify_normal_stop.
6430 * Makefile.in (observer_inc): Define.
6431 (observer.o): Update dependencies.
6432 (observer.h, observer.inc): New rules.
6433 * observer.h: Delete file.
6434 * observer.sh: New file.
6435
6436 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6437
6438 * vax-tdep.c (vax_frame_cache): Fix typo.
6439
6440 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6441
6442 * NEWS (New native configurations): Mention NetBSD/vax.
6443 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6444 * config/vax/nbsdelf.mh: New file.
6445 * config/vax/nbsdaout.mh: New file.
6446 * config/vax/nm-nbsd.h: New file.
6447 * config/vax/nm-nbsdaout.h: New file.
6448
6449 * vaxnbsd-tdep.c: New file.
6450 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6451 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6452 * config/vax/nbsd.mt: New file.
6453 * config/vax/tm-nbsd.h: New file.
6454
6455 * Makefile.in (vaxbsd-nat.o): New dependency.
6456
6457 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6458 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6459 struct_addr arguments. Don't push return value address.
6460 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6461 arguments to vax_store_arguments. Store return value address in
6462 R1.
6463 (vax_store_struct_return, vax_extract_return_value)
6464 (vax_store_return_value): Remove functions.
6465 (vax_return_value): New function.
6466 (vax_gdbarch_init): Set return value. Don't set
6467 deprecated_store_struct_return, deprecated_extract_struct_return
6468 and deprecated_store_return_value.
6469
6470 2004-04-14 Andreas Schwab <schwab@suse.de>
6471
6472 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6473 value buffer.
6474 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6475
6476 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6477
6478 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6479 (vax_unwind_dummy_id): New functions.
6480 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6481 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6482 variables.
6483 (vax_fix_call_dummy): Remove function.
6484 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6485 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6486 call_dummy_location, deprecated_call_dummy_words,
6487 deprecated_sizeof_call_dummy_words,
6488 deprecated_call_dummy_breakpoint_offset,
6489 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6490 and deprecated_dummy_write_sp.
6491
6492 2004-04-13 David Carlton <carlton@kealia.com>
6493
6494 * MAINTAINERS: Move myself to "paper trail" section.
6495
6496 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6497
6498 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6499 "trad-frame.h".
6500 (vax_frame_init_saved_regs): Remove function.
6501 (vax_sigtramp_saved_pc): Remove function.
6502 (vax_frame_saved_pc): Remove function.
6503 (vax_frame_args_address): Remove function.
6504 (vax_frame_num_args): Rewrite.
6505 (vax_frame_chain): Remove function.
6506 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6507 VAX_FP_REGNUM.
6508 (vax_pop_frame): Likewise.
6509 (vax_saved_pc_after_call): Remove function.
6510 (struct vax_frame_cache): New structure.
6511 (vax_frame_cache): New function.
6512 (vax_frame_this_id): New function.
6513 (vax_frame_prev_register): New function.
6514 (vax_frame_unwind): New variable.
6515 (vax_frame_sniffer): New function.
6516 (vax_frame_base_address): New function.
6517 (vax_frame_args_address): New function.
6518 (vax_frame_base): New variable.
6519 (vax_unwind_pc): New function.
6520 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6521 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6522 deprecated_frame_chain, deprecated_frame_saved_pc,
6523 deprecated_frame_args_address and
6524 deprecated_frame_init_saved_regs.
6525 * Makefile.in (vax-tdep.o): Update dependencies.
6526
6527 * vaxbsd-nat.c: New file.
6528
6529 * vax-tdep.h: Update copyright year. Adjust comments.
6530 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6531 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6532 (vax_regnum): New enum. Replacing...
6533 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6534 (VAX_PS_REGNUM): ... these removed macros.
6535 * vax-tdep.c (vax_register_name): Remove prototype.
6536 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6537 (vax_register_byte, vax_register_raw_size,
6538 vax_register_virtual_size, vax_register_virtual_type): Remove
6539 functions.
6540 (vax_register_type): New function.
6541 (vax_breakpoint_from_pc): Reorganize.
6542 (vax_gdbarch_init): Set register_type. Don't set
6543 deprecated_register_size, deprecated_register_bytes,
6544 deprecated_register_byte, deprecated_register_raw_size,
6545 deprecated_max_register_raw_size,
6546 deprecated_register_virtual_size,
6547 deprecated_max_register_virtual_size and
6548 deprecated_register_virtual_type. Add comment on stack direction.
6549
6550 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6551
6552 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6553 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
6554 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
6555
6556 2004-04-10 Randolph Chung <tausq@debian.org>
6557
6558 * MAINTAINERS (write after approval): Add myself.
6559
6560 2004-04-07 Randolph Chung <tausq@debian.org>
6561
6562 * hppa-tdep.c (hppa_inner_than): Remove.
6563 (is_pa_2): Remove unused static variable.
6564 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
6565
6566 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6567
6568 * language.h (language_defn): Add new la_post_parser field.
6569 * parser-defs.h (null_post_parser): New declaration (default for
6570 la_post_parser).
6571
6572 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6573 insert call to that function.
6574 (parse_exp_in_context): New function, including code formerly in
6575 parse_exp_1. Calls language-dependent post-parser after
6576 prefixification.
6577 (parse_expression_in_context): New exported function.
6578 (null_post_parser): New definition.
6579 * expression.h (parse_expression_in_context): Add declaration.
6580
6581 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6582 * c-lang.c (c_language_defn): Ditto.
6583 (cplus_language_defn): Ditto.
6584 (asm_language_defn): Ditto.
6585 (minimal_language_defn): Ditto.
6586 * f-lang.c (f_language_defn): Ditto.
6587 * jv-lang.c (java_language_defn): Ditto.
6588 * language.c (unknown_language_defn): Ditto.
6589 (auto_language_defn): Ditto.
6590 (local_language_defn): Ditto.
6591 * m2-lang.c (m2_language_defn): Ditto.
6592 * scm-lang.c (scm_language_defn): Ditto.
6593 * obj-lang.c (objc_language_defn): Ditto.
6594
6595 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6596
6597 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6598 (amd64nbsd_mcontext_addr): New function.
6599 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6600 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6601 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6602
6603 * corelow.c (core_xfer_partial): Fix coding standards violation.
6604 Add support for TARGET_OBJECT_WCOOKIE.
6605
6606 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6607 deprecated_pc_in_sigtramp.
6608 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6609 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6610 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6611 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6612 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6613 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6614 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6615
6616 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6617 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6618 Fix typo.
6619
6620 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6621 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6622 (amd64_collect_fxsave): Likewise.
6623
6624 * i386-sol2-tdep.c: Include "gdb_string.h".
6625 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6626 name.
6627 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6628
6629 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6630
6631 * i386-sol2-tdep.c: Include "solib-svr4.h".
6632 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6633 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6634 * config/i386/tm-i386sol2.h: Include :solib.h".
6635 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6636 solib-svr4.o and solib-legacy.o.
6637 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6638 solib-svr4.o.
6639
6640 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6641
6642 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6643 whether a register is supplied by PTRACE_GETFPREGS.
6644 (store_inferior_registers): Likewise.
6645 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6646 whether a register is supplied by PT_GETFPREGS.
6647 (store_inferior_registers): Likewise.
6648
6649 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6650 * config/i386/linux64.mt (TDEPFILES): Likewise.
6651
6652 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6653
6654 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6655 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6656 the program counter is in the range specified by `struct
6657 gdbarch_tdep'.
6658 * amd64-linux-tdep.c: Include "symtab.h".
6659 (amd64_linux_pc_in_sigtramp): Remove function.
6660 (amd64_linux_sigtramp_p): New function.
6661 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6662 deprecated_pc_in_sigtramp.
6663 * amd64nbsd-tdep.c: Include "symtab.h".
6664 (amd64nbsd_sigtramp_p): New function.
6665 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6666 deprecated_pc_in_sigtramp.
6667 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6668 few comments.
6669 (amd64obsd_pc_in_sigtramp): Remove function.
6670 (amd64obsd_sigtramp_p): New function.
6671 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6672 deprecated_pc_in_sigtramp.
6673 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6674 (i386bsd_pc_ins_sigtramp): Remove prototype.
6675 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6676 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6677 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6678 the program counter is in the range specified by `struct
6679 gdbarch_tdep'.
6680 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6681 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6682 (i386_go32_pc_in_sigtramp): Remove function.
6683 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6684 Initialize TDEP->sigtramp_p.
6685 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6686 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6687 deprecated_pc_in_sigtramp.
6688 * i386-linux-tdep.c: Adjust comments.
6689 (i386_linux_pc_in_sigtramp): Remove function.
6690 (i386_linux_sigtramp_p): New function.
6691 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6692 deprecated_pc_in_sigtramp.
6693 * i386-nto-tdep.c: Update copyright year.
6694 (i386nto_pc_in_sigtramp): Remove function.
6695 (i386nto_sigtramp_p): New function.
6696 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6697 SP_REGNUM.
6698 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6699 deprecated_pc_in_sigtramp.
6700 * i386-sol2-tdep.c: Update copyright year.
6701 (i386_sol2_pc_in_sigtramp): Remove function.
6702 (i386_sol2_sigtramp_p): New function.
6703 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6704 deprecated_pc_in_sigtramp.
6705 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6706 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6707 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6708 deprecated_sigtramp_start and deprecated_sigtramp_end.
6709 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6710 (i386nbsd_pc_in_sigtramp): Remove function.
6711 (i386nbsd_sigtramp_p): New function.
6712 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6713 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6714 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6715 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6716 (i386obsd_pc_in_sigtramp): Remove function.
6717 (i386obsd_sigtramp_p): New function.
6718 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6719 functions.
6720 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6721 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6722 TDEP->sigtramp_p.
6723 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6724 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6725 dependencies.
6726
6727 * config/i386/i386aout.mt: Remove file.
6728
6729 * configure.tgt: Remove i[34567]86-*-go32*,
6730 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6731 and i[34567]86-*-isc*. Set gdb_target to i386 for
6732 i[34567]86-*-netware* and i[34567]86-*-*.
6733 * config/i386/i386.mt: New file.
6734 * config/i386/embed.mt: Remove file.
6735 * config/i386/go32.mt: Remove file.
6736 * config/i386/i386nw.mt: Remove file.
6737 * config/i386/i386v.mt: Remove file.
6738 * config/i386/tm-go32.h: Remove file.
6739
6740 * tui/tui-hooks.c: Include "readline/readline.h" after
6741 "gdb_curses.h" instead of before.
6742 * tui/tui-io.c: Likewise.
6743
6744 * tui/tui.c: Fix typo in comment.
6745
6746 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6747
6748 2004-04-08 Andrew Cagney <cagney@redhat.com>
6749
6750 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6751 (deprecated_exception_support_initialized): Declare.
6752 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
6753 (initialize_hp_cxx_exception_support)
6754 (child_enable_exception_callback): Update.
6755 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6756 (deprecated_exception_support_initialized): Rename
6757 deprecated_exception_catchpoints_are_fragile and
6758 deprecated_exception_support_initialized.
6759 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6760
6761 * symtab.c (deprecated_hp_som_som_object_present): Rename
6762 hp_som_som_object_present.
6763 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6764 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6765 Update. Delete extern declaration.
6766 * valops.c (hp_som_som_object_present): Ditto.
6767 * parse.c (deprecated_hp_som_som_object_present)
6768 (parse_nested_classes_for_hpacc): Ditto.
6769 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6770 * hppa-hpux-tdep.c (hp_som_som_object_present)
6771 (initialize_hp_cxx_exception_support): Ditto.
6772 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6773 * cp-valprint.c (hp_som_som_object_present)
6774 (cp_print_class_method): Ditto.
6775 * c-typeprint.c (hp_som_som_object_present):
6776 (c_type_print_base): Ditto.
6777 * c-exp.y (hp_som_som_object_present): Ditto.
6778
6779 2004-04-08 Andrew Cagney <cagney@redhat.com>
6780
6781 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6782 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6783 (frame_unwind_find_by_frame): Re-implement the unwind code so
6784 that it can both prepend and append sniffers. Replace
6785 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6786 * tramp-frame.c (tramp_frame_append): Use
6787 frame_unwind_prepend_unwinder.
6788 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6789 frame_unwind_register_unwinder.
6790 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6791 tramp_frame_append.
6792 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6793 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6794 (mips_linux_init_abi): Update.
6795
6796 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6797
6798 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6799 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6800 file support.
6801
6802 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6803
6804 * ia64-tdep.c (elf.h): Don't include.
6805 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6806
6807 2004-04-07 Jason Molenda (jmolenda@apple.com)
6808
6809 * frame.h: Typeo corrections in comments.
6810
6811 2004-04-07 Jim Blandy <jimb@redhat.com>
6812
6813 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6814 %esp and %ebp
6815
6816 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6817
6818 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6819 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6820 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6821 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6822 and solib-legacy.o.
6823 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6824 solib-svr4.o.
6825 * config/sparc/tm-sol2.h: Update copyright year. Include
6826 "solib.h".
6827
6828 * sparc-sol2-tdep.c: Update copyright year. Include
6829 "solib-svr4.h".
6830 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6831 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6832 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6833 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6834 dependencies.
6835
6836 2004-04-06 Andrew Cagney <cagney@redhat.com>
6837
6838 * infttrace.c: Include "infttrace.h".
6839 * infttrace.h: Include "target.h".
6840 * Makefile.in (infttrace_h): Update.
6841 (infttrace.o): Update.
6842
6843 2004-04-06 Andrew Cagney <cagney@redhat.com>
6844
6845 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6846 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6847 move extern declarations from here ...
6848 * infttrace.h: ... to here.
6849 * Makefile.in (hppah-nat.o): Update dependencies.
6850
6851 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6852 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6853 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6854 (hppa_breakpoint_from_pc): Delete.
6855
6856 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6857
6858 2004-04-05 Andrew Cagney <cagney@redhat.com>
6859
6860 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6861 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6862 <sys/file.h>.
6863
6864 2004-04-06 Randolph Chung <tausq@debian.org>
6865
6866 Committed by Andrew Cagney (mechanical change).
6867 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6868 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6869 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6870 child_enable_exception_callback, current_ex_event,
6871 null_symtab_and_line, child_get_current_exception_event,
6872 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6873 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6874 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6875 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6876 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6877 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6878 Move hpux-specific definitions ...
6879 * hppa-hpux-tdep.c: ... to here.
6880
6881 2004-04-05 Andrew Cagney <cagney@redhat.com>
6882
6883 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6884 skip_prologue_using_sal.
6885
6886 2004-04-05 Andrew Cagney <cagney@redhat.com>
6887
6888 * config/i386/tm-i386.h: Delete file.
6889 * config/i386/tm-vxworks.h: Update copyright, do not include
6890 "tm-i386.h".
6891 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6892 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6893 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6894 * config/i386/ncr3000.mt (TM_FILE): Delete.
6895 * config/i386/interix.mt (TM_FILE): Delete.
6896 * config/i386/i386v.mt (TM_FILE): Delete.
6897 * config/i386/i386nw.mt (TM_FILE): Delete.
6898 * config/i386/i386gnu.mt (TM_FILE): Delete.
6899 * config/i386/i386aout.mt (TM_FILE): Delete.
6900 * config/i386/embed.mt (TM_FILE): Delete.
6901
6902 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6903
6904 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6905 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6906 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6907 (accg7_regnum): New constants.
6908 (last_spr_regnum, last_pseudo_regnum): Update.
6909 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6910 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6911 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6912 for accg registers.
6913 (frv_register_sim_regno): Update spr_map[].
6914
6915 2004-04-04 Andrew Cagney <cagney@redhat.com>
6916
6917 * config/mips/xm-riscos.h: Delete.
6918 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6919 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6920 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6921 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6922 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6923 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6924 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6925 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6926 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6927 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6928 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6929 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6930 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6931 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6932 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6933 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6934 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6935 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6936 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6937 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6938 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6939 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6940 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6941 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6942 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6943 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6944
6945 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6946 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6947 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6948 * configure.host: Remove m680[01]0-sun-sunos3*,
6949 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6950 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6951 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6952 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6953 mips-*-riscos*.
6954 * NEWS: Mention removed systems.
6955
6956 2004-04-04 Andrew Cagney <cagney@redhat.com>
6957
6958 GDB 6.1 release created from 6.1 branch.
6959
6960 2004-04-04 Andrew Cagney <cagney@redhat.com>
6961
6962 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6963 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6964 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6965
6966 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6967 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6968 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6969
6970 2004-04-03 Jim Blandy <jimb@redhat.com>
6971
6972 * MAINTAINERS: Chris Faylor has changed employers; add him to
6973 "paper trail" section, and update his E-mail address.
6974
6975 2004-04-03 Andrew Cagney <cagney@redhat.com>
6976
6977 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6978 generic dummy frames.
6979 * dummy-frame.c: Update copyright.
6980 (dummy_frame_sniffer): Delete check for generic dummy frames.
6981
6982 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6983 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6984 (REG_PARM_STACK_SPACE): Delete.
6985 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6986 Inline reference to REG_PARM_STACK_SPACE.
6987
6988 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6989 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6990 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6991 (FRAME_BASE_BEFORE_SIGTRAMP)
6992 (hppa32_hpux_frame_base_before_sigtramp)
6993 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6994 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6995 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6996 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6997 (FRAME_BASE_BEFORE_SIGTRAMP)
6998 (hppa64_hpux_frame_base_before_sigtramp)
6999 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7000
7001 2004-04-03 Andrew Cagney <cagney@redhat.com>
7002
7003 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7004
7005 2004-04-02 Andrew Cagney <cagney@redhat.com>
7006
7007 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7008 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7009 * dummy-frame.h: Delete out-of-date comments.
7010 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7011 * gdbarch.h, gdbarch.c: Re-generate.
7012
7013 2004-04-02 Joel Brobecker <brobecker@gnat.com>
7014
7015 Committed by Andrew Cagney <cagney@redhat.com>.
7016 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7017 into account an instruction saving a register if we have already
7018 seen an earlier instruction saving that same register.
7019
7020 2004-04-02 Andrew Cagney <cagney@redhat.com>
7021
7022 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7023 * gdbarch.h, gdbarch.c: Re-generate.
7024 * frame.c (legacy_get_prev_frame): Delete references to
7025 DEPRECATED_INIT_FRAME_PC_FIRST.
7026
7027 * infrun.c (pc_in_sigtramp): Delete function.
7028 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7029 get_frame_type.
7030
7031 2004-04-02 Andrew Cagney <cagney@redhat.com>
7032
7033 * infrun.c (handle_step_into_function): Delete code conditional on
7034 legacy_frame_p.
7035 (handle_inferior_event, step_over_function): Ditto.
7036
7037 2004-04-02 Andrew Cagney <cagney@redhat.com>
7038
7039 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7040 "previous frame inner to this frame" test.
7041
7042 2004-04-02 Andrew Cagney <cagney@redhat.com>
7043
7044 * frame.c (safe_frame_unwind_memory): New function.
7045 * frame.h (safe_frame_unwind_memory): Declare. Update description
7046 of /safe_/ methods.
7047 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7048 "next_frame". Use safe_frame_unwind_memory.
7049 (tramp_frame_sniffer): Update call to tramp_frame_start.
7050
7051 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
7052
7053 * dwarf2read.c (dwarf2_objfile_data_key): New.
7054 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7055 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7056 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7057 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7058 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7059 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7060 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7061 Remove variables.
7062 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7063 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7064 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7065 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7066 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7067 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7068 Remove macros.
7069 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7070 data.
7071 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7072 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7073 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7074 (read_partial_die, read_full_die, read_indirect_string)
7075 (dwarf_decode_line_header, dwarf_decode_macros)
7076 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7077 Update uses of removed variables.
7078 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7079 of removed macros.
7080 (_initialize_dwarf2_read): New function.
7081 * symfile.h (dwarf2_has_info): Update prototype.
7082 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7083 * elfread.c (elf_symfile_read): Likewise.
7084
7085 2004-04-01 Jim Blandy <jimb@redhat.com>
7086
7087 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7088 function for register numbers on all the rs6000-derived targets.
7089 (rs6000_gdbarch_init): Don't register a separate
7090 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7091 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7092 variants.
7093
7094 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7095 numbering.
7096
7097 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7098
7099 * valarith.c: Update copyright notice.
7100 (value_add): Handle range types.
7101 (value_sub): Ditto.
7102 (value_equal): Ditto.
7103 (value_less): Ditto.
7104 (value_neg): Ditto.
7105 (value_complement): Ditto.
7106 (value_binop): Simplify slightly by using is_integral_type and
7107 eliminiating unnecessary COERCE_ENUMs.
7108
7109 2004-03-31 Andrew Cagney <cagney@redhat.com>
7110
7111 * frame.h (frame_unwind_id): Declare.
7112 * frame.c (frame_unwind_id): New function.
7113 (get_prev_frame_1): New function.
7114 (frame_debug_got_null_frame): New function.
7115 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7116 code proper to prev_frame, update description.
7117 * infrun.c (step_over_function): Use frame_unwind_id.
7118
7119 2004-04-31 J. Brobecker <brobecker@gnat.com>
7120
7121 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7122 (hppa64_push_dummy_call): Likewise.
7123
7124 2004-03-30 Jim Blandy <jimb@redhat.com>
7125
7126 From Ulrich Weigand:
7127 * utils.c (query): Do not use a va_list variable multiple times.
7128
7129 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7130
7131 * Makefile.in (linux_nat_h): Update dependencies.
7132 * configure.in: Check for <gnu/libc-version.h>.
7133 * configure: Regenerate.
7134 * config.in: Regenerate.
7135 * linux-nat.h: Include "target.h". Add waitstatus field to
7136 struct lwp_info.
7137 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7138 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7139 to.
7140 (lin_lwp_handle_extended): New function. Handle clone events.
7141 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7142 thread exit events.
7143 (child_wait): Handle clone events.
7144 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7145 * linux-nat.c (linux_enable_event_reporting): Turn on
7146 PTRACE_O_TRACECLONE.
7147 (linux_handle_extended_wait): Handle clone events.
7148 * thread-db.c: Include <gnu/libc-version.h>.
7149 (struct private_thread_info): Add dying flag.
7150 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7151 higher.
7152 (attach_thread): Update comments. Handle dying threads.
7153 (detach_thread): Set the dying flag.
7154 (check_event): Always call attach_thread.
7155
7156 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7157
7158 * mips-tdep.c (mips_pdr_data): New.
7159 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7160 (_initialize_mips_tdep): Initialize mips_pdr_data.
7161
7162 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
7163
7164 * minsyms.c (install_minimal_symbols): Move dropping leading
7165 char from linkage name from here...
7166 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7167 test for "__gnu_compiled*" symbols.
7168
7169 2004-03-28 Jim Blandy <jimb@redhat.com>
7170
7171 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7172 registers to temp register r0 and byte stores as prologue
7173 instructions.
7174
7175 2004-03-28 Andrew Cagney <cagney@redhat.com>
7176
7177 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7178 arm*-*-*.
7179
7180 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7181
7182 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7183 and switch the layout to force a display of register window.
7184
7185 2004-02-26 J. Brobecker <brobecker@gnat.com>
7186
7187 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7188 of the INTEGER class.
7189
7190 2004-03-26 Jim Blandy <jimb@redhat.com>
7191
7192 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7193 bytes long on PPC GNU/Linux.
7194
7195 2004-03-26 David Carlton <carlton@kealia.com>
7196
7197 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7198
7199 2004-03-25 Andrew Cagney <cagney@redhat.com>
7200
7201 * PROBLEMS: Add general section titles, remove references to
7202 specific releases.
7203
7204 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
7205
7206 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7207 INT_REGISTER_SIZE.
7208 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7209 FP_REGISTER_VIRTUAL_SIZE.
7210 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7211 of DEPRECATED_REGISTER_RAW_SIZE.
7212 (arm_register_type): Add gdbarch argument.
7213 (arm_register_raw_size, arm_register_virtual_size): Delete.
7214 (arm_register_byte, arm_extract_return_value)
7215 (arm_store_return_value, arm_get_longjmp_target): Update references
7216 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7217 (arm_gdbarch_init): Likewise. Don't set
7218 deprecated_register_raw_size, deprecated_register_virtual_size,
7219 deprecated_max_register_raw_size,
7220 deprecated_max_register_virtual_size, or
7221 deprecated_max_register_virtual_type. Do set register_type.
7222 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7223 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7224 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7225 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7226 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7227 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7228 INT_REGISTER_SIZE.
7229 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7230 (remote_rdp_store_register): Likewise.
7231
7232 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
7233
7234 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7235 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7236 to after osabi initialization.
7237 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7238 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7239 functions.
7240 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7241 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7242 variables.
7243 (mips_linux_init_abi): Append signal trampoline unwinders.
7244
7245 2004-03-24 Andrew Cagney <cagney@redhat.com>
7246
7247 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7248 * tramp-frame.c: Include "gdb_assert.h".
7249 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7250 correct sizeof.
7251 (tramp_frame_append): Validate the tramp frame's instructions.
7252 * Makefile.in (tramp-frame.o): Update dependencies.
7253
7254 2004-03-23 Andrew Cagney <cagney@redhat.com>
7255
7256 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7257
7258 2004-03-23 Andrew Cagney <cagney@redhat.com>
7259
7260 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7261 Nasser as past testsuite/lib/ (and other) maintainers.
7262
7263 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7264
7265 * infcmd.c (attach_command): Reread symbols if we already have
7266 an exec file.
7267
7268 2004-03-23 Andrew Cagney <cagney@redhat.com>
7269
7270 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7271
7272 2004-03-23 Andrew Cagney <cagney@redhat.com>
7273
7274 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7275 * gdbarch.h, gdbarch.c: Re-generate.
7276 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7277 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7278 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7279 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
7280 (DEPRECATED_SIGTRAMP_START): Update.
7281 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
7282 (DEPRECATED_SIGTRAMP_START): Update.
7283 * blockframe.c (find_pc_sect_partial_function): Update.
7284 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7285
7286 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7287
7288 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7289 if necessary.
7290
7291 2004-03-23 Andrew Cagney <cagney@redhat.com>
7292
7293 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7294 predicate, deprecate.
7295 * gdbarch.h, gdbarch.c: Re-generate.
7296 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7297 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7298 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7299 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7300 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7301 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7302 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7303 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7304 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7305 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7306 * blockframe.c (find_pc_partial_function): Update.
7307 * breakpoint.c (bpstat_what): Update.
7308 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7309 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7310 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7311 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7312 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7313 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7314 * i386-nto-tdep.c (i386nto_init_abi): Update.
7315 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7316 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7317 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7318 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7319 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7320 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7321 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7322 * infrun.c (pc_in_sigtramp): Update.
7323 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7324 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7325 * mips-tdep.c (mips_gdbarch_init): Update.
7326 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7327 * ppc-linux-tdep.c: Update comment.
7328 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7329 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7330 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7331 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7332 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7333 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7334 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7335 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7336 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7337 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
7338
7339 2004-03-23 Andrew Cagney <cagney@redhat.com>
7340
7341 * tramp-frame.h, tramp-frame.h: New files.
7342 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7343 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7344
7345 * Makefile.in: Update all dependencies.
7346
7347 2004-03-23 Andrew Cagney <cagney@redhat.com>
7348
7349 * Makefile.in (trad_frame_h): Add $(frame_h).
7350 * trad-frame.h: Update copyright. Include "frame.h".
7351 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7352 (trad_frame_set_id, trad_frame_get_id): Declare.
7353 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7354 * trad-frame.c: Update copyright.
7355 (struct trad_frame_cache): Define.
7356 (trad_frame_cache_zalloc): New function.
7357 (trad_frame_set_id, trad_frame_get_id): New functions.
7358 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
7359
7360 2004-03-22 Andrew Cagney <cagney@redhat.com>
7361
7362 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7363 s390_pltstub_unwind_cache.
7364 (s390_stub_frame_unwind_cache): Rename
7365 s390_pltstub_frame_unwind_cache.
7366 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7367 (s390_stub_frame_prev_register): Rename
7368 s390_pltstub_frame_prev_register.
7369 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7370 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7371
7372 From Ulrich Weigand:
7373 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7374 pointer calls like PLT calls.
7375
7376 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7377
7378 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7379 PC rather than the partial function start address. Use the start
7380 address to sanity check the found PDR.
7381
7382 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7383
7384 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7385 linux_handle_extended_wait.
7386
7387 2004-03-22 Andrew Cagney <cagney@redhat.com>
7388
7389 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7390 function.
7391
7392 * frame.h (generic_pop_current_frame): Delete declaration.
7393 (deprecate_pop_dummy_frame): Deprecate
7394 generic_pop_dummy_frame.
7395 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7396 (generic_pop_current_frame): Delete function.
7397 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7398 generic_pop_current_frame.
7399 * v850-tdep.c (v850_pop_frame): Update.
7400 * mcore-tdep.c (mcore_pop_frame): Update.
7401 * sh64-tdep.c (sh64_pop_frame): Update.
7402 * h8300-tdep.c (h8300_pop_frame): Update.
7403
7404 2004-03-22 Andrew Cagney <cagney@redhat.com>
7405
7406 * frame.h (deprecated_pc_in_call_dummy): Rename
7407 generic_pc_in_call_dummy.
7408 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7409 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7410 generic_pc_in_call_dummy.
7411 (pc_in_dummy_frame): Make static.
7412 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7413 * gdbarch.h, gdbarch.c: Re-generate.
7414 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7415 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7416 (legacy_get_prev_frame): Ditto.
7417 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7418 comment.
7419
7420 2004-03-21 Andrew Cagney <cagney@redhat.com>
7421
7422 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7423 declaration and out-of-date comment.
7424 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7425 Delete function.
7426 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7427 deprecated_pc_in_call_dummy.
7428
7429 * infrun.c (handle_inferior_event): For non legacy frames, use the
7430 frame ID and frame type to identify a signal trampoline. Update
7431 comments.
7432
7433 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7434
7435 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7436 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7437
7438 2004-03-21 Andrew Cagney <cagney@redhat.com>
7439
7440 * frame-unwind.h: Update copyright.
7441 (struct frame_data): Add opaque declaration.
7442 (frame_sniffer_ftype): Declare.
7443 (struct frame_unwind): Add "unwind_data" and "sniffer".
7444 (frame_unwind_register_unwinder): Declare.
7445 (frame_unwind_find_by_frame): Add parameter "this_cache".
7446 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7447 (legacy_get_prev_frame, legacy_get_prev_frame)
7448 (get_frame_type): Pass the prologue_cache to
7449 frame_unwind_find_by_frame.
7450 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7451 "unwinder".
7452 (frame_unwind_register_unwinder): New function.
7453 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7454
7455 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7456
7457 * bcache.c (print_percentage): Use floating point to avoid
7458 incorrect results when portion*100 overflows.
7459
7460 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7461
7462 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7463 (ppc_linux_init_extra_frame_info)
7464 (ppc_linux_frameless_function_invocation)
7465 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7466 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7467 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7468 (rs6000_frame_chain): Delete declarations.
7469 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7470 (ppc_linux_init_extra_frame_info)
7471 (ppc_linux_frameless_function_invocation)
7472 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7473 (ppc_linux_init_abi): Remove registration of above deleted functions.
7474 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7475 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7476 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7477 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7478 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7479 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7480 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7481 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7482 frame management for all OSABIs.
7483
7484 2004-03-19 Andrew Cagney <cagney@redhat.com>
7485
7486 Committed by Kevin Buettner <kevinb@redhat.com>.
7487
7488 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7489 Update copyright.
7490 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7491 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7492 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7493 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7494 unwinders. #ifdef legacy frame code.
7495 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7496 "frame-base.h".
7497 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7498 (struct rs6000_frame_cache, rs6000_frame_cache)
7499 (rs6000_frame_this_id, rs6000_frame_prev_register)
7500 (rs6000_frame_sniffer, rs6000_frame_unwind)
7501 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7502 (rs6000_frame_base): Implement a traditional frame unwinder.
7503 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7504 frame unwinder.
7505
7506 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7507
7508 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7509 breakpoint address for watchpoints or the catch eventpoints.
7510 Add new paramter ``bptype''. Adjust all callers.
7511
7512 2004-03-19 Andrew Cagney <cagney@redhat.com>
7513
7514 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7515
7516 * PROBLEMS: Delete note that ARM does not use frame code, problem
7517 fixed.
7518
7519 2004-03-18 Andrew Cagney <cagney@redhat.com>
7520
7521 * stack.c (return_command): Delete code wrapped in #ifdef
7522 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7523
7524 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7525
7526 2004-03-18 Andrew Cagney <cagney@redhat.com>
7527
7528 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7529 DEPRECATED_IN_SIGTRAMP.
7530 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7531 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7532 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7533 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7534 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7535 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7536 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7537 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7538 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7539 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7540
7541 2004-03-18 Andrew Cagney <cagney@redhat.com>
7542
7543 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7544 (struct frame_base_table_entry): Define.
7545 (struct frame_base_table): Re-implement as a linked list.
7546 (frame_base_init): Re-implement.
7547 (frame_base_table): Delete function.
7548 (append_predicate): Delete function.
7549 (frame_base_append_sniffer): Update.
7550 (frame_base_set_default): Update.
7551 (frame_base_find_by_frame): Update.
7552 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7553 * Makefile.in (frame-base.o): Update dependencies.
7554
7555 2004-03-17 Andrew Cagney <cagney@redhat.com>
7556
7557 * frame.c (legacy_get_prev_frame): Pass correct frame to
7558 frame_unwind_find_by_frame.
7559
7560 2004-03-17 David Carlton <carlton@kealia.com>
7561
7562 * NEWS: Mention C++ nested types and namespaces
7563
7564 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7565
7566 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7567 and "Regressions since gdb 5.3.". Add known regressions since
7568 gdb 6.0.
7569
7570 2004-03-16 David Carlton <carlton@kealia.com>
7571
7572 * dwarf2read.c (process_structure_scope): Process children even
7573 when we're a declaration.
7574
7575 2004-03-16 Andrew Cagney <cagney@redhat.com>
7576
7577 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7578 * blockframe.c (find_pc_partial_function)
7579 (find_pc_sect_partial_function): Merge into a single
7580 find_pc_partial_function.
7581
7582 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7583
7584 * i386bsd-nat.c: s/regno/regnum/g.
7585 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7586 FP0_REGNUM.
7587 (store_inferior_registers): Likewise.
7588
7589 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7590
7591 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7592 of i387_fill_fsave.
7593 (store_inferior_registers): Call i387_collect_fsave and
7594 i387_collect_fxsave instead of i387_fill_fsave and
7595 i387_fill_fxsave.
7596
7597 2004-03-15 Andrew Cagney <cagney@redhat.com>
7598
7599 * Makefile.in (frame-unwind.o): Update dependencies.
7600 * frame-unwind.c: Include "gdb_obstack.h".
7601 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7602 parameter.
7603 (append_predicate): Delete function.
7604 (struct frame_unwind_table_entry): New structure.
7605 (struct frame_unwind_table): Replace "sniffer" with "head" and
7606 "tail".
7607 (frame_unwind_append_sniffer): Update.
7608 (frame_unwind_find_by_frame): Update.
7609 (_initialize_frame_unwind): Registe frame_unwind_init using
7610 gdbarch_data_register_pre_init.
7611
7612 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7613
7614 * i386bsd-nat.c: Update copyright year.
7615 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7616 define unconditionally.
7617
7618 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7619
7620 * i387-tdep.h (i387_collect_fsave): New prototype.
7621 * i387-tdep.c (i387_collect_fsave): New function containing most
7622 of the code from i387_fill_fsave.
7623 (i387_fill_fsave): Call i387_collect_fsave.
7624
7625 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7626
7627 * i386-linux-tdep.c: Update copyright year.
7628 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7629 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7630 svr4_ilp32_link_map_offsets instead of
7631 i386_linux_svr4_fetch_link_map_offsets.
7632
7633 2004-03-15 David Carlton <carlton@kealia.com>
7634
7635 Fix for PR c++/1553:
7636 * dwarf2read.c (read_structure_type): Determine type name by
7637 calling determine_class_name.
7638 (determine_class_name): New.
7639 (determine_prefix): Look at TYPE_TAG_NAME and call
7640 determine_class_name when appropriate.
7641 (determine_prefix_aux, class_name): Delete.
7642 (read_namespace): Set die->type.
7643
7644 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7645
7646 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7647 unused macro definition. The definition in target.h (or perhaps
7648 elsewhere) takes precedence.
7649
7650 2004-03-15 Andrew Cagney <cagney@redhat.com>
7651
7652 * ppc-tdep.h: Update copyright.
7653 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7654 function signatures to match "regsets.h".
7655 * ppc-linux-tdep.c: Include "regset.h".
7656 (ELF_GREGSET_SIZE): Delete.
7657 (right_supply_register): New function.
7658 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7659 using right_supply_register.
7660 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7661 functions.
7662 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7663 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7664 (_initialize_ppc_linux_tdep): Do not register
7665 ppc_linux_regset_core_fns.
7666 (ppc_linux_regset_from_core_section): Replace
7667 fetch_core_registers.
7668 (ppc_linux_regset_core_fns): Delete.
7669 * ppc-linux-nat.c: (right_fill_reg): New function.
7670 (supply_gregset): Update call to ppc_linux_supply_gregset.
7671 (fill_gregset): Clear the register set, use right_fill_reg.
7672 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7673 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7674
7675 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7676 unsigned.
7677
7678 2004-03-15 Andrew Cagney <cagney@redhat.com>
7679
7680 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7681 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7682 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7683 and register_gdbarch_data.
7684 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7685 (struct gdbarch_data): Replace "init" by "pre_init" and
7686 "post_init".
7687 * gdbarch.h, gdbarch.c: Re-generate.
7688 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7689 with"obstack", use OBSTACK_ZALLOC.
7690 (dwarf2_frame_ops): Delete.
7691 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7692 (dwarf2_frame_init_reg): Use gdbarch_data.
7693 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7694 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7695 (_initialize_svr4_solib): Update.
7696 * user-regs.c (_initialize_user_regs): Update.
7697 * reggroups.c (_initialize_reggroup): Update.
7698 * regcache.c (_initialize_regcache): Update.
7699 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7700 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7701 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7702 * frame-unwind.c (_initialize_frame_unwind): Update.
7703 * frame-base.c (_initialize_frame_base): Update.
7704 * user-regs.c (user_reg_add): Update.
7705 * reggroups.c (reggroup_add): Update.
7706 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7707 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7708 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7709 * frame-base.c (frame_base_table): Update.
7710 * remote.c (_initialize_remote): Update.
7711 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7712
7713 2004-03-15 Andrew Cagney <cagney@redhat.com>
7714
7715 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7716
7717 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7718
7719 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7720 * frv-linux-tdep.c: New file.
7721 * frv-tdep.c (struct gdbarch_tdep): Add new field
7722 ``sigcontext_reg_addr''.
7723 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7724 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7725 (frv_sigramp_frame_sniffer): New functions.
7726 (frv_sigtramp_frame_unwind): New static global.
7727 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7728 sniffers.
7729 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7730 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7731
7732 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7733
7734 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7735 but not via a call to error(), when unable to read memory.
7736
7737 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7738
7739 * frv-tdep.c (frv_call_dummy_words): Delete.
7740 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7741
7742 2004-03-15 Andrew Cagney <cagney@redhat.com>
7743
7744 * infrun.c (handle_step_into_function, step_over_function): Only
7745 update and use STEP_FRAME_ID when the system is using legacy
7746 frames. Update comments.
7747
7748 2004-03-14 Mark Kettenis <kettenis@gnu.org>
7749
7750 * amd64-linux-tdep.h: Remove file.
7751 * amd64-linux-tdep.c: Don't include "inferior.h" and
7752 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7753 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7754 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7755 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7756 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7757 macros.
7758 (user_to_gdb_regmap): Remove variable.
7759 (amd64_linux_gregset_reg_offset): New variable.
7760 (amd64_core_fns): Remove variable.
7761 (fetch_core_registers): Remove function.
7762 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7763 functions.
7764 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7765 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7766 * Makefile.in (amd64_linux_tdep_h): Remove.
7767 (amd64-linux-nat.o): Update dependencies.
7768 (amd64-linux-tdep.o): Update dependencies.
7769
7770 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7771 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7772 functions.
7773 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7774
7775 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7776 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7777
7778 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7779
7780 * dwarf2read.c (read_structure_type): Rename from
7781 read_structure_scope. Don't create a symbol or call process_die.
7782 Return immediately if die->type is set. Call read_type_die before
7783 dwarf2_add_member_fn.
7784 (process_structure_scope): New function.
7785 (read_enumeration_type, process_enumeration_scope): New functions,
7786 broken out from read_enumeration. Don't create the enumeration
7787 type if it has already been created.
7788 (read_enumeration): Removed.
7789 (process_die): Call read_structure_type, process_structure_scope,
7790 read_enumeration_type, and process_enumeration_scope. Just call
7791 new_symbol for base and subrange types. Add a comment about other
7792 type dies.
7793 (read_type_die): Call read_enumeration_type.
7794 (add_partial_structure, new_symbol): Update comments.
7795
7796 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7797
7798 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7799
7800 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7801
7802 * tui/tui-win.h (tui_get_cmd_list): Declare.
7803 * tui/tui-win.c (tui_command): New function.
7804 (tui_get_cmd_list): New function.
7805 (_initialize_tui_win): Moved initialization of tui command in
7806 tui_get_cmd_list.
7807
7808 * tui/tui-data.c (init_content_element): Setup new data members.
7809 (init_win_info): Likewise.
7810 (free_content_elements): Free it.
7811 * tui/tui-data.h (struct tui_data_element): Store the register
7812 content to print.
7813 (struct tui_data_info): Keep the current register group.
7814
7815 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7816
7817 * tui/tui-regs.h (tui_show_registers): Update prototype.
7818 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7819 (tui_resize_all): No need to calculate anything for register window.
7820 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7821 (tui_set_register_element, tui_set_general_regs_content): Remove.
7822 (tui_set_special_regs_content): Remove.
7823 (tui_set_general_and_special_regs_content): Remove.
7824 (tui_set_float_regs_content): Remove.
7825 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7826 (tui_set_regs_content): Remove.
7827 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7828 (tui_v_show_registers_command_support): Remove.
7829 (tui_show_registers): Use a reggroup to specify the registers to show.
7830 (tui_show_register_group): New function.
7831 (tui_display_registers_from): Compute the layout of register window
7832 and refresh with new API; be sure to delete old register windows.
7833 (tui_check_register_values): Update to use tui_get_register and
7834 tui_display_data.
7835 (tui_display_register): Just refresh the register window part.
7836 (tui_register_format): Format registers and save in tui_data_element.
7837 (tui_get_register): New to combine tui_reg_value_has_changed and
7838 tui_get_register_raw_value; fix to use the new gdb API.
7839 (tui_show_float_command): Renamed tui_reg_float_command.
7840 (tui_show_general_command): Renamed tui_reg_general_command.
7841 (tui_show_special_command): Renamed tui_reg_system_command.
7842 (_initialize_tui_regs): Remove unused commands.
7843
7844 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7845
7846 * NEWS (New native configurations): Mention OpenBSD/amd64.
7847
7848 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7849 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7850 Remove defines.
7851 * config/i386/nm-fbsd64.h: Likewise.
7852 * config/i386/nm-obsd.h: Likewise.
7853 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7854 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7855
7856 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7857
7858 * frv-tdep.c (set_variant_scratch_registers): New function.
7859 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7860 New constants.
7861
7862 From Richard Sandiford <rsandifo@redhat.com>:
7863 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7864
7865 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7866
7867 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7868 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7869 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7870 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7871 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7872 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7873 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7874 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7875 definitions from frv-tdep.c to frv-tdep.h.
7876
7877 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7878
7879 Add shared library support for FR-V FDPIC ABI:
7880 * Makefile.in (solib-frv.o): Add dependencies.
7881 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7882 New functions.
7883 (frv_push_dummy_call): Add support for FDPIC ABI.
7884 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7885 for FDPIC ABI.
7886 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7887 (frv_fdpic_find_canonical_descriptor): Declare.
7888 * solib-frv.c: New file.
7889 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7890 * config/frv/tm-frv.h (solib.h): Include.
7891
7892 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7893
7894 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7895 (frv-tdep.o): Update dependencies.
7896 * frv-tdep.h: New file.
7897 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7898 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7899 constants.
7900 (struct gdbarch_tdep): Add new member ``frv_abi''.
7901 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7902 functions.
7903 (new_variant): Set ``frv_abi'' field.
7904 (gdb_arch_init): Detect FDPIC executables.
7905
7906 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7907
7908 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7909 wrapper.
7910
7911 2004-03-11 Andrew Cagney <cagney@redhat.com>
7912
7913 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7914
7915 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7916
7917 * solist.h (master_so_list): New function.
7918 * solib.c (master_so_list): Likewise.
7919 * solib-svr4.c (enable_break): Iterate over so_list entries
7920 obtained from master list instead of entries obtained directly
7921 via svr4_current_sos().
7922
7923 2004-03-10 Ben Elliston <bje@gnu.org>
7924
7925 * MAINTAINERS: Update my mail address.
7926
7927 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7928
7929 * remote-m32r-sdi.c: Support hardware watchpoint.
7930
7931 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7932
7933 * user-regs.c: Update copyright years.
7934 (struct user_regs): Rename to gdb_user_regs.
7935 (append_user_reg, builtin_user_regs, user_regs_init)
7936 (user_reg_add, user_reg_map_name_to_regnum)
7937 (usernum_to_user_reg): Update.
7938
7939 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7940
7941 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7942 (skip_children): New functions.
7943 (locate_pdi_sibling): Call skip_children.
7944
7945 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7946
7947 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7948 * gdbtypes.c (check_typedef): Update comments.
7949
7950 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7951
7952 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7953 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7954 pointer. Update comment about comp_unit_head.
7955 (struct abbrev_info): Shorten two int flags.
7956 (dwarf_alloc_abbrev): Take a CU argument.
7957 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7958 each time through the loop. Update cleanup argument.
7959 (psymtab_to_symtab_1): Update cleanup call.
7960 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7961 abbrev_obstack.
7962 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7963 Just call obstack_free and clear the pointer.
7964
7965 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7966
7967 * infrun.c (handle_inferior_event): Remove short-circuit code for
7968 events in a different thread.
7969
7970 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7971
7972 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7973 print the whole transfer.
7974 (initialize_targets): Update description of "set debug target".
7975
7976 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7977
7978 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7979
7980 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7981
7982 * MAINTAINERS (write after approval): Add myself.
7983
7984 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7985
7986 * sh-tdep.c (sh_print_registers_info): Use for loop.
7987 Don't skip multiple registers when a float register is encountered.
7988
7989 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7990
7991 Fix PR tdep/1291.
7992 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7993 to official SH documentation.
7994
7995 2004-03-07 Andrew Cagney <cagney@redhat.com>
7996
7997 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7998 unused function.
7999
8000 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
8001
8002 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8003 (arm_get_next_pc): Handle BX and BLX.
8004
8005 2004-03-07 Andrew Cagney <cagney@redhat.com>
8006
8007 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8008 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8009 HPPA_SP_REGNUM.
8010 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8011 (hppa_target_read_fp): Delete.
8012 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8013 register_virtual_size, max_register_raw_size,
8014 max_register_virtual_size, register_byte, register_size,
8015 target_read_fp, fp_regnum, and register_bytes. Set register_type
8016 instead of register_virtual_type.
8017 (hppa32_register_type, hppa64_register_type): Replace
8018 hppa32_register_virtual_type and hppa64_register_virtual_type.
8019 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8020 (HPPA_FP_REGNUM): Define.
8021
8022 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8023
8024 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8025 (pa_do_registers_info): Delete.
8026 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8027 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
8028 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
8029
8030 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8031 GDB_TARGET_IS_HPPA code.
8032 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8033 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
8034 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8035 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8036 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8037 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8038 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
8039 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8040 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8041 (hppa_frameless_function_invocation, hppa64_store_return_value)
8042 (hppa_store_struct_return, hppa64_extract_return_value)
8043 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8044 (hppa32_call_dummy_length, hppa64_call_dummy_length)
8045 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8046 (find_proc_framesize, deposit_21, restore_pc_queue)
8047 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
8048 (rp_saved, pc_in_linker_stub): Delete.
8049
8050 Unconditionally enable 64-bit frame and ABI code.
8051 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8052 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8053 push_dummy_frame, fix_call_dummy, push_arguments,
8054 call_dummy_location, extract_return_value, use_struct_convention,
8055 store_return_value, store_struct_return, saved_pc_after_call,
8056 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8057 frame_chain, frame_chain_valid, frameless_function_invocation,
8058 frame_saved_pc, and pop_frame.
8059
8060 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8061 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8062 (hppa_gdbarch_init): Do not set PC_REGNUM.
8063
8064 2004-03-06 Mark Kettenis <kettenis@gnu.org>
8065
8066 * config/alpha/tm-fbsd.h: Remove file.
8067 * config/alpha/fbsd.mt: Tweak comment.
8068 (TM_FILE): Set to tm-alpha.h.
8069
8070 2004-03-05 Andrew Cagney <cagney@redhat.com>
8071
8072 * infrun.c (step_over_function): When non-legacy code, and no
8073 step_frame_id, use the unwinder to get the caller's frame ID.
8074
8075 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8076
8077 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8078 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8079 bfd_arch_unknown. Adjust comment.
8080
8081 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8082 * i386obsd-tdep.c: Correct spelling in comment.
8083 * i386nbsd-tdep.c: Correct spelling in comment.
8084 * sparc-tdep.c: Correct spelling in comments.
8085
8086 2004-03-05 David Carlton <carlton@kealia.com>
8087
8088 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8089 bug.
8090
8091 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8092
8093 * sparc-tdep.c: Fix typo in comment.
8094
8095 2004-03-04 J. Brobecker <brobecker@gnat.com>
8096
8097 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8098
8099 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
8100
8101 * dwarf2read.c: Add comment describing memory lifetimes.
8102 (struct dwarf2_pinfo): Update comment.
8103 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8104 (read_enumeration, new_symbol): Don't use obsavestring.
8105
8106 2004-03-04 Mark Kettenis <kettenis@gnu.org>
8107
8108 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8109 instead of amd64_fill_fxsave.
8110 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8111 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8112
8113 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8114 Reorganize code a bit.
8115
8116 2004-03-04 Orjan Friberg <orjanf@axis.com>
8117
8118 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8119 when the frame pointer is pushed. Don't set the frame pointer's
8120 address on the stack unless it's actually located there.
8121 Set the SRP's address on the stack correctly when the PC is still in
8122 the prologue.
8123 (cris_return_value): New function.
8124 (cris_gdbarch_init): Clear deprecated store_return_value,
8125 extract_return_value.
8126
8127 2004-03-02 Jim Blandy <jimb@redhat.com>
8128
8129 * stabsread.c (reg_value_complaint): The maximum register number
8130 is one less than the number of registers.
8131
8132 2004-03-02 Andrew Cagney <cagney@redhat.com>
8133
8134 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8135 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8136 trailing comma and redundant assignment of I386_ST0_REGNUM.
8137 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8138 32-bit segment registers.
8139
8140 2004-03-01 Andrew Cagney <cagney@redhat.com>
8141
8142 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8143 use frame_relative_level and get_next_frame.
8144
8145 2004-02-29 Andrew Cagney <cagney@redhat.com>
8146
8147 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8148 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8149 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8150 Delete macro.
8151
8152 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8153
8154 * inflow.c (terminal_inferior): Don't give up the terminal if we
8155 previously couldn't get the inferior's terminal state.
8156
8157 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8158
8159 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8160 PC_REGNUM.
8161
8162 2004-02-28 Andrew Cagney <cagney@redhat.com>
8163
8164 * NEWS: Refer to GDB 6.1.
8165 * README: Refer to GDB 6.1.
8166 * PROBLEMS: Refer to GDB 6.1.
8167
8168 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
8169
8170 * thread-db.c (disable_thread_signals): Remove unused function.
8171
8172 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8173
8174 * amd64-nat.c: Include "gdb_string.h".
8175 (amd64_collect_native_gregset): Zero-extend the 32-bit
8176 general-purpose registers and %eip.
8177
8178 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8179 * amd64-tdep.c (amd64_collect_fxsave): New function.
8180 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8181
8182 * i387-tdep.h: Update copyright year.
8183 (i387_collect_fxsave): New prototype.
8184 * i387-tdep.c: Update copyright year.
8185 (i387_collect_fxsave): New function containing most of the code
8186 from i387_fill_fxsave.
8187 (i387_fill_fxsave): Call i387_collect_fxsave.
8188
8189 2004-02-28 Andrew Cagney <cagney@redhat.com>
8190
8191 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8192 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8193
8194 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8195
8196 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8197
8198 2004-02-28 Andrew Cagney <cagney@redhat.com>
8199
8200 * utils.c: Use "", instead of <>, to include readline.
8201 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8202 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8203 * source.c, solib.c, exec.c, event-top.c: Ditto.
8204 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8205 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8206 * Makefile.in: Update all dependencies.
8207 (readline_tilde_h, readline_history_h): Define.
8208 (readline_headers): Delete.
8209
8210 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8211
8212 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8213 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8214 "config/i386/tm-lx64.h".
8215
8216 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8217 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8218 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8219
8220 2004-02-28 Andrew Cagney <cagney@redhat.com>
8221
8222 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8223
8224 * breakpoint.c (_initialize_breakpoint): Use
8225 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8226 Add help to show command.
8227
8228 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8229
8230 * i386-nat.c: Reformat to be closer to coding standards.
8231 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8232 `retval'. Make variables `align' and `size' local to while-loop.
8233 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8234 (_initialize_i386_nat): New prototype.
8235
8236 * tui/tui.c: Include <readline/readline.h> instead of
8237 "readline/readline.h". Include it after <term.h> and
8238 "gdb_curses.h".
8239
8240 2004-02-27 Andrew Cagney <cagney@redhat.com>
8241
8242 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8243 the new frame unwind code.
8244 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8245 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8246 PCOQ_HEAD_REGNUM.
8247
8248 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8249 "return_value" and "push_dummy_call".
8250 (hppa32_use_struct_convention): Delete unused function.
8251 (hppa32_store_return_value): Delete unused function.
8252 (hppa32_extract_return_value): Delete unused function.
8253 (hppa32_stack_align): Delete function.
8254
8255 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
8256
8257 * coffread.c (enter_linenos): Don't let rawptr reference memory
8258 outside linetab[]'s limits.
8259
8260 2004-02-27 Andrew Cagney <cagney@redhat.com>
8261
8262 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8263 inferior stack space - the stack needs to grow upwards.
8264 (hppa32_frame_align): New function.
8265 (hppa64_frame_align): Replace hppa_frame_align.
8266 (hppa_gdbarch_init): Update.
8267
8268 2004-02-26 Orjan Friberg <orjanf@axis.com>
8269
8270 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8271 (dwarf2-frame.h): Include.
8272 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8273 Remove static variables related to ABI setting.
8274 (struct gdbarch_tdep): Remove cris_abi member.
8275 (struct frame_extra_info): Remove.
8276 (cris_unwind_cache, stack_item): New structs.
8277 (cris_frame_unwind, cris_frame_base): New variables.
8278 (push_stack_item, pop_stack_item)
8279 (cris_frame_unwind_cache, cris_frame_this_id)
8280 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8281 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8282 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8283 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8284 (cris_reg_struct_has_addr): New functions.
8285 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8286 (cris_frame_saved_pc, cris_saved_pc_after_call,
8287 (cris_store_struct_return, cris_frameless_function_invocation)
8288 (cris_pop_frame, cris_skip_prologue_main)
8289 (cris_abi_original_store_return_value)
8290 (cris_abi_v2_store_return_value)
8291 (cris_abi_original_extract_return_value)
8292 (cris_abi_v2_extract_return_value)
8293 (cris_abi_original_reg_struct_has_addr)
8294 (cris_abi_v2_reg_struct_has_addr)
8295 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8296 (cris_push_return_address, cris_abi_update): Remove.
8297 (_initialize_cris_tdep): Remove ABI command.
8298 (cris_dump_tdep): Ditto.
8299 (cris_gdbarch_init): Remove ABI command.
8300 Set store_return_value, extract_return_value, push_dummy_code,
8301 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8302 frame_unwind_append_sniffer, frame_base_set_default.
8303 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8304 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8305 sizeof_call_dummy_words, get_saved_register, push_return_address,
8306 pop_frame, store_struct_return, frame_init_saved_regs,
8307 init_extra_frame_info, frameless_function_invocation, frame_chain,
8308 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8309 dummy_write_sp.
8310
8311 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8312
8313 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8314 * valprint.c (print_hex_chars): Change from static to external.
8315 (print_char_chars): New function.
8316 * printcmd.c (print_scalar_formatted): For integer and enum types
8317 that are longer than LONGEST, perform processing via appropriate
8318 print_*_chars routines.
8319
8320 2004-02-26 Andrew Cagney <cagney@redhat.com>
8321
8322 * Makefile.in: Update dependencies.
8323 Changes from Ulrich Weigand,
8324 * s390-tdep.c: Include "dwarf2-frame.h".
8325 (s390_dwarf2_frame_init_reg): New function.
8326 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8327 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8328
8329 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8330
8331 * breakpoint.c (pending_break_support): New setting variable.
8332 (break_command_1): Account for pending_break_support setting
8333 when creating pending breakpoints.
8334 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8335 (_initialize_breakpoint): Add "set breakpoint pending" and
8336 "show breakpoint pending" commands.
8337
8338 2004-02-26 Andrew Cagney <cagney@redhat.com>
8339
8340 Fix PR i18n/1570.
8341 * charset.c (backslashable, backslashed, represented): Remove 'e'
8342 from list of escaped characters, not part of ISO-C.
8343
8344 2004-02-25 J. Brobecker <brobecker@gnat.com>
8345
8346 From Peter Schauer <schauer@pdf.de>:
8347 * tui/tui.c: Move system header includes after local includes.
8348 Fixes a build failure on solaris systems.
8349
8350 2004-02-25 J. Brobecker <brobecker@gnat.com>
8351
8352 * configure.in: Refine the previous change.
8353 * configure: Regenerate.
8354
8355 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8356
8357 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8358 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8359 "amd64-tdep.h" instead of "x86-64-tdep.h".
8360 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8361 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8362 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8363 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8364 and "x86-64-tdep.c".
8365 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8366 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8367 and "x86-64-tdep.c".
8368 * amd64bsd-nat.c: Update copyright year.
8369 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8370 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8371 "x86-64-tdep.h".
8372 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8373 "x86-64-tdep.h".
8374 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8375 "x86-64-tdep.h".
8376 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8377 "x86-64-tdep.h".
8378 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8379 "x86-64-tdep.h".
8380 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8381 "x86-64-tdep.h".
8382 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
8383 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8384 * Makefile.in (amd64_linux_tdep_h): Renamed from
8385 x86_64_linux_tdep_h.
8386 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8387 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8388 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8389 (amd64obsd-tdep.o): Update dependencies.
8390 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8391 dependencies.
8392 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8393 dependencies.
8394 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8395 amd64-linux-nat.c amd64-linux-tdep.c.
8396 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8397 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8398 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8399 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8400 amd64-tdep.o and amd64-linux-tdep.o.
8401 (TM_FILE): Set to tm-linux64.h.
8402 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8403 (NAT_FILE): Set to nm-linux64.h.
8404 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8405 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8406 amd64-tdep.o.
8407 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8408 amd64-tdep.o.
8409 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8410 amd64-tdep.o.
8411
8412 2004-02-25 Roland McGrath <roland@redhat.com>
8413
8414 * remote.c (remote_protocol_qPart_auxv): New variable.
8415 (init_all_packet_configs): Initialize it.
8416 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8417 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8418 (show_remote_cmd): Call it.
8419 (_initialize_remote): Initialize commands.
8420 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8421 service TARGET_OBJECT_AUXV requests.
8422
8423 2004-02-25 J. Brobecker <brobecker@gnat.com>
8424
8425 * configure.in: Make sure that the wborder function is available.
8426 Otherwise, search for it in the cur_colr library.
8427 * configure: Regenerate.
8428
8429 2004-02-25 Andrew Cagney <cagney@redhat.com>
8430
8431 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8432
8433 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8434
8435 * config/i386/tm-x86-64linux.h: Tweak comments.
8436
8437 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
8438
8439 * MAINTAINERS: Add self to write-after-approval list.
8440
8441 2004-02-25 Andrew Cagney <cagney@redhat.com>
8442
8443 PR cli/1566. Problem found, and fix suggested by David Allan.
8444 * cli/cli-script.c (execute_control_command): Unconditionally
8445 install a cleanup. Default "ret" to "invalid_control". Use
8446 "break" instead of "return" to escape from the switch.
8447
8448 2004-02-24 J. Brobecker <brobecker@gnat.com>
8449
8450 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8451 with the lines macro defined in term.h on AiX.
8452 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8453 a collision with the label_width macro defined in term.h on AiX.
8454
8455 2004-02-23 David Mosberger <davidm@hpl.hp.com>
8456
8457 Committed by Kevin Buettner <kevinb@redhat.com>.
8458
8459 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8460 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8461 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8462 instead of ia64_write_pc().
8463 * ia64-linux-tdep.c (regcache.h): Include.
8464 (ia64_linux_write_pc): New function.
8465
8466 2004-02-23 Roland McGrath <roland@redhat.com>
8467
8468 * auxv.c (info_auxv_command): Fix typos in error messages.
8469
8470 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8471
8472 * x86-64-tdep.h: Tweak comment.
8473 (enum amd64_regnum): New.
8474 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8475 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8476 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8477 (X86_64_XMM1_REGNUM): Removed.
8478 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8479 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8480 prototypes for renamed functions.
8481 * x86-64-tdep.c: Fix typo.
8482 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8483 register numbers.
8484 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8485 Use constants from `enum amd64_regnum' for register numbers.
8486 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8487 (amd64_analyze_prologue, amd64_frame_cache,
8488 amd64_sigtramp_frame_cache): Use constants from `enum
8489 amd64_regnum' for register numbers.
8490 (amd64_supply_fpregset): Adjust for renamed functions.
8491 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8492 `enum amd64_regnum' for register numbers.
8493 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8494 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8495 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8496 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8497 (amd64_linux_fill_gregset): Adjust for renamed macros.
8498 (fetch_core_registers): Adjust for renamed functions.
8499 (amd64_linux_init_abi): Adjust for renamed functions.
8500 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8501 renamed functions.
8502 * amd64-nat.c: Adjust for renamed macros.
8503 * amd64bsd-nat.c (fetch_inferior_registers)
8504 (store_inferior_registers): Use constants from `enum amd64_regnum'
8505 for register numbers. Adjust for renamed variables.
8506 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8507 renamed variables.
8508 (_initialize_amd64fbsd_nat): Use constants from `enum
8509 amd64_regnum' for register numbers.
8510 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8511 `enum amd64_regnum' for register numbers.
8512 (amd64fbsd_init_abi): Adjust for renamed functions.
8513 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8514 `enum amd64_regnum' for register numbers.
8515 (amd64nbsd_init_abi): Adjust for renamed functions.
8516 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8517 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8518 `enum amd64_regnum' for register numbers.
8519 (amd64obsd_init_abi): Adjust for renamed functions.
8520 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8521
8522 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8523
8524 * breakpoint.c (print_one_breakpoint): Do not output spaces
8525 after printing <PENDING> for a pending breakpoint.
8526
8527 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8528
8529 * printcmd.c (print_scalar_formatted): Initialize val_long
8530 to remove compiler warning message.
8531
8532 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8533
8534 * defs.h (nquery, yquery): New prototypes.
8535 * breakpoint.c (break_command_1): Use new nquery interface.
8536 * utils.c (defaulted_query, nquery, yquery): New functions.
8537
8538 2004-02-23 Andrew Cagney <cagney@redhat.com>
8539
8540 * hppa-tdep.c (hppa_frame_align): New function.
8541 (hppa32_push_dummy_call): New function.
8542 (hppa64_push_dummy_call): New function.
8543 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8544 disabled.
8545
8546 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8547 FIX_CALL_DUMMY when push_dummy_call is available.
8548 (call_function_by_hand, push_dummy_code): Ditto.
8549
8550 2004-02-22 Andrew Cagney <cagney@redhat.com>
8551
8552 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8553 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8554 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8555 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8556 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8557 call_dummy_location to ON_STACK.
8558
8559 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8560
8561 * x86-64-linux-tdep.c: Tweak comment.
8562 (amd64_linux_supply_gregset): Renamed from
8563 x86_64_linux_supply_gresget.
8564 (amd64_linux_fill_gregset): Renamed from
8565 x86_64_linux_fill_gregset.
8566 (fetch_core_registers): Adjust for renamed functions.
8567 (amd64_core_fns): Renamed from x86_64_core_fns.
8568 (amd64_linux_sigtramp_start): Renamed from
8569 x86_64_linux_sigtramp_start.
8570 (amd64_linux_pc_in_sigtramp): Renamed from
8571 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8572 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8573 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8574 (amd64_linux_sigcontext_addr): Renamed from
8575 x86_64_linux_sigcontext_addr.
8576 (amd64_linux_sc_reg_offset): Renamed from
8577 x86_64_linux_sc_reg_offset.
8578 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8579 Adjust for renamed functions and variables.
8580 (_initialize_amd64_linux_tdep): Renamed from
8581 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8582 variables.
8583 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8584 Adjust for renamed functions.
8585
8586 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8587 from x86_64_linux_gregset64_reg_offset.
8588 (amd64_linux_gregset32_reg_offset): Rename from
8589 x86_64_linux_gregset64_reg_offset.
8590 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8591 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8592 (amd64_linux_dr_set_control): Renamed from
8593 x86_64_linux_dr_set_control. Adjust for renamed functions.
8594 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8595 Adjust for renamed functions.
8596 (amd64_linux_dr_reset_addr): Renamed from
8597 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8598 (amd64_linux_dr_get_status): Renamed from
8599 x86_64_linux_dr_get_status. Adjust for renamed functions.
8600 (_initialize_amd64_linux_nat): Renamed from
8601 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8602 functions.
8603 * config/i386/nm-x86-64linux.h: Update copyright year.
8604 Adjust for renamed functions.
8605
8606 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8607 amd64fbsd_sigtramp_start.
8608 (amd64fbsd_sigtramp_end_addr): Renamed from
8609 amd64fbsd_sigtramp_end.
8610 (amd64fbsd_init_abi): Adjust for renamed variables.
8611 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8612 variables.
8613 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8614 amd64fbsd_sigtramp_start.
8615 (amd64fbsd_sigtramp_end_addr): Renamed from
8616 amd64fbsd_sigtramp_end.
8617
8618 2004-02-22 Andrew Cagney <cagney@redhat.com>
8619
8620 * hppa-tdep.c (hppa32_return_value): New function.
8621 (hppa64_return_value): New function.
8622 (hppa_gdbarch_init): Set return_value; keep disabled.
8623
8624 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8625 struct-return and inferior function call methods.
8626
8627 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8628 "frame-base.h".
8629 (struct hppa_frame_cache): Define.
8630 (hppa_frame_cache, hppa_frame_this_id): New functions.
8631 (hppa_frame_prev_register): New function.
8632 (hppa_frame_unwind, hppa_frame_base): New variables.
8633 (hppa_frame_unwind_sniffer): New function.
8634 (hppa_frame_base_address, hppa_unwind_pc): New function.
8635 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8636 sniffer, and frame base sniffer; keep disabled.
8637 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8638 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8639
8640 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8641 to predicates for "seriously old code".
8642
8643 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8644 runtime if(0).
8645
8646 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8647 unsigned.
8648 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8649
8650 * config/pa/tm-hppa.h: Update copyright.
8651 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8652 (deprecated_init_frame_pc_default): Delete declaration.
8653 (hppa_frame_init_saved_regs): Delete declaration.
8654 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8655 * hppa-tdep.c: Include "arch-utils.h".
8656 (hppa_gdbarch_init): Set deprecated init_frame_pc
8657 and deprecated frame_init_saved_regs.
8658 (hppa_frame_init_saved_regs): Make static.
8659
8660 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8661
8662 Remove old 386BSD support.
8663 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
8664 * configure.host: Remove i[34567]86-*-bsd*.
8665 * configure.tgt: Remove i[34567]86-*-bsd*.
8666 * i386b-nat.c: Removed.
8667 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8668 (i386b-nat.o): Remove dependencies.
8669
8670 * config/i386/i386bsd.mh: Removed.
8671 * config/i386/i386bsd.mt: Removed.
8672 * config/i386/nm-i386bsd.h: Removed.
8673 * config/i386/tm-i386bsd.h: Removed.
8674 * config/i386/xm-i386bsd.h: Removed.
8675
8676 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8677
8678 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8679 (amd64fbsd_init_abi): Set link map offsets.
8680 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8681 (amd64nbsd_init_abi): Set link map offsets.
8682 * amd64obsd-tdep.c: Include "solib-svr4.h".
8683 (amd64obsd_init_abi): Set link map offsets.
8684 * i386fbsd-tdep.c: Include "solib-svr4.h".
8685 (i386fbsd_init_abi): Set link map offsets.
8686 * i386nbsd-tdep.c: Include "solib-svr4.h".
8687 (i386nbsdelf_init_abi): Set link map offsets.
8688 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8689 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8690 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8691 solib-legacy.o and core-aout.o. Reformat.
8692 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8693 solib-svr4.o, solib-legacy.o. Reformat.
8694 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8695 * config/i386/nbsdelf.mh: Reformat.
8696 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8697 solib-svr4.o, solib-legacy.o and corelow.o.
8698 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8699 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8700 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8701 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8702 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8703 (TM_FILE): Set to tm-fbsd.h.
8704 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8705 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8706 solib-svr4.o.
8707 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8708 solib-svr4.o.
8709 (TM_FILE): Set to nm-nbsd.h.
8710 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8711 Simplify shared library support. Don't include "elf/common.h".
8712 (SVR4_SHARED_LIBS): Don't define.
8713 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8714 "solib.h".
8715 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8716 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8717 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8718 Don't include "i386/tm-i386.h". Include "solib.h".
8719 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8720 Don't include "i386/tm-i386.h".
8721 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8722 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8723 Include "i386/xm-i386.h".
8724 (HOST_LONG_DOUBLE_FORMAT): Remove.
8725
8726 Fix OpenBSD/i386 sigtramp recognition.
8727 * i386-tdep.h: Update copyright year.
8728 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8729 (i386bsd_sigtramp_end): New prototypes.
8730 (i386fbsd_sigtramp_start_addr): Renamed from
8731 i386fbsd_sigtramp_start.
8732 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8733 (i386obsd_sigtramp_start_addr): Renamed from
8734 i386obsd_sigtramp_start.
8735 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8736 * i386bsd-tdep.c: Update copyright year.
8737 (i386bsd_pc_in_sigtramp): Make public.
8738 * i386fbsd-nat.c: Update copyright year.
8739 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8740 * i386fbsd-tdep.c: Update copyright year.
8741 (i386fbsd_sigtramp_start_addr): Renamed from
8742 i386fbsd_sigtramp_start.
8743 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8744 (i386fbsdaout_init_abi): Adjust for renamed variables.
8745 * i386obsd-nat.c: Update copyright year.
8746 (_initialize_i386obsd_nat): Adjust for renamed variables.
8747 * i386obsd-tdep.c: Include "target.h".
8748 (i386obsd_page_size): New variable.
8749 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8750 (i386obsd_sigtramp_end): New functions.
8751 (i386obsd_sigtramp_start_addr): Renamed from
8752 i386obsd_sigtramp_start.
8753 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8754 (i386obsd_init_abi): Adjust for renamed variables. Set
8755 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8756 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8757
8758 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8759 trampoline change in OpenBSD kernel.
8760
8761 * amd64-nat.c: Update copyright year.
8762 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8763 architecture from REGCACHE.
8764
8765 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8766 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8767
8768 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8769
8770 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8771 i[34567]86-*-openbsd3.[0-3].
8772 * config/i386/obsdaout.mh: New file.
8773
8774 * config/i386/obsd.mh (MH_FLAGS): Remove.
8775
8776 Fix PR build/1549.
8777 * i386obsd-tdep.c: Update copyright years. Include
8778 "solib-svr4.h".
8779 (i386obsd_init_abi): Don't set regset_from_core_section here.
8780 (i386obsd_aout_init_abi): New function. Set
8781 regset_from_core_section here.
8782 (i386obsd_elf_init_abi): New function.
8783 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8784 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8785 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8786 (TM_FILE): Set to tm-nbsd.h.
8787
8788 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8789 solib-sunos.o.
8790
8791 * solib-svr4.h: Update copyright year.
8792 (svr4_ilp32_fetch_link_map_offsets)
8793 (svr4_lp64_fetch_link_map_offsets): New prototype.
8794 * solib-svr4.c: Update copyright year.
8795 (svr4_ilp32_fetch_link_map_offsets)
8796 (svr4_lp64_fetch_link_map_offsets): New function.
8797
8798 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8799
8800 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8801 to the partial symbol table.
8802
8803 2004-02-20 J. brobecker <brobecker@gnat.com>
8804
8805 * PROBLEMS: Add description of problem documented under gdb/1560.
8806
8807 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8808
8809 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8810 comments.
8811 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8812 functions.
8813 (amd64obsd_init_abi): Reorder initializations. Use
8814 amd64obsd_r_reg_offset to initialize the general-purpose register
8815 set details. Set regset_from_core_section.
8816 (_initialize_amd64obsd_tdep): Rename from
8817 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8818 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8819 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8820
8821 * NEWS (New native configurations): Mention OpenBSD/alpha.
8822 * configure.tgt: Add alpha*-*-openbsd*.
8823 * configure.host: Add alpha*-*-openbsd*.
8824 * alphanbsd-tdep.c: Update copyright year.
8825 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8826
8827 2004-02-20 Andrew Cagney <cagney@redhat.com>
8828
8829 Fix PR tdep/1372.
8830 * configure.tgt: Delete target "none-*-*".
8831 * configure.host: Delete host "none-*-*".
8832 * config/none/none.mh: Delete file.
8833 * config/none/none.mt: Delete file.
8834 * config/none/xm-none.h: Delete file.
8835 * config/none/tm-none.h: Delete file.
8836 * config/none/nm-none.h: Delete file.
8837
8838 2004-02-19 Fred Fish <fnf@redhat.com>
8839
8840 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8841 cache->uses_fp prior to setting it.
8842
8843 2004-02-19 Fred Fish <fnf@redhat.com>
8844
8845 Fix for PR breakpoint/1558.
8846 * sh-tdep.c (IS_JSR): New macro.
8847 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8848
8849 2004-02-19 Jim Blandy <jimb@redhat.com>
8850
8851 * findvar.c (value_from_register): Doc fix.
8852
8853 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8854
8855 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8856 type being greater than sizeof of host's LONGEST. Always use
8857 unpack_long() unless format 'f' chosen.
8858
8859 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8860
8861 Committed by Elena Zannoni <ezannoni@redhat.com>
8862
8863 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8864 contains a symbol wich is the best, non-exact match for the given
8865 pc. Update comments.
8866
8867 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8868
8869 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8870 macro, which was part of the now removed Mach 3 port.
8871 * utils.c (request_quit): Ditto.
8872
8873 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8874
8875 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8876 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8877
8878 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8879
8880 Committed by Mark Kettenis <kettenis@gnu.org>.
8881
8882 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8883 Define.
8884
8885 2004-02-18 Andrew Cagney <cagney@redhat.com>
8886
8887 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8888 CONFIG_INSTALL and CONFIG_UNINSTALL.
8889 * configure: Re-generate.
8890 * interps.h (INTERP_TUI): Define.
8891 * Makefile.in: Update dependencies.
8892 (TUI): New macro.
8893 (tui-main.o): Specify dependencies.
8894 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8895 * tui/tui-main.c: New file.
8896
8897 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8898
8899 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8900 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8901 dependencies.
8902 * configure.host: Add x86_64-*-openbsd*.
8903 * configure.tgt: Add x86_64-*-openbsd*.
8904 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8905
8906 * tui/tui.c: Don't include <malloc.h>.
8907
8908 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8909 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8910 amd64nbsd-tdep.c.
8911
8912 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8913 static. Remove extraneous whitespace.
8914 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8915 static.
8916
8917 2004-02-17 Jim Blandy <jimb@redhat.com>
8918
8919 * findvar.c (value_from_register): Doc fix.
8920
8921 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8922
8923 Committed by Jim Blandy <jimb@redhat.com>.
8924
8925 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8926 CORE_ADDR as type for selectors. Correct types for GNU run time
8927 message lookup function to use double indirection.
8928 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8929 * objc-lang.h (lookup_child_selector): Adapt prototype.
8930
8931 * s390-nat.c (SUBOFF): New macro.
8932 (supply_gregset, fill_gregset): Use it to handle debugging
8933 of 32-bit exectuables running under a 64-bit kernel.
8934 * s390-tdep.c: Include "solib-svr4.h".
8935 (s390_svr4_fetch_link_map_offset): New function.
8936 (s390x_svr_fetch_link_map_offset): Likewise.
8937 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8938 * Makefile.in (s390-tdep.o): Update dependencies.
8939
8940 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8941 "frame-unwind.h".
8942 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8943 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8944 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8945 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8946 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8947 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8948 S390_SIGNAL_FRAMESIZE,
8949 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8950 (struct frame_extra_info): Remove.
8951 (s390_memset_extra_info): Remove.
8952 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8953 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8954 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8955 (is_rse): Renamed to ...
8956 (is_rsy): ... this. Support long displacements.
8957 (is_rxe): Renamed to ...
8958 (is_rxy): ... this. Support long displacements.
8959 (compute_x_addr): Support long displacements.
8960 (struct s390_prologue_data): New data type.
8961 (s390_on_stack): Change API to use struct s390_prologue_data.
8962 (s390_store): Reimplement.
8963 (s390_load): New function.
8964 (s390_get_signal_frame_info): Remove.
8965 (s390_get_frame_info): Remove, replace by ...
8966 (s390_analyze_prolog): ... this new function.
8967 (s390_check_function_end): Remove.
8968 (s390_function_start): Remove.
8969 (s390_frameless_function_invokation): Remove.
8970 (s390_is_sigreturn): Remove.
8971 (s390_init_frame_pc_first): Remove.
8972 (s390_init_frame_extra_info): Remove.
8973 (s390_frame_init_saved_regs): Remove.
8974 (s390_frame_saved_pc_nofix): Remove.
8975 (s390_frame_saved_pc): Remove.
8976 (s390_frame_chain): Remove.
8977 (s390_fp_regnum, s390_read_fp): Remove.
8978 (s390_pop_frame_regular, s390_pop_frame): Remove.
8979 (s390_saved_pc_after_call): Remove.
8980 (s390_skip_prologue): Reimplement.
8981 (s390_in_function_epilogue_p): Support long displacements.
8982 (struct s390_unwind_cache): New data structure.
8983 (s390_frame_unwind_cache): New function.
8984 (s390_prologue_frame_unwind_cache): Likewise.
8985 (s390_backchain_frame_unwind_cache): Likewise.
8986 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8987 (s390_frame_unwind): Define.
8988 (s390_frame_sniffer): New function.
8989 (struct s390_pltstub_unwind_cache): New data structure.
8990 (s390_pltstub_frame_unwind_cache): New function.
8991 (s390_pltstub_frame_this_id): Likewise.
8992 (s390_pltstub_frame_prev_register): Likewise.
8993 (s390_pltstub_frame_unwind): Define.
8994 (s390_pltstub_frame_sniffer): New function.
8995 (struct s390_sigtramp_unwind_cache): New data structure.
8996 (s390_sigtramp_frame_unwind_cache): New function.
8997 (s390_sigtramp_frame_this_id): Likewise.
8998 (s390_sigtramp_frame_prev_register): Likewise.
8999 (s390_sigtramp_frame_unwind): Define.
9000 (s390_sigtramp_frame_sniffer): New function.
9001 (s390_frame_base_address, s390_local_base_address): New functions.
9002 (s390_frame_base): Define.
9003 (s390_unwind_pc, s390_unwind_sp): New function.
9004 (s390_push_dummy_call): Use new frame base location.
9005 (s390_unwind_dummy_id): Likewise.
9006 (s390_gdbarch_init): Remove calls to:
9007 set_gdbarch_frameless_function_invocation,
9008 set_gdbarch_deprecated_init_frame_pc,
9009 set_gdbarch_deprecated_frame_chain,
9010 set_gdbarch_deprecated_frame_init_saved_regs,
9011 set_gdbarch_deprecated_pop_frame,
9012 set_gdbarch_deprecated_init_extra_frame_info,
9013 set_gdbarch_deprecated_init_frame_pc_first,
9014 set_gdbarch_deprecated_target_read_fp,
9015 set_gdbarch_deprecated_frame_saved_pc,
9016 set_gdbarch_deprecated_saved_pc_after_call,
9017 set_gdbarch_deprecated_fp_regnum.
9018 Add calls to:
9019 set_gdbarch_in_solib_call_trampoline,
9020 frame_unwind_append_sniffer,
9021 frame_base_set_default,
9022 set_gdbarch_unwind_pc,
9023 set_gdbarch_unwind_sp.
9024 * Makefile.in (s390-tdep.o): Update dependencies.
9025
9026 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9027 (S390_STACK_FRAME_OVERHEAD): Remove.
9028 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9029 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9030 (s390_promote_integer_argument): Remove.
9031 (s390_cannot_extract_struct_value_address): Remove.
9032 (s390_use_struct_convention, s390_store_struct_return): Remove.
9033 (s390_extract_return_value, s390_store_return_value): Remove.
9034 (s390_return_value_convention, s390_return_value): New functions.
9035 (is_float_singleton): Handle typedefs.
9036 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
9037 Remove, replace by ...
9038 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9039 s390_function_arg_integer): ... these new functions.
9040 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9041 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9042 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9043 Fill in tdep->abi.
9044 Remove calls to:
9045 set_gdbarch_deprecated_store_struct_return,
9046 set_gdbarch_deprecated_extract_return_value,
9047 set_gdbarch_deprecated_store_return_value,
9048 set_gdbarch_use_struct_convention,
9049 set_gdbarch_extract_struct_value_address,
9050 set_gdbarch_deprecated_pc_in_call_dummy,
9051 set_gdbarch_deprecated_push_arguments,
9052 set_gdbarch_deprecated_save_dummy_frame_tos,
9053 set_gdbarch_deprecated_push_return_address,
9054 set_gdbarch_deprecated_sizeof_call_dummy_words,
9055 set_gdbarch_deprecated_call_dummy_words,
9056 set_gdbarch_deprecated_dummy_write_sp.
9057 Add calls to:
9058 set_gdbarch_push_dummy_call,
9059 set_gdbarch_unwind_dummy_id,
9060 set_gdbarch_return_value.
9061
9062 * config/s390/nm-linux.h: Update comments.
9063 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9064 (STOPPED_BY_WATCHPOINT): Redefine.
9065 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9066 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9067 (s390_stopped_by_watchpoint): Likewise.
9068 (watch_area_cnt): Remove.
9069 * s390-nat.c: Update comments.
9070 (watch_area): Remove typedef.
9071 Global replace watch_area by struct watch_area.
9072 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
9073 (s390_stopped_by_watchpoint): Remove pid argument,
9074 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9075 (s390_fix_watch_points): Remove pid argument,
9076 use s390_inferior_tid. Recompute area spanned by watchpoints.
9077 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9078 argument. Reimplement.
9079
9080 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9081 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9082 (FETCH_INFERIOR_REGISTERS): Define.
9083 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
9084 core-regset.o.
9085 * config/s390/s390x.mt: Remove.
9086 * config/s390/tm-s390.h: Remove.
9087 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9088 (TARGET_ELF64): Remove.
9089 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9090 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9091 s390*-*-* case; always set gdb_target to s390.
9092 * regformats/reg-s390.dat: Remove control registers.
9093 * regformats/reg-s390x.dat: Likewise.
9094 * s390-tdep.h: New file.
9095 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
9096 Include "inferior.h" and "s390-tdep.h".
9097 Remove private definition of offsetof.
9098 (s390_register_u_addr): Remove.
9099 (regmap_gregset, regmap_fpregset): Define.
9100 (supply_gregset, fill_gregset): Reimplement.
9101 (supply_fpregset, fill_fpregset): Likewise.
9102 (s390_inferior_tid): New function.
9103 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9104 (fetch_inferior_registers, store_inferior_registers): Likewise.
9105 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9106 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9107 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9108 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9109 (struct gdbarch_tdep): Define.
9110 (struct s390_register_info): Define.
9111 (s390_register_info): New variable.
9112 (s390_register_name): Reimplement.
9113 (s390_register_type): New function.
9114 (s390_register_raw_size, s390x_register_raw_size): Remove.
9115 (s390_cannot_fetch_register): Remove.
9116 (s390_register_byte): Remove.
9117 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9118 (s390_dwarf_regmap): New variable.
9119 (s390_dwarf_reg_to_regnum): New function.
9120 (s390_stab_reg_to_regnum): Remove.
9121 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9122 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9123 (s390_convert_register_p): Likewise.
9124 (s390_register_to_value, s390_value_to_register): Likewise.
9125 (s390_register_reggroup_p): Likewise.
9126 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9127 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9128 (s390_supply_regset, s390_regset_from_core_section): New functions.
9129 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9130 (S390_FPR_SIZE): Likewise.
9131 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9132 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9133 (S390_NUM_GPRS): Move here from tm-s390.h.
9134 (S390_NUM_FPRS): Likewise.
9135 (s390_in_function_epilogue_p): New function.
9136 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9137 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9138 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9139 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9140 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9141 Remove calls to:
9142 set_gdbarch_deprecated_max_register_raw_size,
9143 set_gdbarch_deprecated_max_register_virtual_size,
9144 set_gdbarch_deprecated_register_byte,
9145 set_gdbarch_cannot_fetch_register,
9146 set_gdbarch_cannot_store_register,
9147 set_gdbarch_deprecated_register_size,
9148 set_gdbarch_deprecated_register_raw_size,
9149 set_gdbarch_deprecated_register_virtual_size,
9150 set_gdbarch_deprecated_register_virtual_type,
9151 set_gdbarch_deprecated_register_bytes.
9152 Add calls to:
9153 set_gdbarch_num_pseudo_regs,
9154 set_gdbarch_register_type,
9155 set_gdbarch_convert_register_p,
9156 set_gdbarch_register_to_value,
9157 set_gdbarch_value_to_register,
9158 set_gdbarch_register_reggroup_p,
9159 set_gdbarch_regset_from_core_section,
9160 set_gdbarch_pseudo_register_read,
9161 set_gdbarch_pseudo_register_write,
9162 set_gdbarch_in_function_epilogue_p.
9163 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9164 (s390_tdep_h): New variable.
9165
9166 2004-02-17 Jim Blandy <jimb@redhat.com>
9167
9168 * findvar.c (value_from_register): If the type has no length, just
9169 return an acceptable value --- don't report an internal error.
9170
9171 * stabsread.c (read_type): If we find any type numbers that are
9172 forward references, complain if the references aren't resolved by
9173 the time we're finished reading.
9174 (cleanup_undefined_types): Make error message more appropriate for
9175 a complaint.
9176
9177 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9178
9179 * Makefile.in (defs_h): Remove dependency on progress_h.
9180 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9181 progress.h.
9182 * main.c (captured_main): Delete use of START_PROGRESS and
9183 END_PROGRESS.
9184
9185 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9186
9187 * objfiles.c (terminate_minimal_symbol_table): Add back
9188 initialization of MSYMBOL_TYPE.
9189
9190 2004-02-17 David Mosberger <davidm@hpl.hp.com>
9191
9192 Committed by Andrew Cagney.
9193 * Makefile.in (ia64_tdep_h): New macro.
9194 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9195 (ia64-tdep.o): Likewise.
9196 * ia64-tdep.h: New file.
9197 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9198 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9199 (ia64_aix_sigcontext_register_address): Likewise.
9200 (ia64_linux_getunwind_table): Delete declaration.
9201 * ia64-linux-tdep.c: Likewise.
9202
9203 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
9204
9205 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9206 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9207 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9208
9209 2004-02-17 Andrew Cagney <cagney@redhat.com>
9210
9211 * symtab.c (skip_prologue_using_sal): New function.
9212 * symtab.h (skip_prologue_using_sal): Declare.
9213 * frv-tdep.c: Include "symtab.h".
9214 (skip_prologue_using_sal): Delete function.
9215 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9216 * rs6000-tdep.c (refine_prologue_limit): Mention
9217 skip_prologue_using_sal.
9218 * ia64-tdep.c (refine_prologue_limit): Ditto.
9219 * Makefile.in: Update dependencies.
9220
9221 2004-02-16 Andrew Cagney <cagney@redhat.com>
9222
9223 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9224 START_INFERIOR_TRAPS_EXPECTED.
9225 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9226 START_INFERIOR_TRAPS_EXPECTED.
9227 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9228 Delete macro.
9229 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9230 macro, moved to "nm-osf.h". Update copyright.
9231 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9232 update copyright.
9233
9234 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9235 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9236 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9237 frameless_look_for_prologue.
9238 * frame.h (legacy_frameless_look_for_prologue): Rename
9239 frameless_look_for_prologue.
9240 * gdbarch.h, gdbarch.c: Re-generate.
9241 * sh64-tdep.c (sh64_gdbarch_init): Update.
9242 * sh-tdep.c (sh_gdbarch_init): Update.
9243 * s390-tdep.c (s390_gdbarch_init): Update.
9244 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9245 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9246 * m68k-tdep.c (m68k_gdbarch_init): Update.
9247 (delta68_frame_args_address): Update.
9248 * m32r-tdep.c (m32r_gdbarch_init): Update.
9249 * hppa-tdep.c (hppa_gdbarch_init): Update.
9250 * h8300-tdep.c (h8300_gdbarch_init): Update.
9251 * frv-tdep.c (frv_gdbarch_init): Update.
9252 (frv_frameless_function_invocation): Update.
9253 * cris-tdep.c (cris_gdbarch_init): Update.
9254 (cris_frameless_function_invocation): Update.
9255 * avr-tdep.c (avr_gdbarch_init): Update.
9256 * arm-tdep.c (arm_gdbarch_init): Update.
9257 * stack.c (frame_info): Update, call predicate.
9258 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9259 * frame.c (legacy_get_prev_frame): Update, call predicate..
9260 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9261 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9262 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9263 invocation.
9264 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9265 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9266 * vax-tdep.c (vax_gdbarch_init): Ditto.
9267
9268 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9269 function.
9270
9271 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9272
9273 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9274 initializations.
9275
9276 2004-02-16 Andrew Cagney <cagney@redhat.com>
9277
9278 * tui/tui-windata.c: Include "gdb_string.h".
9279 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9280 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9281 * Makefile.in: Update dependencies.
9282
9283 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9284
9285 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9286 * infrun.c: Include "gdb_assert.h".
9287 (singlestep_ptid, saved_singlestep_ptid)
9288 (stepping_past_singlestep_breakpoint): New variables.
9289 (resume): Set singlestep_ptid. Check for singlestep thread
9290 hop.
9291 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9292 (handle_inferior_event): Handle singlestep thread hop.
9293
9294 2004-02-16 Andrew Cagney <cagney@redhat.com>
9295
9296 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9297 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9298 (dwarf2_frame_init_reg): Ditto.
9299
9300 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9301 suggested by Joshua Neuheisel
9302
9303 * configure.in: Always check for curses, including pdcurses.
9304 Warn, instead of error, when no curses are found. Enable TUI when
9305 curses is available.
9306 * configure: Re-generate.
9307
9308 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9309
9310 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9311 sh_sh4_register_convert_to_virtual.
9312 (sh_register_convert_to_raw): Rename from
9313 sh_sh4_register_convert_to_raw.
9314 (sh_pseudo_register_read): Accomodate above name change.
9315 (sh_pseudo_register_write): Ditto.
9316
9317 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9318
9319 * sh-tdep.c (sh_generic_register_name): Remove.
9320 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9321
9322 2004-02-15 Andrew Cagney <cagney@redhat.com>
9323
9324 * configure.in (build_warnings): Add -Wunused-function.
9325 * configure: Re-generate.
9326
9327 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9328 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9329
9330 * procfs.c (procfs_init_inferior): Assume that
9331 START_INFERIOR_TRAPS_EXPECTED is defined.
9332 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9333 * config/ns32k/tm-nbsd.h: Delete file,
9334 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9335
9336 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9337 * config/vax/tm-vax.h: Delete file.
9338
9339 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9340 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9341 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9342 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9343 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9344 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9345 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9346
9347 2004-02-15 Mark Kettenis <kettenis@gnu.org>
9348
9349 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9350 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9351 (struct dwarf2_frame_ops): New.
9352 (dwarf2_frame_default_init_reg): New function, based on
9353 dwarf2_frame_init_reg.
9354 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9355 (dwarf2_frame_init_reg): Call architecture-specific function.
9356 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9357 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9358 instead of dwarf2_frame_data.
9359 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9360 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9361
9362 2004-02-15 Andrew Cagney <cagney@redhat.com>
9363
9364 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9365 register_gdbarch_swap.
9366 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9367 * f-lang.c (_initialize_f_language): Update, use
9368 DEPRECATED_REGISTER_GDBARCH_SWAP.
9369 * remote.c (_initialize_remote): Ditto.
9370 * regcache.c (_initialize_regcache): Ditto.
9371 * parse.c (_initialize_parse): Ditto.
9372 * infrun.c (_initialize_infrun): Ditto.
9373 * mi/mi-main.c (_initialize_mi_main): Ditto.
9374 * gdbtypes.c (_initialize_gdbtypes): Ditto.
9375
9376 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9377 poking .cacheable directly.
9378 * symfile.c (symfile_bfd_open): Ditto.
9379
9380 * Makefile.in: Update all dependencies.
9381
9382 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9383 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9384 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9385 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9386 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
9387
9388 2004-02-14 Andrew Cagney <cagney@redhat.com>
9389
9390 * arch-utils.c (legacy_convert_register_p): Check
9391 DEPRECATED_REGISTER_CONVERTIBLE_P.
9392 * findvar.c (value_of_register): Ditto.
9393
9394 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9395 * gdbarch.h, gdbarch.c: Re-generate.
9396 * arch-utils.c (deprecated_register_convertible_not): Delete.
9397 * arch-utils.h (deprecated_register_convertible_not): Delete.
9398 * mi/mi-main.c (get_register): Update. Update copyright.
9399 * infcmd.c (default_print_registers_info): Update.
9400
9401 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9402 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9403 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
9404 * gdbarch.h, gdbarch.c: Re-generate.
9405 * frame.c (deprecated_get_next_frame_hack): Delete function.
9406 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9407 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9408 Update.
9409 * infcall.c (call_function_by_hand): Update.
9410
9411 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
9412
9413 * symfile.c (init_entry_point_info, entry_point_address): Move
9414 from here...
9415 * objfiles.c (init_entry_point_info, entry_point_address):..to
9416 here.
9417 * symfile.h (init_entry_point_info, entry_point_address): Remove
9418 prototypes.
9419 * objfiles.h (init_entry_point_info, entry_point_address):Add
9420 prototypes.
9421 * cris-tdep.c: Remove include of symfile.h. Add include of
9422 objfiles.h.
9423 * infcall.c: Ditto.
9424 * mcore-tdep.c: Ditto.
9425 * mn10300-tdep.c: Ditto.
9426 * sh64-tdep.c: Ditto.
9427 * v850-tdep.c: Ditto.
9428 * arm-tdep.c: Remove include of symfile.h.
9429 * blockframe.c: Ditto.
9430 * coffread.c: Ditto.
9431 * dbxread.c: Ditto.
9432 * dwarf2read.c: Ditto.
9433 * dwarfread.c: Ditto.
9434 * frv-tdep.c: Ditto.
9435 * ia64-tdep.c: Ditto.
9436 * mdebugread.c: Ditto.
9437 * mipsread.c: Ditto.
9438 * rs6000-tdep.c: Ditto.
9439 * s390-tdep.c: Ditto.
9440 * sh-tdep.c: Ditto.
9441 * xstormy16-tdep.c: Ditto.
9442 * gdbarch.sh: Remove include of symfile.h.
9443 * gdbarch.c: Regenerate.
9444 * solib-irix.c (enable_break): Use entry_point_address().
9445 Add comment about include file.
9446 * xcoffread.c: Add comment about include file.
9447 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9448 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9449 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9450 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9451 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9452
9453 2004-02-13 Andrew Cagney <cagney@redhat.com>
9454
9455 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9456 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9457 copyright.
9458 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9459
9460 2004-02-12 Fred Fish <fnf@redhat.com>
9461
9462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9463 set_gdbarch_store_return_value.
9464
9465 2004-02-12 Andrew Cagney <cagney@redhat.com>
9466
9467 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9468 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9469 (interrupt_query): Ditto.
9470 (ofunc): Delete unused variable.
9471 * cris-tdep.c (cris_abi): Delete unused function.
9472 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9473 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9474 (cris_get_asr_quick_shift_steps): Ditto.
9475 (cris_skip_prologue_frameless_p): Ditto.
9476 * arm-tdep.c (arm_push_return_address): Delete unused function.
9477 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9478 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9479 * s390-tdep.c (s390_function_start): Delete unused function.
9480
9481 2004-02-12 Andrew Cagney <cagney@redhat.com>
9482
9483 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9484 gdbarch.h, gdbarch.c: Re-generate.
9485 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9486 to generic_prologue_frameless_p.
9487 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9488 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9489
9490 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9491
9492 * mips-linux-tdep.c: Include "frame.h".
9493 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9494 (mips_linux_skip_resolver): New functions.
9495 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9496 and set_gdbarch_in_solib_call_trampoline.
9497 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9498 to after set_gdbarch_in_solib_return_trampoline. Only set the
9499 solib hooks to mips16 functions if the OS ABI is unknown.
9500 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9501 including "config/tm-linux.h".
9502 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9503 * Makefile.in (mips-linux-tdep.o): Update.
9504
9505 2004-02-11 David Carlton <carlton@kealia.com>
9506
9507 * linespec.c (decode_compound): Only look for a class symbol when
9508 considering all but the rightmost component.
9509
9510 2004-02-11 Andrew Cagney <cagney@redhat.com>
9511
9512 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9513 abi code are are separatly grouped.
9514
9515 2004-02-11 Andrew Cagney <cagney@redhat.com>
9516
9517 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9518 * gdbarch.h, gdbarch.c: Re-generate.
9519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9520 * v850-tdep.c (v850_gdbarch_init): Update.
9521 * sh64-tdep.c (sh64_gdbarch_init): Update.
9522 * sh-tdep.c (sh_gdbarch_init): Update.
9523 * s390-tdep.c (s390_gdbarch_init): Update.
9524 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9525 * mips-tdep.c (mips_gdbarch_init): Update.
9526 * mcore-tdep.c (mcore_gdbarch_init): Update.
9527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9528 * m32r-tdep.c (m32r_gdbarch_init): Update.
9529 * ia64-tdep.c (ia64_gdbarch_init): Update.
9530 * hppa-tdep.c (hppa_gdbarch_init): Update.
9531 * h8300-tdep.c (h8300_gdbarch_init): Update.
9532 * frv-tdep.c (frv_gdbarch_init): Update.
9533 * d10v-tdep.c (d10v_gdbarch_init): Update.
9534 * cris-tdep.c (cris_gdbarch_init): Update.
9535 * avr-tdep.c (avr_gdbarch_init): Update.
9536 * arm-tdep.c (arm_gdbarch_init): Update.
9537 * alpha-tdep.c (alpha_gdbarch_init): Update.
9538
9539 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9540
9541 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9542 comma.
9543 (sh_sh4al_dsp_register_name): Ditto.
9544
9545 2004-02-10 Andrew Cagney <cagney@redhat.com>
9546
9547 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9548 (mips_init_frame_pc_first): Delete function.
9549 (mips_frame_saved_pc): Delete function.
9550 (mips_frame_chain): Delete function.
9551 (mips_init_extra_frame_info): Delete function.
9552 (mips_xfer_register): Delete unused variable "reg".
9553 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9554 (mips_n32n64_return_value): Delete unused variable "reg".
9555 (mips_n32n64_return_value): Delete unused variable "pos".
9556 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9557 (mips_o32_return_value): Delete unused variable "pos".
9558 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9559 (mips_print_fp_register): Delete unused variable "namelen"
9560 (mips_print_fp_register): Delete unused variable "flt2"
9561 (get_frame_pointer): Delete function.
9562 (cached_proc_desc): Delete static variable.
9563 (mips_pop_frame): Delete function.
9564 (mips_find_saved_regs): Delete function.
9565 (mips_get_saved_register): Delete function.
9566 (mips_saved_pc_after_call): Delete function.
9567 (SIGFRAME_BASE): Delete macro.
9568 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9569 (SIGFRAME_PC_OFF): Delete macro.
9570 (SIGFRAME_REGSAVE_OFF): Delete macro.
9571 (mips_dump_tdep): Do not print deleted macro definitions.
9572
9573 2004-02-10 Andrew Cagney <cagney@redhat.com>
9574
9575 * Makefile.in (SFILES): Remove explictly listed tui files.
9576 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9577
9578 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9579
9580 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9581 to use paddr functions to format ia64 addresses and long values.
9582 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9583 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9584 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9585 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9586 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9587
9588 2004-02-10 Andrew Cagney <cagney@redhat.com>
9589
9590 * defs.h: Do not include "tui.h".
9591 * gdb_curses.h: New file.
9592 * tui/tui-hooks.h: New file.
9593 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9594 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9595 (tui_initialize_io): Delete declaration.
9596 (tui_initialize_readline: Delete redundant declaration.
9597 (struct tui_point): Delete definition.
9598 * tui/tui-data.h (struct tui_point): Define.
9599 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9600 * utils.c: Include "tui/tui.h".
9601 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9602 * printcmd.c [TUI]: Include "tui/tui.h".
9603 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9604 * tui/tui-command.c: Include "gdb_curses.h".
9605 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9606 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9607 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9608 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9609 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9610 * Makefile.in: Update all dependencies.
9611 (tui_hooks_h, gdb_curses_h): Define.
9612 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9613
9614 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9615
9616 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9617 auxf2. Add comments about some other rarely used fields.
9618
9619 2004-02-10 Andrew Cagney <cagney@redhat.com>
9620
9621 * Makefile.in (init.c): Fix script removing duplicates. Problem
9622 reported by Peter Schauer.
9623
9624 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9625
9626 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9627 obstack_specify_allocation.
9628 * objfiles.c (allocate_objfile): Ditto.
9629 * solib-sunos.c (solib_add_common_symbols)
9630 (allocate_rt_common_objfile): Ditto.
9631 * symfile.c (reread_symbols): Ditto.
9632 * gdb_obstack.h: Add comment.
9633
9634 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9635
9636 * linespec.c (decode_line_1, locate_first_half)
9637 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9638 commented out code.
9639
9640 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9641
9642 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9643 obstack_free.
9644
9645 2004-02-09 Andrew Cagney <cagney@redhat.com>
9646
9647 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9648 fails, try find_pc_section. Fix PR c++/1267.
9649 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9650 instead of find_pc_mapped_section.
9651 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9652 not default to the section containing PC. Fix PR symtab/1519.
9653
9654 2004-02-09 Andrew Cagney <cagney@redhat.com>
9655
9656 * Makefile.in (mips-tdep.o): Update dependencies.
9657 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9658 "trad-frame.h".
9659 (mips_unwind_pc): Return the pseudo PC register.
9660 (mips_unwind_dummy_id): New function.
9661 (mips16_fetch_instruction): New function.
9662 (mips32_fetch_instruction): New function.
9663 (struct mips_frame_cache): Define.
9664 (mips_mdebug_frame_cache): New function.
9665 (mips_mdebug_frame_this_id): New function.
9666 (mips_mdebug_frame_prev_register): New function.
9667 (mips_mdebug_frame_unwind): Define.
9668 (mips_mdebug_frame_sniffer): New function.
9669 (mips_mdebug_frame_base_address): New function.
9670 (mips_mdebug_frame_base): Define.
9671 (mips_mdebug_frame_base_sniffer): New function.
9672 (mips_gdbarch_init): Append unwind and base sniffers. Set
9673 unwind_dummy_id.
9674
9675 2004-02-08 Andrew Cagney <cagney@redhat.com>
9676
9677 * frame.c: Print both the register number and name.
9678
9679 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9680 and a sed into a single sed. Make .c and .o patterns more robust.
9681 (OBS): Delete.
9682 (INIT_FILES): Replace OBS with COMMON_OBS.
9683 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9684
9685 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9686
9687 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9688 the PT_WCOOKIE request.
9689
9690 2004-02-08 Andrew Cagney <cagney@redhat.com>
9691
9692 * mips-tdep.c (mips_unwind_pc): New function.
9693 (mips_gdbarch_init): Set mips_unwind_pc.
9694
9695 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9696 (get_frame_id): Allow the UNKNOWN_FRAME.
9697 (frame_register_unwind, get_frame_type): Ditto.
9698
9699 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9700 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9701 unwind_dummy_id indicates a legacy frame.
9702
9703 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9704 * configure: Re-generate.
9705
9706 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9707 methods.
9708
9709 2004-02-08 Andrew Cagney <cagney@redhat.com>
9710
9711 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9712 makefile macro.
9713 * configure: Re-generate.
9714 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9715 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9716 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9717 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9718 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9719 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9720 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9721 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9722 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9723 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9724
9725 2004-02-07 Andrew Cagney <cagney@redhat.com>
9726
9727 * Makefile.in: Update all dependencies.
9728
9729 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9730 * configure: Re-generate.
9731 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9732 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9733 (COMMON_OBS): Add "main.o" and "annotate.o".
9734 (ANNOTATE_OBS): Delete.
9735 (OBS): Remove ANNOTATE_OBS.
9736 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9737 CONFIG_INITS.
9738 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9739 against CONFIG_OBS and "main.o".
9740 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9741 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9742
9743 * tui/tui-command.c: Include "gdb_string.h", delete register
9744 attribute, use ISO-C function signatures.
9745 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9746 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9747 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9748 * tui/tui.c: Ditto.
9749
9750 * tui/tui-command.c: Change variable and function names to lower
9751 case.
9752 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9753 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9754 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9755 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9756 * tui/tui-winsource.c, tui/tui.c: Ditto.
9757
9758 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9759
9760 * buildsym.c (free_pending_blocks, finish_block)
9761 (record_pending_block, make_blockvector, end_symtab): Replace
9762 symbol_obstack with objfile_obstack.
9763 * coffread.c (process_coff_symbol, coff_read_struct_type)
9764 (coff_read_enum_type): Ditto.
9765 * cp-namespace.c (initialize_namespace_symtab)
9766 (check_one_possible_namespace_symbol): Ditto.
9767 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9768 (dwarf2_symbol_mark_computed): Ditto.
9769 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9770 * elfread.c (elf_symtab_read): Ditto.
9771 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9772 (hpread_read_enum_type, hpread_read_function_type)
9773 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9774 Ditto.
9775 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9776 (java_link_class_type): Ditto.
9777 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9778 (new_symbol): Ditto.
9779 * minsyms.c (install_minimal_symbols): Ditto.
9780 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9781 (terminate_minimal_symbol_table): Replace symbol_obstack with
9782 objfile_obstack.
9783 (free_objfile): Remove freeing of symbol_obstack.
9784 * objfiles.h: Remove symbol_obstack field.
9785 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9786 objfile_obstack.
9787 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9788 symbol_obstack.
9789 (solib_add_common_symbols): Replace symbol_obstack with
9790 objfile_obstack.
9791 * somsolib.c (som_solib_add): Ditto.
9792 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9793 (common_block_start, common_block_end): Ditto.
9794 * symfile.c (reread_symbols): Remove freeing and init of
9795 symbol_obstack.
9796 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9797 * symfile.h: Update comment.
9798 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9799 stats printing.
9800 * symtab.c (symbol_set_names): Replace symbol_obstack with
9801 objfile_obstack.
9802 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9803 Update comments.
9804 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9805 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9806 objfile_obstack.
9807
9808 2004-02-07 Andrew Cagney <cagney@redhat.com>
9809
9810 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9811 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9812 fields and variables.
9813 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9814 (m_beInvisible): Delete macro.
9815 * tui/tui-data.h: Fix case case fields and variables.
9816 (m_genWinPtrIsNull): Delete macro.
9817 (tui_win_list): Rename winList.
9818 (TUI_SRC_WIN): Rename srcWin.
9819 (TUI_DISASM_WIN): Rename disassemWin.
9820 (TUI_DATA_WIN): Rename dataWin.
9821 (TUI_CMD_WIN): Rename cmdWin.
9822 (m_genWinPtrNotNull): Delete macro.
9823 (m_winPtrIsNull): Delete macro.
9824 (m_winPtrNotNull): Delete macro.
9825 (tui_win_is_source_type): Replace m_winIsSourceType
9826 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9827 (tui_win_has_locator): Replace m_hasLocator.
9828 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9829 m_setWinHighlightOff.
9830 * tui/tui-data.c: Update references.
9831 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9832 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9833 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9834 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9835 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9836 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9837 * tui/tui-winsource.c, tui/tui.c: Ditto.
9838
9839 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9840
9841 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9842 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9843 StackGhost.
9844
9845 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9846 variable `i6' to `i7'.
9847 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9848
9849 2004-02-07 Andrew Cagney <cagney@redhat.com>
9850
9851 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9852 (TuiPoint, TuiPointPtr): Ditto.
9853 (TuiStatus, TuiStatusPtr): Ditto.
9854 (TuiWinType, TuiWinTypePtr): Ditto.
9855 (struct tui_point): Rename _TuiPoint.
9856 (tui_get_low_disassembly_address): Rename
9857 tuiGetLowDisassemblyAddress.
9858 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9859 (tuiFree): Delete declaration.
9860 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9861 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9862 * tui/tui.c (tuiFree): Delete function.
9863 * cli/cli-cmds.c (disassemble_command): Update references.
9864 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9865 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9866 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9867 * tui/tui-winsource.c: Ditto.
9868
9869 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9870
9871 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9872 coffstab_build_psymtabs, elfstab_build_psymtabs)
9873 (stabsect_build_psymtabs): Replace psymbol_obstack with
9874 objfile_obstack.
9875 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9876 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9877 Ditto.
9878 * dwarfread.c (scan_compilation_units): Ditto.
9879 * elfread.c (elfstab_offset_sections): Ditto.
9880 * hppa-tdep.c (read_unwind_info): Ditto.
9881 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9882 (hpread_end_psymtab): Ditto.
9883 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9884 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9885 Ditto.
9886 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9887 * objfiles.c (add_to_objfile_sections)
9888 (build_objfile_section_table): Ditto.
9889 (allocate_objfile): Remove init of psymbol_obstack.
9890 (free_objfile): Remove freeing of psymbol_obstack.
9891 * objfiles.h (struct objfile): Remove field
9892 psymbol_obstack. Update comments.
9893 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9894 psymbol_obstack with objfile_obstack.
9895 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9896 psymbol_obstack.
9897 * somread.c (som_symfile_offsets, init_import_symbols)
9898 (init_export_symbols): Replace psymbol_obstack with
9899 objfile_obstack.
9900 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9901 * symfile.c (default_symfile_offsets, syms_from_objfile)
9902 (reread_symbols): Remove freeing and init of psymbol_obstack.
9903 (cashier_psymtab): Update comment.
9904 * symmisc.c (print_objfile_statistics): Don't report stats for
9905 psymbol obstack.
9906 * symtab.h (struct general_symbol_info, struct partial_symtab):
9907 Update comments.
9908 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9909 (xcoff_symfile_offsets): Replace psymbol_obstack with
9910 objfile_obstack.
9911
9912 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9913
9914 * objfiles.h (struct objfile): Add objfile_obstack field.
9915 Remove type_obstack field.
9916
9917 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9918 read_structure_scope read_enumeration, new_symbol): Replace
9919 type_obstack with objfile_obstack.
9920 * dwarfread.c (struct_type, enum_type): Ditto.
9921 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9922 (lookup_fundamental_type): Ditto.
9923 * gdbtypes.h (TYPE_ALLOC): Ditto.
9924 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9925 (hpread_read_doc_function_type, hpread_read_struct_type)
9926 (fix_static_member_physnames, hpread_read_array_type)
9927 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9928 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9929 (java_link_class_type): Ditto.
9930 * mdebugread.c (parse_type): Ditto.
9931 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9932 * solib-sunos.c (solib_add_common_symbols): Ditto.
9933 * stabsread.c (define_symbol, read_type, read_member_functions,
9934 read_cpp_abbrev, read_one_struct_field): Ditto.
9935 * symfile.c (reread_symbols): Ditto.
9936 * symmisc.c (print_objfile_statistics): Ditto.
9937
9938 2004-02-07 Andrew Cagney <cagney@redhat.com>
9939
9940 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9941 (tui_exec_info_content): Rename TuiExecInfoContent.
9942 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9943 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9944 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9945 (TuiList, TuiListPtr): Ditto.
9946 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9947 (TuiDataType, TuiDataTypePtr): Ditto.
9948 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9949 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9950 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9951 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9952 (TuiDataElement, TuiDataElementPtr): Ditto.
9953 (TuiWinElement, TuiWinElementPtr): Ditto.
9954 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9955 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9956 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9957 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9958 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9959 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9960 * tui/tui-command.c, tui/tui-data.c: Update references.
9961 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9962 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9963 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9964 * tui/tui-winsource.c, tui/tui.c: Ditto.
9965
9966 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9967
9968 * dwarf2-frame.h: Update copyright.
9969 (enum dwarf2_frame_reg_rule): New.
9970 (struct dwarf2_frame_state_reg): New.
9971 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9972 * dwarf2-frame.c: Update copyright.
9973 (enum dwarf2_reg_rule): Remove.
9974 (struct dwarf2_frame_state): Remove defenition of `struct
9975 dwarf2_frame_state_reg'.
9976 (read_reg): Call get_frame_arch to get the architecture instead of
9977 using CURRENT_GDBARCH.
9978 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9979 DWARF2_FRAME_.
9980 (dwarf2_frame_init_reg): New function.
9981 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9982 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9983 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9984 tags with DWARF2_FRAME_.
9985 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9986 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9987 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9988
9989 2004-02-06 Andrew Cagney <cagney@redhat.com>
9990
9991 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9992 (enum tui_data_type): Rename _TuiDataType.
9993 (struct tui_layout_def): Rename _TuiLayoutDef.
9994 (struct tui_source_element): Rename _TuiSourceElement.
9995 (struct tui_data_element): Rename _TuiDataElement.
9996 (struct tui_command_element): Rename _TuiCommandElement.
9997 (struct tui_locator_element): Rename _TuiLocatorElement.
9998 (union tui_which_element): Define.
9999 (struct tui_win_element): Rename _TuiWinElement.
10000 (struct tui_data_info): Rename _TuiDataInfo.
10001 (struct tui_source_info): Rename _TuiSourceInfo.
10002 (struct tui_command_info): Rename _TuiCommandInfo.
10003 (tui_initialize_static_data): Rename initializeStaticData.
10004 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10005 (tui_alloc_win_info): Rename allocWinInfo.
10006 (tui_init_generic_part): Rename initGenericPart.
10007 (tui_init_win_info): Rename initWinInfo.
10008 (tui_alloc_content): Rename allocContent.
10009 (tui_add_content_elements): Rename addContentElements.
10010 (tui_init_content_element): Rename initContentElement.
10011 (tui_free_window): Rename freeWindow.
10012 (tui_free_win_content): Rename freeWinContent.
10013 (tui_free_data_content): Rename freeDataContent.
10014 (tui_free_all_source_wins_content): Rename
10015 freeAllSourceWinsContent.
10016 (tui_del_window): Rename tuiDelWindow.
10017 (tui_del_data_windows): Rename tuiDelDataWindows.
10018 (tui_partial_win_by_name): Rename partialWinByName.
10019 (tui_win_name): Rename winName.
10020 (tui_current_layout): Rename currentLayout.
10021 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10022 (tui_term_height): Rename termHeight.
10023 (tui_set_term_height_to): Rename setTermHeightTo.
10024 (tui_term_width): Rename termWidth.
10025 (tui_set_term_width_to): Rename setTermWidthTo.
10026 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10027 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10028 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10029 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10030 (tui_source_windows): Rename sourceWindows.
10031 (tui_clear_source_windows): Rename clearSourceWindows.
10032 (tui_clear_source_windows_detail): Rename
10033 clearSourceWindowsDetail.
10034 (tui_clear_win_detail): Rename clearWinDetail.
10035 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10036 (tui_default_tab_len): Rename tuiDefaultTabLen.
10037 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10038 (tui_win_with_focus): Rename tuiWinWithFocus.
10039 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10040 (tui_layout_def): Rename tuiLayoutDef.
10041 (tui_win_resized): Rename tuiWinResized.
10042 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10043 (tui_next_win): Rename tuiNextWin.
10044 (tui_prev_win): Rename tuiPrevWin.
10045 (tui_add_to_source_windows): Rename addToSourceWindows.
10046 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10047 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10048 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10049 * tui/tui.c, tui/tui-data.c: Ditto.
10050 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10051 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10052
10053 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10054 (struct symtab): Declare.
10055 (tui_set_source_content): Rename tuiSetSourceContent.
10056 (tui_show_symtab_source): Rename tuiShowSource.
10057 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10058 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10059 * tui/tui-source.c: Update copyright. Update references.
10060 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10061 * tui/tui-stack.c: Update references.
10062
10063 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10064 (struct tui_win_info): Declare.
10065 (tui_scroll_forward): Rename tuiScrollForward.
10066 (tui_scroll_backward): Rename tuiScrollBackward.
10067 (tui_scroll_left): Rename tuiScrollLeft.
10068 (tui_scroll_right): Rename tuiScrollRight.
10069 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10070 (tui_resize_all): Rename tuiResizeAll.
10071 (tui_refresh_all_win): Rename tuiRefreshAll.
10072 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10073 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10074 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10075 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10076
10077 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10078 (tui_erase_data_content): Rename tuiEraseDataContent.
10079 (tui_display_all_data): Rename tuiDisplayAllData.
10080 (tui_check_data_values): Rename tuiCheckDataValues.
10081 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10082 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10083 (tui_first_data_element_no_in_line): Rename
10084 tuiFirstDataElementNoInLine.
10085 (tui_delete_data_content_windows): Rename
10086 tuiDeleteDataContentWindows.
10087 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10088 (tui_display_data_from): Rename tuiDisplayDataFrom.
10089 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10090 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10091 * tui/tui-win.c, tui/tui-regs.c: Update references.
10092 * tui/tui-layout.c, tui/tui.c: Update references.
10093
10094 * tui/tui-wingeneral.h: Update copyright.
10095 (m_allBeVisible): Delete macro.
10096 (m_allBeInvisible): Delete macro.
10097 (struct tui_gen_win_info): Declare.
10098 (struct tui_win_info): Declare.
10099 (tui_unhighlight_win): Rename unhighlightWin.
10100 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10101 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10102 (tui_make_window): Rename makeWindow.
10103 (tui_copy_win): Rename copyWin.
10104 (tui_box_win): Rename boxWin.
10105 (tui_highlight_win): Rename highlightWin.
10106 (tui_check_and_display_highlight_if_needed): Rename
10107 checkAndDisplayHighlightIfNeeded.
10108 (tui_refresh_all): Rename refreshAll.
10109 (tui_delete_win): Rename tuiDelwin.
10110 (tui_refresh_win): Rename tuiRefreshWin.
10111 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10112 (tui_make_visible, tui_make_invisible): New functions.
10113 (tui_make_all_visible, tui_make_all_invisible): New functions.
10114 (make_all_visible): Rename makeAllVisible.
10115 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10116 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10117 * tui/tui-windata.c, tui/tui-win.c: Update references.
10118 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10119 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10120
10121 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10122
10123 * proc-api.c (write_with_trace): Initialize local variable to
10124 silence compiler warning.
10125
10126 2004-02-06 Andrew Cagney <cagney@redhat.com>
10127
10128 * tui/tui-source.h: Do not include "defs.h".
10129 (struct tui_win_info): Declare.
10130 (tui_set_source_content_nil): Declare.
10131 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10132 (union tui_line_or_address): Rename _TuiLineOrAddress.
10133 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10134 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10135 (tui_update_source_window_as_is): Rename
10136 tuiUpdateSourceWindowAsIs.
10137 (tui_update_source_windows_with_addr): Rename
10138 tuiUpdateSourceWindowsWithAddr.
10139 (tui_update_source_windows_with_line): Rename
10140 tuiUpdateSourceWindowsWithLine.
10141 (tui_clear_source_content): Rename tuiClearSourceContent.
10142 (tui_erase_source_content): Rename tuiEraseSourceContent.
10143 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10144 (tui_show_source_content): Rename tuiShowSourceContent.
10145 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10146 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10147 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10148 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10149 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10150 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10151 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10152 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10153 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10154 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10155 (struct tui_win_info): Declare.
10156 * tui/tui-stack.c: Update references.
10157 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10158 * tui/tui-win.c, tui/tui-source.c: Ditto.
10159 * tui/tui.c, tui/tui-disasm.c: Ditto.
10160
10161 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10162
10163 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10164 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10165
10166 2004-02-05 Mark Kettenis <kettenis@gnu.org>
10167
10168 * infrun.c (handle_inferior_event): Allow for breakpoint
10169 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10170 and SIGEMT. Update comments.
10171 * NEWS (Revised SPARC target): Mention support for non-executable
10172 stack.
10173
10174 2004-02-04 Mark Kettenis <kettenis@gnu.org>
10175
10176 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10177 * inftarg.c: Update copyright year.
10178 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10179 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10180 (sparc_xfer_wcookie): New function.
10181 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10182 * Makefile.in (sparc-nat.o): Update dependencies.
10183 * config/sparc/nm-nbsd.h: Include "target.h".
10184 (NATIVE_XFER_WCOOKIE): New define.
10185 (sparc_xfer_wcookie): New prototype.
10186
10187 2004-02-04 Andrew Cagney <cagney@redhat.com>
10188
10189 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10190 SYSCALL_TRAP function.
10191 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10192
10193 2004-02-04 Andrew Cagney <cagney@redhat.com>
10194 Daniel Jacobowitz <drow@mvista.com>
10195
10196 * objfiles.h: Delete comments refering to inside_entry_func and
10197 DEPRECATED_FRAME_CHAIN_VALID.
10198 * defs.h (inside_entry_func): Update prototype..
10199 * blockframe.c (inside_entry_func): Rename to
10200 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10201 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10202
10203 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10204
10205 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10206 outside of #ifdef SOLIB_ADD region.
10207 (do_restore_lang_radix_cleanup): Ditto.
10208 (resolve_pending_breakpoint): Ditto.
10209
10210 2004-02-03 Andrew Cagney <cagney@redhat.com>
10211
10212 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10213 (process_note_abi_tag_sections): Delete unused function.
10214 (ia64_read_fp): Delete unused function.
10215 (gdbarch_extract_struct_value_address): Delete declaration.
10216
10217 2004-02-02 Andrew Cagney <cagney@redhat.com>
10218
10219 * vax-tdep.c (vax_frame_chain): Delete call to
10220 deprecated_inside_entry_file.
10221 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10222
10223 2004-02-02 Mark Kettenis <kettenis@gnu.org>
10224
10225 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10226 column that's "empty" or "same value" when eliminating REG_RA
10227 rules.
10228
10229 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10230
10231 * NEWS: Add information about new pending breakpoint support.
10232
10233 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10234
10235 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10236 and pending fields for pending breakpoint support.
10237 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10238 (condition_command): Only parse condition if not a pending
10239 breakpoint.
10240 (print_one_breakpoint): Add support for pending breakpoints.
10241 (describe_other_breakpoints): Add checks to verify we are not
10242 dealing with pending breakpoints.
10243 (check_duplicates): Don't check pending breakpoints.
10244 (set_raw_breakpoint): Initialize pending flag.
10245 (do_restore_lang_radix_cleanup): New cleanup routine.
10246 (resolve_pending_breakpoint): New function.
10247 (re_enable_breakpoints_in_shlibs): Try and resolve any
10248 pending breakpoints via resolve_pending_breakpoint.
10249 (mention): Add pending breakpoint support.
10250 (parse_breakpoint_sals): Add new parameter to pass to
10251 decode_line_1 to indicate silent errors when files or functions
10252 are not found. Change all callers.
10253 (do_captured_parse_breakpoint): New function.
10254 (break_command_1): Change prototype to return an rc value and to
10255 take an optional pending breakpoint pointer. Support creating
10256 a pending breakpoint if a "not found" form of error occurs when
10257 parsing the breakpoint. Also support resolving an existing pending
10258 breakpoint and be silent if the resolution fails.
10259 (create_breakpoints): Change prototype to take pending breakpoint
10260 pointer. When resolving a pending breakpoint, use the new pointer
10261 to provide a conditional or commands added by the end-user.
10262 (delete_breakpoint): Add appropriate check for pending.
10263 (breakpoint_re_set_one): Ditto.
10264 (do_enable_breakpoint): Ditto.
10265
10266 2004-02-02 David Carlton <carlton@kealia.com>
10267
10268 * valops.c (enum oload_classification): New.
10269 (find_overload_match): Break implementation into separate
10270 functions; delete #if 0'd code; look for symbols within
10271 namespaces.
10272 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10273 (find_oload_champ,oload_method_static,classify_oload_match): New.
10274 * cp-support.h: Add declaration for cp_func_name; update
10275 declaration for make_symbol_overload_list.
10276 * cp-support.c (cp_func_name): New.
10277 (overload_list_add_symbol): Fix comment, use
10278 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10279 (make_symbol_overload_list): Take a function name and a namespace
10280 instead of a symbol; change implementation.
10281 (make_symbol_overload_list_using): New.
10282 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10283
10284 2004-02-02 Fred Fish <fnf@redhat.com>
10285
10286 * main.c (gdb_stdtarg): Move definition to group with other
10287 gdb_stdtarg definitions and update copyright years.
10288 * remote-sim.c (gdb_os_write_stderr): Write output to
10289 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10290 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
10291 gdb_stderr stream and update copyright years.
10292
10293 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10294
10295 * Makefile.in (mips-linux-nat.o): Update dependencies.
10296 * mips-linux-nat.c: Include mips-tdep.h.
10297
10298 2004-02-01 Roland McGrath <roland@redhat.com>
10299
10300 * sol-thread.c (sol_thread_xfer_partial): New function.
10301 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10302 (init_sol_core_ops): Likewise.
10303
10304 * procfs.c (procfs_xfer_partial): New function.
10305 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10306 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10307
10308 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10309 procfs_xfer_auxv function.
10310
10311 * procfs.c (procfs_make_note_section): If we can read
10312 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10313 * linux-proc.c (linux_make_note_section): Likewise.
10314
10315 * auxv.h: New file.
10316 * auxv.c: New file.
10317 * Makefile.in (auxv_h): New variable.
10318 (COMMON_OBS): Add auxv.o here.
10319 (auxv.o): New target.
10320
10321 * corelow.c (core_xfer_partial): New function.
10322 (init_core_ops): Use it for core_ops.to_xfer_partial.
10323
10324 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10325 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10326 macro if that is defined.
10327
10328 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10329
10330 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10331 and check the specified thread for each breakpoint.
10332 * breakpoint.h (bpstat_stop_status): Update prototype.
10333 * infrun.c (handle_inferior_event): Update calls to
10334 bpstat_stop_status.
10335
10336 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10337
10338 * Makefile.in (cli-cmds.o): Add $(readline_h).
10339
10340 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10341
10342 * cli/cli-cmds.c: Include readline.h.
10343 (complete_command): Pass the start of the last word to
10344 complete_line.
10345
10346 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10347
10348 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10349 argument, and change first argument to a CORE_ADDR.
10350 * breakpoint.h (bpstat_stop_status): Update prototype.
10351 * infrun.c (adjust_pc_after_break): Add a new comment.
10352 (handle_inferior_event): Update calls to bpstat_stop_status.
10353
10354 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10355
10356 * breakpoint.h: Update copyright years.
10357
10358 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10359
10360 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10361 (bpstat_stop_status): Don't decrement PC.
10362 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10363 prototype.
10364 * infrun.c (adjust_pc_after_break): New function.
10365 (handle_inferior_event): Call it, early. Remove later references
10366 to DECR_PC_AFTER_BREAK.
10367 (normal_stop): Add commentary.
10368
10369 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10370
10371 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10372 2004-01-27 double-free fix.
10373
10374 2004-01-31 Mark Kettenis <kettenis@gnu.org>
10375
10376 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10377 (sparc32_frame_prev_register): Handle StackGhost.
10378 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10379
10380 2004-01-29 Roland McGrath <roland@redhat.com>
10381
10382 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10383 * configure: Regenerated.
10384
10385 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10386 * Makefile.in (procfs.o): Add dep.
10387
10388 2004-01-28 Andrew Cagney <cagney@redhat.com>
10389
10390 * tui/tui-stack.h: Update copyright.
10391 (struct frame_info): Add opaque declaration.
10392 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10393 (tui_show_locator_content): Rename tuiShowLocatorContent.
10394 (tui_show_frame_info): Rename tuiShowFrameInfo.
10395 * tui/tui-stack.c: Update copyright. Update references.
10396 * tui/tui-winsource.c: Update references.
10397 * tui/tui-win.c: Update references.
10398 * tui/tui-layout.c: Update references.
10399 * tui/tui-hooks.c: Update copyright, update references.
10400 * tui/tui.c: Update copyright, update references.
10401 * tui/tui-disasm.c: Update references.
10402
10403 2004-01-28 David Carlton <carlton@kealia.com>
10404
10405 * dwarf2read.c (add_partial_structure): Use demangled name if
10406 namespace equals "".
10407
10408 2004-01-27 Jim Blandy <jimb@redhat.com>
10409
10410 Clean up misapplied patch:
10411 * dwarf2read.c (determine_prefix): Change one of the two forward
10412 declarations for 'determine_prefix_aux' to a declaration for this.
10413 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10414 argument to 'die_specification'.
10415
10416 * dwarf2read.c (read_func_scope): Re-indent comment.
10417
10418 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
10419
10420 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10421 b->exp to NULL after freeing so that error during re-parsing or
10422 evaluation of expressions associated with breakpoint don't
10423 eventually lead to re-freeing of storage.
10424 Committed by Andrew Cagney.
10425
10426 2004-01-27 Andrew Cagney <cagney@redhat.com>
10427
10428 * source.c (ambiguous_line_spec): Delete undefined declaration.
10429 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10430 (m32r_set_server_address, m32r_set_download_path): Ditto.
10431 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10432
10433 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
10434
10435 * dwarf2read.c: Update calls to changed and renamed functions, and
10436 references to moved variables.
10437
10438 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10439 language, language_defn, list_in_scope, and ftypes members.
10440 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10441 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10442 (baseaddr): Remove globals.
10443
10444 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10445 (set_cu_language, die_is_declaration, die_specification)
10446 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10447 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10448 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10449 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10450
10451 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10452 cu.list_in_scope. Don't initialize cu_header_offset.
10453 (add_partial_symbol): Add local baseaddr.
10454 (psymtab_to_symtab_1): Add local baseaddr. Use
10455 objfile->section_offsets for consistency. Don't initialize
10456 cu_header_offset; do initialize cu.header.offset and
10457 cu.list_in_scope.
10458 (read_file_scope, read_func_scope, read_lexical_block_scope)
10459 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10460
10461 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10462
10463 * PROBLEMS: Add gdb/1516.
10464
10465 2003-12-29 Robert Millan <robertmh@gnu.org>
10466
10467 Patch committed by Andrw Cagney.
10468 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10469 * configure.tgt: Match knetbsd*-gnu.
10470
10471 2004-01-26 Andrew Cagney <cagney@redhat.com>
10472
10473 * breakpoint.c (catch_command_1): Delete #ifdef code.
10474 (catch_fork_command_1): Delete #ifdef wrapper.
10475 (catch_exec_command_1): Ditto.
10476 (catch_load_command_1): Ditto.
10477 (catch_unload_command_1): Ditto.
10478
10479 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10480 (catch_breakpoint): Delete #if0ed function.
10481 (disable_catch_breakpoint): Ditto.
10482 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10483 (disable_catch, enable_catch, delete_catch): Ditto.
10484
10485 2004-01-26 Andrew Cagney <cagney@redhat.com>
10486
10487 * remote.c (echo_check, quit_flag): Delete variables.
10488 (cisco_kernel_mode): Delete variable.
10489 (minitelnet_return, tty_input, escape_count): Delete variables.
10490 (remote_cisco_mode): Delete variable.
10491 (remote_cisco_open, remote_cisco_close): Delete function.
10492 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10493 (init_remote_cisco_ops): Delete function.
10494 (_initialize_remote): Do not install "remote cisco" code.
10495 (read_frame): Delete cisco specific code.
10496 (remote_info_process): Delete function.
10497 (remote_wait): Delete cisco specific code.
10498 (remote_cisco_section_offsets): Delete function.
10499 (remote_cisco_objfile_relocate): Delete function.
10500 (remote_async_wait): Delete cisco specific code.
10501 (minitelnet, readtty, readsocket): Delete function.
10502
10503 2004-01-26 Andrew Cagney <cagney@redhat.com>
10504
10505 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10506 comments mentioning extract_returned_value_address.
10507 * infcmd.c (print_return_value): Update. Add comments on
10508 extract_returned_value_address.
10509 * stack.c (return_command): Add comments on
10510 extract_returned_value_address.
10511 * values.c: Update comment.
10512 * m32r-tdep.c: Update comment.
10513 * sparc-tdep.c: Update comment.
10514 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10516 * sh64-tdep.c (sh64_gdbarch_init): Update.
10517 * sh-tdep.c (sh_gdbarch_init): Update.
10518 * s390-tdep.c (s390_gdbarch_init): Update.
10519 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10520 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10521 * m68k-tdep.c (m68k_gdbarch_init): Update.
10522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10523 * m32r-tdep.c (m32r_gdbarch_init): Update.
10524 * ia64-tdep.c (ia64_gdbarch_init): Update.
10525 * h8300-tdep.c (h8300_gdbarch_init): Update.
10526 * frv-tdep.c (frv_gdbarch_init): Update.
10527 * arm-tdep.c (arm_gdbarch_init): Update.
10528 * alpha-tdep.c (alpha_gdbarch_init): Update.
10529
10530 2004-01-26 Andrew Cagney <cagney@redhat.com>
10531
10532 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10533 SYMBOL_LOCATION_FUNCS
10534 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10535 "struct symbol_ops".
10536 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10537 type to "struct symbol_ops".
10538 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10539 (struct symbol): Replace ".aux_value.loc.funcs" and
10540 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10541 (SYMBOL_OBJFILE): Delete macro.
10542 (SYMBOL_LOCATION_FUNCS): Delete macro.
10543 (SYMBOL_LOCATION_BATON): Update.
10544 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10545 intead of SYMBOL_LOCATION_FUNCS.
10546 * ax-gdb.c (gen_var_ref): Ditto.
10547 * printcmd.c (address_info): Ditto.
10548 * findvar.c (read_var_value): Ditto.
10549 (symbol_read_needs_frame): Ditto.
10550
10551 2004-01-26 Andrew Cagney <cagney@redhat.com>
10552
10553 * dwarf2read.c (read_func_scope): Document frame-base hack.
10554
10555 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10556
10557 * infcmd.c (print_return_value): Plug memory leak; delete
10558 ui_stream object. Rename argument `structure_return' to
10559 `struct_return'.
10560
10561 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10562
10563 * infcmd.c (print_return_value): Wrap long lines.
10564 (finish_command_continuation, finish_command): Remove unused
10565 variable `funcaddr'. Fix some coding-standards problems.
10566
10567 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
10568 SECT_SIZE is large enough, not whether it's exactly the right size.
10569 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10570 TDEP->fpregset to zero.
10571
10572 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
10573 floating-point registers for traditional NetBSD core files.
10574 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10575 TDEP->sizeof_fpregset here.
10576
10577 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10578
10579 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10580 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10581 function with code split out from
10582 sparc32nbsd_sigcontext_frame_cache.
10583 (sparc32nbsd_sigcontext_frame_cache): Use
10584 sparc32nbsd_sigcontext_saved_regs.
10585 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10586 OpenBSD.
10587 * sparcobsd-tdep.c: New file.
10588 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10589 (sparcobsd-tdep.o): New dependency.
10590 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10591 * config/sparc/obsd.mt: New file.
10592
10593 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10594 TDEP->fpregset to be initialized to enable core file register
10595 sets.
10596
10597 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10598
10599 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10600 Add opaque declarations.
10601 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10602 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10603 function with code split out from
10604 sparc64nbsd_sigcontext_frame_cache.
10605 (sparc64nbsd_sigcontext_frame_cache): Use
10606 sparc64nbsd_sigcontext_saved_regs.
10607 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10608 OpenBSD.
10609 * sparc64obsd-tdep.c: New file.
10610 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10611 (sparc64obsd-tdep.o): New dependency.
10612 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10613 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10614 * config/sparc/obsd64.mt: New file.
10615
10616 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10617 read the instruction at PC.
10618
10619 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10620 value of GDB_OSABI_DEFAULT.
10621 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10622 instead of GDB_OSABI_NETBSD_AOUT.
10623
10624 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10625
10626 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10627 copyright.
10628
10629 2004-01-23 Andrew Cagney <cagney@redhat.com>
10630
10631 * printcmd.c (display_command): Replace tui_set_display call with
10632 tui_set_layout_for_display_command.
10633 * tui/tui.h (enum tui_win_type): Define.
10634 (tui_set_layout): Delete declaration.
10635 (tui_set_layout_for_display_command): Rename set_tui_layout.
10636 * tui/tui-data.h (enum tui_layout_type): Define.
10637 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10638 "tui.h".
10639 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10640 (tui_default_win_height): Rename tuiDefaultWinHeight.
10641 (tui_default_win_viewport_height): Rename
10642 tuiDefaultWinViewportHeight.
10643 (tui_set_layout): RenametuiSetLayout.
10644 * tui/tui-layout.c: Update references.
10645 * tui/tui.c: Update references.
10646 * tui/tui-disasm.c: Update references.
10647
10648 2004-01-23 David Carlton <carlton@kealia.com>
10649
10650 Partial workaround for PR c++/1511:
10651 * cp-namespace.c: Include frame.h.
10652 (cp_lookup_transparent_type): New
10653 (cp_lookup_transparent_type_loop): New.
10654 * cp-support.h: Declare cp_lookup_transparent_type.
10655 * symtab.c (basic_lookup_transparent_type): Renamed from
10656 lookup_transparent_type.
10657 (lookup_transparent_type): Replace old body by a call to
10658 current_language->la_lookup_transparent_type.
10659 * symtab.h: Update copyright. Declare
10660 basic_lookup_transparent_type.
10661 * language.h: Update copyright.
10662 (struct language_defn): Add la_lookup_transparent_type.
10663 * language.c: Update copyright.
10664 (unknown_language_defn): Add basic_lookup_transparent_type.
10665 (auto_language_defn): Add basic_lookup_transparent_type.
10666 (local_language_defn): Add basic_lookup_transparent_type.
10667 * ada-lang.c: Update copyright.
10668 (ada_language_defn): Add basic_lookup_transparent_type.
10669 * c-lang.c: Update copyright.
10670 (c_language_defn): Add basic_lookup_transparent_type.
10671 (cplus_language_defn): Add basic_lookup_transparent_type.
10672 (asm_language_defn): Add basic_lookup_transparent_type.
10673 (minimal_language_defn): Add basic_lookup_transparent_type.
10674 * f-lang.c: Update copyright.
10675 (f_language_defn): Add basic_lookup_transparent_type.
10676 * jv-lang.c: Update copyright.
10677 (java_language_defn): Add basic_lookup_transparent_type.
10678 * m2-lang.c: Update copyright.
10679 (m2_language_defn): Add basic_lookup_transparent_type.
10680 * objc-lang.c: Update copyright.
10681 (objc_language_defn): Add basic_lookup_transparent_type.
10682 * p-lang.c: Update copyright.
10683 (p_language_defn): Add basic_lookup_transparent_type.
10684 * scm-lang.c: Update copyright.
10685 (scm_language_defn): Add basic_lookup_transparent_type.
10686 * Makefile.in (cp-namespace.o): Depend on frame.h.
10687
10688 2004-01-23 David Carlton <carlton@kealia.com>
10689
10690 Patch for PR c++/1520:
10691 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10692 properly if we have a specification die.
10693 (determine_prefix_aux): Rename from determine_prefix.
10694 (determine_prefix): Like the old determine_prefix, but never
10695 returns NULL.
10696
10697 2004-01-23 Theodore A. Roth <troth@openavr.org>
10698
10699 * avr-tdep.c: Update copyright.
10700 (avr_iaddr_p): Delete unused function.
10701 (avr_saddr_p): Delete unused function.
10702
10703 2004-01-23 David Carlton <carlton@kealia.com>
10704
10705 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10706 Fix for PR symtab/1534.
10707
10708 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10709
10710 * NEWS (New native configurations): Mention OpenBSD/sparc and
10711 OpenBSD/sparc64.
10712 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10713 * configure.host: Likewise.
10714 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10715 handler for OpenBSD.
10716 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10717
10718 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10719
10720 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10721 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10722
10723 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10724 * cli/cli-cmds.c (shell_escape): Likewise.
10725
10726 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10727 OpenBSD .note.openbsd.ident sections.
10728
10729 2004-01-22 David Carlton <carlton@kealia.com>
10730
10731 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10732 get_scope_pc_bounds.
10733 (read_file_scope): Ditto.
10734 (get_scope_pc_bounds): New function, produced by extracting code
10735 from the above two functions, consolidating it, and adding support
10736 for DW_TAG_namespace.
10737
10738 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10739
10740 * osabi.c (MAX_NOTESZ): New define.
10741 (check_note): New function.
10742 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10743 check_note.
10744
10745 2004-01-21 Roland McGrath <roland@redhat.com>
10746
10747 * MAINTAINERS (write after approval): Add myself.
10748
10749 2004-01-21 Eli Zaretskii <eliz@gnu.org>
10750
10751 * utils.c (init_page_info): Move declarations of `rows' and
10752 `cols' before the __GO32__-specific code. Move the closing brace
10753 outside the #ifdef __GO32__..#endif block.
10754 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10755
10756 2004-01-21 Paul Brook <paul@codesourcery.com>
10757
10758 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10759 BPSTAT_WHAT_CHECK_SHLIBS.
10760
10761 2004-01-21 Paul Brook <paul@codesourcery.com>
10762
10763 * MAINTAINERS: Add myself to write-after-approval.
10764
10765 2004-01-20 Andrew Cagney <cagney@redhat.com>
10766
10767 * ax-gdb.c (print_axs_value): Delete unused function.
10768 * jv-lang.c (java_lookup_type): Delete unused function.
10769 * cli/cli-dump.c (dump_filetype): Delete unused function.
10770 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10771 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10772 (mips_getstring): Delete unused function.
10773 (pmon_insert_breakpoint): Delete #if0ed function.
10774 (PMON_MAX_BP): Delete #if0ed MACRO.
10775 (mips_pmon_bp_info): Delete #if0ed variable.
10776 (pmon_remove_breakpoint): Delete #if0ed function.
10777 * monitor.c (monitor_write_even_block): Delete unused function.
10778 (monitor_write_memory_block): Delete #if0ed code.
10779 * dink32-rom.c (dink32_load): Delete unused function.
10780 (_initialize_dink32_rom): Delete #if0ed code.
10781 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10782
10783 * tui/tui-command.c: Update references.
10784 * tui/tui-io.c: Update references.
10785 * tui/tui-command.h: Update copyright.
10786 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10787
10788 * source.c (ambiguous_line_spec): Delete never-defined function.
10789 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10790 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10791 * cli/cli-cmds.c (validate_comname): Ditto.
10792
10793 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10794 "tui-data.h".
10795 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10796 (tui_show_disassem): Rename tuiShowDisassem.
10797 (tui_show_disassem_and_update_source): Rename
10798 tuiVerticalDisassemScroll.
10799 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10800 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10801 * tui/tui.h: Update copyright.
10802 (enum tui_status): Define.
10803 * tui/tui-data.h (enum tui_scroll_direction): Define.
10804 * tui/tui-disasm.c: Update copyright. Update references.
10805 * tui/tui-winsource.c: Update copyright. Update references.
10806 * tui/tui-win.c: Update references.
10807 * tui/tui-layout.c: Update references.
10808
10809 2004-01-20 Andrew Cagney <cagney@redhat.com>
10810
10811 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10812 sym2 to start of block.
10813
10814 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10815
10816 * MAINTAINERS: Delete mmalloc.
10817 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10818 * NEWS: Mention removal of --with-malloc.
10819 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10820 * config.in: Regenerate.
10821 * configure: Regenerate.
10822 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10823 USE_MMALLOC, MMCHECK_FORCE.
10824 * gdbinit.in: Remove mmalloc.
10825 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10826 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10827 * config/i386/go32.mh: Likewise.
10828 * config/i386/interix.mh: Likewise.
10829 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10830
10831 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10832
10833 * linespec.c (decode_variable, symtab_from_filename): Call
10834 error_silent with error message instead of throwing an exception
10835 directly.
10836 * defs.h (error_silent, error_output_message): Add prototypes.
10837 (catch_exceptions_with_msg): Ditto.
10838 * utils.c (error_silent, error_output_message): New functions.
10839 * top.c (catch_exceptions_with_msg): New function.
10840
10841 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10842
10843 * mi/mi-cmds.h (enum print_values): Add definition.
10844
10845 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10846 type and value for simple data types and just the name and type
10847 for complex ones, if required.
10848
10849 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10850 children, if required.
10851
10852 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10853
10854 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10855 unused declarations.
10856
10857 2004-01-19 Andrew Cagney <cagney@redhat.com>
10858
10859 * top.h (mapped_symbol_files): Delete declaration.
10860 * main.c (captured_main): Delete option "m" and "mapped".
10861 * objfiles.c (mapped_symbol_files): Delete variable.
10862 * symfile.c (symbol_file_command): Delete mmap code.
10863 (symbol_file_add_with_addrs_or_offsets): Ditto.
10864 (add_symbol_file_command, reread_separate_symbols): Ditto.
10865 * objfiles.h (OBJF_MAPPED): Delete.
10866 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10867 (free_objfile) [USE_MMALLOC]: Ditto.
10868 (open_existing_mapped_file): Delete function.
10869 (open_mapped_file): Delete function.
10870 (map_to_file): Delete function.
10871
10872 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10873
10874 * infrun.c (step_into_function): Account for possible breakpoint
10875 adjustment when computing ``stop_func_start''.
10876
10877 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10878
10879 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10880 the region size against the size of a pointer, not the size of
10881 a register as given by DEPRECATED_REGISTER_SIZE.
10882
10883 2004-01-19 Andrew Cagney <cagney@redhat.com>
10884
10885 * tui/tui-regs.h: Include "tui-data.h".
10886 (tuiFirstRegElementNoInLine): Delete declaration.
10887 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10888 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10889 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10890 (tui_calculate_regs_column_count): Rename
10891 tuiCalculateRegsColumnCount.
10892 (tui_check_register_values): Rename tuiCheckRegisterValues.
10893 (tui_show_registers): Rename tuiShowRegisters.
10894 (tui_display_registers_from_line): Rename
10895 tuiDisplayRegistersFromLine.
10896 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10897 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10898 (tui_first_reg_element_no_inline): Rename
10899 tuiFirstRegElementNoInLine.
10900 * tui/tui-data.h: Update copyright.
10901 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10902 * tui/tui-windata.c: Update copyright, update references.
10903 * tui/tui-regs.c: Update copyright, update references.
10904 * tui/tui-win.c: Update copyright, update references.
10905 * tui/tui-layout.c: Update copyright, update references.
10906
10907 2004-01-18 Andrew Cagney <cagney@redhat.com>
10908
10909 * tui/tui-io.c: Update copyright.
10910 (key_is_end_sequence, key_is_backspace): New functions.
10911 (key_is_command_char, key_is_start_sequence): New function.
10912 (tui_getc): Update references.
10913 * tui/tui-io.h: Update copyright.
10914 (m_tuiStartNewLine): Delete macro.
10915 (m_isBackspace, m_isDeleteChar): Delete macros.
10916 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10917 (m_isNextPage, m_isPrevPage): Delete macros.
10918 (m_isLeftArrow, m_isRightArrow): Delete macros.
10919 (m_isXdbStyleCommandChar): Delete macro.
10920 (key_is_start_sequence): Declare, replace m_isStartSequence.
10921 (key_is_end_sequence): Declare, replace m_isEndSequence.
10922 (key_is_backspace): Declare ,replace m_isBackspace.
10923 (key_is_command_char): Declare, replace m_isCommandChar.
10924 * tui/tui-command.c: Update copyright.
10925 (tuiDispatchCtrlChar): Update references.
10926
10927 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10928 tuiSourceWin.h.
10929
10930 * tui/tui-command.c: Rename tui/tuiCommand.c.
10931 * tui/tui-command.h: Rename tui/tuiCommand.h.
10932 * tui/tui-data.c: Rename tui/tuiData.c.
10933 * tui/tui-data.h: Rename tui/tuiData.h.
10934 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10935 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10936 * tui/tui-io.c: Rename tui/tuiIO.c.
10937 * tui/tui-io.h: Rename tui/tuiIO.h.
10938 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10939 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10940 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10941 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10942 * tui/tui-source.c: Rename tui/tuiSource.c.
10943 * tui/tui-source.h: Rename tui/tuiSource.h.
10944 * tui/tui-stack.c: Rename tui/tuiStack.c.
10945 * tui/tui-stack.h: Rename tui/tuiStack.h.
10946 * tui/tui-win.c: Rename tui/tuiWin.c.
10947 * tui/tui-win.h: Rename tui/tuiWin.h.
10948 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10949 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10950 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10951 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10952 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10953 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10954 * tui/tui-file.c: Update includes.
10955 * tui/tui-hooks.c: Update includes.
10956 * tui/tui-interp.c: Update includes.
10957 * tui/tui.c: Update includes.
10958 * Makefile.in: Update all tui/ dependencies.
10959 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10960
10961 * Makefile.in: Update copyright. Update dependencies.
10962
10963 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10964 problem.
10965
10966 2004-01-18 Andrew Cagney <cagney@redhat.com>
10967
10968 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10969 instead of register_gdbarch_init.
10970
10971 * remote-sds.c (tohex): Delete unused function. Update copyright.
10972 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10973 * v850-tdep.c (v850_register_virtual_size): Ditto.
10974 * target.c (normal_target_post_startup_inferior): Ditto.
10975 * source.c (ambiguous_line_spec): Ditto.
10976 * remote.c (adapt_remote_get_threadinfo): Ditto.
10977 * mi/mi-out.c (out_field_fmt): Ditto.
10978 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10979 (output_control_change_notification): Ditto.
10980 * m68k-tdep.c (m68k_register_byte): Ditto.
10981 (m68k_remote_breakpoint_from_pc): Ditto.
10982 * ui-out.c (init_ui_out_state): Delete unused declaration.
10983 * stabsread.c (search_value): Ditto.
10984 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10985 * maint.c (print_section_table): Ditto.
10986 * infrun.c (set_follow_fork_mode_command): Ditto.
10987
10988 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10989
10990 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10991 DW_CFA_def_cfa_exporession. Add support for
10992 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10993 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10994
10995 2004-01-18 Andrew Cagney <cagney@redhat.com>
10996
10997 * ocd.c: Update copyright.
10998 (bdm_read_register_command): Delete unused function.
10999 (_initialize_remote_ocd): Delete commented out reference.
11000 (get_quoted_char, reset_packet): Delete #if0ed function.
11001 (output_packet, put_quoted_char): Delete #if0ed function.
11002 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11003 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11004 (BDM_BREAKPOINT): Delete #if0ed macro.
11005 (remote_timeout): Delete #if0ed variable.
11006
11007 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11008
11009 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11010 (core-sol2.o): Remove dependency.
11011 * core-sol2.c: Remove file.
11012
11013 2004-01-17 Andrew Cagney <cagney@redhat.com>
11014
11015 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11016 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11017 enums.
11018
11019 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11020
11021 * remote.c: Update copyright years.
11022
11023 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11024
11025 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11026
11027 2004-01-17 Andrew Cagney <cagney@redhat.com>
11028
11029 * mdebugread.c: Update copyright.
11030 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11031 (parse_type, parse_procedure): Ditto.
11032 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11033
11034 * cris-tdep.c (cris_store_struct_return): Put back accidently
11035 deleted function.
11036
11037 * gdbarch.sh: Update copyright year.
11038 * gdbarch.h, gdbarch.c: Re-generate.
11039
11040 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11041
11042 Suggested by George Anzinger.
11043 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11044 correct stack offset. Include unknown opcode numbers in the error
11045 message.
11046
11047 2004-01-17 Andrew Cagney <cagney@redhat.com>
11048
11049 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11050 extract_struct_value_address, i386 does not set it.
11051 * sparc64-tdep.c (sparc64_init_abi): Do not set
11052 extract_struct_value_address, never called.
11053 (sparc64_extract_struct_value_address): Delete function.
11054 * m68hc11-tdep.c: Update copyright.
11055 (m68hc11_gdbarch_init): Delete redundant assignment of
11056 extract_struct_value_address.
11057 * i386-tdep.c: Update copyright.
11058 (i386_gdbarch_init): Do not set extract_struct_value_address,
11059 never called.
11060 (i386_extract_struct_value_address): Delete function.
11061 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11062 extract_struct_value_address, never called.
11063 (sparc32_extract_struct_value_address): #if 0 function. Add
11064 comments explaining its future.
11065
11066 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11067
11068 * arm-tdep.c (arm_write_pc): New function.
11069 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11070
11071 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11072
11073 * breakpoint.c (must_shift_inst_regs): Delete.
11074 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11075 and SHIFT_INST_REGS.
11076 * infcmd.c (step_1, step_1_continuation): Delete references to
11077 SHIFT_INST_REGS.
11078 * infrun.c (keep_going): Likewise.
11079 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11080 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11081
11082 2004-01-17 Andrew Cagney <cagney@redhat.com>
11083
11084 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11085 * gdbarch.h, gdbarch.c: Re-generate.
11086 * infcmd.c (print_return_value): Delete reference to
11087 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11088
11089 * cris-tdep.c (cris_gdbarch_init): Do not set
11090 deprecated_extract_struct_value_address.
11091
11092 * xstormy16-tdep.c: Update copyright.
11093 (xstormy16_extract_struct_value_address): Update to current
11094 extract struct value address interface.
11095 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11096 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11097 current extract struct value address interface.
11098 (sh64_gdbarch_init): Set extract_struct_value_address.
11099
11100 * cris-tdep.c: Update copyright.
11101 (cris_extract_struct_value_address): Delete function.
11102 (struct_return_address): Delete variable.
11103 (cris_store_struct_return): Do not set struct_return_address.
11104
11105 * mcore-tdep.c: Update copyright.
11106 (mcore_extract_struct_value_address): Delete function. Update
11107 comments.
11108 (mcore_gdbarch_init): Update.
11109 * mn10300-tdep.c: Update copyright.
11110 (mn10300_extract_struct_value_address): Delete function.
11111 (mn10300_gdbarch_init): Update.
11112 * v850-tdep.c: Update copyright.
11113 (v850_extract_struct_value_address): Delete.
11114 (v850_gdbarch_init): Update.
11115 * ns32k-tdep.c: Update copyright.
11116 (ns32k_extract_struct_value_address): Delete.
11117 (ns32k_gdbarch_init): Update.
11118 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11119 (hppa_gdbarch_init): Update.
11120 * vax-tdep.c: Update copyright.
11121 (vax_extract_struct_value_address): Delete.
11122 (vax_gdbarch_init): Update.
11123
11124 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11125 * gdbarch.h, gdbarch.c: Re-generate.
11126 * procfs.c (procfs_fetch_registers): Delete reference to
11127 DEPRECATED_NPC_REGNUM.
11128 (procfs_store_registers): Ditto.
11129 * regcache.c (generic_target_write_pc): Simplify.
11130 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11131
11132 * core-sol2.c (fetch_core_registers): Replace
11133 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11134
11135 * hppa-tdep.c: Update copyright year.
11136 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11137 NPC_REGNUM.
11138 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11139
11140 * mips-tdep.c (mips_write_pc): New function.
11141 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11142 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11143 (mips_find_saved_regs, mips_software_single_step: Ditto.
11144 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11145 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11146
11147 2004-01-17 Andrew Cagney <cagney@redhat.com>
11148
11149 * mips-tdep.c: Re-indent. Group functions by ABI.
11150
11151 2004-01-17 Andrew Cagney <cagney@redhat.com>
11152
11153 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11154 * gdbarch.c: Re-generate.
11155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11156 DECR_PC_AFTER_BREAK to zero.
11157 * vax-tdep.c (vax_gdbarch_init): Ditto.
11158 * v850-tdep.c (v850_gdbarch_init): Ditto.
11159 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11160 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11161 * sh-tdep.c (sh_gdbarch_init): Ditto.
11162 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11163 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11164 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11165 * mips-tdep.c (mips_gdbarch_init): Ditto.
11166 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11168 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11169 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11170 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11171 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11172 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11173 * frv-tdep.c (frv_gdbarch_init): Ditto.
11174 * cris-tdep.c (cris_gdbarch_init): Ditto.
11175 * avr-tdep.c (avr_gdbarch_init): Ditto.
11176 * arm-tdep.c (arm_gdbarch_init): Ditto.
11177 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11178
11179 2004-01-17 J. Brobecker <brobecker@gnat.com>
11180
11181 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11182 Delete, no longer used.
11183 (read_subrange_type): New function, mostly extracted from
11184 read_array_type().
11185 (read_array_type): Replace extracted code by call to
11186 read_subrange_type().
11187 (dwarf2_get_attr_constant_value): New function.
11188 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11189 (add_partial_symbol): Likewise.
11190 (process_die): Likewise.
11191 (new_symbol): Likewise.
11192 (read_type_die): Likewise.
11193
11194 2004-01-16 Andrew Cagney <cagney@redhat.com>
11195
11196 * symfile.c: Update copyright year.
11197 (compare_symbols): Delete unused function.
11198 * stabsread.c: Update copyright year.
11199 (lrs_general_complaint): Delete unused function.
11200 (ref_search_value): Ditto.
11201 (get_substring): Delete declaration.
11202 * sh64-tdep.c: Update copyright year.
11203 (sh64_get_gdb_regnum): Delete unused function.
11204 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11205 Delete unused function.
11206
11207 2004-01-17 Mark Kettenis <kettenis@gnu.org>
11208
11209 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11210 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11211
11212 2004-01-16 Andrew Cagney <cagney@redhat.com>
11213
11214 Changes from Peter Schauer.
11215 * rs6000-tdep.c: Update copyright year.
11216 (rs6000_push_dummy_call): Update the stack pointer before
11217 accessing the corresponding stack region.
11218 * rs6000-nat.c: Update copyright year.
11219 (set_host_arch): Set "info.abfd" to "exec_bfd".
11220
11221 2004-01-15 Mark Kettenis <kettenis@gnu.org>
11222
11223 * blockframe.c: Update copyright year.
11224 (inside_entry_func): Don't treat a zero PC specially.
11225
11226 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
11227
11228 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11229 variable.
11230 (gcore_create_callback): Ditto. Skip any memory segment that has
11231 no permissions set.
11232
11233 2004-01-14 David Carlton <carlton@kealia.com>
11234
11235 Change symbols for C++ nested types to contain the fully qualified
11236 name, if possible. (At least in the DWARF-2 case.) Partial fix
11237 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11238 c++/895.
11239 * c-exp.y (qualified_type): Handle types nested within classes.
11240 * cp-namespace.c: Update comments.
11241 (cp_set_block_scope): Delete #if 0.
11242 (cp_lookup_nested_type): Handle types nested within classes.
11243 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11244 when appropriate.
11245 (add_partial_symbol): Add the name of the enclosing namespace to
11246 types.
11247 (pdi_needs_namespace): New.
11248 (add_partial_namespace): Tweak comment.
11249 (add_partial_structure): New.
11250 (psymtab_to_symtab_1): Initialize processing_current_prefix
11251 here...
11252 (process_die): instead of here.
11253 (read_structure_scope): Try to figure out the name of the class or
11254 namespace that the structure might be defined within.
11255 (read_enumeration): Generate fully-qualified names, if possible.
11256 (read_namespace): Don't set name to NULL.
11257 (die_specification): New.
11258 (new_symbol): Generate fully-qualified names for types.
11259 (read_type_die): Determine appropriate prefix.
11260 (determine_prefix): New.
11261 (typename_concat): New.
11262 (class_name): New.
11263 * valops.c (value_aggregate_elt): Pass NOSIDE to
11264 value_struct_elt_for_reference.
11265 (value_struct_elt_for_reference): Make static, add NOSIDE
11266 parameter, call value_maybe_namespace_elt as a last resort.
11267 (value_namespace_elt): Break out code into
11268 value_maybe_namespace_elt.
11269 (value_maybe_namespace_elt): New.
11270
11271 2004-01-12 Andrew Cagney <cagney@redhat.com>
11272
11273 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11274 cooked floating-point registers.
11275 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11276 and value_to_register.
11277
11278 2004-01-13 Andrew Cagney <cagney@redhat.com>
11279
11280 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11281 * gdbarch.c: Re-generate.
11282 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11283 FUNCTION_START_OFFSET.
11284 * v850-tdep.c (v850_gdbarch_init): Ditto.
11285 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11286 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11287 * sh-tdep.c (sh_gdbarch_init): Ditto.
11288 * s390-tdep.c (s390_gdbarch_init): Ditto.
11289 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11290 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11291 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11292 * mips-tdep.c (mips_gdbarch_init): Ditto.
11293 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11294 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11296 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11297 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11298 * i386-tdep.c (i386_gdbarch_init): Ditto.
11299 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11300 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11301 * frv-tdep.c (frv_gdbarch_init): Ditto.
11302 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11303 * cris-tdep.c (cris_gdbarch_init): Ditto.
11304 * avr-tdep.c (avr_gdbarch_init): Ditto.
11305 * arm-tdep.c (arm_gdbarch_init): Ditto.
11306 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11307
11308 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
11309
11310 * infrun.c (follow_fork_mode_ask): Remove.
11311 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11312 (follow_fork): Simplify and remove internal error for
11313 follow_fork_mode_ask.
11314 (_initialize_infrun): Update "set follow-fork-mode" help text.
11315
11316 2004-01-13 Andrew Cagney <cagney@redhat.com>
11317
11318 * configure.in: Update copyright year.
11319 (build_warnings): Add -Wunused-label.
11320 * configure: Re-generate.
11321
11322 2004-01-12 Andrew Cagney <cagney@redhat.com>
11323
11324 * exec.h (exec_ops): Make "extern".
11325
11326 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11327 the function is void.
11328 (mips_pseudo_register_write): Ditto.
11329
11330 2004-01-12 Andrew Cagney <cagney@redhat.com>
11331
11332 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11333 call. Never defined.
11334 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11335 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11336 (struct sparc_gregset, struct regcache): Ditto.
11337 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11338
11339 2004-01-12 Andrew Cagney <cagney@redhat.com>
11340
11341 * mi/ChangeLog: Delete file. Renamed to ...
11342 * mi/ChangeLog-1999-2003: New file.
11343 * tui/ChangeLog: Delete file. Renamed to ...
11344 * tui/ChangeLog-1998-2003: New file.
11345
11346 2004-01-11 Mark Kettenis <kettenis@gnu.org>
11347
11348 * sparc64nbsd-tdep.c: Include "regset.h".
11349 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11350 Remove variables.
11351 (fetch_core_registers): Remove function.
11352 (sparc64nbsd_core_fns): Remove variable.
11353 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11354 functions.
11355 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11356 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11357 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11358
11359 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11360 sparc_extract_struct_value_address.
11361 (sparc32_gdbarch_init): Set extract_struct_value_address.
11362 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11363 function.
11364 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11365 return_value_on_stack.
11366
11367 * NEWS: Mention that %cs and %ss have been added to the AMD64
11368 configurations
11369
11370 * frame.c: Update copyright year.
11371 (get_prev_frame): Improve comment.
11372
11373 * sparc64fbsd-tdep.c: Include "regset.h".
11374 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11375 Remove variables.
11376 (fetch_core_registers): Remove function.
11377 (sparc64fbsd_core_fns): Remove variable.
11378 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11379 functions.
11380 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11381 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11382 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
11383
11384 * sparcnbsd-tdep.c: Include "regset.h".
11385 (fetch_core_registers): Remove function.
11386 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11387 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11388 functions.
11389 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11390 TDEP->fpregset.
11391 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
11392
11393 * sparc-tdep.h (struct regset): Provide opaque declaration.
11394 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11395 fpregset and sizeof_fpregset members.
11396 * sparc-tdep.c (struct regset): Provide opaque declaration.
11397 (sparc_regset_from_core_section): New function.
11398 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11399 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11400 Set regset_from_core_section when appropriate.
11401
11402 2004-01-10 Mark Kettenis <kettenis@gnu.org>
11403
11404 * x86-64-tdep.c (amd64_non_pod_p): New function.
11405 (amd64_classify_aggregate): Return class memory for non-POD
11406 C++ structure types.
11407
11408 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11409 argument. Use it to reserve a register if necessary.
11410 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11411 amd64_push_arguments.
11412
11413 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11414
11415 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11416 register numbers in comments.
11417 * x86-64-tdep.h: Update copyright year.
11418 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11419 Adjust for addition of %cs and %ss.
11420 * amd64fbsd-nat.c: Update copyright year.
11421 (reg_offset): Add register offsets for %cs and %ss.
11422 * amd64fbsd-tdep.c: Update copyright year.
11423 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11424 (amd64fbsd_sc_reg_offset): Likewise.
11425 * x86-64-linux-nat.c: Update copyright year.
11426 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11427 and %ss.
11428 * amd64nbsd-nat.c: Update copyright year.
11429 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11430 * amd64nbsd-tdep.c: Update copyright year.
11431 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11432 * x86-64-linux-tdep.c: Update copyright year.
11433 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11434 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11435 * regformats/reg-x86-64.dat: Add %cs and %ss.
11436
11437 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11438 variables to prevent long lines. Update comments to reflect
11439 reality.
11440
11441 2004-01-09 David Carlton <carlton@kealia.com>
11442
11443 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11444 * dwarf2read.c (read_namespace): Pull out name-generating code
11445 into namespace_name. Rename previous_namespace to previous_prefix
11446 and processing_current_namespace to processing_current_prefix..
11447 (namespace_name): New function.
11448 (add_partial_symbol): Substitute uses of pdi->name with
11449 actual_name.
11450 * cp-support.h: Rename processing_current_namespace to
11451 processing_current_prefix.
11452 Update copyright year.
11453 * cp-namespace.c: Rename processing_current_namespace to
11454 processing_current_prefix.
11455 Update copyright year.
11456
11457 2004-01-09 Andrew Cagney <cagney@redhat.com>
11458
11459 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11460
11461 2004-01-09 Mark Kettenis <kettenis@gnu.org>
11462
11463 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11464 complaining.
11465 (process_one_symbol): Deal with N_PATCH stabs.
11466
11467 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11468
11469 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11470 ifdeffed code.
11471 Update copyright year.
11472
11473 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11474
11475 * config/pa/tm-hppa.h: Update extern declarations for
11476 hppa32_hpux_frame_saved_pc_in_sigtramp,
11477 hppa32_hpux_frame_base_before_sigtramp, and
11478 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11479
11480 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11481
11482 * config/pa/tm-hppah.h: Update copyright years.
11483
11484 2004-01-08 Andrew Cagney <cagney@redhat.com>
11485
11486 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11487 (mips_o32_reg_struct_has_addr): Delete function.
11488 (mips_gdbarch_init): Update.
11489 (mips_extract_struct_value_address): Delete function.
11490
11491 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11492
11493 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11494 reality.
11495
11496 2004-01-07 Andrew Cagney <cagney@redhat.com>
11497
11498 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11499 architecture's elf flags (when available).
11500
11501 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11502 FPU to the start, check the MIPS FPU when looking for an old
11503 architecture.
11504 (set_mipsfpu_single_command): Update the architecture.
11505 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11506
11507 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11508 (mips_mask_address_p): Add "tdep" parameter.
11509 (show_mask_address, mips_addr_bits_remove): Update.
11510 (mips_dump_tdep): Update.
11511 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11512 (MIPS_STACK_ARGSIZE): Delete macro.
11513 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11514 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11515 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11516 (mips_dump_tdep): Update.
11517 (MIPS_SAVED_REGSIZE): Delete macro.
11518 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11519 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11520 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11521 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11522 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11523 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11524 (mips_pop_frame, return_value_location): Update.
11525 (mips_n32n64_return_value, mips_dump_tdep): Update.
11526
11527 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11528 MIPS ABI.
11529
11530 * mips-tdep.c: Update copyright.
11531 (mips_gdbarch_init): Merge two code blocks handling the register
11532 name and number layout.
11533
11534 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11535
11536 * tracepoint.c (validate_actionline): Fix segv at EOF
11537
11538 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11539
11540 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11541 properly for static fields.
11542
11543 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11544 Jason Molenda <jmolenda@apple.com>
11545
11546 * disasm.c: Update copyright to include 2004.
11547 (do_mixed_source_and_assembly): For uiout asm list
11548 and tuple cleanups, initialize to null_cleanup instead of
11549 NULL and do so prior to loop. Only reset when we close off
11550 the tuple/list. Move check for whether to close off the
11551 asm tuple/list to after dump_insns call where it will be run
11552 on each loop iteration.
11553
11554 2004-01-05 Andrew Cagney <cagney@redhat.com>
11555
11556 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11557 should be a switch case and not a label.
11558 * mips-tdep.c (mips32_next_pc): Delete unused labels
11559 "greater_equal_branch" and "less_zero_branch".
11560 * jv-valprint.c (java_print_value_fields): Delete unused label
11561 "flush_it".
11562
11563 * target.c (unpush_target): Only close a target that is in the
11564 target stack.
11565
11566 2004-01-05 Mark Kettenis <kettenis@gnu.org>
11567
11568 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11569 address from [sp + 64] instead of %o2.
11570
11571 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11572 fixes PR backtrace/1476.
11573
11574 2004-01-05 Andrew Cagney <cagney@redhat.com>
11575
11576 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11577 move to start of file.
11578 * i386-tdep.h (struct regcache): Add opaque declaration.
11579 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11580 declaration.
11581 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11582 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11583 * win32-nat.c (fake_create_process): Use ISO C style definition.
11584 * stabsread.c (define_symbol): Delete #ifndef
11585 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11586 stabs_argument_has_addr call, macro never defined.
11587
11588 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11589
11590 * op50-rom.c: Delete.
11591 * w89k-rom.c: Delete.
11592 * Makefile.in: Remove references.
11593
11594 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11595
11596 * x86-64-tdep.c: Update copyright year.
11597 (struct amd64_register_info): Rename from x86_64_register_info.
11598 (amd64_register_info): Rename from x86_64_register_info.
11599 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11600 (amd64_register_name): Rename from x86_64_register_name.
11601 (amd64_register_type): Rename from x86_64_register_type.
11602 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11603 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11604 (amd64_dwarf_reg_to_regnum): Rename from
11605 x86_64_dwarf_reg_to_regnum.
11606 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11607 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11608 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11609 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11610 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11611 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11612 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11613 (amd64_frame_cache): Rename from x86_64_frame_cache.
11614 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11615 (amd64_frame_prev_register): Rename from
11616 x86_64_frame_prev_register.
11617 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11618 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11619 (amd64_sigtramp_frame_cache): Rename from
11620 x86_64_sigtramp_frame_cache.
11621 (amd64_sigtramp_frame_prev_register): Rename from
11622 x86_64_sigtramp_frame_prev_register.
11623 (amd64_sigtramp_frame_unwind): Rename from
11624 x86_64_sigtramp_frame_unwind.
11625 (amd64_sigtramp_frame_sniffer): Rename from
11626 x86_64_sigtramp_frame_sniffer.
11627 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11628 (amd64_frame_base): Rename from x86_64_frame_base.
11629 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11630 (amd64_frame_align): Rename from x86_64_frame_align.
11631 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11632 (amd64_regset_from_core_section): Rename from
11633 x86_64_regset_from_core_section.
11634 (x86_64_init_abi): Update comments.
11635
11636 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11637
11638 * MAINTAINERS (write after approval): Add myself.
11639
11640 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11641
11642 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11643 `float' arguments.
11644
11645 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11646
11647 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11648 such that it mentions a specific version of GCC that exhibits this
11649 bug.
11650
11651 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11652
11653 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11654 structure that has a single `float' member, store it in %f1 in
11655 addition to %f0.
11656
11657 * sparc-sol2-nat.c: Add missing '\'.
11658
11659 * sparc-tdep.c (sparc32_return_value): New function.
11660 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11661 Remove functions.
11662 (sparc32_gdbarch_init): Set return_value, don't set
11663 extract_return_value, store_return_value, use_struct_convention
11664 and return_value_on_stack.
11665
11666 * sparc-sol2-nat.c: Add missing ')'.
11667
11668 2004-01-03 J. Brobecker <brobecker@gnat.com>
11669
11670 * infrun.c (handle_step_into_function): New function.
11671 (handle_inferior_event): Extract out some code into the new
11672 function above.
11673
11674 2004-01-03 J. Brobecker <brobecker@gnat.com>
11675
11676 * infrun.c (handle_inferior_event): Move the declaration of
11677 real_stop_pc inside the if blocks where it is used.
11678
11679 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11680
11681 * sparc64-tdep.c (sparc64_16_byte_align_p)
11682 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11683 Use check_typedef to get subtypes of structures and unions.
11684 (sparc64_store_return_value): Fix calculation of the appropriate
11685 offset into VALBUF when storing a structure or union.
11686 (sparc64_return_value): New function.
11687 (sparc64_use_struct_convention): Remove function.
11688 (sparc64_init_abi): Set return_value, don't set
11689 extract_return_value, store_return_value and
11690 use_struct_convention.
11691
11692 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11693
11694 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11695 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11696 gdb/config/alpha/xm-alphaosf.h,
11697 gdb/config/powerpc/tm-ppcle-eabi.h,
11698 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11699 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11700 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11701 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11702 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11703 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11704 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11705 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11706 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11707 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11708 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11709 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11710 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11711 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11712 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11713 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11714 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11715 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11716 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11717 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11718 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11719 Remove lines for .cvsignore files.
11720
11721 2004-01-03 J. Brobecker <brobecker@gnat.com>
11722
11723 * infrun.c: Back out the previous change.
11724
11725 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11726
11727 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11728 sparc-*-sunos4* to the list of REMOVED configurations.
11729
11730 * configure.tgt: Add back sparc-*-vxworks*.
11731 * remote-vxsparc.c: Remove all includes except for "defs.h",
11732 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11733 Include "sparc-tdep.h".
11734 (SPARC_R_G1): New define.
11735 (vxsparc_gregset): New variable.
11736 (ext_format_sparc): Remove extern declaration.
11737 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11738 sparc32_supply_fpregset.
11739 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11740 sparc_collect_rwindow and sparc32_collect_fpregset.
11741 * config/sparc/tm-vxworks.h: New file, based on recently removed
11742 tm-vxsparc.h.
11743 * config/sparc/vxworks.mt: New file, based on recently removed
11744 vxworks.mt.
11745
11746 2004-01-03 J. Brobecker <brobecker@gnat.com>
11747
11748 * infrun.c (handle_step_into_function): New function.
11749 (handle_inferior_event): Extract out some code into the new
11750 function above.
11751
11752 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11753
11754 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11755 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11756 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11757 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11758 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11759 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11760 (sparc_nat_h): New variable.
11761 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11762 (tm-sun4os4.h): Remove dependency.
11763 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11764 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11765 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11766 sparc-tdep.o): Update dependencies.
11767 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11768 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11769 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11770 dependencies.
11771 * configure.host: Remove existing sparc-*-lynxos*,
11772 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11773 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11774 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11775 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11776 triplets.
11777 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11778 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11779 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11780 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11781 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11782 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11783 sparc64-*-solaris2* and sparc64-*-* triplets.
11784 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11785 "symtab.h" and "objfiles.h".
11786 (BIAS): Remove define.
11787 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11788 (X_DISP19): Remove macros.
11789 (sparc_fetch_instruction): Remove function.
11790 (struct gdbarch_tdep): Remove definition.
11791 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11792 (sparc_breakpoint_from_pc): Remove function.
11793 (struct sparc64_frame_cache): Remove definition.
11794 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11795 sparc64_unwind_pc): Remove functions.
11796 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11797 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11798 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11799 (sparc64_frame_cache): Change return type to `struct
11800 sparc_frame_cache *'. Simply call sparc_frame_cache.
11801 (sparc64_frame_this_id, sparc64_frame_prev_register,
11802 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11803 instead of `struct sparc64_frame_cache.
11804 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11805 sparc_analyze_control_transfer, sparc_software_single_step,
11806 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11807 _initialize_sparc64_tdep): Remove functions.
11808 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11809 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11810 macros.
11811 (sparc64_supply_gregset, sparc64_collect_gregset,
11812 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11813 (sparc64_init_abi): New function.
11814 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11815 inclusion guard. Include "sparc-tdep.h".
11816 (BIAS): Define.
11817 (r_tstate_offset, r_fprs_offset): New defines.
11818 (enum sparc_regnum): Remove defenition.
11819 (enum sparc64_regnum): Reformat.
11820 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11821 (sparc64_init_abi, sparc64_supply_gregset,
11822 sparc64_collect_gregset, sparc64_supply_fpregset,
11823 sparc64_collect_fpregset): New prototypes.
11824 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11825 Add extern declarations.
11826 (sparc64_sol2_init_abi): New prototype.
11827 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11828 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11829 prototypes.
11830 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11831 "sparnbsd-nat.h".
11832 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11833 functions.
11834 (_initialize_sparc64fbsd_nat): Remove initialization of
11835 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11836 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11837 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11838 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11839 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11840 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11841 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11842 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11843 (sparc64fbsd_r_y_offset): Remove variables.
11844 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11845 Make static and const.
11846 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11847 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11848 functions.
11849 (sparc64fbsd_gregset): New variable.
11850 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11851 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11852 and sparc64_supply_fpregset.
11853 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11854 (sparc64fbsd_sigtramp_frame_this_id)
11855 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11856 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11857 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11858 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11859 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11860 * sparcnbsd-tdep.c: Update copyright year. Include
11861 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11862 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11863 "value.h" and "sparcnbsd-tdep.h".
11864 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11865 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11866 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11867 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11868 defines.
11869 (sparcnbsd_gregset): New variable.
11870 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11871 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11872 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11873 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11874 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11875 variables.
11876 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11877 (sparc32nbsd_sigcontext_frame_this_id)
11878 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11879 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11880 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11881 (sparcnbsd_get_longjmp_target_32,
11882 sparcnbsd_get_longjmp_target_64): Remove functions.
11883 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11884 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11885 sparcnbsd_init_elf): Remove.
11886 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11887 (sparcnbsd_elf_init_abi): New functions.
11888 (_initialize_sparcnbsd_tdep): New prototype.
11889 (_initialize_sparnbsd_tdep): Update.
11890 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11891 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11892 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11893 * config/sparc/linux.mh: Update comment.
11894 (XM_FILE, HOST_IPC): Remove variables.
11895 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11896 sparc-linux-nat.o.
11897 * config/sparc/linux.mt: Update comment.
11898 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11899 * config/sparc/nbsd.mt: Reformat.
11900 * config/sparc/nbsd64.mh: Update comment.
11901 (NATDEPFILES): Add sparc-nat.o.
11902 * config/sparc/nbsd64.mt: Update comment.
11903 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11904 (TM_FILE): Set to tm-nbsd.h.
11905 * config/sparc/nbsdelf.mh: Update comment.
11906 (NATDEPFILES): Add sparc-nat.o.
11907 (XM_FILE): Delete.
11908 * config/sparc/nbsdaout.mh: Update comment.
11909 (NATDEPFILES): Add sparc-nat.o
11910 (XM_FILE): Delete.
11911 * config/sparc/nm-linux.h: Update copyright year. Don't include
11912 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11913 inclusion.
11914 (KERNEL_U_SIZE): Remove define.
11915 (kernel_u_size): Remove prototype.
11916 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11917 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11918 "regcache.h".
11919 (CHILD_PREPARE_TO_STORE): Remove define.
11920 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11921 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11922 sparcnbsd-nat.c: Rewrite files.
11923 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11924 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11925 sparcnbsd-tdep.h: Remove files.
11926 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11927 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11928 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11929 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11930 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11931 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11932 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11933 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11934 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11935 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11936 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11937 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11938 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11939 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11940 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11941 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11942 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11943 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11944 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11945
11946 2004-01-02 Andrew Cagney <cagney@redhat.com>
11947
11948 From 2003-12-18 Kazuhiro Inaoka:
11949 * configure.host: Add m32r-linux target.
11950
11951 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11952
11953 * top.c (print_gdb_version): Update year to 2004.
11954
11955 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11956
11957 * MAINTAINERS: Add myself to the write-after-approval category.
11958
11959 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11960
11961 From Bernardo Innocenti <bernie@develer.com>:
11962 * configure.tgt: Add uClinux target.
11963
11964 2004-01-02 Andrew Cagney <cagney@redhat.com>
11965
11966 * utils.c (do_my_cleanups): Make static, add forward declaration.
11967 * defs.h (do_my_cleanups): Delete declaration.
11968
11969 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11970
11971 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11972 bfd/ChangeLog-0203.
11973
11974 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11975
11976 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11977 in <machine/reg.h>.
11978 * configure, config.in: Regenerate.
11979
11980 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11981 tui/ChangeLog-1998-2003.
11982 \f
11983 Local Variables:
11984 mode: change-log
11985 left-margin: 8
11986 fill-column: 74
11987 version-control: never
11988 End:
This page took 0.259524 seconds and 5 git commands to generate.