2004-09-12 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-09-12 Andrew Cagney <cagney@gnu.org>
2
3 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
4
5 2004-09-12 Salvador E. Tropea <set@users.sf.net>
6 Andrew Cagney <cagney@gnu.org>
7
8 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
9 (mi_cmd_data_list_register_values)
10 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
11 the register number computation.
12
13 2004-09-12 Andrew Cagney <cagney@gnu.org>
14
15 * ppcnbsd-nat.c: Include "inf-ptrace.h".
16 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
17 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
18 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
19 target.
20 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
21 inf-ptrace.o and inf-child.o.
22 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
23 * Makefile.in: Update dependencies.
24
25 2004-09-11 Andrew Cagney <cagney@gnu.org>
26
27 * language.c (hex_string, hex_string_custom): Move from here ...
28 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
29 (CELLSIZE): Increase to 50.
30 * language.h (hex_string, hex_string_custom): Move from here ...
31 * defs.h: ... to here.
32 * Makefile.in: Update all dependencies.
33
34 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
35
36 * language.c (local_hex_format_custom): Remove.
37 (local_hex_string): Rename to hex_string, use C format, and move to
38 utils.c
39 (local_hex_string_custom): Rename to hex_string_custom and change
40 interface. Now uses C format. Move to utils.c
41 (local_octal_format_custom): Remove.
42 (local_decimal_format_custom): Remove.
43 (unknown_language_defn): Remove language-specific number
44 formatting entries.
45 (auto_language_defn): Ditto.
46 (local_language_defn): Ditto.
47 * language.h (struct language_format_info): Delete declaration.
48 (struct language_defn): Remove language_format_info fields
49 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
50 (local_binary_format): Remove macro.
51 (local_binary_format_prefix): Remove macro.
52 (local_binary_format_specifier): Remove macro.
53 (local_binary_format_suffix): Remove macro.
54 (local_octal_format): Remove macro.
55 (local_octal_format_prefix): Remove macro.
56 (local_octal_format_specifier): Remove macro.
57 (local_octal_format_suffix): Remove macro.
58 (local_decimal_format): Remove macro.
59 (local_decimal_format_prefix): Remove macro.
60 (local_decimal_format_specifier): Remove macro.
61 (local_decimal_format_suffix): Remove macro.
62 (local_hex_format): Remove macro.
63 (local_hex_format_prefix): Remove macro.
64 (local_hex_format_specifier): Remove macro.
65 (local_hex_format_suffix): Remove macro.
66 (local_decimal_format_custom): Remove.
67 (local_octal_format_custom): Remove.
68 (local_hex_format_custom): Remove.
69 (local_hex_string): Rename to hex_string and move to defs.h.
70 (local_hex_string_custom): Rename to hex_string_custom, change
71 interface, and move to defs.h.
72 * utils.c: (int_string): New function.
73 (hex_string): New function (from language.c).
74 (hex_string_custom): New function (from language.c).
75 (octal2str): New function.
76 (decimal2str): Add width parameter.
77 (paddr_u): Use new decimal2str interface.
78 (paddr_d): Ditto.
79 * defs.h (hex_string): Declare.
80 (hex_string_custom): Declare.
81 (int_string): Declare.
82 * printcmd.c (print_scalar_formatted): Remove localized binary
83 formatting.
84 * valprint.c (print_longest): Use int_string.
85 (print_floating): Use C hex format.
86 (print_hex_chars): Ditto.
87 (print_binary_chars): Remove language-specific formatting.
88 (print_octal_chars): Use C octal format.
89 (print_decimal_chars): Delocalize format.
90 (print_decimal): Remove.
91 * ada-lang.c (ada_language_defn): Remove language-specific number
92 formatting entries.
93 * p-lang.c (pascal_language_defn): Ditto.
94 * c-lang.c (c_language_defn): Ditto.
95 (cplus_language_defn): Ditto.
96 (asm_language_defn): Ditto.
97 (minimal_language_defn): Ditto.
98 * f-lang.c (f_language_defn): Ditto.
99 * jv-lang.c (java_language_defn): Ditto.
100 * m2-lang.c (m2_language_defn): Ditto.
101 * scm-lang.c (scm_language_defn): Ditto.
102 * objc-lang.c (objc_language_defn): Ditto.
103 * memattr.c (mem_info_command): Use renamed hex_string_custom with
104 new interface.
105 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
106 * ui-out.c (ui_out_field_core_addr): Ditto.
107 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
108 * exec.c (print_section_info): Ditto.
109 * i387-tdep.c (print_i387_status_word): Ditto.
110 (print_i387_control_word): Ditto.
111 (i387_print_float_info): Ditto.
112 * maint.c (maint_print_section_info): Ditto.
113 * solib.c (info_sharedlibrary_command): Ditto.
114 * somsolib.c (som_sharedlibrary_info_command): Ditto.
115 * symtab.c (print_msymbol_info): Ditto.
116 * tracepoint.c (tracepoints_info): Ditto.
117 * solib-frv.c (lm_base): Ditto.
118 (frv_current_sos): Ditto.
119 (enable_break2): Ditto.
120 (enable_break): Ditto.
121 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
122 (process_one_symbol): Ditto.
123 * infcmd.c (program_info): Ditto.
124 * mdebugread.c (parse_partial_symbols): Ditto.
125 * symfile.c (add_symbol_file_command): Ditto.
126 * cli/cli-cmds.c (edit_command): Ditto.
127 (list_command): Ditto.
128 * infcall.c (call_function_by_hand): Ditto.
129 * remote-vx.c (vx_run_files_info): Ditto.
130 (vx_wait): Ditto.
131 (vx_attach): Ditto.
132 (vx_detach): Ditto.
133 (vx_kill): Ditto.
134 * aix-thread.c (pdc_symbol_addrs): Ditto.
135 (pdc_read_regs): Ditto.
136 (pdc_write_regs): Ditto.
137 (pdc_read_data): Ditto.
138 (pdc_write_data): Ditto.
139 * d10v-tdep.c (display_trace): Ditto.
140 * rs6000-nat.c (find_toc_address): Ditto.
141 * aix-thread.c: Don't include language.h.
142 * buildsym.c: Ditto.
143 * dbxread.c: Ditto.
144 * mdebugread.c: Ditto.
145 * rs6000-nat.c: Ditto.
146 * buildsym.c (make_blockvector): Use renamed hex_string.
147
148 2004-09-10 Jason Molenda (jmolenda@apple.com)
149
150 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
151 chars after 'if' or 'while' commands in user-defined commands.
152
153 2004-09-08 Jim Blandy <jimb@redhat.com>
154
155 Fix bug reported and analyzed by Olivier Crete:
156 * symfile.c (copy_section_addr_info): New function.
157 (symbol_file_add_with_addrs_or_offsets): Use it to save the
158 original set of address arguments, instead of handwritten code
159 that uses one length to allocate and a different length to
160 initialize. Use make_cleanup_free_section_addr_info.
161 * symfile.h (copy_section_addr_info): New declaration.
162 * utils.c: #include "symfile.h".
163 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
164 New functions.
165 * defs.h (make_cleanup_free_section_addr_info): New declaration.
166 * Makefile.in (utils.o): Update dependencies.
167
168 2004-09-08 Andrew Cagney <cagney@gnu.org>
169
170 * thread-db.c (keep_thread_db): Delete.
171 (thread_db_new_objfile, thread_db_create_inferior)
172 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
173
174 2004-09-08 Mark Kettenis <kettenis@gnu.org>
175
176 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
177 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
178 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
179 (i386_frameless_signal_p): Remove prototype.
180 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
181 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
182 I386_SSE_NUM_REGS.
183 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
184 instead of FP0_REGNUM.
185 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
186 of FP0_REGNUM and FPC_REGNUM.
187
188 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
189 (sunos_solib_create_inferior_hook): Don't call
190 sunos_relocate_main_executable.
191
192 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
193 solib_svr4_fetch_link_map_offsets to
194 svr4_ilp32_fetch_link_map_offsets.
195 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
196 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
197 svr4_ilp32_fetch_link_map_offsets.
198 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
199
200 2004-09-07 Jim Blandy <jimb@redhat.com>
201
202 * frame.h (frame_register): Doc fix.
203
204 2004-09-07 Andrew Cagney <cagney@gnu.org>
205
206 * vx-share/wait.h: Delete #ifdef USG.
207 * utils.c (request_quit): Ditto.
208 * tui/tui.c (tui_reset): Ditto.
209 * remote.c: Ditto.
210 * remote-sds.c: Ditto.
211 * remote-rdi.c: Ditto.
212 * mdebugread.c: Ditto.
213 * m68klinux-nat.c: Ditto.
214 * infttrace.c: Ditto.
215 * infptrace.c: Ditto.
216 * i386v-nat.c: Ditto.
217 * exec.c: Ditto.
218 * dbxread.c: Ditto.
219 * core-aout.c: Ditto.
220
221 2004-09-05 Joel Brobecker <brobecker@gnat.com>
222
223 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
224 heuristic_proc_desc.
225 (mips_insn32_frame_cache): Likewise.
226
227 2004-09-04 Joel Brobecker <brobecker@gnat.com>
228
229 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
230 left behind by error.
231
232 2004-09-04 Joel Brobecker <brobecker@gnat.com>
233
234 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
235 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
236
237 2004-09-04 Joel Brobecker <brobecker@gnat.com>
238
239 * config/rs6000/xm-aix4.h: Remove this file.
240 * config/rs6000/aix4.mh (XM_FILE): Delete.
241
242 2004-09-04 Joel Brobecker <brobecker@gnat.com>
243
244 * config/rs6000/xm-rs6000.h: Remove this file.
245 * config/rs6000/rs6000.mh (XM_FILE): Remove.
246
247 2004-09-03 Andrew Cagney <cagney@gnu.org>
248
249 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
250 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
251 only use.
252
253 * mips-tdep.c (temp_saved_regs): Delete.
254 (set_reg_offset): Replace saved_regs parameter with this_cache.
255 (heuristic_proc_desc, mips16_heuristic_proc_desc)
256 (mips32_heuristic_proc_desc): Add this_cache parameter.
257 (mips_insn32_frame_cache, mips_insn16_frame_cache)
258 (after_prologue): Pass a NULL this_cache.
259
260 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
261 non-kernel trap prologues.
262
263 * mips-tdep.c (find_proc_desc): Delete function.
264 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
265 simplify.
266 (mips_insn16_frame_cache): Replace find_proc_desc with code from
267 mips_insn32_frame_cache.
268
269 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
270 Simplify as NEXT_FRAME is NULL.
271 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
272
273 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
274 local variable.
275 (mips_skip_prologue): Update.
276
277 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
278 "cur_frame" parameter.
279 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
280 (mips_insn32_frame_cache, find_proc_desc): Update
281
282 * config/vax/nm-obsd.h: Delete file.
283 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
284 * config/vax/nm-nbsd.h: Delete file.
285 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
286 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
287 * config/sh/nm-nbsd.h: Delete file.
288 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
289 * config/rs6000/nm-rs6000ly.h: Delete file.
290 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
291 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
292 * config/powerpc/nm-obsd.h: Delete file.
293 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
294 * config/powerpc/nm-nbsd.h: Delete file.
295 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
296 * config/pa/nm-obsd.h: Delete file.
297 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
298 * config/mips/nm-nbsd.h: Delete file.
299 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
300 * config/m88k/nm-obsd.h: Delete file.
301 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
302 * config/m68k/nm-nbsd.h: Delete file.
303 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
304 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
305 * config/i386/nm-nbsd.h: Delete file.
306 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
307 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
308 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
309 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
310 * config/i386/nm-i386lynx.h: Delete file.
311 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
312 * config/arm/nm-nbsd.h: Delete file.
313 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
314 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
315
316 * config/i386/tm-fbsd.h: Delete file.
317 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
318 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
319
320 * config/rs6000/tm-rs6000-aix4.h: Delete file.
321 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
322 * config/rs6000/aix4.mt (TM_FILE): Set to
323 config/rs6000/tm-rs6000.h.
324 * config/powerpc/tm-ppc-aix.h: Delete file.
325 * config/powerpc/aix.mt (TM_FILE): Set to
326 config/rs6000/tm-rs6000.h.
327 * config/m68k/tm-linux.h: Delete file.
328 * config/m68k/linux.mt (TM_FILE): Set to solib.h
329 * config/i386/tm-linux64.h: Delete file.
330 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
331 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
332
333 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
334 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
335 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
336 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
337 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
338 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
339 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
340 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
341 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
342
343 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
344 gdb_host_cpu.
345
346 2004-09-02 Joel Brobecker <brobecker@gnat.com>
347
348 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
349 Minor reformatting. Some code factoring.
350
351 2004-09-02 Andrew Cagney <cagney@gnu.org>
352
353 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
354 * config/vax/tm-nbsd.h: Delete file.
355 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
356 * config/sparc/tm-vxworks.h: Delete file.
357 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
358 * config/sparc/tm-nbsd.h: Delete file.
359 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
360 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
361 * config/sparc/tm-linux.h: Delete file.
362 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
363 * config/s390/tm-linux.h: Delete file.
364 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
365 * config/pa/tm-bsd.h: Delete file.
366 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
367 * config/m68k/tm-obsd.h: Delete file.
368 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
369 * config/m68k/tm-nbsd.h: Delete file.
370 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
371 * config/i386/tm-vxworks.h: Delete file.
372 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
373 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
374 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
375 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
376 * config/i386/tm-nbsd.h: Delete file.
377 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
378 * config/i386/tm-i386lynx.h: Delete file.
379 * config/cris/cris.mt (TM_FILE): Set to solib.h.
380 * config/cris/tm-cris.h: Delete file.
381
382 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
383 * configure: Re-generate.
384 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
385 * config/arm/tm-nbsd.h: Delete file.
386
387 * config/powerpc/tm-ppcle-sim.h: Delete.
388 * config/powerpc/tm-ppcle-eabi.h: Delete.
389 * config/powerpc/tm-nbsd.h: Delete.
390 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
391 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
392 tm-ppcle-eabi.h.
393
394 * config/i386/nto.mh (NAT_FILE): Delete.
395 * config/i386/nm-nto.h: Delete.
396
397 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
398 * config/m68k/tm-os68k.h: Ditto.
399 * config/m68k/tm-monitor.h: Ditto.
400 * config/m68k/tm-cisco.h: Ditto.
401 * config/m68k/st2000.mt (TM_FILE): Delete.
402 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
403 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
404 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
405 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
406
407 * config/m68k/tm-st2000.h: Delete.
408 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
409 * config/sparc/fbsd.mt (TM_FILE): Delete.
410 * config/sparc/tm-fbsd.h: Delete.
411
412 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
413 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
414 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
415
416 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
417 GDB_TM_FILE and GDB_XM_FILE.
418 * gdbarch.c: Re-generate.
419 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
420 quotes in macro definition.
421 * configure.in: Re-generate.
422
423 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
424 validating architecture methods.
425 * gdbarch.c: Re-generate.
426
427 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
428 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
429 GDB_MULTI_ARCH_PARTIAL.
430 * gdbarch.h: Re-generate.
431
432 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
433 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
434 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
435 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
436 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
437 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
438 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
439 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
440 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
441 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
442 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
443 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
444
445 2004-09-01 Andrew Cagney <cagney@gnu.org>
446
447 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
448 and main_func_highpc.
449 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
450 * objfiles.c (init_entry_point_info, objfile_relocate): Update
451 * nlmread.c (nlm_symfile_read): Update.
452
453 2004-09-01 Joel Brobecker <brobecker@gnat.com>
454
455 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
456 (mips_insn32_frame_cache): Inline call to find_proc_desc.
457 (find_proc_desc): Remove dead code.
458
459 2004-09-01 Joel Brobecker <brobecker@gnat.com>
460
461 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
462
463 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
464
465 * observer.sh: Add struct so_list declaration.
466 * Makefile.in: Add dependencies on observer.h for solib.c and
467 breakpoint.c.
468 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
469 function.
470 (_initialize_breakpoint): Register
471 disable_breakpoints_in_unloaded_shlib as an observer of the
472 "solib unloaded" observation event.
473 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
474 call decode_line_1 so unfound breakpoint errors are silent.
475 * solib.c (update_solib_list): When a solib is discovered to have
476 been unloaded by the program, notify all observers of the
477 "solib unloaded" observation event.
478
479 2004-09-01 Andrew Cagney <cagney@gnu.org>
480
481 * frame.c: Include "objfiles.h".
482 (inside_main_func): New function.
483 (get_prev_frame): Use new inside_main_func.
484 * Makefile.in (frame.o): Update dependencies.
485 * defs.h (inside_main_func): Delete declaration.
486 * blockframe.c (inside_main_func): Delete function.
487
488 2004-08-31 Jim Blandy <jimb@redhat.com>
489
490 * dwarf2read.c (is_vtable_name): New function, based on logic from
491 read_structure_type, but passing the correct length to strncmp,
492 and using 'sizeof' instead of 'strlen'.
493 (read_structure_type): Call it.
494
495 2004-08-31 Joel Brobecker <brobecker@gnat.com>
496
497 * config/powerpc/aix.mh: Add comment.
498
499 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
500
501 * MAINTAINERS: Add self to Write-After-Approval.
502
503 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
504
505 * MAINTAINERS: Add self to Write-After-Approval.
506
507 2004-08-30 Andrew Cagney <cagney@gnu.org>
508
509 Fix PR breakpoints/1757.
510 * infrun.c (struct execution_control_state): Replace
511 remove_breakpoints_on_following_step with
512 step_after_step_resume_breakpoint.
513 (init_execution_control_state): Update.
514 (handle_inferior_event): For signals, when stepping off a
515 breakpoint, set step_after_step_resume_breakpoint. When
516 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
517 (keep_going): Delete code handling
518 remove_breakpoints_on_following_step.
519
520 2004-08-29 David Lecomber <david@streamline-computing.com>
521
522 Fix PR gdb/648
523 * language.h (enum array_ordering): New enum.
524 * language.h (struct language_defn): New la_array_ordering
525 attribute.
526 * language.c (unknown_language_defn, auto_language_defn)
527 (local_language_defn): Ditto.
528 * ada-lang.c (ada_language_defn): Ditto.
529 * c-lang.c (c_language_defn, cplus_language_defn)
530 (asm_language_defn, minimal_language_defn): Ditto.
531 * f-lang.c (f_language_defn): Ditto.
532 * jv-lang.c (java_language_defn): Ditto.
533 * m2-lang.c (f_language_defn): Ditto.
534 * objc-lang.c (objc_language_defn): Ditto.
535 * p-lang.c (pascal_language_defn): Ditto.
536 * scm-lang.c (scm_language_defn): Ditto.
537 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
538 oriented large to small in type structure.
539 * dwarf2read.c (read_array_order): New function.
540 (read_array_type): Use read_array_order to check row/column
541 major ordering.
542
543 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
544
545 * target.c (target_resize_to_sections): Check
546 current_target.to_sections for an old value when updating.
547
548 2004-08-27 Joel Brobecker <brobecker@gnat.com>
549
550 * procfs.c (dbx_link_bpt_addr): New static global variable.
551 (dbx_link_shadow_contents): New static global variable.
552 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
553 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
554 if we just hit it.
555 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
556 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
557 from run to run.
558 (procfs_create_inferior): Remove syssgi syscall-exit notifications
559 after the inferior has been forked.
560 (remove_dbx_link_breakpoint): New function.
561 (dbx_link_addr): New function.
562 (insert_dbx_link_bpt_in_file): New function.
563 (insert_dbx_link_bpt_in_region): New function.
564 (insert_dbx_link_breakpoint): New function.
565 (proc_trace_syscalls_1): New function, extracted from
566 proc_trace_syscalls.
567 (proc_trace_syscalls): Replace extract code by call to
568 proc_trace_syscalls_1.
569 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
570 is no longer valid.
571
572 2004-08-25 Jim Blandy <jimb@redhat.com>
573
574 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
575
576 2004-08-25 Andrew Cagney <cagney@gnu.org>
577
578 * infrun.c (struct execution_control_state): Delete field
579 "stepping_through_sigtramp".
580 (init_execution_control_state): Do not set same.
581 (context_switch): Do not pass same to save_infrun_state and
582 load_infrun_state.
583 * gdbthread.h (struct thread_info): Delete field
584 stepping_through_sigtramp.
585 (save_infrun_state, load_infrun_state): Delete parameter
586 stepping_through_sigtramp.
587 * thread.c (load_infrun_state, save_infrun_state): Update.
588
589 * infrun.c: Re-indent. Move expression operators to the beginning
590 of the line. Remove long disabled #if 0 code.
591
592 2004-08-24 Andrew Cagney <cagney@gnu.org>
593
594 * doublest.h (floatformat_ieee_quad): Rename
595 floatformat_ia64_quad.
596 * doublest.c (floatformat_ieee_quad): Rename
597 floatformat_ia64_quad.
598 (_initialize_doublest): Update.
599
600 2004-08-24 Jim Blandy <jimb@redhat.com>
601
602 * dwarf2expr.h (struct dwarf_expr_context): New members
603 'num_pieces' and 'pieces', for returning the result of an
604 expression that uses DW_OP_piece.
605 (struct dwarf_expr_piece): New struct type.
606 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
607 pieces.
608 (free_dwarf_expr_context): Free pieces, if any.
609 (add_piece): New function.
610 (execute_stack_op): Implement DW_OP_piece.
611 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
612 expression is a list of pieces, print an error message.
613 (dwarf2_loc_desc_needs_frame): If the expression yields
614 pieces, and any piece is in a register, then we need a frame.
615
616 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
617 the stack until we've decided what sort of result the evaluation
618 has produced. Use separate variables, with more specific names.
619
620 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
621
622 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
623 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
624 (arm_netbsd_init_abi_common): Register them.
625
626 2004-08-22 Mark Kettenis <kettenis@gnu.org>
627
628 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
629
630 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
631 safe_frame_unwind_memory instead of target_read_memory.
632
633 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
634 Reorder includes.
635 (fetch_register, store_register): Remove prototypes.
636 (child_resume): Reorganize code and comments such that it is
637 grouped a bit more logically.
638 (attach): Explicitly compare errno against 0.
639 (detach): Likewise. Use perror_with_name instead of
640 print_sys_errmsg.
641 * Makefile.in (infptrace.o): Update dependencies.
642
643 * ia64-linux-nat.c: Update copyright year.
644 (fetch_debug_register, store_debug_register)
645 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
646 PTRACE_TYPE_ARG3.
647 * config/ia64/nm-linux.h: Update copyright year.
648 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
649
650 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
651 from CORE_ADDR to struct frame_info *. Use
652 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
653 (amd64_linux_sigtramp_p): Adjust for changed signature of
654 and64_linux_sigtramp_start
655
656 * gdb_ptrace.h: GNU/Linux.
657
658 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
659 Remove defines.
660
661 * infptrace.c: Include "gdb_assert.h".
662 (PTRACE_XFER_TYPE): Remove define.
663 (offsetof): Only define if U_REGS_OFFSET isn't defined.
664 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
665 Tweak comment.
666 (fetch_inferior_registers, store_inferior_registers): Remove
667 redundant culry braces. Tweak comment. s/regno/regnum.
668 * Makefile.in (infptrace.o): Update dependencies.
669
670 * configure.in: Change test for return type of ptrace to default
671 to `long' instead of `int'.
672 * configure: Regenerate.
673
674 2004-08-21 Mark Kettenis <kettenis@gnu.org>
675
676 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
677
678 * configure.in: Check for ttrace function.
679 * configure, config.in: Regenerate.
680
681 * gdb_ptrace.h: New file.
682 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
683 <sys/ptrace.h>.
684 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
685 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
686 (attach): Don't define PT_ATTACH.
687 (detach): Don't define PT_DETACH.
688 * Makefile.in (gdb_ptrace_h): New variable.
689 (infptrace.o): Update dependencies.
690
691 2004-08-16 Mark Kettenis <kettenis@gnu.org>
692
693 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
694 instead of `int' if not already defined.
695 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
696 PTRACE_TYPE_ARG3.
697 * infptrace.c (call_ptrace): Revert change that replaced
698 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
699
700 2004-08-15 Mark Kettenis <kettenis@gnu.org>
701
702 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
703 Remove defines.
704
705 * linux-nat.c (kill_inferior): Add missing third and fourth
706 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
707
708 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
709 PTRACE_TYPE_RET.
710
711 * proc-why.c (proc_prettyfprint_why): Fix format string.
712
713 * solib-osf.c (osf_current_sos): Remove unsused label.
714
715 * configure.in: Add <ncurses/ncurses.h> to the list of possible
716 curses headers.
717 * configure, config.in: Regenerate.
718 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
719 <ncurses/ncurses.h>.
720
721 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
722 * config/nm-nbsd.h: Update copyright year.
723 (PTRACE_ARG3_TYPE): Remove define.
724
725 * sparc-nat.c (fetch_inferior_registers)
726 (store_inferior_registers, sparc_xfer_wcookie):
727 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
728
729 * alphabsd-nat.c (fetch_inferior_registers):
730 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
731 PTRACE_TYPE_ARG3.
732 * amd64bsd-nat.c (fetch_inferior_registers)
733 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
734 PTRACE_TYPE_ARG3.
735 * armnbsd-nat.c: Update copyright year.
736 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
737 (store_register, store_regs, store_fp_register, store_fp_regs):
738 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
739 * hppabsd-nat.c (fetch_inferior_registers)
740 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
741 PTRACE_TYPE_ARG3.
742 * i386bsd-nat.c (fetch_inferior_registers)
743 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
744 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
745 * m68kbsd-nat.c (fetch_inferior_registers)
746 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
747 PTRACE_TYPE_ARG3.
748 * m88kbsd-nat.c (fetch_inferior_registers)
749 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
750 PTRACE_TYPE_ARG3.
751 * mipsnbsd-nat.c: Update copyright year.
752 (fetch_inferior_registers, store_inferior_registers):
753 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
754 * ns32knbsd-nat.c: Update copyright year.
755 (fetch_inferior_registers, store_inferior_registers):
756 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
757 * ppcnbsd-nat.c (fetch_inferior_registers):
758 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
759 PTRACE_TYPE_ARG3.
760 * ppcobsd-nat.c (fetch_inferior_registers):
761 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
762 PTRACE_TYPE_ARG3.
763 * shnbsd-nat.c: Update copyright year.
764 (fetch_inferior_registers, store_inferior_registers):
765 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
766 * vaxbsd-nat.c (fetch_inferior_registers)
767 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
768 PTRACE_TYPE_ARG3.
769
770 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
771 PTRACE_TYPE_ARG3.
772 * infptrace.c (call_ptrace, child_resume, attach, detach)
773 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
774 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
775 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
776 PTRACE_TYPE_ARG3.
777
778 2004-08-14 Mark Kettenis <kettenis@gnu.org>
779
780 * defs.h: Remove out-of-date comment.
781 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
782 [!GETENV_PROVIDED] (getenv): Remove prototype.
783
784 * standalone.c: Remove file.
785 * Makefile.in (standalone.o): Remove dependency.
786
787 * i386-linux-nat.c (dummy_sse_values): Remove function and
788 prototype.
789 (i386_linux_dr_get): Fix typo in comment.
790 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
791
792 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
793
794 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
795 from declaration.
796 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
797 from definition.
798
799 2004-08-13 Mark Kettenis <kettenis@gnu.org>
800
801 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
802 parenthesis in definition.
803 * configure: Regenerated.
804
805 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
806
807 * PROBLEMS: Mention build/1411.
808
809 2004-08-09 Robert Millan <robertmh@gnu.org>
810
811 Committed by Nathanael Nerode.
812 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
813 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
814
815 2004-08-12 Andrew Cagney <cagney@gnu.org>
816
817 * NEWS: Mention fixes in GDB 6.2.1.
818 * PROBLEMS: Remove mention of mips-irix.
819
820 2004-08-11 Joel Brobecker <brobecker@gnat.com>
821
822 * config/powerpc/xm-aix.h: Delete.
823 * config/powerpc/aix.mh (MH_FILE): Remove.
824 * config/powerpc/aix432.mh (MH_FILE): Remove.
825
826 2004-08-11 Joel Brobecker <brobecker@gnat.com>
827
828 * config/powerpc/aix.mh: Remove obsolete comment.
829 * config/powerpc/aix432.mh: Likewise.
830
831 2004-08-11 Joel Brobecker <brobecker@gnat.com>
832
833 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
834
835 2004-08-11 Joel Brobecker <brobecker@gnat.com>
836
837 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
838 this file is now empty.
839 * config/xm-aix4.h: Remove, this file is no longer included
840 anywhere.
841
842 2004-08-11 Joel Brobecker <brobecker@gnat.com>
843
844 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
845 that file is now empty.
846 (termdef): Remove prototype, function no longer used.
847
848 2004-08-11 Joel Brobecker <brobecker@gnat.com>
849
850 * doc/gdbint.texinfo (Host Definition): Remove documentation
851 for USE_O_NOCTTY, no longer used.
852 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
853 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
854
855 2004-08-11 Joel Brobecker <brobecker@gnat.com>
856
857 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
858 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
859 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
860
861 2004-08-11 Mark Kettenis <kettenis@gnu.org>
862
863 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
864 instead of FIVE_ARG_PTRACE.
865
866 * inflow.c (O_NOCTTY): Define to zero if not already defined.
867 (new_tty): Use O_NOCTTY unconditionally.
868
869 2004-08-10 Mark Kettenis <kettenis@gnu.org>
870
871 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
872 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
873 fflush on stdout.
874
875 2004-08-10 Joel Brobecker <brobecker@gnat.com>
876
877 * xcoff_symfile_finish: Replace last call to xmfree by call
878 to xfree.
879
880 2004-08-10 Andrew Cagney <cagney@gnu.org>
881
882 * main.c (captured_main): Delete call to init_malloc.
883 * defs.h (init_malloc): Delete declaration.
884 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
885 (init_malloc): Delete functions.
886
887 * defs.h (xmfree): Delete.
888 * utils.c (xmfree): Delete function.
889 (xfree): Inline calls to xmfree and mfree.
890 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
891 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
892 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
893 * somread.c (som_symfile_finish): Ditto.
894 * objfiles.c (allocate_objfile, free_objfile):
895 * nlmread.c (nlm_symfile_finish): Ditto.
896 * hpread.c (hpread_symfile_finish): Ditto.
897 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
898 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
899 * coffread.c (coff_symfile_finish): Ditto.
900
901 * defs.h (xmcalloc): Delete declaration.
902 * utils.c (xmcalloc): Delete.
903 (xcalloc): Inline calls to xmcalloc and mcalloc.
904 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
905 xcalloc and xfree.
906 * symtab.c (create_demangled_names_hash): Ditto.
907
908 * defs.h (xmrealloc): Delete.
909 * utils.c (xmrealloc): Delete.
910 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
911 * symmisc.c (extend_psymbol_list): Use xrealloc.
912 * source.c (find_source_lines): Ditto.
913 * hpread.c (hpread_lookup_type): Ditto.
914 * dbxread.c (add_bincl_to_list): Ditto.
915
916 * utils.c (xmmalloc): Delete.
917 (xmalloc): Inline xmmalloc and mmalloc calls.
918 (msavestring): Use xmalloc.
919 * defs.h (xmmalloc): Delete declaration.
920 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
921 xmmalloc.
922 * symmisc.c (extend_psymbol_list): Ditto.
923 * symfile.c (init_psymbol_list): Ditto.
924 * source.c (find_source_lines): Ditto.
925 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
926 * elfread.c (elf_symtab_read): Ditto.
927 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
928 * coffread.c (coff_symfile_init): Ditto.
929
930 2004-08-10 David Carlton <carlton@bactrian.org>
931
932 * MAINTAINERS: Remove David Carlton from c++ testsuite
933 maintainers.
934
935 2004-08-10 Jerome Guitton <guitton@gnat.com>
936
937 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
938 print a line feed before the prompt.
939
940 2004-08-10 Mark Kettenis <kettenis@gnu.org>
941
942 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
943
944 2004-08-09 Joel Brobecker <brobecker@gnat.com>
945
946 General cleanup of the AIX xm include file:
947 * config/xm-aix4.h (fd_set): Remove undefine.
948 Remove include of <sys/select.h>.
949 (HAVE_TERMIO): Remove define.
950 (USG): Likewise.
951 (NULL): Remove redefine.
952 (alloca): Remove #pragma.
953 (vfork): Remove define.
954 (termdef): Remove.
955 (SIGWINCH_HANDLER): Remove.
956 (SIGWINCH_HANDLER_BODY): Remove.
957
958 2004-08-09 Mark Kettenis <kettenis@gnu.org>
959
960 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
961 GDB_OSABI_OPENBSD_ELF.
962
963 2004-08-07 Robert Millan <robertmh@gnu.org>
964
965 * bsd-kvm.c: Check for nlist.h before including it.
966
967 2004-08-09 Mark Kettenis <kettenis@gnu.org>
968
969 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
970 sigcontext' offset consistency checks for ancient BSD.
971
972 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
973
974 * configure.in: Check for <sys/types.h>. Check return and
975 argument types of ptrace.
976 * configure, config.in: Regenerate.
977
978 2004-08-09 Jim Blandy <jimb@redhat.com>
979
980 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
981 rs6000_register_sim_regno): Doc fixes.
982
983 2004-08-08 Joel Brobecker <brobecker@gnat.com>
984
985 * mips-tdep.c: Include "floatformat.h".
986 (n32n64_floatformat_always_valid): New function.
987 (floatformat_n32n64_long_double_big): New constant.
988 (mips_gdbarch_init): Set size and format of long double
989 for N32 and N64 ABIs.
990 * Makefile.in (mips-tdep.o): Update dependencies.
991
992 2004-08-08 Andrew Cagney <cagney@gnu.org>
993
994 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
995 print. Improve script's error messages.
996 * gdbarch.h: Re-generate.
997
998 * gdbarch.sh (pformat): New function.
999 (float_format, double_format, long_double_format): List with bit
1000 members. Use pformat when printing.
1001 * gdbarch.c, gdbarch.h: Re-generate.
1002
1003 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1004
1005 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1006 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1007 (ppcnbsd_supply_pcb): New function.
1008 (_initialize_ppcnbsd_nat): New prototype and function.
1009 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1010 (LOADLIBES): New variable.
1011 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1012
1013 2004-08-08 Andrew Cagney <cagney@gnu.org>
1014
1015 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1016 (builtin_type_ieee_double, builtin_type_ia64_quad)
1017 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1018 BE/LE floating-point types.
1019 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1020 (builtin_type_ieee_double, builtin_type_ia64_quad)
1021 (builtin_type_ia64_spill): Declare.
1022 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1023 (floatformat_ieee_double, floatformat_arm_ext)
1024 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1025 of LE/BE floatformats.
1026 * doublest.h: (struct floatformat, floatformat_ieee_single)
1027 (floatformat_ieee_double, floatformat_arm_ext)
1028 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1029
1030 2004-08-08 Mark Kettenis <kettenis@gnu.org>
1031
1032 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1033
1034 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1035 instead of regcache_raw_supply when storing the registers.
1036
1037 * i386gnu-nat.c: Update copyright year.
1038 (gnu_store_registers): Don't use deprecated_registers and
1039 deprecated_registers_valid. Use regcache_valid_p and
1040 regcache_raw_supply instead.
1041
1042 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1043 frame_pc_unwind.
1044
1045 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1046 variables. Incapitalized "process".
1047
1048 * configure.in: Add cursesX to the list of possible curses libs.
1049 Add cursesX.h to the list of possible curses headers.
1050 * configure, config.in: Regenerate.
1051
1052 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1053
1054 * configure.in: Test for struct lwp in <sys/lwp.h>.
1055 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1056 the offset of l_addr in struct lwp.
1057
1058 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1059
1060 * bsd-kvm.c: Include "gdbcore.h"
1061 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1062
1063 2004-08-07 Andrew Cagney <cagney@gnu.org>
1064
1065 * gdbtypes.c (build_flt, build_complex): New functions.
1066 (gdbtypes_post_init): Use.
1067
1068 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1069
1070 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1071 through to builtin_type_uint128.
1072
1073 * c-exp.y: Use builtin_type function to obtain builtin types.
1074
1075 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1076 builtin_uint128.
1077 * gdbtypes.c (gdbtypes_post_init): Update.
1078 (build_gdbtypes): Move initialization of builtin_type_int0
1079 through to builtin_type_uint128 from here ...
1080 (_initialize_gdbtypes): ... to here.
1081 * d10v-tdep.c (d10v_register_type): Update.
1082
1083 * doublest.c: Update copyright.
1084 (floatformat_from_length): Call error when floatformat is NULL.
1085 (extract_floating_by_length): Remove NULL fmt check.
1086 (store_floating_by_length): Ditto.
1087
1088 2004-08-07 Andrew Cagney <cagney@gnu.org>
1089
1090 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1091 that the register is valid.
1092
1093 2004-08-05 Mark Kettenis <kettenis@chello.nl>
1094
1095 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1096 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1097 struct frame_info *. Use safe_frame_unwind_memory instead of
1098 deprecated_read_memory_nobpt.
1099 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1100 changed signature of i386_linux_sigtramp_start and
1101 i386_linux_rt_sigtramp_start.
1102
1103 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1104 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1105 instead of deprecated_read_memory_nobpt.
1106 (i386nbsd_sigtramp_p): Adjust for changed signature of
1107 i386nbsd_sigtramp_offset.
1108
1109 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1110 safe_frame_unwind_memory instead of target_read_memory.
1111
1112 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1113 !NO_SYS_FILE.
1114 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1115 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1116 (_initialize_kernel_u_addr): Remove prototype and function.
1117 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1118 !NO_SYS_FILE.
1119 * xcoffread.c: Likewise.
1120
1121 2004-08-06 Mark Kettenis <kettenis@gnu.org>
1122
1123 * vax-nat.c: New file.
1124 * vaxbsd-nat.c: Tweak comment.
1125 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1126 vaxnbsd-tdep.c.
1127 (vax-nat.o): New dependency.
1128 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1129 (vax-*-ultrix2*): Remove.
1130 * config/vax/vax.mh: New file.
1131 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1132 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1133 (vax_register_u_addr): New prototype.
1134 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1135 * config/vax/vaxult2.mh: Remove file.
1136 * config/vax/vaxult.mh: Remove file.
1137 * config/vax/vaxbsd.mh: Remove file.
1138 * config/vax/vax.mt (TM_FILE): Remove.
1139 * config/vax/tm-vaxbsd.h: Remove file.
1140
1141 2004-08-06 Joel Brobecker <brobecker@gnat.com>
1142
1143 * aix-thread.c (get_signaled_thread): New function.
1144 (iter_trap): Delete, no longer used.
1145 (iter_tid): New function.
1146 (pd_update): Find the thread that received the SIGTRAP signal
1147 by first locating the kernel thread, and then finding its
1148 associated thread.
1149
1150 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1151
1152 * lin-lwp.c (child_wait): Continue inferior after processing
1153 PTRACE_EVENT_CLONE event.
1154
1155 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1156
1157 * MAINTAINERS: Add self to Write-After-Approval.
1158
1159 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1160
1161 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1162 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1163
1164 2004-08-05 Andrew Cagney <cagney@gnu.org>
1165
1166 * config/xm-sysv4.h: Delete file.
1167 * config/mips/xm-irix5.h: Delete file.
1168 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1169 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1170 * config/ia64/xm-aix.h: Delete file.
1171 * config/ia64/aix.mh (XM_FILE): Delete.
1172 * config/pa/xm-hppah.h: Delete file.
1173 * config/pa/hpux11w.mh (XM_FILE): Delete.
1174 * config/pa/hpux11.mh (XM_FILE): Delete.
1175 * config/pa/hpux1020.mh (XM_FILE): Delete.
1176 * config/pa/hppahpux.mh (XM_FILE): Delete.
1177
1178 * config/alpha/xm-alphalinux.h: Delete file.
1179 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1180 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1181 * config/alpha/xm-alphaosf.h: Delete file.
1182 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1183 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1184 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1185 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1186
1187 * config/i386/xm-i386v.h: Delete file.
1188 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1189 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1190 * config/i386/xm-i386sco.h: Delete file.
1191 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1192 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1193 * config/i386/xm-i386v4.h: Delete file.
1194 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1195 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1196 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1197 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1198
1199 * config/vax/xm-vax.h: Delete file.
1200 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1201 * config/vax/xm-vaxult2.h: Delete file.
1202 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1203 * config/vax/vaxult2.mh (XM_FILE): Delete.
1204 * config/vax/xm-vaxult.h: Delete file.
1205 * config/vax/vaxult.mh (XM_FILE): Delete.
1206 * config/vax/xm-vaxbsd.h: Delete file.
1207 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1208
1209 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1210 * gdbarch.h, gdbarch.c: Re-generate.
1211 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1212 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1213 * frame.h: Delete deprecated_read_fp from comments.
1214 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1215 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1216
1217 2004-08-04 Mark Kettenis <kettenis@gnu.org>
1218
1219 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1220 trampoline in OpenBSD 3.5-current.
1221
1222 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1223 SSE registers.
1224
1225 * Makefile.in: Remove embedded page breaks.
1226
1227 2004-08-04 Jim Blandy <jimb@redhat.com>
1228
1229 * regcache.c (regcache_raw_read): Assert that, after calling
1230 target_fetch_registers, the register we're reading is cached.
1231
1232 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1233 a call to 'internal_error', with a more helpful error message.
1234 * rs6000-tdep.c (e500_pseudo_register_read,
1235 e500_pseudo_register_write, rs6000_store_return_value): Same.
1236
1237 2004-08-04 Andrew Cagney <cagney@gnu.org>
1238
1239 * Makefile.in: Update dependencies.
1240
1241 2004-08-04 Jim Blandy <jimb@redhat.com>
1242
1243 Change the layout of the PowerPC E500 raw register cache to allow
1244 the lower 32-bit halves of the GPRS to be their own raw registers,
1245 not pseudoregisters.
1246 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1247 add ppc_ev0_upper_regnum flag.
1248 * rs6000-tdep.c: #include "reggroups.h".
1249 (spe_register_p): Recognize the ev upper half registers as SPE
1250 registers.
1251 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1252 registers.
1253 (e500_move_ev_register): New function.
1254 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1255 vector registers are the pseudo-registers now, formed by splicing
1256 together the gprs and the upper-half registers.
1257 (e500_register_reggroup_p): New function.
1258 (P): Macro deleted.
1259 (P8, A4): New macro.
1260 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1261 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1262 macros.
1263 (registers_e500): Rearrange register set so that the raw register
1264 set contains 32-bit GPRs and upper-half registers, and the SPE
1265 vector registers become pseudo-registers.
1266 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1267 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1268 register numbers are now the same for the E500 as they are for
1269 other PowerPC variants. Register e500_register_reggroup_p as the
1270 register group function for the E500.
1271 * Makefile.in (rs6000-tdep.o): Update dependencies.
1272
1273 Adapt PPC E500 native support to the new raw regcache layout.
1274 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1275 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1276 (fetch_spe_register, store_spe_register): Handle fetching/storing
1277 all the SPE registers at once, if regno == -1. These now take
1278 over the job of fetch_spe_registers and store_spe_registers.
1279 (fetch_spe_registers, store_spe_registers): Deleted.
1280 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1281 unconditionally; they're always raw. Fetch/store SPE upper half
1282 registers, if present, instead of ev registers.
1283 (fetch_register, store_register): Remove sanity checks: gprs are
1284 never pseudo-registers now, so we never need to even mention any
1285 registers that are ever pseudoregisters.
1286
1287 Use a fixed register numbering when communicating with the PowerPC
1288 simulator.
1289 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1290 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1291 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1292 New functions.
1293 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1294 init_sim_regno_table.
1295 * Makefile.in (gdb_sim_ppc_h): New variable.
1296 (rs6000-tdep.o): Update dependencies.
1297
1298 2004-08-02 Andrew Cagney <cagney@gnu.org>
1299
1300 * cris-tdep.c (cris_register_size): Restore function, still used
1301 locally.
1302
1303 * gdbarch.sh (deprecated_target_read_fp)
1304 (deprecated_frame_locals_address, deprecated_frame_args_address)
1305 (deprecated_frame_chain_valid, deprecated_frame_chain)
1306 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1307 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1308 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1309 * gdbarch.h, gdbarch.c: Re-generate.
1310 * regcache.c (deprecated_read_fp): Do not call
1311 DEPRECATED_TARGET_READ_FP_P.
1312 * infcmd.c (default_print_registers_info): Do not call
1313 DEPRECATED_DO_REGISTERS_INFO.
1314 * frame-base.c (default_frame_locals_address): Do not call
1315 DEPRECATED_FRAME_LOCALS_ADDRESS.
1316 (default_frame_args_address): Do not call
1317 DEPRECATED_FRAME_ARGS_ADDRESS.
1318
1319 * gdbarch.sh (deprecated_register_raw_size)
1320 (deprecated_register_virtual_size:int): Delete.
1321 * gdbarch.h, gdbarch.c: Re-generate.
1322 * cris-tdep.c (cris_register_size): Delete.
1323 (cris_gdbarch_init): Update.
1324 * alpha-tdep.c (alpha_register_raw_size)
1325 (alpha_register_virtual_size): Delete.
1326 (alpha_gdbarch_init): Update.
1327
1328 * gdbarch.sh (deprecated_register_virtual_type)
1329 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1330 (deprecated_dummy_write_sp): Delete.
1331 * gdbarch.h, gdbarch.c: Re-generate.
1332
1333 * gdbarch.sh (deprecated_register_bytes): Delete.
1334 * gdbarch.h, gdbarch.c: Re-generate.
1335 * regcache.c (deprecated_register_bytes): New function.
1336 * regcache.h (deprecated_register_bytes): Declare.
1337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1338 * v850-tdep.c (v850_gdbarch_init): Update.
1339 * sh64-tdep.c (sh64_gdbarch_init): Update.
1340 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1341 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1342 * mcore-tdep.c (mcore_gdbarch_init): Update.
1343 * cris-tdep.c (cris_gdbarch_init): Update.
1344 * arm-tdep.c (arm_gdbarch_init): Update.
1345 * remote.c (init_remote_state): Update.
1346 * remote-vx.c (vx_prepare_to_store): Update.
1347 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1348 * irix5-nat.c (fetch_core_registers): Update.
1349 * cris-tdep.c (cris_register_bytes_ok): Update.
1350 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1351
1352 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1353 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1354 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1355 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1356 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1357 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1358 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1359 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1360 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1361 with mips_insn16 and mips_insn32.
1362
1363 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1364 * rs6000-tdep.c (rs6000_push_dummy_call)
1365 (rs6000_extract_return_value): Use register_size.
1366 * xstormy16-tdep.c (xstormy16_get_saved_register)
1367 (xstormy16_extract_return_value): Ditto.
1368 * valops.c (value_assign): Ditto.
1369 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1370 * v850-tdep.c (v850_extract_return_value): Ditto.
1371 * tracepoint.c (collect_symbol): Ditto.
1372 * target.c (debug_print_register): Ditto.
1373 * stack.c (frame_info): Ditto.
1374 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1375 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1376 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1377 (store_register_using_P): Ditto.
1378 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1379 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1380 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1381 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1382 * regcache.c (deprecated_read_register_bytes)
1383 (deprecated_write_register_bytes, read_register)
1384 (write_register): Ditto.
1385 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1386 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1387 * monitor.c (monitor_supply_register, monitor_fetch_register)
1388 (monitor_store_register): Ditto.
1389 * mn10300-tdep.c (mn10300_pop_frame_regular)
1390 (mn10300_print_register): Ditto.
1391 * mipsv4-nat.c (fill_fpregset): Ditto.
1392 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1393 (mips64_fill_fpregset): Ditto.
1394 * mi/mi-main.c (register_changed_p, get_register)
1395 (mi_cmd_data_write_register_values): Ditto.
1396 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1397 * irix5-nat.c (fill_gregset, fetch_core_registers):
1398 * infrun.c (write_inferior_status_register): Ditto.
1399 * infptrace.c (fetch_register, store_register): Ditto.
1400 * infcmd.c (default_print_registers_info): Ditto.
1401 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1402 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1403 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1404 * hpux-thread.c (hpux_thread_fetch_registers)
1405 (hpux_thread_store_registers): Ditto.
1406 * hppah-nat.c (store_inferior_registers, fetch_register):
1407 * findvar.c (value_from_register): Ditto.
1408 * dve3900-rom.c (fetch_bitmapped_register):
1409 * cris-tdep.c (cris_gdbarch_init): Ditto.
1410 * alpha-tdep.h: Ditto.
1411 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1412
1413 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1414 DEPRECATED_REGISTER_RAW_SIZE from comments.
1415 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1416 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1417 DEPRECATED_REGISTER_RAW_SIZE.
1418 * findvar.c (value_of_register): Simplify by assuming that the
1419 registers raw and virtual sizes are identical.
1420 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1421 comment.
1422 * arch-utils.c (generic_register_size): Simplify by assuming
1423 register_type.
1424
1425 * regcache.c (legacy_read_register_gen, real_register)
1426 (legacy_write_register_gen): Delete, not used.
1427
1428 * regcache.c (struct regcache_descr): Delete legacy_p.
1429 (init_legacy_regcache_descr): Delete function.
1430 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1431 Do not use deprecated register functions.
1432 (regcache_raw_read, deprecated_write_register_gen):
1433 (deprecated_read_register_gen, regcache_raw_write): Delete code
1434 predicated on legacy_p.
1435 (register_size): Delete check against register raw size.
1436
1437 * cris-tdep.c (cris_register_type): Replace
1438 cris_register_virtual_type.
1439 (cris_gdbarch_init): Update, set register_type.
1440
1441 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1442 * gdbarch.h, gdbarch.c: Re-generate.
1443 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1444 (arm_gdbarch_init) Do not set frameless function invocation.
1445 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1446 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1447 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1448 (frv_gdbarch_init): Do not set frameless function invocation.
1449 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1450 * sh-tdep.c (sh_gdbarch_init): Ditto.
1451 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1452 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1453 * avr-tdep.c (avr_gdbarch_init): Ditto.
1454
1455 * blockframe.c (legacy_frame_chain_valid): Delete function.
1456
1457 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1458 and pc. Update comments.
1459 (pc_in_dummy_frame): Delete function.
1460 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1461 use the "id".
1462 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1463 call_hi, top and pc, use the id.
1464 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1465
1466 * dummy-frame.c: Include "gdb_string.h".
1467 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1468 (generic_save_dummy_frame_tos): Delete.
1469 (dummy_frame_push): New function, replaces above.
1470 * dummy-frame.h: Update copyright.
1471 (dummy_frame_push): Declare.
1472 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1473 (generic_save_call_dummy_addr): Delete declarations.
1474 * infcall.c: Include "dummy-frame.h".
1475 (call_function_by_hand): Add locals caller_regcache,
1476 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1477 with call to frame_save_as_regcache plus cleanup. Delete calls to
1478 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1479 Move clear_proceed_status to just before the resume, add call to
1480 dummy_frame_push (discard cleanup).
1481 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1482 (dummy-frame.o): Add $(gdb_string_h).
1483
1484 2004-08-01 Andrew Cagney <cagney@gnu.org>
1485
1486 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1487 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1488 * dummy-frame.c (find_dummy_frame): Delete.
1489 (struct dummy_frame_cache, dummy_frame_sniffer)
1490 (dummy_frame_prev_register, dummy_frame_this_id)
1491 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1492 frame unwinder using a dummy_frame_cache.
1493
1494 2004-08-01 Andrew Cagney <cagney@gnu.org>
1495
1496 * frame.h (frame_save_as_regcache): Declare.
1497 * frame.c (frame_save_as_regcache): New function.
1498 (do_frame_read_register): Replace do_frame_unwind_register.
1499 (frame_pop): Use frame_save_as_regcache.
1500 * dummy-frame.c (generic_push_dummy_frame): Use
1501 frame_save_as_regcache.
1502
1503 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1504
1505 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1506 file as included until we record the first line in the linetable.
1507
1508 2004-08-01 Andrew Cagney <cagney@gnu.org>
1509
1510 * frame.h (deprecated_pop_dummy_frame)
1511 (deprecated_read_register_dummy)
1512 (deprecated_generic_find_dummy_frame): Delete.
1513 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1514 (deprecated_read_register_dummy)
1515 (deprecated_find_dummy_frame_regcache)
1516 (discard_innermost_dummy)
1517 (deprecated_pop_dummy_frame): Delete.
1518 (dummy_frame_this_id): Simplify.
1519 (struct dummy_frame): Delete "fp" and "sp".
1520 (find_dummy_frame): Simplify.
1521 (generic_push_dummy_frame): Do not set "fp" or "sp".
1522 (fprint_dummy_frames): Do not print "fp" and "sp"
1523
1524 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1525
1526 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1527 (struct i386_insn): New structure.
1528 (i386_match_insn): New function.
1529 (i386_frame_setup_skip_insns): New variable.
1530 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1531 array i386_frame_setup_insns of instructions that should be
1532 skipped inside the frame setup sequence.
1533
1534 2004-08-01 Andrew Cagney <cagney@gnu.org>
1535
1536 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1537 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1538 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1539 * stack.c (frame_info): Delete references to
1540 DEPRECATED_FRAME_INIT_SAVED_REGS and
1541 deprecated_get_frame_saved_regs.
1542 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1543 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1544 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1545 (frame_unwind_register_signed)
1546 (frame_unwind_register_unsigned)
1547 (frame_unwind_unsigned_register): Use register_size.
1548 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1549 (deprecated_frame_xmalloc_with_cleanup)
1550 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1551 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1552
1553 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1554 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1555 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1556 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1557
1558 * infcall.c (call_function_by_hand): Do not use
1559 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1560 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1561 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1562 DEPRECATED_STACK_ALIGN.
1563
1564 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1565
1566 Committed by Andrew Cagney.
1567 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1568
1569 2004-08-01 Andrew Cagney <cagney@gnu.org>
1570
1571 * mips-tdep.c (mips16_frame_cache)
1572 (mips16_frame_this_id, mips16_frame_prev_register)
1573 (mips16_frame_unwind, mips16_frame_sniffer)
1574 (mips16_frame_base_address, mips16_frame_base)
1575 (mips16_frame_base_sniffer, mips32_frame_cache)
1576 (mips32_frame_this_id, mips32_frame_prev_register)
1577 (mips32_frame_unwind, mips32_frame_sniffer)
1578 (mips32_frame_base_address, mips32_frame_base)
1579 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1580 separate heuristic mips16 and mips32 unwinders.
1581 (mips_stub_frame_cache, mips_stub_frame_this_id)
1582 (mips_stub_frame_prev_register)
1583 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1584 (mips_stub_frame_base_address, mips_stub_frame_base)
1585 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1586 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1587 match true mdebug frames.
1588 (non_heuristic_proc_desc): Add forward declaration.
1589
1590 2004-08-01 Andrew Cagney <cagney@gnu.org>
1591
1592 * config/mips/tm-irix6.h: Delete file.
1593 * config/mips/tm-irix5.h: Delete file.
1594 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1595 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1596
1597 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1598 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1599 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1600 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1601 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1602 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1603 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1604 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1605 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1606 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1607 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1608 (TARGET_SIGNAL_RAW_VALUES): Delete.
1609 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1610 Delete.
1611 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1612 (TARGET_HW_WATCH_LIMIT): Delete.
1613 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1614 * minimon.h: Delete file.
1615
1616 * trad-frame.c (trad_frame_get_this_base)
1617 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1618 functions.
1619 * trad-frame.h (trad_frame_set_this_base)
1620 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1621
1622 2004-07-31 Andrew Cagney <cagney@gnu.org>
1623
1624 * trad-frame.c (trad_frame_get_prev_register): Rename
1625 trad_frame_get_prev_register.
1626 * vax-tdep.c (vax_frame_prev_register): Update.
1627 * trad-frame.h: Update.
1628 * trad-frame.c (trad_frame_get_register): Update.
1629 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1630 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1631 Update.
1632 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1633 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1634 Update.
1635 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1636 Update.
1637 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1638 Update.
1639 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1640 Update.
1641 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1642 Update.
1643 * s390-tdep.c (s390_frame_prev_register)
1644 (s390_stub_frame_prev_register)
1645 (s390_sigtramp_frame_prev_register): Update.
1646 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1647 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1648 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1649 * m88k-tdep.c (m88k_frame_prev_register)
1650 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1651 * m32r-tdep.c (m32r_frame_prev_register): Update.
1652 * hppa-tdep.c (hppa_frame_prev_register_helper)
1653 * frv-tdep.c (frv_frame_prev_register): Update.
1654 * d10v-tdep.c (d10v_frame_prev_register): Update.
1655 * cris-tdep.c (cris_frame_prev_register): Update.
1656 * avr-tdep.c (avr_frame_prev_register): Update.
1657 * arm-tdep.c (arm_prologue_prev_register)
1658 (arm_sigtramp_prev_register): Update.
1659
1660 2004-07-31 Andrew Cagney <cagney@gnu.org>
1661
1662 * frame.h (legacy_saved_regs_unwind)
1663 (legacy_frame_chain_valid, legacy_frame_p)
1664 (enum frame_type): Delete UNKNOWN_FRAME.
1665 * dummy-frame.c (dummy_frame_this_id): Simplify.
1666 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1667 * frame.c (struct frame_info): Delete the field "type".
1668 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1669 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1670 (legacy_saved_regs_unwind, legacy_frame_p)
1671 (frame_type_from_pc): Delete.
1672 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1673 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1674
1675 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1676
1677 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1678 indentation.
1679
1680 * mips-nat.c: Remove file.
1681 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1682 (mips-nat.o): Remove dependency.
1683
1684 * infptrace.c: Update copyright year.
1685 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1686 explicitly setting the buffer to all zeroes.
1687
1688 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1689 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1690
1691 2004-07-30 Andrew Cagney <cagney@gnu.org>
1692
1693 * GDB 6.2 released from gdb_6_2-branch.
1694
1695 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1696
1697 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1698
1699 * exec.c (exec_file_attach):
1700 * nto-tdep.c (nto_find_and_open_solib):
1701 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1702 * solib.c (solib_open):
1703 * somsolib.c (som_solib_sizeof_symbol_table):
1704 * source.c (is_regular_file, openp, open_source_file):
1705 * symfile.c (symfile_bfd_open):
1706 * wince.c (upload_to_device): Differentiate between the search for
1707 binary and source files.
1708
1709 2004-07-30 Andrew Cagney <cagney@gnu.org>
1710
1711 * complaints.c (_initialize_complaints): Pass NULL to
1712 add_setshow_zinteger_cmd for help_doc.
1713 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1714
1715 2004-07-30 Andrew Cagney <cagney@gnu.org>
1716
1717 Fix PR i18n/761.
1718 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1719 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1720 $(PACKAGE).pot and update-po.
1721 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1722 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1723 (update-po): New rules.
1724 (localedir): Define using autoconf.
1725 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1726 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1727 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1728 * configure.in: Generate CATALOGS and LINGUAS from contents of
1729 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1730 * configure: Re-generate.
1731 * po/gdbtext: New file
1732
1733 2004-07-30 Jerome Guitton <guitton@gnat.com>
1734
1735 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1736 order.
1737
1738 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1739
1740 * dwarf2read.c (read_file_scope): Set producer if attribute
1741 present.
1742 (struct dwarf2_cu): Added new member producer.
1743
1744 2004-07-30 Jerome Guitton <guitton@gnat.com>
1745
1746 * inflow.c (kill_command): release file handles in BFD.
1747 * exec.c (exec_file_attach): Ditto.
1748 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1749
1750 2004-07-29 Andrew Cagney <cagney@gnu.org>
1751
1752 * PROBLEMS (mips-irix): Note that it is broken.
1753
1754 2004-07-29 Andrew Cagney <cagney@gnu.org>
1755
1756 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1757 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1758
1759 * config/xm-nbsd.h: Delete file.
1760 * config/arm/xm-nbsd.h: Delete file.
1761 * config/i386/xm-nbsd.h: Delete file.
1762 * config/ns32k/xm-nbsd.h: Delete file.
1763 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1764 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1765 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1766 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1767 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1768
1769 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1770 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1771 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1772 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1773 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1774 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1775
1776 * config/powerpc/xm-linux.h: Delete empty file.
1777 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1778 * config/powerpc/linux.mh (XM_FILE): Delete.
1779 * config/m68k/xm-linux.h: Delete empty file.
1780 * config/m68k/linux.mh (XM_FILE): Delete.
1781 * config/ia64/xm-linux.h: Delete empty file.
1782 * config/ia64/linux.mh (XM_FILE): Delete.
1783 * config/arm/xm-linux.h: Delete empty file.
1784 * config/arm/linux.mh (XM_FILE): Delete.
1785
1786 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1787 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1788 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1789 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1790 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1791 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1792 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1793 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1794
1795 * config/m68k/xm-m68k.h: Delete file.
1796 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1797 copyright.
1798 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1799 * config/pa/xm-linux.h: Delete empty file.
1800 * config/pa/linux.mh (XM_FILE): Delete.
1801 * config/i386/xm-i386.h: Delete empty file.
1802 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1803 "i386/xm-i386.h".
1804 * config/i386/obsdaout.mh (XM_FILE): Delete.
1805 * config/i386/obsd64.mh (XM_FILE): Delete.
1806 * config/i386/fbsd64.mh (XM_FILE): Delete.
1807 * config/i386/nto.mh (XM_FILE): Delete.
1808 * config/i386/obsd.mh (XM_FILE): Delete.
1809 * config/i386/linux64.mh (XM_FILE): Delete.
1810 * config/i386/linux.mh (XM_FILE): Delete.
1811 * config/i386/i386sol2.mh (XM_FILE): Delete.
1812 * config/i386/i386gnu.mh (XM_FILE): Delete.
1813 * config/i386/fbsd.mh (XM_FILE): Delete.
1814 * config/i386/nbsd64.mh (XM_FILE): Delete.
1815
1816 2004-07-29 Andrew Cagney <cagney@gnu.org>
1817
1818 * config/pa/xm-linux.h: Do not include "floatformat.h".
1819 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1820 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1821 * config/i386/xm-i386.h: Do not include "floatformat.h".
1822 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1823 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1824 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1825 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1826 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1827 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1828 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1829 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1830 * configure, config.in: Regenerate.
1831 * configure.host (gdb_host_float_format, gdb_host_double_format)
1832 (gdb_host_long_double_format): Set according to the host.
1833
1834 2004-07-29 Andrew Cagney <cagney@gnu.org>
1835
1836 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1837
1838 2004-07-28 Andrew Cagney <cagney@gnu.org>
1839
1840 * PROBLEMS: Mention threads/1650.
1841 * NEWS: Mention the NPTL fix.
1842
1843 2004-07-28 Andrew Cagney <cagney@gnu.org>
1844
1845 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1846 (add_setshow_cmd_full): Make static.
1847 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1848 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1849 * cli/cli-decode.c (add_setshow_filename_cmd)
1850 (add_setshow_string_cmd): New functions.
1851 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1852 * mips-tdep.c (_initialize_mips_tdep): Update.
1853 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1854 * cli/cli-logging.c (_initialize_cli_logging): Update.
1855 * complaints.c (_initialize_complaints): Update.
1856 * remote.c (_initialize_remote): Update.
1857
1858 2004-07-28 Andrew Cagney <cagney@gnu.org>
1859
1860 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1861 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1862 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1863 print parameters. Make string parameters constant.
1864 * command.h: Update. Update copyright.
1865 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1866 * observer.c (_initialize_observer): Ditto.
1867 * frame.c (_initialize_frame): Ditto.
1868 * complaints.c (_initialize_complaints): Ditto.
1869 * maint.c (_initialize_maint_cmds): Ditto.
1870 * target.c (initialize_targets): Ditto.
1871 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1872 * infcall.c (_initialize_infcall): Ditto.
1873 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1874 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1875 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1876 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1877 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1878
1879 2004-07-28 Andrew Cagney <cagney@gnu.org>
1880
1881 * gdbtypes.c (lookup_primitive_typename): Delete function.
1882 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1883 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1884 * gdbtypes.c (lookup_typename): Ditto.
1885 * f-exp.y (yylex): Ditto.
1886 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1887
1888 * scm-lang.c (c_builtin_types): Delete extern declaration.
1889 (scm_language_defn): Replace
1890 string_char_type and primitive_type_vector with
1891 la_language_arch_info.
1892 * jv-lang.c (java_language_defn): Replace
1893 string_char_type and primitive_type_vector with
1894 la_language_arch_info.
1895 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1896 c_builtin_types in comment.
1897 * c-lang.h (struct language_arch_info): Declare opaque.
1898 (c_language_arch_info): Declare.
1899 (c_builtin_types): Delete declaration.
1900 * c-lang.c (c_language_arch_info): Set string_char_type to
1901 builtin_char, not builtin_true_char. Make global.
1902 (c_builtin_types): Delete array.
1903 (asm_language_defn, minimal_language_defn): Replace
1904 string_char_type and primitive_type_vector with
1905 la_language_arch_info.
1906
1907 2004-07-28 Andrew Cagney <cagney@gnu.org>
1908
1909 * gdbtypes.h (struct builtin_type): Rename true_char to
1910 builtin_true_char.
1911 * gdbtypes.c (gdbtypes_post_init): Update.
1912 * c-lang.c (arch_info): New function.
1913 (enum c_primitive_types): New enum.
1914 (c_language_defn): Instead of string_char_type and
1915 primitive_type_vector set la_language_arch_info.
1916
1917 2004-07-28 Andrew Cagney <cagney@gnu.org>
1918
1919 * language.h (struct language_arch_info): Fix typo
1920 s/primative/primitive/.
1921 * gdbtypes.c (lookup_primitive_typename): Ditto.
1922 * language.c (language_lookup_primitive_type_by_name)
1923 (unknown_language_arch_info): Ditto.
1924
1925 2004-07-27 Andrew Cagney <cagney@gnu.org>
1926
1927 * defs.h (enum language): Add nr_languages.
1928 * language.h (struct language_arch_info): Define.
1929 (struct language_defn): Add la_language_arch_info.
1930 (language_lookup_primative_type_by_name): Declare.
1931 (language_string_char_type): Declare.
1932 * language.c (_initialize_language, language_gdbarch_post_init)
1933 (struct language_gdbarch, language_gdbarch_data): Implement
1934 per-architecture language information.
1935 (unknown_language_arch_info, language_string_char_type)
1936 (language_lookup_primative_type_by_name): New functions.
1937 (unknown_language_defn, auto_language_defn)
1938 (local_language_defn): Set la_language_arch_info to
1939 unknown_language_arch_info.
1940 (unknown_builtin_types): Delete.
1941 * gdbtypes.c (lookup_primitive_typename): Use
1942 language_lookup_primative_type_by_name.
1943 (create_string_type): Use language_string_char_type.
1944 * values.c (value_from_string): Use language_string_char_type.
1945 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1946 * p-lang.c (pascal_language_defn): Ditto.
1947 * m2-lang.c (m2_language_defn): Ditto.
1948 * jv-lang.c (java_language_defn): Ditto.
1949 * objc-lang.c (objc_language_defn): Ditto.
1950 * f-lang.c (f_language_defn): Ditto.
1951 * c-lang.c (c_language_defn, cplus_language_defn)
1952 (asm_language_defn, minimal_language_defn): Ditto.
1953
1954 2004-07-27 Andrew Cagney <cagney@gnu.org>
1955
1956 * gdbtypes.h (struct builtin_type): Declare.
1957 (builtin_type): Declare.
1958 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1959 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1960 (gdbtypes_post_init): New function.
1961 (builtin_type): New function.
1962
1963 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1964
1965 * remote-m32r-sdi.c: Fix breakpoint bug.
1966 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1967 recv_char_data, recv_long_data): New functions to replace communication
1968 sequences.
1969
1970 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1971
1972 Document PR threads/1650.
1973 * PROBLEMS (Threads): Document problem with many threads
1974
1975 2004-07-26 Andrew Cagney <cagney@gnu.org>
1976
1977 * gdb-mi.el: Move from here ...
1978 * mi/gdb-mi.el: ... to here.
1979
1980 2004-07-26 Andrew Cagney <cagney@gnu.org>
1981
1982 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1983 * main.c (captured_main): When in batch mode always detach.
1984
1985 2004-07-26 Andrew Cagney <cagney@gnu.org>
1986
1987 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1988 and h8300 as broken.
1989 * NEWS: END-OF-LIFE frame compatibility module.
1990 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1991 specific comments.
1992
1993 2004-07-26 Andrew Cagney <cagney@gnu.org>
1994
1995 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1996 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1997 * wince.c (_initialize_wince): Update.
1998 * win32-nat.c (_initialize_win32_nat): Update.
1999 * varobj.c (_initialize_varobj): Update.
2000 * valops.c (_initialize_valops): Update.
2001 * utils.c (initialize_utils, initialize_utils): Update.
2002 * tui/tui-win.c (_initialize_tui_win): Update.
2003 * top.c (init_main): Update.
2004 * symfile.c (_initialize_symfile): Update.
2005 * source.c (_initialize_source): Update.
2006 * somsolib.c (_initialize_som_solib): Update.
2007 * solib.c (_initialize_solib): Update.
2008 * solib-frv.c (_initialize_frv_solib): Update.
2009 * serial.c (_initialize_serial): Update.
2010 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2011 * remote.c (_initialize_remote, _initialize_remote): Update.
2012 * remote-vx.c (_initialize_vx): Update.
2013 * remote-utils.c (_initialize_sr_support): Update.
2014 * remote-sds.c (_initialize_remote_sds): Update.
2015 * remote-mips.c (_initialize_remote_mips): Update.
2016 * remote-e7000.c (_initialize_remote_e7000): Update.
2017 * proc-api.c (_initialize_proc_api): Update.
2018 * printcmd.c: Update.
2019 * parse.c (_initialize_parse): Update.
2020 * pa64solib.c (_initialize_pa64_solib): Update.
2021 * p-valprint.c (_initialize_pascal_valprint): Update.
2022 * monitor.c (_initialize_remote_monitors): Update.
2023 * mips-tdep.c (_initialize_mips_tdep): Update.
2024 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2025 * maint.c (_initialize_maint_cmds): Update.
2026 * lin-lwp.c (_initialize_lin_lwp): Update.
2027 * language.c (_initialize_language): Update.
2028 * kod.c (_initialize_kod): Update.
2029 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2030 * i386-tdep.c (_initialize_i386_tdep): Update.
2031 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2032 * gdbarch.sh: Update.
2033 * gdbarch.c: Re-generate.
2034 * gdb-events.sh: Update.
2035 * gdb-events.c: Re-generate.
2036 * frame.c (_initialize_frame): Update.
2037 * exec.c: Update.
2038 * demangle.c (_initialize_demangler): Update.
2039 * dcache.c (_initialize_dcache): Update.
2040 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2041 * cp-valprint.c (_initialize_cp_valprint): Update.
2042 * corefile.c (_initialize_core): Update.
2043 * command.h: Update.
2044 * cli/cli-decode.h: Update.
2045 * cli/cli-cmds.c (init_cli_cmds): Update.
2046 * charset.c (_initialize_charset): Update.
2047 * breakpoint.c (_initialize_breakpoint): Update.
2048 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2049 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2050 * aix-thread.c (_initialize_aix_thread): Update.
2051
2052 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2053
2054 Partial fix for PR backtrace/1718.
2055 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2056 that GCC migrates into the prolugue. Don't handle any
2057 instructions that clobber %ebx.
2058
2059 2004-07-23 Andrew Cagney <cagney@gnu.org>
2060
2061 Use regcache_raw_collect instead of regcache_collect.
2062 * regcache.h (regcache_collect): Delete declaration.
2063 * regcache.c (regcache_colect): Delete function.
2064 * win32-nat.c (do_child_store_inferior_registers): Update.
2065 * sol-thread.c (sol_thread_store_registers): Update.
2066 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2067 * rs6000-nat.c (store_register): Update.
2068 * remote.c (store_register_using_P, remote_store_registers): Update.
2069 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2070 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2071 (fill_vrregset, store_spe_registers, fill_gregset)
2072 (fill_gregset): Update.
2073 * nto-procfs.c (procfs_store_registers): Update.
2074 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2075 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2076 * m68klinux-nat.c (store_register, fill_gregset): Update.
2077 * m68k-tdep.c (fill_gregset): Update.
2078 * infptrace.c (store_register): Update.
2079 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2080 * i386-linux-nat.c (store_register, fill_gregset): Update.
2081 * hppa-linux-nat.c (fill_gregset): Update.
2082 * go32-nat.c (store_register): Update.
2083 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2084 (store_fp_regs): Update.
2085 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2086 (store_nwfpe_extended, store_fpregister, store_fpregs)
2087 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2088 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2089 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2090 (store_regs_user_thread, store_regs_kernel_thread): Update.
2091
2092 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2093
2094 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2095 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2096 encoding.
2097 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2098 member of `struct comp_unit'.
2099
2100 2004-07-23 Andrew Cagney <cagney@gnu.org>
2101
2102 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2103 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2104
2105 2004-07-23 Martin Hunt <hunt@redhat.com>
2106 Kevin Buettner <kevinb@redhat.com>
2107
2108 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2109 alignment was being added to the offset instead of multiplied.
2110
2111 2004-07-23 Mark Kettenis <kettenis@gnu.org>
2112
2113 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2114 changed signal trampoline in OpenBSD 3.5-current.
2115
2116 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2117 <machine/pcb.h> and "bsd-kvm.h".
2118 (sparc64nbsd_supply_pcb): New function.
2119 (_initialize_sparc64nbsd_nat): Renamed from
2120 _initialize_sparcnbsd_nat. Enable libkvm interface.
2121 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2122 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2123 (LOADLIBES): New variable.
2124
2125 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2126
2127 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2128
2129 2004-07-21 Andrew Cagney <cagney@gnu.org>
2130
2131 Use regcache_raw_supply instead of supply_register.
2132 * regcache.h (supply_register): Delete declaration.
2133 * regcache.c (supply_register): Delete function.
2134 * wince.c (do_child_fetch_inferior_registers): Update.
2135 * win32-nat.c (do_child_fetch_inferior_registers)
2136 (fetch_elf_core_registers): Update.
2137 * v850ice.c (v850ice_fetch_registers): Update.
2138 * thread-db.c (thread_db_store_registers): Update.
2139 * sol-thread.c (sol_thread_store_registers): Update.
2140 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2141 * rs6000-nat.c (fetch_register): Update.
2142 * rom68k-rom.c (rom68k_supply_one_register): Update.
2143 * remote.c (remote_wait, remote_async_wait): Update.
2144 * remote-st.c (get_hex_regs): Update.
2145 * remote-sim.c (gdbsim_fetch_register): Update.
2146 * remote-sds.c (sds_fetch_registers): Update.
2147 * remote-rdp.c (remote_rdp_fetch_register): Update.
2148 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2149 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2150 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2151 * remote-hms.c (init_hms_cmds): Update.
2152 * remote-est.c (init_est_cmds): Update.
2153 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2154 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2155 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2156 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2157 (fetch_register, supply_vrregset, supply_vrregset)
2158 (fetch_spe_registers): Update.
2159 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2160 * monitor.c (monitor_supply_register): Update.
2161 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2162 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2163 (mipsnbsd_supply_fpreg): Update.
2164 * mips-nat.c (fetch_inferior_registers)
2165 (fetch_core_registers): Update.
2166 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2167 (supply_fpregset, mips64_supply_gregset)
2168 (mips64_supply_fpregset): Update.
2169 * m68klinux-nat.c (fetch_register, supply_gregset)
2170 (supply_fpregset): Update.
2171 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2172 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2173 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2174 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2175 * infptrace.c (fetch_register): Update.
2176 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2177 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2178 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2179 (gnu_fetch_registers, gnu_store_registers): Update.
2180 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2181 * i386-linux-nat.c (fetch_register, supply_gregset)
2182 (dummy_sse_values): Update.
2183 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2184 * hppah-nat.c (fetch_register): Update.
2185 * hppa-linux-nat.c (fetch_register, supply_gregset)
2186 (supply_fpregset): Update.
2187 * go32-nat.c (fetch_register): Update.
2188 * dve3900-rom.c (fetch_bitmapped_register)
2189 (_initialize_r3900_rom): Update.
2190 * cris-tdep.c (supply_gregset): Update.
2191 * abug-rom.c (init_abug_cmds): Update.
2192 * core-aout.c (fetch_core_registers): Update.
2193 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2194 (fetch_register, fetch_fp_register): Update.
2195 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2196 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2197 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2198 * alphanbsd-tdep.c (fetch_core_registers): Update.
2199 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2200 * alpha-nat.c (fetch_osf_core_registers)
2201 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2202 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2203 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2204
2205 2004-07-21 Andrew Cagney <cagney@gnu.org>
2206
2207 * PROBLEMS: Mention breakpoints/1702.
2208 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2209 that is known to work.
2210
2211 2004-07-21 Andrew Cagney <cagney@gnu.org>
2212
2213 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2214 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2215 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2216 (handle_inferior_event): Wrap call to deprecated
2217 IGNORE_HELPER_CALL in #ifdef.
2218 * config/mips/tm-nbsd.h: Update.
2219
2220 2004-07-20 Jim Blandy <jimb@redhat.com>
2221
2222 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2223 bfd_mach_ppc has no segment registers.
2224
2225 Include PowerPC SPR numbers for special-purpose registers.
2226 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2227 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2228 new member in initializer.
2229 (S, S4, SN4, S64): New macros for defining special-purpose
2230 registers.
2231 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2232 registers_403, registers_403GC, registers_505, registers_860,
2233 registers_601, registers_602, registers_603, registers_604,
2234 registers_750, registers_e500): Use them.
2235
2236 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2237 replace references with expression used to initialize variable.
2238
2239 2004-07-20 Andrew Cagney <cagney@gnu.org>
2240
2241 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2242 read_memory_nobpt.
2243 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2244 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2245 (s390_sigtramp_frame_sniffer): Update.
2246 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2247 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2248 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2249 (mips32_fetch_instruction): Update.
2250 * mcore-tdep.c (get_insn): Update.
2251 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2252 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2253 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2254 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2255 (i386_linux_rt_sigtramp_start): Update.
2256 * i386-linux-nat.c (child_resume): Update.
2257 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2258 * hppa-linux-tdep.c (insns_match_pattern): Update.
2259 * gdbcore.h: Update.
2260 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2261 * frame.c (safe_frame_unwind_memory): Update.
2262 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2263 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2264 * alpha-tdep.c (alpha_read_insn): Update.
2265
2266 2004-07-20 Andrew Cagney <cagney@gnu.org>
2267
2268 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2269 containing both bytes and mask. Add "frame_type".
2270 * tramp-frame.c (tramp_frame_start): Update.
2271 (tramp_frame_prepend_unwinder): Update.
2272 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2273 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2274 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2275 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2276
2277 2004-07-19 Eli Zaretskii <eliz@gnu.org>
2278
2279 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2280 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2281 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2282 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2283
2284 2004-07-17 Andrew Cagney <cagney@gnu.org>
2285
2286 * NEWS, PROBLEMS: Update for 6.2.
2287
2288 * README: Update to 6.2.
2289
2290 * utils.c (xvasprintf): Call xstrvprintf.
2291
2292 * parse.c: Update copyright.
2293 (null_post_parser): Eliminate ARGSUSED.
2294
2295 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2296 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2297 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2298
2299 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2300 * ppc-linux-nat.c: Use "Linux kernel".
2301 * hppa-linux-tdep.c: Use GNU/Linux.
2302 * hppa-linux-nat.c: Use GNU/Linux.
2303 * dwarfread.c: Add [sic] to use of Linux.
2304
2305 * hppa-linux-nat.c: Do not include <string.h>.
2306 (supply_fpregset): Remove "register" attribute.
2307
2308 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2309
2310 2004-07-17 Mark Kettenis <kettenis@gnu.org>
2311
2312 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2313 * configure, config.in: Regenerated.
2314
2315 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2316 "bsd-kvm.h".
2317 (vaxbsd_supply_pcb): New function.
2318 (_initialize_vaxbsd_nat): New prototype and function.
2319 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2320 solib-sunos.o.
2321 (LOADLIBES): New variable.
2322 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2323 (LOADLIBES): New variable.
2324 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2325 (LOADLIBES): New variable.
2326 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2327
2328 2004-07-16 Andrew Cagney <cagney@gnu.org>
2329
2330 * defs.h (event_loop_p): Replace variable declaration with macro,
2331 always 1.
2332 * main.c (captured_main): Delete options "-async" and "-noasync".
2333 (event_loop_p): Delete variable.
2334 * NEWS: Mention that "-async" and "-noasync" were removed.
2335
2336 2004-07-16 Andrew Cagney <cagney@gnu.org>
2337
2338 * remote-m32r-sdi.c: Re-indent.
2339
2340 2004-07-16 Jim Blandy <jimb@redhat.com>
2341
2342 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2343 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2344 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2345 missing MPC823 SPRs.
2346 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2347 incorrect. (This was corrected in GDB's register name tables on
2348 2004-07-14.)
2349
2350 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2351 should be "esasrr" ("ESA Save and Restore Register").
2352
2353 2004-07-16 Andrew Cagney <cagney@gnu.org>
2354
2355 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2356 calls, no longer applicable. Update comments and rename parameter
2357 "step_frame" to "return_frame".
2358
2359 2004-07-16 Andrew Cagney <cagney@gnu.org>
2360
2361 * frame.c (fprint_field): New function.
2362 (fprint_frame_id): Use fprint_field.
2363
2364 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2365
2366 * ada-lang.c (ada_language_defn): Remove commented out code.
2367
2368 2004-07-15 Jim Blandy <jimb@redhat.com>
2369
2370 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2371 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2372
2373 2004-07-14 Jim Blandy <jimb@redhat.com>
2374
2375 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2376
2377 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2378
2379 * ppc-tdep.h (ppc_num_srs): New enum constant.
2380
2381 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2382 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2383 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2384 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2385 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2386 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2387 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2388 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2389 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2390 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2391 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2392 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2393 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2394 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2395 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2396 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2397 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2398 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2399 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2400 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2401 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2402 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2403 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2404 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2405 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2406 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2407 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2408 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2409 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2410 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2411 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2412 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2413 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2414 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2415 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2416 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2417 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2418 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2419 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2420 special-purpose register numbers.
2421
2422 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2423 manual mentions 'md_twb', but many mention 'm_twb', and at that
2424 point in the register list.)
2425
2426 2004-07-14 Andrew Cagney <cagney@gnu.org>
2427
2428 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2429 instead of "internal-error".
2430
2431 2004-07-10 Joel Brobecker <brobecker@gnat.com>
2432
2433 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2434 that was inserted inside a comment.
2435
2436 2004-07-10 Randolph Chung <tausq@debian.org>
2437
2438 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2439 function.
2440 (hppa_hpux_push_dummy_code): New function.
2441 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2442 Set find_global_pointer method.
2443
2444 2004-07-10 Mark Kettenis <kettenis@gnu.org>
2445
2446 * NEWS: Mention BSD libkvm interface.
2447
2448 2004-07-10 Michael Snyder <msnyder@redhat.com>
2449
2450 * symfile.c (generic_load): Comment typo.
2451 * stack.c (get_selected_block): Ditto.
2452 * regcache.c (regcache_cooked_read): Ditto.
2453 * monitor.c (monitor_debug): Ditto.
2454 * mips-tdep.c (mips_read_pc): Ditto.
2455 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2456 * gdb_mbuild.sh: Ditto.
2457 * gdbarch.sh: Ditto.
2458 * gdbarch.h: Ditto.
2459
2460 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2461
2462 * ada-tasks.c: Remove file.
2463
2464 Remove ARI problems:
2465
2466 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2467 beginning of line.
2468
2469 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2470 Add comment.
2471 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2472 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2473 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2474 (UMIN_OF_SIZE): Remove.
2475 (max_of_type): New function to replace orphan macro in gdbtypes.h
2476 (min_of_type): Ditto.
2477 (discrete_type_high_bound): Use max_of_type.
2478 (discrete_type_low_bound): Use min_of_type.
2479 (possible_user_operator_p): Move operator to beginning of line.
2480 (ada_is_variant_part): Ditto.
2481 (ensure_lval): Rewrite to avoid deprecated operations.
2482 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2483 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2484 (ada_enum_name): Remove assignments in 'if' statements.
2485 (build_ada_types): Add gdbarch parameter.
2486 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2487 with gdbarch_data_register_post_init.
2488 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2489 add_show_from_set.
2490
2491 * ada-valprint.c (inspect_it): Remove declaration.
2492 (repeat_count_threshold): Remove declaration.
2493 (ada_print_floating): Remove assignments in 'if' statements.
2494 (print_str): Move operator to beginning of line.
2495
2496 2004-07-08 Jim Blandy <jimb@redhat.com>
2497
2498 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2499
2500 2004-07-08 Bob Rossi <bob@brasko.net>
2501
2502 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2503
2504 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2505
2506 * language.h (struct_language_defn): Add new function pointer:
2507 la_class_name_from_physname. Also add new prototype for
2508 language_class_name_from_physname.
2509 * language.c (language_class_name_from_physname): New function.
2510 (unk_lang_class_name): Ditto.
2511 (unknown_language_defn, auto_language_defn): Change
2512 to add unk_lang_class_name function pointer for
2513 la_class_name_from_physname.
2514 (local_language_defn): Ditto.
2515 * dwarf2read.c (guess_structure_name): Change to call
2516 language_class_name_from_physname.
2517 (determine_class_name): Ditto.
2518 * cp-support.c (class_name_from_physname): Renamed.
2519 (cp_class_name_from_physname): New name of function.
2520 * cp-support.h: Ditto.
2521 * c-lang.c (c_language_defn): Change to add NULL
2522 for class_name_from_physname function pointer.
2523 (cplus_language_defn): Change to add cp_class_name_from_physname.
2524 * jv-lang.c (java_class_name_physname): New function.
2525 (java_find_last_component): New static routine.
2526 (java_language_defn): Add java_class_name_from_physname pointer.
2527 * ada-lang.c (ada_language_defn): Change to add NULL
2528 for class_name_from_physname function pointer.
2529 * f-lang.c (f_language_defn): Ditto.
2530 * m2-lang.c (m2_language_defn): Ditto.
2531 * objc-lang.c (objc_language_defn): Ditto.
2532 * p-lang.c (pascal_language_defn): Ditto.
2533 * scm-lang.c (scm_language_defn): Ditto.
2534
2535 2004-07-06 Andrew Cagney <cagney@gnu.org>
2536
2537 Patch from Bart Robinson.
2538 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2539 (O_LARGEFILE): Define to 0, if not defined.
2540
2541 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2542
2543 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2544 <machine/pcb.h> and "bsd-kvm.h".
2545 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2546 (m68kbsd_supply_pcb): New function.
2547 (_initialize_m68kbsd_nat): New prototype and function.
2548 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2549 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2550 (LOADLIBES): New variable.
2551 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2552 (LOADLIBES): New variable.
2553
2554 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2555
2556 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2557
2558 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2559 <sys/proc.h>.
2560 (bsd_kvm_cmdlist): New variable.
2561 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2562 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2563 command and "kvm proc" command.
2564 * Makefile.in (bsd-kvm.o): Update dependencies.
2565
2566 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2567
2568 * osabi.c: Update copyright year.
2569 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2570 notes if EI_OSABI is set to ELFOSABI_HPUX.
2571
2572 2004-07-01 Michael Snyder <msnyder@redhat.com>
2573
2574 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2575 that seems to have gotten whacked out of line.
2576
2577 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2578
2579 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2580 code.
2581
2582 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2583
2584 * ada-lang.c (decode_packed_array): Minor change to comment.
2585 (ada_value_slice_ptr): New function.
2586 (ada_value_slice): New function.
2587 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2588 test. Don't know why it is there.
2589 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2590 to avoid dereferencing huge arrays from which one is slicing.
2591 (empty_array): Correct to return an array rather than
2592 a subrange value.
2593 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2594 on empty arrays (let'em use 'FIRST instead).
2595
2596 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2597
2598 Address complaints from gdb_ari.sh:
2599
2600 * ada-exp.y: Include gdb_string.h rather than string.h.
2601 (convert_char_literal): Reformat declaration.
2602 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2603 * ada-lex.l: Change use of free to xfree (the macro would do so
2604 anyway, but this is harmless).
2605 Include gdb_string.h rather than string.h.
2606 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2607
2608 * ada-lang.c (parse): Remove K&Rism in parameter list.
2609 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2610
2611 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2612
2613 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2614 dead code.
2615
2616 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2617
2618 * alphabsd-nat.c: Update copyright year.
2619 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2620
2621 2004-06-29 Joel Brobecker <brobecker@gnat.com>
2622
2623 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
2624 (i386_cygwin_in_solib_call_trampoline): New function.
2625 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2626 and skip_trampoline_code gdbarch methods.
2627
2628 2004-06-29 Jim Blandy <jimb@redhat.com>
2629
2630 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2631 name actually used in the dependency lists.
2632
2633 2004-06-29 Randolph Chung <tausq@debian.org>
2634
2635 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2636
2637 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2638
2639 * win32-nat.c (child_pid_to_exec_file): New function.
2640 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2641 functionality.
2642
2643 2004-06-28 Andrew Cagney <cagney@gnu.org>
2644
2645 * defs.h (xstrvprintf): Declare.
2646 * utils.c (xstrvprintf): New function.
2647 (internal_vproblem, xstrprintf, xasprintf)
2648 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2649 * serial.c (serial_printf): Ditto.
2650 * complaints.c (vcomplaint): Ditto.
2651
2652 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2653
2654 * infcmd.c (attach_command): Move call to target_terminal_inferior
2655 behind loading symbol table.
2656
2657 2004-06-28 Andrew Cagney <cagney@gnu.org>
2658
2659 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2660 change - add back extern deprecated_ui_loop_hook declaration.
2661
2662 2004-06-28 Andrew Cagney <cagney@gnu.org>
2663
2664 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2665 xstrprintf.
2666 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2667 (c_value_of_variable): Ditto.
2668 * utils.c (internal_vproblem): Ditto.
2669 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2670 * remote.c (add_packet_config_cmd): Ditto.
2671 * remote-rdp.c (rdp_set_command_line): Ditto.
2672 * regcache.c (regcache_dump): Ditto.
2673 * frv-tdep.c (new_variant, new_variant): Ditto.
2674 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2675 (fbsd_find_memory_regions): Ditto.
2676 * breakpoint.c (create_thread_event_breakpoint)
2677 (create_breakpoints): Ditto.
2678 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2679 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2680
2681 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2682
2683 * ada-lang.c: Re-indent file, with some massaging to help indent
2684 a bit when the result is otherwise really too ugly.
2685
2686 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2687
2688 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2689 code_addr_p and special_addr_p to 'unsigned int'.
2690
2691 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2692
2693 * i386v4-nat.c: Update copyright year and tweak comment.
2694 (regmap): Remove trailing comma.
2695 (supply_gregset): Rename local variable i to regnum. Call
2696 regcache_raw_supply instead of supply_register.
2697 (fill_gregset): Rename argument regno to regnum. Call
2698 regcache_raw_collect instead of regcache_collect.
2699
2700 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2701
2702 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2703 and special_addr_p.
2704 (frame_id_build, frame_id_build_special): Update comments.
2705 (frame_id_build_wild): New prototype.
2706 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2707 struct frame_id fields.
2708 (frame_id_build_wild): New function.
2709 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2710
2711 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2712
2713 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2714 hppabsd-tdep.c.
2715
2716 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2717
2718 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2719
2720 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2721
2722 * ada-lang.c: Re-indent file.
2723
2724 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2725
2726 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2727 (no_symtab_msg): Likewise.
2728
2729 2004-06-27 Andreas Schwab <schwab@suse.de>
2730
2731 * source.c: Fix whitespace.
2732
2733 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2734
2735 * configure.in: Include <sys/param.h> for td_pcb test.
2736 * configure: Regenerated.
2737
2738 * i386nbsd-nat.c: New file.
2739 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2740 i386obsd-nat.c and i386obsd-tdep.c.
2741 (i386nbsd-nat.o): New dependency.
2742 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2743 bsd-kvm.o.
2744 (LOADLIBES): New variable.
2745 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2746 bsd-kvm.o.
2747 (LOADLIBES): New variable.
2748
2749 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2750 (LOADLIBES): New variable.
2751
2752 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2753 fetching from BSD_KVM_PADDR. Correctly lookup address for
2754 "_thread0".
2755
2756 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2757 "bsd-kvm.h".
2758 (amd64fbsd_supply_pcb): New funcion.
2759 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2760
2761 2004-06-27 <david@streamline-computing.com>
2762
2763 Partial fix for PR cli/1056.
2764 * valarith.c: Check for zero in division and remainder
2765 evaluation.
2766
2767 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2768
2769 * i387-tdep.c: Remove excessive whitespace.
2770
2771 2004-06-26 Andrew Cagney <cagney@gnu.org>
2772
2773 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2774 * gdb-events.h, gdb-events.c: Re-generate.
2775 * tui/tui-hooks.c (tui_install_hooks): Update.
2776 (tui_remove_hooks): Update.
2777 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2778
2779 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2780
2781 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2782 (gregset_t, fpregset_t): Remove typedefs.
2783 (REG_OFFSET): Rename argument.
2784 (amd64bsd_r_reg_offset): Rename from reg_offset.
2785 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2786 Remove functions.
2787 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2788 of reg_offset.
2789 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2790
2791 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2792
2793 * vax-tdep.c: Tweak comment.
2794
2795 Add OpenBSD/hppa support.
2796 * NEWS (New native configurations): Mention OpenBSD/hppa.
2797 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2798 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2799 files.
2800 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2801 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2802 * configure.host: Add hppa*-*-openbsd*.
2803 * configure.tgt: Add hppa*-*-openbsd*.
2804
2805 2004-06-25 Andrew Cagney <cagney@gnu.org>
2806
2807 * defs.h (deprecated_ui_loop_hook): Deprecated.
2808 * wince.c (child_wait): Update.
2809 * win32-nat.c (child_wait): Update.
2810 * v850ice.c (v850ice_wait): Update.
2811 * top.c (deprecated_ui_loop_hook): Update.
2812 * serial.h: Update.
2813 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2814 (do_unix_readchar): Update.
2815 * ser-tcp.c (net_open): Update.
2816 * remote-sim.c (gdb_os_poll_quit): Update.
2817 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2818
2819 2004-06-24 Andrew Cagney <cagney@gnu.org>
2820
2821 * defs.h (deprecated_pre_add_symbol_hook)
2822 (deprecated_post_add_symbol_hook): Deprecated.
2823 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2824 (symbol_file_add_with_addrs_or_offsets): Update references.
2825
2826 2004-06-24 Andrew Cagney <cagney@gnu.org>
2827
2828 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2829 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2830 * wince.c (ui_loop_hook): Delete extern declaration.
2831 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2832 * v850ice.c (ui_loop_hook): Delete extern declaration..
2833 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2834 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2835 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2836 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2837 ui_loop_hook declaration.
2838
2839 2004-06-24 Andrew Cagney <cagney@gnu.org>
2840
2841 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2842 entry_func_highpc fields.
2843 * objfiles.c (init_entry_point_info): Do not clear
2844 entry_func_lowpc and entry_func_highpc.
2845 (objfile_relocate): Do not relocate entry_func_lowpc and
2846 entry_func_highpc.
2847 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2848 entry_func_highpc.
2849 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2850 entry_func_highpc.
2851 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2852 entry_func_lowpc and entry_func_highpc with call to
2853 inside_entry_func.
2854
2855 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2856
2857 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2858 quad-precision floating point arguments in registers.
2859
2860 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2861
2862 From Michael Mueller <m.mueller99@kay-mueller.de>:
2863 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2864 account.
2865
2866 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2867
2868 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2869 to -1.
2870 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2871 untriggered watchpoints to a separate if clause. Update function
2872 comment regarding STOPPED_BY_WATCHPOINT argument.
2873
2874 2004-06-22 Jim Blandy <jimb@redhat.com>
2875
2876 * gdbarch.sh: Doc fix.
2877
2878 2004-06-21 Martin Hunt <hunt@redhat.com>
2879 Kevin Buettner <kevinb@redhat.com>
2880
2881 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2882 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2883 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2884 to set_gdbarch_sp_regnum(). Use cooked register number.
2885 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2886
2887 2004-06-21 Andrew Cagney <cagney@gnu.org>
2888
2889 * gdbarch.sh: When the macro field is empty, do not generate a
2890 macro definition. When the macro field is "=", generate the macro
2891 name from the upper-case function name.
2892 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2893 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2894 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2895 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2896 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2897 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2898 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2899 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2900 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2901 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2902 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2903 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2904 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2905 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2906 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2907 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2908 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2909 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2910 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2911 (DEPRECATED_USE_STRUCT_CONVENTION)
2912 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2913 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2914 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2915 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2916 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2917 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2918 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2919 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2920 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2921 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2922 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2923 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2924 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2925 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2926 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2927 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2928 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2929 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2930
2931 2004-06-21 Andrew Cagney <cagney@gnu.org>
2932
2933 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2934 macro name, and the function rather than macro value. Only wrap
2935 macro print statements in #ifdef. Move format logic to where it
2936 is needed.
2937 * gdbarch.c: Re-generate.
2938
2939 * gdbarch.sh (read): Delete "print_p" and "description", add
2940 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2941 Delete references to print_p.
2942 (TARGET_ARCHITECTURE): Delete print predicate.
2943 * gdbarch.c: Re-generate.
2944
2945 * gdbarch.sh: Check that multi-arch methods do not provide a
2946 macro.
2947 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2948 (print_registers_info, print_float_info, print_vector_info)
2949 (adjust_breakpoint_address, remote_translate_xfer_address)
2950 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2951 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2952 name from the multi-arch definition.
2953
2954 2004-06-20 Andrew Cagney <cagney@gnu.org>
2955
2956 * gdbarch.sh: Sort by the function, instead of macro name.
2957 * gdbarch.c: Re-generate.
2958
2959 2004-06-20 Andrew Cagney <cagney@gnu.org>
2960
2961 * gdbarch.sh: Use the function, instead of macro name in
2962 errors and the log file.
2963 (return_value): Remove stray ":" in spec.
2964
2965 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2966 * gdbarch.h, gdbarch.c: Re-generate.
2967 * Makefile.in (arch-utils.o): Update dependencies.
2968 * values.c (using_struct_return): Move code calling
2969 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2970 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2971 to legacy_return_value, simplify.
2972 * infcmd.c (print_return_value): Move code calling
2973 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2974 to legacy_return_value, simplify.
2975 * infcall.c (call_function_by_hand): Move code calling
2976 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2977 * arch-utils.c: Update copyright. Include "gdbcore.h".
2978 (legacy_return_value): New function.
2979 * arch-utils.h: Update copyright.
2980 (legacy_return_value): Declare.
2981
2982 2004-06-20 Andrew Cagney <cagney@gnu.org>
2983
2984 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2985 * gdbarch.h, gdbarch.c: Re-generate.
2986 * values.c (using_struct_return): Update call.
2987 * mcore-tdep.c: Update comment.
2988 * infcall.c (call_function_by_hand): Update comment.
2989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2990 * arch-utils.h (always_use_struct_convention): Update.
2991 * v850-tdep.c (v850_gdbarch_init): Update.
2992 * sh64-tdep.c (sh64_gdbarch_init): Update.
2993 * sh-tdep.c (sh_gdbarch_init): Update.
2994 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2995 * mips-tdep.c (mips_gdbarch_init): Update.
2996 * mcore-tdep.c (mcore_gdbarch_init): Update.
2997 * m32r-tdep.c (m32r_gdbarch_init): Update.
2998 * ia64-tdep.c (ia64_gdbarch_init): Update.
2999 * h8300-tdep.c (h8300_gdbarch_init): Update.
3000 * frv-tdep.c (frv_gdbarch_init): Update.
3001 * cris-tdep.c (cris_gdbarch_init): Update.
3002 * arm-tdep.c (arm_gdbarch_init): Update.
3003 * alpha-tdep.c (alpha_gdbarch_init): Update.
3004
3005 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3006
3007 * PROBLEMS: Add more specific information, and a work-around,
3008 for PR gdb/1458.
3009
3010 2004-06-18 Andrew Cagney <cagney@gnu.org>
3011
3012 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3013 * gdbarch.h, gdbarch.c: Re-generate.
3014 * ada-lang.c (ada_finish_decode_line_1): Update.
3015 * infrun.c (handle_inferior_event): Update.
3016 * infcall.c (find_function_addr): Update.
3017 * linespec.c (minsym_found): Update.
3018 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3019 Update.
3020 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3021 * cli/cli-cmds.c (disassemble_command): Update.
3022 * vax-tdep.c (vax_gdbarch_init): Update.
3023
3024 2004-06-18 Mark Kettenis <kettenis@gnu.org>
3025
3026 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3027
3028 2004-06-17 Andrew Cagney <cagney@gnu.org>
3029
3030 GDB 6.1.1 released from the GDB 6.1 branch.
3031 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3032 * PROBLEMS: Ditto.
3033
3034 2004-06-16 Daniel Jacobowitz <dan@debian.org>
3035
3036 PR gdb/1658
3037 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3038 operation as a uleb128. Found by Michael Coulter.
3039
3040 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3041
3042 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3043 make it non-static.
3044 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3045 to ada-lang.h; this is needed to be able to implement the kill command
3046 in multi-task mode.
3047 (task_ptid): Ditto.
3048 (task_entry): Ditto.
3049 (task_list): Ditto.
3050 (ada_build_task_list): Ditto.
3051
3052 * ada-lang.c: Conditionalize routines and data structures related
3053 to breakpoints, exceptions, completion, and symbol caching on
3054 GNAT_GDB, since these are not yet used in the submitted public sources.
3055 (ada_main_name): Editorial: Move definition out of exception-related
3056 code.
3057
3058 2004-06-15 Andrew Cagney <cagney@gnu.org>
3059
3060 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3061 deprecated_pc_in_call_dummy.
3062
3063 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3064
3065 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3066 bfd_get_section_size_before_reloc or _raw_size.
3067 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3068 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3069 (dwarf2_read_section): Likewise.
3070 * elfread.c (elf_locate_sections): Likewise.
3071 * gcore.c (derive_heap_segment): Likewise.
3072 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3073 * remote-e7000.c (e7000_load): Likewise.
3074 * remote-m32r-sdi.c (m32r_load): Likewise.
3075 * remote-mips.c (mips_load_srec): Likewise.
3076 (pmon_load_fast): Likewise.
3077 * remote.c (compare_sections_command): Likewise.
3078 * symfile.c (add_section_size_callback): Likewise.
3079 (load_section_callback): Likewise.
3080 (pc_in_unmapped_range): Likewise.
3081 (pc_in_mapped_range): Likewise.
3082 (sections_overlap): Likewise.
3083 (list_overlays_command): Likewise.
3084 (simple_overlay_update_1): Likewise.
3085 (simple_overlay_update): Likewise.
3086 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3087 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3088
3089 2004-06-14 Randolph Chung <tausq@debian.org>
3090
3091 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3092 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3093 static.
3094 (hppa_hpux_inferior_created): New function.
3095 (hppa_hpux_init_abi): Register observer.
3096 * symfile.c (hp_cxx_exception_support_initialized)
3097 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3098 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3099
3100 2004-06-14 Randolph Chung <tausq@debian.org>
3101
3102 * MAINTAINERS (Write After Approval): Alphabetize my entry
3103 correctly.
3104
3105 2004-06-14 Andrew Cagney <cagney@gnu.org>
3106
3107 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3108 testsuite maintainer.
3109
3110 2004-06-13 Andrew Cagney <cagney@gnu.org>
3111
3112 * infcmd.c (print_return_value): Fix logic, allow
3113 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3114
3115 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3116 defining any macros.
3117 * gdbarch.h: Re-generate.
3118
3119 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3120 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3121 * gdbarch.h: Re-generate.
3122
3123 * values.c (generic_use_struct_convention): Don't check gcc_p.
3124
3125 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3126 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3127 * gdbarch.h, gdbarch.c: Regenerate.
3128 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3129 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3131 deprecated_max_register_raw_size and
3132 deprecated_max_register_virtual_size.
3133 * v850-tdep.c (v850_gdbarch_init): Ditto.
3134 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3135 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3136 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3137 * cris-tdep.c (cris_gdbarch_init): Ditto.
3138
3139 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3140 * gdbarch.h, gdbarch.c: Re-generate.
3141 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3142 (m68hc11_use_struct_convention): Delete function.
3143 (m68hc11_extract_struct_value_address): Delete function.
3144 (m68hc11_return_value): New function.
3145 (m68hc11_gdbarch_init): Instead of store_return_value,
3146 extract_return_value, return_value_on_stack,
3147 deprecated_extract_struct_value_address and use_struct_convention,
3148 set return_value.
3149 * values.c (using_struct_return): Do not call
3150 RETURN_VALUE_ON_STACK.
3151 * arch-utils.h (generic_return_value_on_stack_not): Delete
3152 declaration.
3153 * arch-utils.c (generic_return_value_on_stack_not): Delete
3154 function.
3155
3156 2004-06-12 Andrew Cagney <cagney@gnu.org>
3157
3158 * values.c (register_value_being_returned): Delete function.
3159 * infcmd.c (legacy_return_value): Delete function.
3160 * infcall.c (call_function_by_hand): Inline
3161 "register_value_being_returned", simplify.
3162 * values.c (using_struct_return): Update comment, refer to
3163 print_return_value instead of register_value_being_returned.
3164 * infcmd.c (print_return_value): Inline calls to
3165 register_value_being_returned and legacy_return_value. Simplify.
3166
3167 2004-06-11 Randolph Chung <tausq@debian.org>
3168
3169 * somread.c (som_symtab_read): Exclude gcc local symbols.
3170
3171 2004-06-11 Randolph Chung <tausq@debian.org>
3172
3173 * infrun.c (handle_inferior_event): Handle the case when a
3174 trampoline ends up in the runtime resolver, and if the trampoline
3175 has no name. Rearrange the code so that all the trampoline
3176 processing happens before other step-out-of-range handling.
3177
3178 2004-06-11 Martin Hunt <hunt@redhat.com>
3179
3180 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3181 has no fpu.
3182
3183 2004-06-10 Andrew Cagney <cagney@gnu.org>
3184
3185 * blockframe.c (legacy_inside_entry_func): Delete.
3186 (legacy_frame_chain_valid): Inline call to
3187 legacy_inside_entry_func, simplify.
3188
3189 2004-06-10 Bob Rossi <bob@brasko.net>
3190
3191 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3192 * dwarf2read.c (partial_die_info): Add dirname field.
3193 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3194 (read_partial_die): Save away DW_AT_comp_dir.
3195 * defs.h (symtab_to_filename): Removed.
3196 * source.c (find_and_open_source): Added.
3197 (open_source_file): Just calls find_and_open_source.
3198 (symtab_to_filename): Removed.
3199 (symtab_to_fullname, psymtab_to_fullname): Added.
3200 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3201 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3202 symtab_to_filename.
3203 * symtab.h (partial_symtab): Add dirname field.
3204 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3205 (mi_cmd_file_list_exec_source_file): Call new function
3206 symtab_to_fullname to find fullname.
3207 (mi_cmd_file_list_exec_source_files): Added.
3208 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
3209 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3210
3211 2004-06-10 Andrew Cagney <cagney@gnu.org>
3212
3213 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3214 to generic_use_struct_convention, the default value.
3215
3216 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3217 of abort.
3218
3219 * ns32k-tdep.c (ns32k_push_arguments): New function.
3220 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3221 * infcall.c (call_function_by_hand): Call error instead of
3222 legacy_push_arguments.
3223 * value.h (legacy_push_arguments): Delete declaration.
3224 * valops.c (legacy_push_arguments): Delete function.
3225 (value_push): Delete function.
3226
3227 2004-06-10 Brian Ford <ford@vss.fsi.com>
3228
3229 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3230 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3231 info.
3232 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3233
3234 2004-06-10 Andrew Cagney <cagney@gnu.org>
3235
3236 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3237 * gdbarch.h, gdbarch.c: Re-generate.
3238 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3239 parameters.
3240 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3241 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3242 deprecated_pc_in_call_dummy instead of
3243 DEPRECATED_PC_IN_CALL_DUMMY.
3244 (arm_skip_prologue): Ditto.
3245 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3246 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3247 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3248 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3249 Ditto.
3250 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3251 (sh64_init_extra_frame_info, sh64_get_saved_register)
3252 (sh64_pop_frame): Ditto.
3253 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3254 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3255 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3256 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3257 (h8300_pop_frame): Ditto.
3258 * blockframe.c (legacy_inside_entry_func)
3259 (legacy_frame_chain_valid): Ditto.
3260 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3261 to deprecated_pc_in_call_dummy.
3262
3263 2004-06-09 Andrew Cagney <cagney@gnu.org>
3264
3265 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3266 provide a default value.
3267 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3268 * gdbarch.h, gdbarch.c: Re-generate.
3269 * arch-utils.c (generic_convert_register_p): Rename
3270 legacy_convert_register_p
3271 (legacy_register_to_value, legacy_value_to_register): Delete
3272 functions.
3273 * arch-utils.h (generic_convert_register_p): Rename
3274 legacy_convert_register_p.
3275 (legacy_register_to_value, legacy_value_to_register): Delete
3276 declarations.
3277
3278 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3279 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3280 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3281 * gdbarch.h, gdbarch.c: Re-generate.
3282 * infcmd.c (default_print_registers_info): Simplify.
3283 * findvar.c (value_of_register): Simplify.
3284 * mi/mi-main.c (get_register): Simplify.
3285 * arch-utils.c (legacy_convert_register_p): Always return 0.
3286 (legacy_register_to_value, legacy_value_to_register): Always call
3287 internal_error.
3288
3289 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3290 #ifdef CLEAR_INSN_CACHE code.
3291 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3292 Delete #ifdef CLEAR_DEFERRED_STORES code.
3293
3294 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3295
3296 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3297 copyright.
3298 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3299
3300 * config/mips/mipsv4.mh: Delete file.
3301
3302 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3303 unreferenced macro.
3304 (hpread_adjust_stack_address): Delete declaration.
3305
3306 2004-06-08 Andrew Cagney <cagney@gnu.org>
3307
3308 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3309 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3310 PTRACE_ATTACH / PTRACE_DETACH available call error.
3311 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3312 * infttrace.c (update_thread_state_after_attach, attach, detach):
3313 Remove #ifdef wrappers.
3314 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3315 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3316 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3317 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3318 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3319 * config/nm-linux.h (ATTACH_DETACH): Delete.
3320 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3321 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3322 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3323 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3324 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3325
3326 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
3327
3328 * configure.in: Set $configdir to the right OS specific value.
3329 Use value when setting $tcldir and $tkdir.
3330 * configure: Regenerate.
3331
3332 2004-06-06 Paul Brook <paul@codesourcery.com>
3333
3334 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3335 records.
3336
3337 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3338
3339 * ada-lang.c (lookup_symbol_in_language): New function to allow
3340 re-use of another language's symbol lookup code. (Placed here
3341 temporarily while Ada support is being integrated into the public
3342 tree).
3343 (restore_language): New auxiliary function for
3344 lookup_symbol_in_language.
3345 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3346 temporarily while Ada support is being integrated into the public
3347 tree).
3348
3349 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3350
3351 * Makefile.in (check//%): New.
3352
3353 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3354 (mn10300_store_return_value): Rewrite.
3355 (mn10300_type_align): New.
3356 (mn10300_use_struct_convention): Rewrite.
3357 (mn10300_return_value): New, using all of the above.
3358 (mn10300_pop_frame_regular): Add saved_regs_size.
3359 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3360
3361 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3362 regs if PC is on movm.
3363
3364 2004-06-07 Jim Blandy <jimb@redhat.com>
3365
3366 Add native Linux support for the PowerPC E500.
3367 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3368 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3369 all architectures except the E500.
3370 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3371 #definitions.
3372 (struct gdb_evrregset_t): New type.
3373 (have_ptrace_getsetevrregs): New variable.
3374 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3375 fetch_spe_registers): New functions.
3376 (fetch_register): Call fetch_spe_register as appropriate.
3377 Assert that we're only passed raw register numbers.
3378 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3379 Don't fetch gprs if they're pseudoregisters.
3380 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3381 store_spe_registers): New functions.
3382 (store_register): Call store_spe_register as appropriate.
3383 Assert that we're only passed raw register numbers.
3384 (store_ppc_registers): Call store_spe_registers as appropriate.
3385 Don't store gprs if they're pseudoregisters.
3386
3387 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3388
3389 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3390 struct if one exists, even if we are dealing with a zombie thread.
3391
3392 2004-06-07 Andrew Cagney <cagney@gnu.org>
3393
3394 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3395 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3396 Rename PC_REQUIRES_RUN_BEFORE_USE.
3397 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3398 #ifdef.
3399
3400 2004-06-07 Randolph Chung <tausq@debian.org>
3401
3402 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3403 unwinding after sp has been saved to the stack but before the end
3404 of the prologue, and after the fp has been modified but before it has
3405 been saved to the stack.
3406 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3407 Remove superfluous definitions.
3408 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3409
3410 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3411
3412 Committed by Randolph Chung.
3413 * hppa-linux-nat.c: Include the correct version of the header file
3414 depending on the kernel version.
3415
3416 2004-06-06 Randolph Chung <tausq@debian.org>
3417
3418 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3419 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3420
3421 2004-06-06 Randolph Chung <tausq@debian.org>
3422
3423 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3424 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3425 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3426 * hppa-tdep.c (hppa_symbol_address): New function definition.
3427 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3428
3429 2004-06-06 Randolph Chung <tausq@debian.org>
3430
3431 * hppa-tdep.h (struct value): Forward declaration.
3432 (gdbarch_tdep): Define tdep find_global_pointer method.
3433 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3434 associated with the function we are trying to call, and write it
3435 to the gp register.
3436 (hppa32_convert_from_funct_ptr_addr): New function.
3437 (hppa_find_global_pointer): New function.
3438 (hppa_gdbarch_init): Set default find_global_pointer method; set
3439 convert_from_func_ptr_addr method.
3440 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3441 (hppa_linux_init_abi): Set find_global_pointer method.
3442 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3443
3444 2004-06-06 Randolph Chung <tausq@debian.org>
3445
3446 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3447 to struct value *function.
3448 * gdbarch.c: Regenerate.
3449 * gdbarch.h: Likewise.
3450 * infcall.c (call_function_by_hand): Pass entire function value
3451 to push_dummy_call.
3452
3453 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3454 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3455 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3456 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3457 * arm-tdep.c (arm_push_dummy_call): Likewise.
3458 * avr-tdep.c (avr_push_dummy_call): Likewise.
3459 * cris-tdep.c (cris_push_dummy_call): Likewise.
3460 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3461 * frv-tdep.c (frv_push_dummy_call): Likewise.
3462 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3463 * hppa-tdep.c (hppa32_push_dummy_call)
3464 (hppa64_push_dummy_call): Likewise.
3465 * i386-tdep.c (i386_push_dummy_call): Likewise.
3466 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3467 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3468 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3469 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3470 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3471 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3472 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3473 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3474 (ppc64_sysv_abi_push_dummy_call): Likewise.
3475 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3476 (ppc64_sysv_abi_push_dummy_call): Likewise.
3477 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3478 * s390-tdep.c (s390_push_dummy_call): Likewise.
3479 * sh-tdep.c (sh_push_dummy_call_fpu)
3480 (sh_push_dummy_call_nofpu): Likewise.
3481 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3482 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3483 * vax-tdep.c (vax_push_dummy_call): Likewise.
3484
3485 2004-06-04 Jim Blandy <jimb@redhat.com>
3486
3487 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3488 gdbarch argument to register_size.
3489
3490 * rs6000-tdep.c (rs6000_store_return_value): Use
3491 regcache_cooked_write_part instead of
3492 deprecated_write_register_bytes.
3493 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3494 not gdbarch_deprecated_store_return_value.
3495
3496 * ppc-linux-nat.c (store_register, fetch_register): Remove
3497 incorrect assertions. Simplify and generalize handling of
3498 transfers whose sizes are not multiples of, or less than, sizeof
3499 (PTRACE_XFER_TYPE).
3500
3501 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3502
3503 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3504 as a new thread event.
3505 * thread-db.c (thread_get_info_callback): If the thread is a
3506 zombie, return TD_THR_ZOMBIE.
3507 (thread_from_lwp): If thread_get_info_callback returns
3508 TD_THR_ZOMBIE, check if the thread is still on the thread list
3509 and return a -1 ptid if not found.
3510 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3511 change the status to TARGET_WAITKIND_SPURIOUS.
3512
3513 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3514
3515 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3516 double values in little endian mode.
3517
3518 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3519
3520 Committed by Andrew Cagney.
3521 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3522 after last enum constant to avoid error from IBM C
3523 compiler.
3524
3525 2004-06-02 Jim Blandy <jimb@redhat.com>
3526
3527 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3528 to 'message', and make it local to the lone block that uses it.
3529
3530 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3531
3532 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3533
3534 * ada-exp.y: Update copyright notice.
3535 Include block.h.
3536
3537 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3538 SPECIAL_VARIABLE and unify the treatment of these cases.
3539
3540 (write_attribute_call0): Remove.
3541 (write_attribute_call1): Remove.
3542 (write_attribute_calln): Remove.
3543 (save_qualifier): Add missing semicolon.
3544
3545 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3546 temporarily disabled to allow compilation with FSF head version.
3547
3548 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3549 use individual operators (OP_*) for all attributes.
3550 (exp syntax): Use write_int.
3551 Handle STRING literals with OP_STRING.
3552 (variable syntax): Add limit parameter to calls to
3553 write_object_renaming.
3554
3555 (temp_parse_space): New definition to hold entities that need
3556 only live until the next call to ada_parse.
3557 (string_to_operator): Rename fields of ada_opname_table entries.
3558
3559 (write_var_from_sym): Record block.
3560 (write_var_from_name): Minor reformatting.
3561 Make sure saved name is properly encoded in the case of multiple
3562 matches, and set its language to Ada.
3563 Update comment.
3564 Modify to indicate unresolved name as symbol in the UNRESOLVED
3565 namespace, allocated in temp_parse_space.
3566 (write_int): New function.
3567
3568 (write_object_renaming): Add max_depth parameter to limit
3569 chains of object renamings.
3570 Handle case where root of renaming expression is itself a renaming.
3571 Use temp_parse_space for temporary name buffer.
3572 Handle renamings to dereferenced pointers (___XEXA suffices).
3573
3574 (ada_parse, yyerror, string_to_operator,
3575 write_var_from_sym, write_var_from_name, write_attribute_call0,
3576 write_attribute_call1, write_attribute_calln,
3577 write_object_renaming): Protoize.
3578
3579 (_initialize_ada_exp): New function.
3580
3581 * ada-lang.c: Update copyright notice.
3582 General terminology change to conform to GNAT compiler usage:
3583 mangle => encode, demangle => decode
3584 Include gdb_obstack.h.
3585 Include gdb_regex.h
3586 Include frame.h
3587 Include hashtab.h
3588 Include completer.h
3589 Include gdb_stat.h
3590 Include block.h
3591 Include infcall.h
3592
3593 (ADA_RETAIN_DOTS): Make sure this is defined.
3594 (TRUNCATION_TOWARDS_ZERO): Define.
3595 (struct string_vector): Define.
3596 (unresolved_names): Remove definition.
3597 (xnew_string_vector): New function.
3598 (string_vector_append): New function.
3599 (extract_string): Make static.
3600 (ada_unqualified_name): New function.
3601 (add_angle_brackets): New function.
3602 (function_name_from_pc): New function.
3603 (place_on_stack): Rename to ensure_lval.
3604
3605 (ensure_lval): Renamed from place_on_stack.
3606 Make identity on lvals.
3607 Update comment.
3608 (is_nonfunction): New interface.
3609 Only symbols in LOC_CONST class can be enumerals.
3610 (fill_in_ada_prototype): Remove; now independent of language.
3611 (add_defn_to_vec): Add obstack and symtab arguments.
3612 Use obstack to hold collected definitions.
3613 (num_defns_collected): New function.
3614 (defns_collected): New function.
3615 (ada_resolve_subexp): Rename to resolve_subexp.
3616 (resolve_subexp): Renamed from ada_resolve_subexp.
3617 (ada_op_name): Return non-const result.
3618 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3619 other purposes.
3620
3621 (to_fixed_array_type): Add declaration.
3622 (coerce_unspec_val_to_type): Remove offset parameter.
3623 (find_sal_from_funcs_and_line): New interface.
3624 (find_line_in_linetable): Ditto.
3625
3626 (all_sals_for_line): Rename to ada_sals_for_line and make
3627 global.
3628 Add new parameter. When set, do not ask the user to choose the
3629 instance, but use the first one found instead.
3630 Use given line number in returned sals.
3631 Fix comment.
3632 Skip the prologue if funfirstline is set.
3633 Correct for memory leak when 0 lines found.
3634
3635 (value_pos_atr): Use pos_atr.
3636 (pos_atr): New function.
3637 (standard_lookup): Add block parameter.
3638
3639 (makeTimeStart): Remove declaration and uses.
3640 (makeTimeStop): Remove declaration and uses.
3641
3642 (ada_completer_word_break_characters): Allow for VMS.
3643 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3644 (raise_sym_name): New constant.
3645 (raise_unhandled_sym_name): New constant.
3646 (raise_assert_sym_name): New constant.
3647 (process_raise_exception_name): New constant.
3648 (longest_exception_template): New constant.
3649 (warning_limit): New variable to limit warnings during expression
3650 evaluation.
3651 (warnings_issued): New variable to keep track of warnings issued.
3652 (known_runtime_file_name_patterns): New constant.
3653 (known_auxiliary_function_name_patterns): New constant.
3654 (symbol_list_obstack): New variable.
3655
3656 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3657 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3658 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3659 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3660 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3661 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3662 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3663 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3664 and strcmp.
3665
3666 (ada_get_field_index): New function.
3667 (lim_warning): New function.
3668 (ada_translate_error_message): New function.
3669 (MAX_OF_SIZE): New function.
3670 (MIN_OF_SIZE): New function.
3671 (UMAX_OF_SIZE): New function.
3672 (UMIN_OF_SIZE): New function.
3673 (discrete_type_high_bound): New function.
3674 (discrete_type_low_bound): New function.
3675 (base_type): New function.
3676 (do_command): Remove.
3677
3678 (ada_update_initial_language): Use language_ada, not language_unknown.
3679 (ada_encode): Renamed from ada_mangle.
3680 Obey ADA_RETAIN_DOTS.
3681 (ada_decode): Renamed from ada_demangle.
3682 Update coding conventions.
3683 (decoded_names_store): New hash table.
3684 (ada_decode_symbol): New function.
3685 (ada_la_decode): New function.
3686
3687 (modify_general_field): Correct computations of offset and bit
3688 position.
3689 (desc_base_type): Handle ref types, too.
3690 (ada_is_direct_array_type): New function.
3691
3692 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3693 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3694 (ada_is_bogus_array_descriptor,ada_type_of_array,
3695 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3696 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3697 ada_is_array_descriptor_type.
3698
3699 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3700 (ada_is_packed_array_type): Handle pointers or
3701 references to packed arrays as well.
3702 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3703 (decode_packed_array_type): Search for the packed array type
3704 symbol in the currently selected block and associated
3705 superblocks too.
3706 Use lookup_symbol again.
3707
3708 (decode_packed_array): Handle pointers and references.
3709 Update call to coerce_unspec_val_to_type.
3710 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3711 (ada_value_primitive_packed_val): Improve comment.
3712
3713 (ada_index_type): Substitute int type for "undefined".
3714 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3715 ada_array_langth, ada_is_string_type): Use renamed
3716 ada_is_simple_array_type.
3717 (empty_array): New function.
3718
3719 (ada_resolve): Rename to resolve.
3720 (resolve): Make static.
3721 Call renamed resolve_subexp.
3722 Update comment.
3723 (ada_resolve_subexp): Rename to resolve_subexp.
3724 (resolve_subexp): Update comment.
3725 Decomment disabled code.
3726 Add LOC_COMPUTED* cases.
3727 Modify to use temporary struct symbols (marked as being in
3728 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3729 OP_UNRESOLVED_VALUE.
3730 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3731 Add OP_STRING case.
3732 Remove OP_ARRAY.
3733 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3734 Use new ada_lookup_symbol_list interface.
3735 Use new ada_resolve_function interface.
3736 Remove OP_TYPE case.
3737
3738 (ada_args_match): Idiot proof against null actuals.
3739 Use intermediate variables to clarify.
3740 (ada_resolve_function): Update comment and interface.
3741 (mangled_ordered_before): Rename to encoded_ordered_before and
3742 update comment.
3743 (sort_choices): Update comment and interface.
3744 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3745 (user_select_syms): New interface.
3746 Use new sort_choices interface.
3747 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3748 (possible_user_operator_p): Idiot-proof against null values.
3749 (ada_simple_renamed_entity): Don't make cleanup; rely on
3750 caller to free result string.
3751 Remove const from return type.
3752 (make_array_descriptor): Rename uses of place_on_stack to
3753 ensure_lval.
3754 Make sure that arrays are on stack.
3755
3756 (HASH_SIZE): Define.
3757 (struct cache_entry): Define.
3758 (cache_space): Define.
3759 (cache): Define.
3760 (clear_ada_sym_cache): New function.
3761 (find_entry): New function.
3762 (lookup_cached_symbol): New function.
3763 (defn_vector_size): Define.
3764 (cache_symbol): New function.
3765 (defn_symbols): Remove.
3766
3767 (standard_lookup): Use lookup_symbol_in_language to get effect of
3768 C lookup.
3769 Cache results.
3770
3771 (symbol_completion_match): New function.
3772 (symbol_completion_add): New function.
3773 (ada_make_symbol_completion_list): New function.
3774
3775 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3776 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3777 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3778 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3779
3780 (ada_lookup_simple_minsym): New function.
3781 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3782
3783 (add_symbols_from_enclosing_procs): New interface.
3784 Conditionalize more helpfully.
3785 Don't bother if program isn't running.
3786 Use new interface to get_frame_block.
3787 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3788
3789 (remove_extra_symbols): New interface.
3790 (xget_renaming_scope): New function.
3791 (is_package_name): New function.
3792 (renaming_is_visible): New function.
3793 (remove_out_of_scope_renamings): New function.
3794
3795 (ada_lookup_symbol_list): New interface.
3796 Properly reinitialize the symbol list obstack.
3797 Don't call add_symbols_from_enclosing_procs if we start from a
3798 static or global block.
3799 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3800 add_symbols_from_enclosing_procs.
3801 Add symtab data to cached entries.
3802 Handle symbols prefixed with
3803 "standard__" specially; strip prefix and don't look in local symbols.
3804 Do not include out of scope renaming symbols in list of
3805 symbols returned.
3806 Add const to block parameter.
3807 Move check for non-local, non-global symbols earlier.
3808 Remove timing stuff.
3809 (ada_lookup_symbol): New interface.
3810 Find symtab as well.
3811 (ada_lookup_symbol_nonlocal): New function.
3812
3813 (is_name_suffix): Enhance suffix detection to recognize
3814 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3815 (is_dot_digits_suffix): New function.
3816 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3817
3818 (ada_add_block_symbols): New interface. Use obstack to return results
3819 in a vector of struct ada_symbol_infos. Add symtab argument.
3820 Use new interface to add_defn_to_vec.
3821 Remove calls to fill_in_ada_prototype.
3822 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3823
3824 (ada_finish_decode_line_1): Add const qualification to local to fix
3825 warning.
3826 Start looking in static block for functions to avoid attempts
3827 to search frame chain for up-level variables.
3828 Adapt to new ada_sals_for_line interface.
3829 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3830 Handle quoting of the function name inside the spec string.
3831 Skip prologue when funfirstline is set and update the
3832 function documentation to that effect.
3833
3834 (debug_print_lines, debug_print_block, debug_print_blocks,
3835 debug_print_symtab): Remove.
3836
3837 (ada_main_name): New function.
3838 (ada_exception_breakpoint_type): New function.
3839 (is_known_support_routine): New function.
3840 (ada_find_printable_frame): Renamed from find_printable_frame and made
3841 global.
3842 Remove level parameter.
3843 Use new interface to select_frame.
3844
3845 (begin_command): Remove.
3846 (ada_adjust_exception_stop): New function.
3847 (ada_print_exception_stop): New function.
3848 (exception_name_from_cond): New function.
3849 (ada_report_exception_break): Replace disabled code with
3850 conditionalization on GNAT_GDB.
3851 Get the exception name from the condition string.
3852 Remove and move functionality into new functions
3853 ada_print_exception_breakpoint_task and
3854 ada_print_exception_breakpoint_nontask.
3855 (error_breakpoint_runtime_sym_not_found): New function.
3856 (is_runtime_sym_defined): New function.
3857 (ada_breakpoint_rewrite): Uncomment suppressed code.
3858 Use symbolic error-message and runtime-symbol names.
3859 Surround runtime symbol names in quotes.
3860 Allow non-specific breakpoints on exceptions and assertions before
3861 program starts.
3862
3863 (ada_is_tagged_type): Add parameter.
3864 (ada_is_tag_type): New function.
3865 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3866 (ada_variant_discrim_type): Ditto.
3867 (value_tag_from_contents_and_address): New function.
3868 (type_from_tag): New function.
3869 (struct tag_args): New structure used to communicate with
3870 ada_tag_name_1.
3871 (ada_tag_name_1): New function.
3872 (ada_tag_name): New function.
3873
3874 (ada_scan_number): Update comment.
3875 (find_struct_field): New function.
3876 (ada_search_struct_field): Make static.
3877 (ada_value_struct_elt): New version that returns references when
3878 given pointers or references to structs.
3879 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3880 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3881 interface.
3882 (ada_value_ind): Use new ada_to_fixed_value interface.
3883 (ada_coerce_ref): Ditto.
3884 (field_offset): Remove.
3885
3886 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3887 (ada_find_renaming_symbol): New function.
3888 (ada_prefer_type): Prefer named types over unnamed ones.
3889 (variant_field_index): New function.
3890 (contains_variant_part): Removed: subsumed by variant_field_index.
3891 (ada_template_to_fixed_record_type): New function, mostly from
3892 template_to_fixed_record_type.
3893 (template_to_fixed_record_type):
3894 Do not scan the type fields beyond the last one; prevents a
3895 potential SEGV.
3896 Handle case where variant field is listed BEFORE discriminant it
3897 depends on.
3898 Fix calculation of record length when bit length is
3899 not evenly divisible by char length.
3900 Move code to ada_template_to_fixed_record_type and call it.
3901
3902 (template_to_static_fixed_type): Revise comment.
3903 Modify to work on ordinary record types as well as templates,
3904 so as to handle fields that use ___XVE or ___XVU encodings.
3905 (to_record_with_fixed_variant_part): Fill out comment.
3906 Initialize C++ stuff in right type.
3907 Allow case where DVAL is null.
3908 Handle case where variant field is not last.
3909 Fix typo concerning record length.
3910 (to_fixed_record_type): Decomment disabled code.
3911 (to_fixed_record_type): Use variant_field_index instead of
3912 contains_variant_part.
3913 (to_fixed_variant_branch_type): Ditto.
3914 (to_fixed_array_type): Decomment disabled code.
3915 (ada_to_fixed_type): Convert tagged types to the specific type.
3916 Deactivate the size-check for array types in order to avoid
3917 some false size alarms.
3918 (to_static_fixed_type): Decomment disabled code.
3919 Modify to call template_to_static_fixed_type
3920 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3921 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3922 Remove valaddr argument, as it is never really used.
3923 (ada_to_fixed_value): Change interface to act on single struct value*
3924 operand.
3925 (adjust_pc_past_prologue): New function.
3926 (ada_attribute_name): Modify to take enum exp_opcode argument.
3927
3928 (ada_enum_name): Recognize new homonym-distinguishing convention.
3929 Adjust local variable's type to remove compiler warning.
3930 Fix a small problem in the part that unqualifies the enumeration name.
3931 (ada_value_binop): New function.
3932 (ada_value_equal): New function.
3933
3934 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3935 Don't give error message when not doing normal evaluation
3936 and a tagged type doesn't seem to contain a structure member.
3937 Give error message for packed arrays.
3938 For indexing arrays, handle pointers to packed arrays correctly.
3939 Handle case of 'first and 'last attributes of bare integral type
3940 without encoded subtype info.
3941 Remove some unnecessary casts.
3942 Fix uninitialized value of type in computing 'first, 'last, or 'length
3943 of array object.
3944 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3945 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3946 calls.
3947 Attributes are now exp_opcode values.
3948 Correct treatment of 'modulus.
3949 Better error message for taking 'length of wrong kind of type;
3950 improve comment.
3951 Change EVAL_NORMAL to noside for consistency.
3952 Use ada_value_binop for DIV, MOD, REM.
3953 Make special case out of array of length 0, since an argument
3954 of 0 upsets some platforms' malloc.
3955 Use OP_STRING instead of OP_ARRAY.
3956 For slice, add check that we have an array type before extracting
3957 a slice out of it. Avoids a SEGV.
3958 When evaluating an array slice, if the array type is a reference to
3959 an aligner type, then replace the aligner type by the actual type.
3960 Decomment disabled code.
3961 Remove some dead code.
3962 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3963 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3964 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3965 and UNOP_MBR to UNOP_IN_RANGE.
3966 If an array type has a parallel ___XVE type, then use it.
3967 Turn arrays into pointers for lvalue arrays.
3968 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3969 bounds error and handle 0-length slices.
3970 Use lim_warning.
3971 When selecting fields, apply ada_to_fixed_value (because the fields
3972 might have ___XVU or ___XVE encodings even if not dynamic.)
3973 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3974 (ada_is_system_address_type): New function.
3975
3976 (get_var_value): Use new interface to ada_lookup_symbol_list.
3977 (get_int_var_value): New interface.
3978 (to_fixed_range_type): Allow unknown bound, with warning.
3979 (ada_is_modular_type): Decomment disabled code.
3980 (ADA_OPERATORS): New definition.
3981 (ada_operator_length): New function.
3982 (ada_expr_op_name): New function.
3983 (ada_forward_operator_length): New function.
3984 (ada_dump_subexp_body): New function.
3985 (ada_print_subexp): New function.
3986 (ada_exp_descriptor): New constant.
3987 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3988 (ada_language_defn): Add ada_exp_descriptor entry.
3989 Change ada_parse => parse.
3990 Add post-parser entry.
3991 Use ada-specific non-local symbol lookup.
3992 Don't use C-style arrays.
3993 String lower-bound is 1.
3994 Decomment disabled code.
3995 (parse): New function.
3996 New fields ada_translate_error_message, ada_lookup_symbol,
3997 ada_lookup_minimal_symbol.
3998
3999 * ada-lang.h: Update copyright dates.
4000 Replace the mangle/demangle terminology throughout by the
4001 more appropriate encode/decode one.
4002 Include breakpoint.h.
4003 Forward declare struct partial_symbol, struct block.
4004 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4005 (EXTRACT_ADDRESS): Remove.
4006 (EXTRACT_INT): Remove.
4007 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4008 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4009 (MAX_RENAMING_CHAIN_LENGTH): Define.
4010 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4011
4012 (enum task_states): Remove.
4013 ada_task_states: Remove.
4014 (fat_string): Remove.
4015 (struct entry_call): Remove.
4016 (struct task_fields): Remove.
4017 (struct task_entry): Remove.
4018
4019 (struct ada_symbol_info): Define.
4020 (enum ada_attribute): Remove.
4021 (enum ada_operator): Define.
4022
4023 (ada_get_field_index): Declare.
4024 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4025 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4026 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4027 (ada_lookup_symbol_list): New interface.
4028 (ada_decode_symbol): Declare.
4029 (ada_decode): Declare.
4030 (ada_lookup_symbol): New interface.
4031 (ada_update_initial_language): Declare.
4032 (ada_lookup_simple_minsym): Declare.
4033 (user_select_syms): New interface.
4034 (ada_sals_for_line): Declare.
4035 (ada_is_tagged_type): New interface.
4036 (ada_tag_name): Declare.
4037 (ada_lookup_struct_elt_type): Remove declaration.
4038 (ada_search_struct_field): Remove declaration.
4039 (ada_attribute_name): New interface.
4040 (ada_is_system_address_type): Declare.
4041 (ada_to_fixed_value): Remove declaration.
4042 (ada_template_to_fixed_record_type_1): Declare.
4043 (get_int_var_value): New interface.
4044 (ada_find_any_symbol): Declare.
4045 (ada_find_renaming_symbol): Declare.
4046 (ada_mangle): Rename to ada_encode.
4047 (ada_simple_renamed_entity): Remove const.
4048 (ada_main_name): Declare.
4049 (get_current_task): Rename to ada_get_current_task.
4050 (get_entry_number): Remove declaration.
4051 (ada_report_exception_break): Remove declaration.
4052 (ada_print_exception_breakpoint_nontask): Declare.
4053 (ada_print_exception_breakpoint_task): Declare.
4054 (ada_find_printable_frame): Declare.
4055
4056 * ada-lex.l: Update copyright notices.
4057 Use xmalloc and xfree instead of malloc and free.
4058 Use new interface to name_lookup.
4059 Use new interface to
4060 ada_mangle=>ada_encode.
4061 Redo handling of '$...' variable to parallel current treatment
4062 in c-exp.y.
4063 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4064 digit_to_int, strtoulst, processInt, processReal, processId,
4065 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4066 yywrap): Protoize.
4067
4068 (processInt): Use cast to remove harmless warning.
4069 (processReal): Modify to get rid of compiler warning on scan formats.
4070
4071 (processId): Replace xmalloc with obstack_alloc for name and remove
4072 call to ada_name_string_cleanup.
4073 Remove obsolete disabled code.
4074 (name_lookup): Ditto.
4075 New interface.
4076 Use obsavestring on temp_parse_space instead of savestring
4077 on name, and remove call to ada_name_string_cleanup.
4078 Free string returned from ada_simple_renamed_entity.
4079 Use new interface to ada_lookup_symbol_list.
4080 Decomment disabled code.
4081 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4082 not types.
4083 When a type name lookup succeeds as a result of
4084 lookup_primitive_typename, check for regular type entry that has not
4085 yet been read in.
4086 Limit length of chain of renamed symbols we are willing to follow.
4087 Do not break names beginning with "standard__" into segments.
4088 (block_lookup): Use new interface to ada_lookup_symbol_list.
4089
4090 * ada-typeprint.c: Update copyright notice.
4091 (demangled_type_name): Rename to decoded_type_name.
4092 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4093 (print_range_bound): Correct handling of negative
4094 bounds that make the index type looked unsigned under STABS.
4095 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4096 (print_range_type_named): Use the builtin int type if no type
4097 corresponding to the given type name could be found.
4098 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4099 Add some bullet-proofing.
4100 (print_variant_clauses): Allow for variant branches with ___XVU
4101 encodings that are not dynamic fields.
4102 Use new interface to ada_is_tagged_type.
4103 (print_record_type): Allow for fields with ___XVE encodings that
4104 are not dynamic fields.
4105 Use new interface to ada_is_tagged_type.
4106 (ada_print_type): ada_is_array_descriptor =>
4107 ada_is_array_descriptor_type.
4108
4109 * ada-valprint.c: Update copyright notice.
4110 Include gdb_string.h
4111 Include infcall.h
4112 (ui_memcpy): New function.
4113 (ada_print_floating): New function.
4114 (ada_print_str): Order arguments correctly.
4115 Correct handling of empty arrays and arrays of 0-length items.
4116 ada_is_array_descriptor => ada_is_array_descriptor_type
4117 Print values of type System.Address in hexadecimal format.
4118 Use ada_print_floating to print floating-point numbers in Ada format.
4119 Print class tag values with type names.
4120 No longer print the address of reference values. Avoids
4121 a potential confusion.
4122 (ada_value_print): Stop printing the object type for reference
4123 values, but preserve that behavior for access types. Avoids
4124 a potential confusion.
4125 Simplify one conditional expression, as the first part is now
4126 necessarily true.
4127 ada_is_array_descriptor => ada_is_array_descriptor_type
4128 Add check for arrays for null records, and print them by hand.
4129
4130 2004-06-01 Jim Blandy <jimb@redhat.com>
4131
4132 * ppc-tdep.h: Delete unused 'regoff' member.
4133 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4134
4135 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4136
4137 Fix PR symtab/1661.
4138 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4139 (hpread_read_struct_type): Likewise.
4140
4141 2004-06-01 Andrew Cagney <cagney@gnu.org>
4142
4143 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4144 instead of xasprintf.
4145 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4146 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4147 (mi_cmd_data_list_register_names)
4148 (mi_cmd_data_list_changed_registers)
4149 (mi_cmd_data_list_register_values)
4150 (get_register, mi_cmd_data_write_register_values)
4151 (mi_cmd_data_write_register_values)
4152 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4153 (mi_cmd_target_download, mi_cmd_target_select)
4154 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4155 (mi_execute_cli_command, mi_execute_async_cli_command)
4156 (mi_execute_async_cli_command): Ditto.
4157 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4158 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4159
4160 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4161 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4162 error_last_message instead of mi_error_last_message.
4163 * mi/mi-main.c (mi_error_last_message): Delete function.
4164
4165 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4166 "invalid number of columns" error. Delete redundant "out of
4167 memory" check.
4168
4169 2004-05-31 Mark Kettenis <kettenis@gnu.org>
4170
4171 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4172 (gregset_t, fpregset_t): Remove typedefs.
4173 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4174 (REG_OFFSET): Rename argument.
4175 (i386bsd_r_reg_offset): Rename from reg_offset.
4176 (REG_ADDR): Remove macro.
4177 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4178 functions.
4179 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4180 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4181 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4182 instead of supply_gregset.
4183 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4184 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4185 instead of fill_gregset.
4186 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4187
4188 * i386bsd-nat.c: Don't include "gregset.h".
4189 (supply_gregset, fill_gregset): Make static.
4190 (supply_fpregset, fill_fpregset): Remove.
4191 * Makefile.in (i386bsd-nat.o): Update dependencies.
4192
4193 2004-05-30 Mark Kettenis <kettenis@gnu.org>
4194
4195 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4196 "gdb_assert.h". Con't include "gregset.h".
4197 (fbsd_make_corefile_notes): Use regset-based core file support
4198 instead off fill_gregset and fill_fpregset.
4199 * Makefile.in (fbsd-proc.o): Update dependencies.
4200
4201 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4202 instructions.
4203 (m88k_frame_prev_register): Simplify code a bit.
4204
4205 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4206 (amd64_collect_fpregset): New function.
4207 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4208
4209 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4210
4211 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4212 (i386_collect_gregset): New function.
4213 (i386_supply_fpregset): Adjust comment.
4214 (i386_collect_fpregset): New function.
4215 (i386_regset_from_core_section): Use i386_collect_gregset and
4216 i386_collect_fpregset.
4217
4218 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4219 handle VALUEP being null.
4220
4221 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4222
4223 2004-05-29 Mark Kettenis <kettenis@gnu.org>
4224
4225 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4226
4227 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4228 assembler in OpenBSD 3.5-current.
4229 (amd64obsd_sigcontext_addr): Likewise.
4230
4231 2004-05-28 Jim Blandy <jimb@redhat.com>
4232
4233 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4234 register set, so our regcache isn't declared "legacy" and our E500
4235 pseudoregister read and write functions aren't ignored.
4236 (rs6000_register_byte, rs6000_register_raw_size,
4237 rs6000_register_virtual_type, rs6000_register_convertible,
4238 rs6000_register_convert_to_virtual,
4239 rs6000_register_convert_to_raw): Deleted.
4240 (rs6000_register_type, rs6000_convert_register_p,
4241 rs6000_register_to_value, rs6000_value_to_register): New
4242 functions.
4243 (rs6000_gdbarch_init): Don't register
4244 gdbarch_deprecated_register_size,
4245 gdbarch_deprecated_register_bytes,
4246 gdbarch_deprecated_register_byte,
4247 gdbarch_deprecated_register_raw_size,
4248 gdbarch_deprecated_register_virtual_type,
4249 gdbarch_deprecated_register_convertible,
4250 gdbarch_deprecated_register_convert_to_virtual, or
4251 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4252 register gdbarch_register_type, gdbarch_convert_register_p,
4253 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4254
4255 2004-05-26 Jim Blandy <jimb@redhat.com>
4256
4257 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4258 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4259 functions, updated to match the register numberings used in GCC.
4260 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4261 rs6000_dwarf2_reg_to_regnum as register number conversions
4262 functions for STABS and Dwarf2.
4263
4264 2004-05-26 Randolph Chung <tausq@debian.org>
4265
4266 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4267 in header file.
4268
4269 2004-05-25 Joel Brobecker <brobecker@gnat.com>
4270
4271 * NEWS: Document new "start" command.
4272
4273 2004-05-25 Randolph Chung <tausq@debian.org>
4274
4275 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4276 hppa-linux.
4277
4278 2004-05-25 Randolph Chung <tausq@debian.org>
4279
4280 * hppa-hpux-tdep.c (offsetof): Define.
4281 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4282 (hppa32_hpux_frame_base_before_sigtramp)
4283 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4284 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4285 (hppa64_hpux_frame_base_before_sigtramp)
4286 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4287 functions.
4288 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4289 (hppa_hpux_sigtramp_frame_unwind_cache)
4290 (hppa_hpux_sigtramp_frame_this_id)
4291 (hppa_hpux_sigtramp_frame_prev_register)
4292 (hppa_hpux_sigtramp_frame_unwind)
4293 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4294 (hppa_hpux_init_abi): Register sigtramp unwinder.
4295 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4296
4297 2004-05-25 Randolph Chung <tausq@debian.org>
4298
4299 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4300 and multiple stack unwinds.
4301 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4302
4303 2004-05-25 Andrew Cagney <cagney@gnu.org>
4304
4305 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4306 * symfile-mem.h: Delete file.
4307 * symfile-mem.c: Do not include "symfile-mem.h".
4308 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4309 "struct bfd_section". When an error do not bother returning NULL.
4310 (add_symbol_file_from_memory_command): Use "struct bfd" and
4311 "struct bfd_section".
4312 * Makefile.in (symfile_mem_h): Delete.
4313 (symfile-mem.o): Update dependencies.
4314
4315 2004-05-25 Nick Roberts <nickrob@gnu.org>
4316
4317 * gdb-mi.el: New file.
4318
4319 2004-05-25 Andrew Cagney <cagney@gnu.org>
4320
4321 * inftarg.c: Include "observer.h".
4322 (child_attach, child_create_inferior): Notify inferior_created.
4323 * corelow.c: Include "observer.h".
4324 (core_open): Notify inferior_created.
4325 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4326
4327 2004-05-25 Andrew Cagney <cagney@gnu.org>
4328
4329 * target.h (struct target_ops): Add from_tty to
4330 to_create_inferior.
4331 (target_create_inferior, find_default_create_inferior): Update.
4332 * infcmd.c (run_command): Update.
4333 * wince.c (child_create_inferior): Update.
4334 * win32-nat.c (child_create_inferior): Update.
4335 * uw-thread.c (uw_thread_create_inferior): Update.
4336 * thread-db.c (thread_db_create_inferior): Update.
4337 * target.c (debug_to_create_inferior)
4338 (find_default_create_inferior): Update.
4339 (maybe_kill_then_create_inferior): Update.
4340 * sol-thread.c (sol_thread_create_inferior): Update.
4341 * remote.c (extended_remote_async_create_inferior)
4342 (extended_remote_create_inferior): Update.
4343 * remote-vx.c (vx_create_inferior): Update.
4344 * remote-st.c (st2000_create_inferior): Update.
4345 * remote-sim.c (gdbsim_create_inferior): Update.
4346 * remote-sds.c (sds_create_inferior): Update.
4347 * remote-rdp.c (remote_rdp_create_inferior): Update.
4348 * remote-rdi.c (arm_rdi_create_inferior): Update.
4349 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4350 * remote-e7000.c (e7000_create_inferior): Update.
4351 * procfs.c (procfs_create_inferior): Update.
4352 * ocd.c (ocd_create_inferior): Update.
4353 * ocd.h (ocd_create_inferior): Update.
4354 * nto-procfs.c (procfs_create_inferior): Update.
4355 * monitor.c (monitor_create_inferior): Update.
4356 * lin-lwp.c (lin_lwp_create_inferior): Update.
4357 * inftarg.c (child_create_inferior): Update.
4358 * hpux-thread.c (hpux_thread_create_inferior): Update.
4359 * gnu-nat.c (gnu_create_inferior): Update.
4360
4361 2004-05-25 Andrew Cagney <cagney@gnu.com>
4362
4363 * MAINTAINERS: Update e-mail address.
4364
4365 2004-05-24 Randolph Chung <tausq@debian.org>
4366
4367 * thread.c (info_threads_command, thread_apply_all_command)
4368 (thread_apply_command, thread_command, do_captured_thread_select):
4369 Remove HPUXHPPA-specific code.
4370
4371 2004-05-24 Randolph Chung <tausq@debian.org>
4372
4373 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4374 unused symbols.
4375 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4376 references.
4377
4378 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4379
4380 * infcmd.c (kill_if_already_running): New function, extracted
4381 from run_command().
4382 (run_command): Replace extracted code by call to
4383 kill_if_already_running().
4384 (start_command): New function.
4385 (_initialize_infcmd): Add "start" command.
4386
4387 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4388
4389 Add OpenBSD/m88k support.
4390 * NEWS (New native configurations): Mention OpenBSD/m88k.
4391 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4392 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4393 * Makefile.in (m88k_tdep_h): New variable.
4394 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4395 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4396 * configure.host: Add m88*-*-openbsd*.
4397 * configure.tgt: Add m88*-*-openbsd*.
4398
4399 2004-05-24 Jim Blandy <jimb@redhat.com>
4400
4401 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4402 to approve changes.
4403
4404 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4405
4406 * symtab.c (fixup_section): Search section table when lookup by
4407 name fails.
4408
4409 2004-05-24 Randolph Chung <tausq@debian.org>
4410
4411 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4412 be "small_struct".
4413
4414 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4415
4416 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4417 register number in regcache_raw_collect call.
4418 (m68kbsd_collect_fpregset): Likewise.
4419 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4420
4421 * regset.h (struct regset): Add back `regset' member.
4422
4423 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4424
4425 * configure.in: Check for td_pcb in `struct thread'.
4426 * configure, config.in: Regenerated.
4427
4428 * dpx2-nat.c: Remove file.
4429 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4430 (dpx2-nat.o): Remove dependencies.
4431
4432 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4433 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4434 (amd64obsd_supply_pcb): New function.
4435 (_initialize_amd64obsd_nat): Enable libkvm interface.
4436 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4437 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4438 (LOADLIBES): New variable.
4439
4440 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4441 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4442 (sparc32nbsd_supply_pcb): New function.
4443 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4444 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4445 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4446 (LOADLIBES): New variable.
4447
4448 2004-05-22 Mark Kettenis <kettenis@gnu.org>
4449
4450 * bsd-kvm.c, bsd-kvm.h: New files.
4451 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4452 "bsd-kvm.h".
4453 (i386fbsd_supply_pcb): New function.
4454 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4455 (i386fbsd-nat.o): Update dependencies.
4456 (bsd_kvm_h): New variable.
4457 (bsd-kvm.o): New dependency.
4458 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4459 (LOADLIBES): New variable.
4460
4461 * regset.c: Tweak comment.
4462 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4463 macro.
4464 * regset.h: Update copyright year.
4465 (struct regset): Remove `descr' member, add `gdbarch' member.
4466 (regset_alloc): Adjust prototype and comment.
4467 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4468 (i386_supply_fpregset): Likewise.
4469 (i386_regset_from_core_section): Update call to regset_alloc.
4470 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4471 REGSET->arch.
4472 (i386obsd_aout_regset_from_core_section): Update call to
4473 regset_alloc.
4474 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4475 REGSET->arch.
4476 (i386nbsd_aout_regset_from_core_section): Update call to
4477 regset_alloc.
4478 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4479 REGSET->arch.
4480 (amd64_regset_from_core_section): Update call to regset_alloc.
4481 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4482 REGSET->arch.
4483 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4484 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4485 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4486 (sparc32nbsd_init_abi): Update call to regset_alloc.
4487 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4488 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4489 (sparc64obsd_init_abi): Update call to regset_alloc.
4490 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4491 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4492 (sparc64nbsd_init_abi): Update call to regset_alloc.
4493 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4494 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4495 (sparc64fbsd_init_abi): Update call to regset_alloc.
4496
4497 2004-05-22 Jim Blandy <jimb@redhat.com>
4498
4499 * ppc-tdep.h (spe_register_p): New declaration.
4500 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4501 ppc_spefscr_regnum.
4502 * rs6000-tdep.c (spe_register_p): New function.
4503 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4504 spefscr.
4505 (rs6000_gdbarch_init): Initialize the new members of the tdep
4506 structure.
4507
4508 2004-05-21 Jim Blandy <jimb@redhat.com>
4509
4510 * ppc-linux-nat.c (fetch_register): Move code back to be next
4511 to the comment that describes it. (Moved code, instead of
4512 comment, for symmetry with store_register.)
4513
4514 Allocate regset structures in the gdbarch's obstack, not using
4515 xmalloc.
4516 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4517 Add 'arch' argument. Allocate the regset on arch's obstack, not
4518 using xmalloc.
4519 * regset.h (regset_alloc): Update declaration.
4520 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4521 gdbarch argument.
4522 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4523 * i386-tdep.c (i386_regset_from_core_section): Same.
4524 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4525 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4526 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4527 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4528 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4529 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4530
4531 2004-05-21 Joel Brobecker <brobecker@gnat.com>
4532
4533 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4534
4535 2004-05-21 Jim Blandy <jimb@redhat.com>
4536
4537 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4538 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4539
4540 2004-05-20 Jim Blandy <jimb@redhat.com>
4541
4542 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4543
4544 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4545
4546 * regset.h: Make prototype const-correct.
4547 * regset.c (regset_xmalloc): Make const-correct.
4548
4549 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4550
4551 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4552 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4553 (symbol_search_name): Declare.
4554
4555 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4556 (iter_name_next_hashed): Ditto.
4557 (iter_name_next_linear): Ditto.
4558 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4559
4560 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4561 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4562 (symbol_search_name): New function.
4563
4564 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4565
4566 * minsyms.c (build_minimal_symbol_hash_tables): Change
4567 test for adding to demangled hash table to check for difference
4568 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4569
4570 2004-05-19 Jim Blandy <jimb@redhat.com>
4571
4572 Use a constructor function to create regset structures.
4573 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4574 (struct regset): Use supply_regset_ftype. Add new
4575 'collect_regset' member.
4576 (regset_xmalloc): New declaration.
4577 * regset.c: New file.
4578 * am64-tdep.c (amd64_regset_from_core_section): Use
4579 regset_xmalloc to construct regset structures.
4580 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4581 * i386-tdep.c (i386_regset_from_core_section): Same.
4582 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4583 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4584 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4585 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4586 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4587 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4588 * Makefile.in (COMMON_OBS): Add regset.o.
4589 (regset.o): New rule.
4590
4591 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4592
4593 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4594 and pthread_cond_wait.c.
4595
4596 2004-05-18 Jim Blandy <jimb@redhat.com>
4597
4598 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4599 before the mach-specific switch, and then let the individual cases
4600 override the defaults, rather than leaving them uninitialized
4601 until the switch and then setting them in each case.
4602
4603 2004-05-18 Randolph Chung <tausq@debian.org>
4604
4605 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4606 millicode functions.
4607
4608 2004-05-18 Randolph Chung <tausq@debian.org>
4609
4610 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4611 references to dld_flags_buffer consistent.
4612
4613 2004-05-18 Randolph Chung <tausq@debian.org>
4614
4615 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4616 it for unwinding the stack.
4617
4618 2004-05-18 Randolph Chung <tausq@debian.org>
4619
4620 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4621 Undefine these so we can overide them using gdbarch.
4622
4623 2004-05-18 Randolph Chung <tausq@debian.org>
4624
4625 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4626 handling for 64-bit HPUX (elf).
4627
4628 2004-05-18 Daniel Jacobowitz <dan@debian.org>
4629
4630 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4631 constants.
4632 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4633 * ia64-tdep.c (examine_prologue): Likewise.
4634 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4635 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4636
4637 2004-05-18 Mark Kettenis <kettenis@gnu.org>
4638
4639 * vax-tdep.c (vax_return_value): Implement
4640 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4641
4642 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4643
4644 * vax-tdep.c (vax_return_value): Fix typo.
4645
4646 2004-05-17 Andrew Cagney <cagney@redhat.com>
4647
4648 * MAINTAINERS: Mark Salter was also responsible for
4649 testsuite/config/
4650
4651 * NEWS: Mention signal fixes.
4652
4653 2004-05-17 Randolph Chung <tausq@debian.org>
4654
4655 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4656 check to see if we are unwinding an export stub. Export stubs clobber
4657 the %rp in the call path and stores the original rp in a stack slot.
4658
4659 2004-05-17 Jim Blandy <jimb@redhat.com>
4660
4661 * MAINTAINERS: Update address for J.T. Conklin.
4662
4663 2004-05-17 Randolph Chung <tausq@debian.org>
4664
4665 * hppa-tdep.c: Remove superfluous #include's.
4666 * Makefile.in (hppa-tdep.o): Update dependencies.
4667
4668 2004-05-17 Randolph Chung <tausq@debian.org>
4669
4670 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4671 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4672 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4673 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4674 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4675 Remove static function declarations.
4676
4677 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4678
4679 * alphabsd-nat.c: Update copyright year.
4680 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4681
4682 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4683 and M68K_A2_REGNUM.
4684
4685 * m68k-tdep.c (m68k_svr4_return_value): Implement
4686 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4687
4688 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4689
4690 * sol-thread.c Update copyright year. Fix various coding
4691 standards violations. Tweak a few comments.
4692 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4693 Delete prototypes.
4694
4695 2004-05-15 Randolph Chung <tausq@debian.org>
4696
4697 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4698 as pointer instead of array reference since HPUX compiler does
4699 not accept unsized array arguments.
4700 * somsolib.c (dld_flags_buffer): Use constant array size.
4701
4702 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4703
4704 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4705 offset with decimal offset.
4706 (amd64obsd_sigcontext_addr): Return correct address for entire
4707 signal trampoline.
4708
4709 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4710 instead of get_frame_base.
4711
4712 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4713 (fill_gregset): Use regcache_raw_collect.
4714
4715 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4716 ppcobsd-tdep.c.
4717
4718 * config/sparc/tm-nbsd64.h: Remove file.
4719 * config/tm-sunos.h: Remove file.
4720
4721 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4722
4723 * rs6000-tdep.c (store_param_on_stack_p): New function,
4724 an improved version of some code extracted from skip_prologue().
4725 (skip_prologue): Use store_param_on_stack_p() to detect
4726 instructions saving a parameter on the stack. Detect when r0
4727 is used to save a parameter.
4728 Do not mark "li rx, SIMM" instructions as part of the prologue,
4729 unless the following instruction is also part of the prologue.
4730
4731 2004-05-14 Andrew Cagney <cagney@redhat.com>
4732
4733 * infrun.c (handle_inferior_event): Simplify
4734 STEP_OVER_UNDEBUGGABLE.
4735
4736 * infrun.c (handle_step_into_function): Delete function.
4737 (handle_inferior_event): Inline calls to
4738 handle_step_into_function.
4739
4740 2004-05-14 Jerome Guitton <guitton@gnat.com>
4741
4742 * rs6000-nat.c: Fix a comment.
4743
4744 2004-05-12 David Anderson <davea@sgi.com>
4745
4746 Committed by Jim Blandy <jimb@redhat.com>:
4747 * regcache.c (struct regcache_descr): fix comment spelling.
4748
4749 2004-05-13 J. Brobecker <brobecker@gnat.com>
4750
4751 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4752 Fixes a link link failure.
4753
4754 2004-05-13 J. Brobecker <brobecker@gnat.com>
4755
4756 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4757 error that was causing the build to fail.
4758
4759 2004-05-13 J. Brobecker <brobecker@gnat.com>
4760
4761 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4762 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4763
4764 2004-05-13 Andrew Cagney <cagney@redhat.com>
4765
4766 * infrun.c (handle_inferior_event): Check for
4767 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4768 calls. Update comments.
4769
4770 2004-05-13 Jim Blandy <jimb@redhat.com>
4771
4772 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4773 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4774 (store_regs_user_thread, store_regs_kernel_thread): Use
4775 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4776 * ppc-linux-nat.c (fill_gregset): Same.
4777 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4778 (ppc_linux_sigtramp_cache): Same.
4779 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4780 (ppcnbsd_sigtramp_cache_init): Same.
4781 * rs6000-nat.c (fetch_core_registers): Same.
4782 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4783 (rs6000_frame_cache): Same.
4784
4785 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4786 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4787 of assuming that the gprs are numbered starting with zero.
4788 * ppc-linux-nat.c (fill_gregset): Same.
4789 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4790 * ppcnbsd-nat.c (getregs_supplies): Same.
4791 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4792 * rs6000-nat.c (fetch_core_registers): Same.
4793 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4794
4795 2004-05-07 Michael Snyder <msnyder@redhat.com>
4796
4797 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4798 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4799
4800 2004-05-13 Andrew Cagney <cagney@redhat.com>
4801
4802 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4803
4804 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4805
4806 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4807 base_address for shared libraries.
4808
4809 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4810
4811 * MAINTAINERS (write after approval): Add myself.
4812
4813 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4814
4815 * breakpoint.c (bpstat_stop_status): Add new argument
4816 STOPPED_BY_WATCHPOINT. Use it instead of testing
4817 target_stopped_data_address agaist 0 to check whether
4818 or not we stopped due to a hardware watchpoint.
4819 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4820 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4821 with new argument.
4822
4823 2004-05-12 Jim Blandy <jimb@redhat.com>
4824
4825 * configure.in: When checking whether we should use the -bbigtoc
4826 option, don't forget to restore the original value of LDFLAGS.
4827 * configure: Regenerated.
4828
4829 2004-05-12 Andrew Cagney <cagney@redhat.com>
4830
4831 * thread.c (load_infrun_state): Delete step_sp.
4832 * infrun.c (context_switch): Ditto.
4833 * inferior.h (step_sp): Ditto.
4834 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4835 * gdbthread.h (struct thread_info, save_infrun_state)
4836 (restore_infrun_state): Ditto.
4837
4838 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4839
4840 * MAINTAINERS (write after approval): Add myself.
4841
4842 2004-05-12 Andrew Cagney <cagney@redhat.com>
4843
4844 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4845 eliminate reference to step_sp.
4846 (struct execution_control_state, init_execution_control_state)
4847 (handle_inferior_event, keep_going): Delete update_step_sp and
4848 step_sp.
4849 * infcmd.c (step_sp): Note that variable is unused.
4850
4851 2004-05-11 Andrew Cagney <cagney@redhat.com>
4852
4853 * infrun.c (step_over_function): Delete function.
4854 (handle_step_into_function): Use insert_step_resume_breakpoint.
4855 (insert_step_resume_breakpoint): Fix assertion.
4856
4857 2004-05-11 Nick Roberts <nickrob@gnu.org>
4858
4859 * utils.c (defaulted_query): Just use the normal query input type
4860 when printing the annotations.
4861
4862 2004-05-11 Andrew Cagney <cagney@redhat.com>
4863
4864 * infrun.c (handle_inferior_event): Simplify code handling
4865 step-into or return-from a signal trampoline.
4866
4867 2004-05-11 Andrew Cagney <cagney@redhat.com>
4868
4869 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4870 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4871
4872 2004-05-10 Jim Blandy <jimb@redhat.com>
4873
4874 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4875 with a call to internal_error.
4876
4877 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4878 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4879 processor variant lacks those registers.
4880 (ppc_floating_point_unit_p): Change description to make it clear
4881 that this returns info about the ISA, not the ABI.
4882 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4883 return true or false by checking tdep->ppc_fp0_regnum and
4884 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4885 arch/mach switching done in rs6000_gdbarch_init; it's better to
4886 keep that logic there, and just check the results here.
4887 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4888 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4889 floating-point registers.
4890 (ppc_supply_fpregset, ppc_collect_fpregset)
4891 (rs6000_push_dummy_call, rs6000_extract_return_value)
4892 (rs6000_store_return_value): Assert that we have floating-point
4893 registers.
4894 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4895 (rs6000_frame_cache): Don't note the locations at which
4896 floating-point registers were saved if we have no fprs.
4897 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4898 registers.
4899 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4900 (store_regs_user_thread, store_regs_kernel_thread): Only call
4901 supply_fprs / fill_fprs if we actually have floating-point
4902 registers.
4903 (special_register_p): Check ppc_fpscr_regnum before matching
4904 against it.
4905 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4906 supply / collect fpscr if we don't have it.
4907 * ppc-bdm.c: #include "gdb_assert.h".
4908 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4909 have floating-point registers, since I can't test this code on
4910 FP-free systems to adapt it.
4911 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4912 fpscr and floating point register numbers if they don't exist.
4913 (fetch_register): Assert that we have floating-point registers
4914 before we reach the code that handles them.
4915 (store_register): Same. And use tdep instead of calling
4916 gdbarch_tdep again.
4917 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4918 don't have them.
4919 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4920 fprs and fpscr if we don't have them.
4921 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4922 don't have them.
4923 * ppcnbsd-nat.c: #include "gdb_assert.h".
4924 (getfpregs_supplies): Assert that we have floating-point registers.
4925 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4926 * ppcobsd-tdep.c: #include "gdb_assert.h".
4927 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4928 have floating-point registers.
4929 * rs6000-nat.c (regmap): Don't match against the fpscr and
4930 floating point register numbers if they don't exist.
4931 (fetch_inferior_registers, store_inferior_registers,
4932 fetch_core_registers): Only fetch / store / supply the
4933 floating-point registers and the fpscr if we have them.
4934 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4935 (ppcobsd-tdep.o): Update dependencies.
4936
4937 2004-05-10 Andrew Cagney <cagney@redhat.com>
4938
4939 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4940 (context_switch): Do not switch through_sigtramp_breakpoint.
4941 * gdbthread.h (save_infrun_state, load_infrun_state)
4942 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4943 and structure member.
4944 * thread.c (load_infrun_state, save_infrun_state): Update.
4945
4946 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4947
4948 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4949
4950 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4951
4952 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4953 throughout.
4954 * aclocal.m4: Regenerate.
4955
4956 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4957
4958 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4959
4960 2004-05-10 Andrew Cagney <cagney@redhat.com>
4961
4962 * infrun.c (check_sigtramp2): Delete function.
4963 (handle_inferior_event): When single stepping, and taking a
4964 signal, set a breakpoint at the signal return address. Delete
4965 redundant calls to check_sigtramp2.
4966 (insert_step_resume_breakpoint): New function.
4967 (through_sigtramp_breakpoint, handle_inferior_event)
4968 (follow_exec, wait_for_inferior, fetch_inferior_event)
4969 (currently_stepping, keep_going): Delete most uses of
4970 through_sigtramp_breakpoint, not that it should be deleted.
4971 (delete_breakpoint_current_contents): Delete function.
4972
4973 2004-05-10 Randolph Chung <tausq@debian.org>
4974
4975 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4976 target.
4977 * config/pa/tm-linux.h: New file.
4978
4979 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4980
4981 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4982 of prefixes. Don't print the prefix twice in the CLI.
4983
4984 2004-05-10 Jim Blandy <jimb@redhat.com>
4985
4986 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4987 collect all the gprs.
4988
4989 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4990 loop collecting gprs.
4991
4992 2004-05-09 Andrew Cagney <cagney@redhat.com>
4993
4994 * remote-vx.c (net_step): Delete step-range code.
4995 * remote.c (remote_resume, init_all_packet_configs)
4996 (set_remote_protocol_E_packet_cmd)
4997 (show_remote_protocol_E_packet_cmd)
4998 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4999 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5000 (show_remote_protocol_e_packet_cmd): Ditto.
5001
5002 2004-05-09 Mark Kettenis <kettenis@gnu.org>
5003
5004 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5005
5006 * hppa-tdep.h: Update copyright year.
5007 (struct trad_frame_saved_reg): Add opaque declaration.
5008
5009 * amd64-tdep.c (amd64_return_value): Implement
5010 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5011
5012 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5013 (m68k_value_to_register): New functions.
5014 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5015 value_to_register.
5016
5017 * defs.h (enum return_value_convention): Add
5018 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5019 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5020 * infcmd.c (legacy_return_value): New function.
5021 (print_return_value): Rwerite to implement
5022 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5023 * values.c (using_struct_return): Check for inequality to
5024 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5025 RETURN_VALUE_STRUCT_CONVENTION.
5026 * i386-tdep.c (i386_return_value): Implement
5027 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5028
5029 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5030 include "symtab.h", "opcode/vax.h" and "inferior.h".
5031 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5032 to read_memory_unsigned_integer.
5033 (vax_gdbarch_init): Reorder.
5034 (_initialize_vax_tdep): Spell out prototype.
5035 * Makefile.in (vax-tdep.o): Update dependencies.
5036
5037 2004-05-08 Andrew Cagney <cagney@redhat.com>
5038
5039 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5040 * target.c (target_detach, target_disconnect): Ditto.
5041
5042 * infcall.c (call_function_by_hand): When no
5043 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5044 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5045 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5046 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5047 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5048
5049 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5050 * gdbarch.h, gdbarch.c: Re-generate.
5051 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5052 deprecated_fix_call_dummy.
5053 * v850-tdep.c (v850_gdbarch_init): Ditto.
5054 * infcall.c (call_function_by_hand): Do not call
5055 DEPRECATED_FIX_CALL_DUMMY.
5056
5057 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5058 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5059 * gdbarch.h, gdbarch.c: Re-generate.
5060 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5061 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5062 deprecated_sizeof_call_dummy_words.
5063 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5064 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5065 * v850-tdep.c (v850_gdbarch_init): Ditto.
5066 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5067 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5068 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5069 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5070 * arch-utils.h (legacy_call_dummy_words)
5071 (legacy_sizeof_call_dummy_words): Delete declarations.
5072 * arch-utils.c (legacy_call_dummy_words)
5073 (legacy_sizeof_call_dummy_words): Delete variables.
5074
5075 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5076 * gdbarch.h, gdbarch.c: Re-generate.
5077 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5078 * infcall.c (call_function_by_hand): Eliminate call to
5079 DEPRECATED_PUSH_DUMMY_FRAME.
5080 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5081 push_dummy_frame.
5082 (ns32k_push_dummy_frame): Delete function.
5083
5084 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5085 deprecated_call_dummy_breakpoint_offset or
5086 deprecated_call_dummy_start_offset.
5087 * dummy-frame.c, arm-tdep.c: Update comments.
5088 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5089 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5090 * gdbarch.h, gdbarch.c: Re-generate.
5091
5092 * infcall.c (legacy_push_dummy_code): Delete function.
5093 (push_dummy_code): Delete call.
5094
5095 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5096 * gdbarch.h, gdbarch.c: Re-generate.
5097 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5098 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5099 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5100 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5101
5102 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5103 (struct frame_info): Delete opaque declaration.
5104 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5105 * frame.c (get_frame_type): Delete call.
5106
5107 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5108 pc_in_call_dummy.
5109 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5110 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5111
5112 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5113
5114 * alphanbsd-tdep.c: Include "gdb_string.h".
5115 * armnbsd-tdep.c: Update copyright year.
5116 Include "gdb_string.h".
5117 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5118 dependencies.
5119
5120 * delta68-nat.c: Remove file.
5121 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5122 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5123 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5124 (delta68-nat.o): Remove dependency.
5125
5126 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5127 function.
5128 (m68k_gdbarch_init): Don't set
5129 deprecated_frameless_function_invocation.
5130
5131 2004-05-07 Randolph Chung <tausq@debian.org>
5132
5133 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5134 read_memory_nobpt for code reading when doing frame unwinding.
5135 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5136
5137 2004-05-07 Randolph Chung <tausq@debian.org>
5138
5139 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5140 instead of sp, handle sigaltstack case.
5141 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5142 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5143 signal handler and not that of the caller.
5144 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5145 hppa_linux_sigtramp_find_sigcontext.
5146
5147 2004-05-07 Randolph Chung <tausq@debian.org>
5148
5149 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5150 hppa-linux-nat.c.
5151 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5152 * hppa-linux-nat.c (fetch_register, store_register): Define.
5153 (fetch_inferior_registers, store_inferior_registers): Define.
5154 (supply_gregset): Add comment and clean up some unneeded code.
5155 (fill_gregset): Add comment and fix so that it saves registers in
5156 the right place in the gregset.
5157 (fill_fpregset): Fix buffer overrun problem.
5158 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5159
5160 2004-05-07 Randolph Chung <tausq@debian.org>
5161
5162 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5163 do common handling of the pcoqt register.
5164 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5165 to use helper function.
5166 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5167 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5168 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5169 generic fallback unwinder when all else fails.
5170 (hppa_gdbarch_init): Add fallback sniffer.
5171 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5172 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5173 to use helper function.
5174
5175 2004-05-08 Joel Brobecker <brobecker@gnat.com>
5176
5177 * config/djgpp/fnchange.lst: Add translation rules for
5178 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5179
5180 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5181
5182 * frame.c (get_prev_frame_1): Work around GCC bug.
5183 * frame.h: Add comment about GCC bug.
5184
5185 2004-05-07 Andrew Cagney <cagney@redhat.com>
5186
5187 * observer.c: Include "commands.h" and "gdbcmd.h".
5188 (observer_debug, _initialize_observer): Add the
5189 command "set/show debug observer".
5190 * observer.sh: When observer debugging, log notify calls.
5191 * Makefile.in (observer.o): Update dependencies.
5192
5193 2004-05-07 Jason Molenda (jmolenda@apple.com)
5194
5195 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5196
5197 2004-05-07 Jim Blandy <jimb@redhat.com>
5198
5199 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5200 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5201 to recognize gpr regnums, instead of assuming that
5202 tdep->ppc_fp0_regnum marks the end of the general-purpose
5203 registers.
5204
5205 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5206 the given architecture has floating-point registers.
5207
5208 2004-05-07 Andrew Cagney <cagney@redhat.com>
5209
5210 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5211 macro defined to 1.
5212 * gdbarch.h, gdbarch.c: Re-generate.
5213 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5214 deprecated_use_generic_dummy_frames.
5215
5216 2004-05-07 Brian Ford <ford@vss.fsi.com>
5217
5218 * NEWS: Mention Cygwin DWARF 2 support.
5219
5220 2004-05-07 Andrew Cagney <cagney@redhat.com>
5221
5222 * objfiles.h (struct entry_info): Delete unused fields
5223 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5224 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5225 * mipsread.c (mipscoff_symfile_read): Update.
5226 * mdebugread.c (parse_partial_symbols): Update.
5227 * dwarfread.c (read_file_scope): Update.
5228 * dwarf2read.c (read_file_scope): Update.
5229 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5230 * coffread.c (complete_symtab): Update.
5231
5232 2004-05-07 Mark Kettenis <kettenis@gnu.org>
5233
5234 * infcall.c (_initialize_infcall): Fix typo.
5235
5236 2004-05-07 Andrew Cagney <cagney@redhat.com>
5237
5238 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5239 * command.h (add_setshow_zinteger_cmd): Declare.
5240
5241 2004-05-06 Randolph Chung <tausq@debian.org>
5242
5243 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5244 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5245 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5246 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5247 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5248 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5249 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5250 definitions ...
5251 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5252 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5253 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5254 (hppa64_hpux_frame_find_saved_regs_in_sig)
5255 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5256 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5257 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5258 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5259 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5260 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5261 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5262 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5263 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5264 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5265 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5266 (hppa32_register_type, hppa_cannot_store_register)
5267 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5268 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5269 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5270 * pa64solib.c (pa64_solib_have_load_event)
5271 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5272 (pa64_solib_unloaded_library_pathname): Likewise.
5273 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5274 (som_solib_library_pathname): Likewise.
5275
5276 2004-05-05 Jim Ingham <jingham@apple.com>
5277
5278 * breakpoint.c (create_breakpoints): Copy the ignore count and
5279 thread id over from the pended breakpoint to the actual
5280 breakpoint.
5281
5282 2004-05-05 Andrew Cagney <cagney@redhat.com>
5283
5284 * gdbarch.sh (PARM_BOUNDARY): Delete.
5285 gdbarch.h, gdbarch.c: Re-generate.
5286 * valops.c (PARM_BOUNDARY): Delete macro.
5287 (value_push): Delete PARM_BOUNDARY code.
5288 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5289
5290 2004-05-04 Jim Blandy <jimb@redhat.com>
5291
5292 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5293 Don't assume that the gprs, fprs, and UISA sprs are
5294 contiguous, start at register number zero, and end with fpscr.
5295 Instead, use the numbers from the tdep structure.
5296
5297 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5298 should no longer be used in code specific to the RS6000 and its
5299 derivatives.
5300 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5301 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5302 tdep->ppc_fp0_regnum.
5303 (ppc_supply_fpregset, ppc_collect_fpregset)
5304 (rs6000_push_dummy_call, rs6000_extract_return_value)
5305 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5306 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5307 FP0_REGNUM.
5308 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5309 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5310 Same.
5311 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5312 bdm_ppc_store_registers): Same.
5313 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5314 (store_register, fill_fpregset): Same.
5315 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5316 (ppc_linux_supply_fpregset): Same.
5317 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5318 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5319 Same.
5320 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5321 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5322 ppc64_sysv_abi_return_value): Same.
5323 * rs6000-nat.c (regmap, fetch_inferior_registers)
5324 (store_inferior_registers, fetch_core_registers): Same.
5325
5326 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5327
5328 * m68knbsd-nat.c: Remove file.
5329 * m68knbsd-tdep.c: Remove file.
5330 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5331 dependencies.
5332 * configure.host: Add m68k-*-netbsdelf*.
5333 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5334 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5335 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5336 (XM_FILE): Remove.
5337 * config/m68k/nbsdelf.mh: New file.
5338 * config/m68k/nbsd.mt: New file.
5339 * config/m68k/nbsdaout.mt: Remove file.
5340 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5341 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5342 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5343 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5344 (use_struct_convention): Remove prototype.
5345 (USE_STRUCT_CONVENTION): Remove define.
5346 * config/m68k/xm-nbsd.h: Remove file.
5347
5348 2004-05-04 Michael Snyder <msnyder@redhat.com>
5349
5350 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5351 reg_struct_return method (as gcc usually does for cross targets).
5352
5353 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5354
5355 Committed by Andrew Cagney.
5356 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5357 alignment padding when accessing ucontext struct members.
5358
5359 2004-05-04 Jim Blandy <jimb@redhat.com>
5360
5361 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5362 'ppc_gplast_regnum' member.
5363 (ppc_num_gprs): New enum constant.
5364 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5365 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5366 * rs6000-nat.c (regmap, fetch_inferior_registers,
5367 store_inferior_registers): Same.
5368 * rs6000-tdep.c (e500_pseudo_register_read)
5369 (e500_pseudo_register_write): Same.
5370 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5371
5372 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5373 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5374 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5375 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5376 FPLAST_REGNUM.
5377 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5378 Same.
5379 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5380 * rs6000-nat.c (regmap, fetch_inferior_registers)
5381 (store_inferior_registers): Same.
5382
5383 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5384 with FPLAST_REGNUM.
5385
5386 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5387
5388 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5389 failure detected by recent versions of GCC.
5390 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5391 to be consistent with the usage in dwarf2_create_include_psymtab.
5392
5393 2004-05-03 Michael Snyder <msnyder@redhat.com>
5394
5395 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5396 (heuristic_proc_start): Whitespace cleanup.
5397
5398 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5399
5400 * sun3-nat.c: Remove file.
5401 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5402 dependencies.
5403 (ALLDEPFILES): Remove sun3-nat.c.
5404 (sun3-nat.o): Remove dependencies.
5405
5406 * i386-interix-nat.c, i386-interix-tdep.c,
5407 config/i386/nm-interix.h, config/i386/interix.mh,
5408 config/i386/interix.mt: Remove files.
5409 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5410 dependencies.
5411
5412 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5413
5414 * m68k-tdep.h (struct gdbarch_tdep): Add member
5415 struct_value_regnum.
5416 (m68k_svr4_init_abi): New prototype.
5417 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5418 different calling conventions.
5419 (m68k_extract_return_value): Remove code dealing with single-field
5420 structs.
5421 (m68k_store_return_value): Remove code dealing with single-field
5422 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5423 (m68k_extract_struct_value_address): Remove function.
5424 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5425 (m68k_reg_struct_return_p, m68k_return_value)
5426 (m68k_svr4_return_value): New functions.
5427 (m68k_use_struct_convention): Remove function.
5428 (m68k_push_dummy_call): Use new struct_value_regnum member of
5429 `struct gdbarch_tdep' instead of hardcoded register number to
5430 store STRUCT_ADDR.
5431 (m68k_svr4_init_abi): New function.
5432 (m68k_gdbarch_init): Don't set extract_return_value,
5433 store_return_values, deprecated_extract_struct_value_address and
5434 use_struct_convention. Set return_value instead. Initialize new
5435 struct_value_regnum member of `struct gdbarch_tdep'.
5436 * m68klinux-tdep.c: Update copyright year.
5437 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5438 (m68k_linux_extract_struct_value_address): Remove function.
5439 (m68k_linux_init_abi): Don't set extract_return_value,
5440 store_return_values, deprecated_extract_struct_value_address and
5441 use_struct_convention. Call m68k_svr4_init_abi but override the
5442 new struct_value_regnum member of `struct gdbarch_tdep'.
5443 * Makefile.in (m68k-tdep.o): Update dependencies.
5444
5445 2004-05-03 J. Brobecker <brobecker@gnat.com>
5446
5447 * dwarf2read.c (line_header): Add new included_p field in
5448 field file_names.
5449 (partial_die_info): New field has_stmt_list. New field line_offset.
5450 (dwarf2_create_include_psymtab): New function.
5451 (dwarf2_build_include_psymtabs): New function.
5452 (add_file_name): Add forward declaration. Initialize new field.
5453 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5454 to be able to determine the list of files included by the
5455 given unit, and build their associated psymtabs.
5456 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5457 files as well.
5458 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5459 (read_file_scope): Update call to dwarf_decode_lines.
5460 (read_partial_die): Handle DW_AT_stmt_list attributes.
5461
5462 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5463
5464 Unfix PR gdb/1626.
5465 * configure.in: Revert special case for osf5.*.
5466 * configure: Regenerate.
5467
5468 2004-05-02 Jim Blandy <jimb@redhat.com>
5469
5470 Move the symbol-file-from-memory functions into their own file.
5471 * symfile-mem.c, symfile-mem.h: New files.
5472 * symfile.c (symbol_file_add_from_bfd): New function.
5473 (symbol_file_add): Call symbol_file_add_from_bfd.
5474 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5475 Moved to symfile-mem.c.
5476 (_initialize_symfile): Move definition of
5477 add-symbol-file-from-memory command to symfile-mem.c.
5478 * symfile.h (symbol_file_add_from_bfd): New declaration.
5479 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5480 * config/powerpc/linux.mt (TDEPFILES): Same.
5481 * Makefile.in (SFILES): Add symfile-mem.c.
5482 (symfile_mem_h): New variable.
5483 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5484 (symfile-mem.o): New rule.
5485
5486 2004-05-01 Andrew Cagney <cagney@redhat.com>
5487
5488 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5489 frame_find_by_id instead of frame_relative_level.
5490 (do_enable_breakpoint): Ditto.
5491 * thread.c: Update copyright.
5492 (info_threads_command): Ditto, simplify.
5493
5494 * frame.c (deprecated_generic_get_saved_register): Delete
5495 function, moved to "xstormy16-tdep.c".
5496 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5497 deprecated_generic_get_saved_register from "frame.c".
5498 (xstormy16_frame_saved_register): Call
5499 xstormy16_get_saved_register.
5500 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5501 static.
5502 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5503 * frame.h (deprecated_generic_get_saved_register): Delete.
5504
5505 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5506
5507 * dwarfread.c: Update documentation on the state of dwarf-1.
5508
5509 2004-05-01 Andrew Cagney <cagney@redhat.com>
5510
5511 * stack.c (select_frame_command): Delete call to
5512 frame_relative_level.
5513 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5514 Delete #if0 code.
5515 (frame_info): Do not print FRAMELESS.
5516 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5517 (catch_info): Delete #if0 code.
5518
5519 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5520 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5521 of frame_relative_level.
5522 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5523 to SENTINEL_FRAME.
5524 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5525 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5526 frame_relative_level.
5527
5528 * frame.h (deprecated_set_frame_type): Delete declaration.
5529 * frame.c (deprecated_set_frame_type): Delete function, update
5530 comments.
5531
5532 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5533 * gdbarch.h, gdbarch.c: Re-generate.
5534 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5535 (shnbsd_pc_in_sigtramp): Delete.
5536 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5537 pc_in_sigtramp.
5538 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5539 pc_in_sigtramp.
5540 * frame.h: Update comments.
5541 * ppc-linux-tdep.c: Update comments.
5542 * breakpoint.c (bpstat_what): Update comments.
5543
5544 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5545 m68klinux-tdep.o's dependencies, were previously added to
5546 m68klinux-nat.o.
5547
5548 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5549 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5550 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5551 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5552 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5553
5554 * Makefile.in (m68klinux-nat.o): Update dependencies.
5555 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5556 (m68k_linux_sigtramp_frame_cache)
5557 (m68k_linux_sigtramp_frame_this_id)
5558 (m68k_linux_sigtramp_frame_prev_register)
5559 (m68k_linux_sigtramp_frame_unwind)
5560 (m68k_linux_sigtramp_frame_sniffer)
5561 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5562 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5563 names, use trad-frame.h.
5564 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5565 (struct m68k_sigtramp_info): Delete.
5566 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5567 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5568 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5569 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5570 "m68klinux-tdep.c".
5571
5572 * infrun.c (check_sigtramp2): Delete check for
5573 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5574
5575 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5576
5577 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5578
5579 2004-05-01 Andrew Cagney <cagney@redhat.com>
5580
5581 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5582 (frv_linux_sigtramp_frame_cache)
5583 (frv_linux_sigtramp_frame_this_id)
5584 (frv_linux_sigtramp_frame_prev_register)
5585 (frv_linux_sigtramp_frame_unwind)
5586 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5587 include "linux" in function and variable names, directly call
5588 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5589 the latest trad-frame code.
5590 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5591 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5592 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5593 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5594 * frv-tdep.c (frv_sigtramp_frame_cache)
5595 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5596 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5597 frv-linux-tdep.c.
5598 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5599 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5600 (frv_set_sigcontext_reg_addr): Delete function.
5601
5602 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5603 (DEPRECATED_SIGTRAMP_END): Delete.
5604 * gdbarch.h, gdbarch.c: Re-generate.
5605 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5606 * config/vax/tm-vaxbsd.h: Update copyright.
5607 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5608 (DEPRECATED_IN_SIGTRAMP): Define.
5609 * config/m68k/tm-nbsd.h: Update copyright.
5610 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5611 (DEPRECATED_IN_SIGTRAMP): Define.
5612
5613 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5614
5615 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5616 encondings. Fixes PR gdb/1628.
5617
5618 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5619 DW_CFA_restore state without a matching DW_CFA_remember_state
5620 instead of aborting. Fixes PR backtrace/1589.
5621
5622 2004-04-30 Joel Brobecker <brobecker@gnat.com>
5623
5624 * MAINTAINERS: Add self as AIX maintainer.
5625 Update my e-mail address in write-after-approval section.
5626
5627 2004-04-30 Andrew Cagney <cagney@redhat.com>
5628
5629 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5630 (legacy_get_prev_frame): Ditto.
5631
5632 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5633 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5634 * mipsread.c (sigtramp_address): Delete extern variable.
5635 (mipscoff_new_init): Delete reference.
5636 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5637 (fixup_sigtramp): Delete function.
5638 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5639 (fixup_sigtramp): Delete declarations.
5640
5641 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5642 deprecated_pc_in_sigtramp.
5643 (ppcnbsd_pc_in_sigtramp): Delete function.
5644
5645 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5646
5647 * config/m68k/nm-nbsd.h: Tweak comments.
5648 * config/m68k/nm-nbsdaout.h: Likewise.
5649
5650 2004-04-30 Andrew Cagney <cagney@redhat.com>
5651
5652 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5653 legacy_pc_in_sigtramp.
5654 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5655
5656 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5657
5658 Add OpenBSD/m68k support.
5659 * NEWS (New native configurations): Mention OpenBSD/m68k.
5660 * m68kbsd-tdep.c: New file.
5661 * m68kbsd-nat.c: New file.
5662 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5663 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5664 * configure.host: Add m68k-*-openbsd.
5665 * configure.tgt: Add m68k-*-openbsd.
5666 * config/m68k/tm-obsd.h: New file.
5667 * config/m68k/obsd.mt: New file.
5668 * config/m68k/obsd.mh: New file.
5669 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5670 m68kbsd-tdep.c.
5671
5672 2004-04-30 Andrew Cagney <cagney@redhat.com>
5673
5674 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5675 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5676
5677 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5678
5679 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5680 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5681
5682 2004-04-30 Brian Ford <ford@vss.fsi.com>
5683
5684 Revert 2004-04-16 change.
5685 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5686 (i386_coff_init_abi): Remove.
5687 * i386-tdep.h (i386_coff_init_abi): Remove.
5688 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5689
5690 2004-04-30 Andrew Cagney <cagney@redhat.com>
5691
5692 * blockframe.c (find_pc_partial_function): Delete use of
5693 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5694 DEPRECATED_SIGTRAMP_END.
5695
5696 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5697 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5698 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5699 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5700 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5701
5702 * defs.h (deprecated_inside_entry_file): Delete declaration.
5703 * blockframe.c (deprecated_inside_entry_file): Delete function.
5704 (legacy_frame_chain_valid): Delete call.
5705 * sh64-tdep.c (sh64_frame_chain): Delete call.
5706 * objfiles.h: Update comments.
5707 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5708 call.
5709 * frame.c (get_prev_frame): Delete call, update comments.
5710
5711 2004-04-30 Brian Ford <ford@vss.fsi.com>
5712
5713 * MAINTAINERS (Write After Approval): Add myself.
5714
5715 2004-04-30 Andrew Cagney <cagney@redhat.com>
5716
5717 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5718 * gdbarch.h, gdbarch.c: Re-generate.
5719 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5720 code.
5721
5722 2004-04-30 Andrew Cagney <cagney@redhat.com>
5723
5724 * gdb-events.sh (selected_thread_changed)
5725 (selected_frame_level_changed, target_changed): Delete.
5726 * gdb-events.h, gdb-events.c: Re-generate.
5727 * valops.c (value_assign): Update.
5728 * stack.c (select_frame_command, up_silently_base)
5729 (down_silently_base): Update.
5730
5731 2004-04-29 Andrew Cagney <cagney@redhat.com>
5732
5733 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5734 registers correctly.
5735 (print_gp_register_row, mips32_heuristic_proc_desc)
5736 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5737 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5738 references to mips_isa_regsize.
5739
5740 2004-04-29 Andrew Cagney <cagney@redhat.com>
5741
5742 * mips-tdep.c (struct gdbarch_tdep): Delete
5743 mips_fp_register_double.
5744 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5745 mips_abi_regsize.
5746 (mips_gdbarch_init): Do not set mips_fp_register_double.
5747 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5748
5749 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5750
5751 Committed by Andrew Cagney.
5752 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5753 function calls.
5754
5755 2004-04-29 Andrew Cagney <cagney@redhat.com>
5756
5757 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5758 gdbarch, use mips_abi, update callers.
5759 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5760 mips_abi_regsize, update callers.
5761 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5762 mips_default_abi_regsize.
5763 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5764 mips_default_abi_regsize.
5765
5766 2004-04-29 Andrew Cagney <cagney@redhat.com>
5767
5768 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5769 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5770 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5771 mips_default_abi_regsize.
5772 (mips_isa_regsize): Rename mips_regisze.
5773 * mipsnbsd-tdep.c: Update.
5774 * mips-linux-tdep.c: Update.
5775 * irix5-nat.c: Update.
5776 * mips-tdep.h (mips_isa_regsize): Update.
5777
5778 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5779 Delete all disabled code.
5780 * gdb-events.h, gdb-events.c: Re-generate.
5781
5782 2004-04-19 Jerome Guitton <guitton@gnat.com>
5783 Mark Kettenis <kettenis@gnu.org>
5784
5785 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5786 the function begins with a branch instruction.
5787
5788 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5789
5790 * i386-tdep.c: Fix spelling mistakes.
5791
5792 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5793 Andrew Cagney <cagney@redhat.com>
5794
5795 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5796 <sys/proc.h>.
5797 * acconfig.h: Provide default _KMEMUSER value.
5798 * config.in, configure: Re-generate.
5799 * NEWS: Mention fix.
5800
5801 2004-04-24 Randolph Chung <tausq@debian.org>
5802
5803 * configure.host (hppa*-*-linux*): New target.
5804 * configure.tgt (hppa*-*-linux*): Likewise.
5805 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5806 gdbarch_init_osabi() call earlier so that osabi-specific frame
5807 unwinders can be registered first.
5808 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5809 hppa-linux-nat.c.
5810 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5811 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5812 * config/pa/linux.mh: New file.
5813 * config/pa/linux.mt: New file.
5814 * config/pa/nm-linux.h: New file.
5815 * config/pa/xm-linux.h: New file.
5816 * hppa-linux-nat.c: New file.
5817 * hppa-linux-tdep.c: New file.
5818
5819 2004-04-28 Randolph Chung <tausq@debian.org>
5820
5821 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5822 return values.
5823 (hppa32_push_dummy_call): Fix small struct and floating point argument
5824 passing, and make sure the stack frame is properly aligned.
5825
5826 2004-04-28 Andrew Cagney <cagney@redhat.com>
5827
5828 * stack.c (print_stack_frame): Fix description.
5829
5830 * NEWS: Mention gdb/gdbserver/configure execute permission
5831 changed. PR server/519.
5832
5833 2004-04-28 Andrew Cagney <cagney@redhat.com>
5834
5835 * stack.c (print_stack_frame_stub): Delete declaration.
5836 (struct print_stack_frame_args, print_stack_frame)
5837 (print_frame_info, print_frame): Replace "source" with print what.
5838 Replace "print" with "print_level". Replace "args" with
5839 "print_args".
5840 * frame.h (show_and_print_stack_frame, print_stack_frame)
5841 (print_frame_info): Update declarations.
5842 * stack.c (select_and_print_frame, frame_command)
5843 (current_frame_command, up_command, down_command): Update calls -
5844 use get_selected_frame, pass "enum print_what" for source, do not
5845 call frame_relative_level.
5846 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5847 * remote-rdp.c (remote_rdp_open): Ditto.
5848 * remote-mips.c (common_open): Ditto.
5849 * remote-e7000.c (e7000_start_remote): Ditto.
5850 * ocd.c (ocd_start_remote): Ditto.
5851 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5852 * infrun.c (normal_stop): Ditto.
5853 * inflow.c (kill_command): Ditto.
5854 * infcmd.c (finish_command): Ditto.
5855 * corelow.c (core_open): Ditto.
5856 * tracepoint.c (finish_tfind_command): Ditto.
5857 * thread.c (info_threads_command, info_threads_command)
5858 (restore_current_thread, do_captured_thread_select): Ditto.
5859 * ada-tasks.c (task_command): Ditto.
5860
5861 2004-04-26 Orjan Friberg <orjanf@axis.com>
5862
5863 * frame.c: Include "observer.h".
5864 (frame_observer_target_changed): New function.
5865 (_initialize_frame): Attach target_changed observer.
5866 * regcache.c: Include "observer.h".
5867 (regcache_observer_target_changed): New function.
5868 (_initialize_regcache): Attach target_changed observer.
5869 * valops.c: Include "observer.h".
5870 (value_assign): Notify target_changed event when modifying register.
5871 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5872
5873 2004-04-26 Orjan Friberg <orjanf@axis.com>
5874
5875 From Paul Koning <pkoning@equallogic.com>:
5876 * breakpoint.c (free_valchain): New function.
5877 (insert_bp_location, delete_breakpoint): Use free_valchain.
5878 (remove_breakpoint): Do not remove the valchain.
5879 (bpstat_stop_status): If not stopped by watchpoint, skip
5880 watchpoints when generating stop status list.
5881 * infrun.c (handle_inferior_event): Make
5882 stepped_after_stopped_by_watchpoint a global variable.
5883 * remote.c (remote_stopped_data_address): Return watch data
5884 address rather than zero if stepped_after_stopped_by_watchpoint is
5885 set.
5886
5887 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5888
5889 Fix PR gdb/1626.
5890 * configure.in: Check for curses after termcap.
5891 On osf5.*, do not check for ncurses.
5892 * configure: Regenerate.
5893
5894 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5895
5896 * ppcobsd-nat.c: Include "ppc-tdep.h".
5897 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5898
5899 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5900 Fixes PR tdep/1623 and PR tdep/1624.
5901
5902 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5903
5904 * xmodem.h, xmodem.c: Remove files.
5905 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5906
5907 2004-04-23 Randolph Chung <tausq@debian.org>
5908
5909 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5910 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5911 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5912 for handling stackless frames.
5913 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5914
5915 2004-04-23 Randolph Chung <tausq@debian.org>
5916
5917 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5918 starts at a pc before the frame is created.
5919
5920 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5921
5922 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5923
5924 2004-04-23 Jerome Guitton <guitton@gnat.com>
5925
5926 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5927 use convert_typed_floating to get the appropriate format.
5928
5929 2004-04-22 Randolph Chung <tausq@debian.org>
5930
5931 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5932 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5933 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5934 (hppa_sign_extend): Add prototype.
5935 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5936 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5937 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5938 hppa targets will also use these functions.
5939 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5940 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5941 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5942 (hppa_gdbarch_init): Remove gdbarch setting of
5943 skip_trampoline_code, in_solib_call_trampoline and
5944 in_solib_return_trampoline.
5945 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5946 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5947 hppa_in_solib_call_trampoline.
5948 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5949 Moved from hppa-tdep.c.
5950 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5951 in_solib_call_trampoline and in_solib_return_trampoline.
5952
5953 2004-04-22 Randolph Chung <tausq@debian.org>
5954
5955 * hppa-tdep.c (hppa_debug): New variable.
5956 (find_unwind_entry, hppa_frame_cache): Add debug output.
5957 (_initialize_hppa_tdep): Add command to set debug flag.
5958
5959 2004-04-22 Andrew Cagney <cagney@redhat.com>
5960
5961 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5962 "trad-frame.h".
5963 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5964 signal trampoline unwinder.
5965 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5966
5967 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5968
5969 Add OpenBSD/powerpc support.
5970 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5971 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5972 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5973 (ppc_collect_fpregset): New prototypes.
5974 * ppcobsd-nat.c: New file.
5975 * ppcobsd-tdep.c: New file.
5976 * ppcobsd-tdep.h: New file.
5977 * rs6000-tdep.c: Include "regset.h".
5978 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5979 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5980 New functions.
5981 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5982 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5983 (rs6000-tdep.o): Update dependencies.
5984 * configure.host: Add powerpc-*-openbsd.
5985 * configure.tgt: Add powerpc-*-openbsd.
5986 * config/powerpc/obsd.mh: New file.
5987 * config/powerpc/nm-obsd.h: New file.
5988 * config/powerpc/obsd.mt: New file.
5989
5990 2004-04-22 Andrew Cagney <cagney@redhat.com>
5991
5992 * frame.h (show_frame_info): Delete declaration.
5993
5994 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5995 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5996 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5997 * frv-tdep.c (frv_frame_this_id): Ditto.
5998 * avr-tdep.c (avr_frame_this_id): Ditto.
5999
6000 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
6001
6002 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6003
6004 2004-04-22 Jim Blandy <jimb@redhat.com>
6005
6006 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6007 register number zero.
6008
6009 2004-04-21 Michael Snyder <msnyder@redhat.com>
6010
6011 * mips-tdep.c (heuristic_proc_start):
6012 Warning() already prefixes "Warning: ".
6013
6014 2004-04-21 Andrew Cagney <cagney@redhat.com>
6015
6016 * annotate.h (deprecated_annotate_starting_hook)
6017 (deprecated_annotate_stopped_hook)
6018 (deprecated_annotate_exited_hook)
6019 (deprecated_annotate_signal_hook)
6020 (deprecated_annotate_signalled_hook): Deprecate.
6021 * tracepoint.h (deprecated_create_tracepoint_hook)
6022 (deprecated_delete_tracepoint_hook)
6023 (deprecated_modify_tracepoint_hook)
6024 (deprecated_trace_find_hook)
6025 (deprecated_trace_start_stop_hook): Deprecate.
6026 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6027 * remote.h (deprecated_target_resume_hook)
6028 (deprecated_target_wait_loop_hook): Deprecate.
6029 * gdbcore.h (deprecated_exec_file_display_hook)
6030 (deprecated_file_changed_hook): Deprecate.
6031 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6032 * defs.h (deprecated_modify_breakpoint_hook)
6033 (deprecated_command_loop_hook, deprecated_show_load_progress)
6034 (deprecated_print_frame_info_listing_hook)
6035 (deprecated_query_hook, deprecated_warning_hook)
6036 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6037 (deprecated_delete_breakpoint_hook)
6038 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6039 (deprecated_readline_begin_hook, deprecated_readline_hook)
6040 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6041 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6042 (deprecated_context_hook, deprecated_target_wait_hook)
6043 (deprecated_attach_hook, deprecated_detach_hook)
6044 (deprecated_call_command_hook, deprecated_set_hook)
6045 (deprecated_error_hook, deprecated_error_begin_hook)
6046 (deprecated_ui_load_progress_hook): Deprecate.
6047 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6048 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6049 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6050 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6051 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6052 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6053 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6054 * annotate.c, aix-thread.c: Update.
6055
6056 2004-04-21 Andrew Cagney <cagney@redhat.com>
6057
6058 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6059 * vaxnbsd-tdep.c: Include "gdb_string.h".
6060
6061 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6062 (add_symbol_file_from_memory_command): #if 0 function body, call
6063 error instead.
6064
6065 2004-04-21 Andrew Cagney <cagney@redhat.com>
6066
6067 * gdbcore.h: Update copyright.
6068 (deprecated_add_core_fns): Rename add_core_fns.
6069 * win32-nat.c (_initialize_core_win32): Update.
6070 * sun3-nat.c (_initialize_core_sun3): Update.
6071 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6072 * rs6000-nat.c (_initialize_core_rs6000): Update.
6073 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6074 * nto-tdep.c (_initialize_nto_tdep): Update.
6075 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6076 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6077 * mips-nat.c (_initialize_core_mips): Update.
6078 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6079 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6080 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6081 * lynx-nat.c (_initialize_core_lynx): Update.
6082 * irix5-nat.c (_initialize_core_irix5): Update.
6083 * i386-interix-nat.c (_initialize_core_interix): Update.
6084 * cris-tdep.c (_initialize_cris_tdep): Update.
6085 * corelow.c (deprecated_add_core_fns): Update.
6086 * core-regset.c (_initialize_core_regset): Update.
6087 * core-aout.c (_initialize_core_aout): Update.
6088 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6089 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6090 * alpha-nat.c (_initialize_core_alpha): Update.
6091
6092 2004-04-21 Jim Blandy <jimb@redhat.com>
6093
6094 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6095
6096 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
6097
6098 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6099 Delete.
6100 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6101 (read_attribute_value): Update calls to dwarf_alloc_block.
6102 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6103 dwarf2_tmp_obstack.
6104 (psymtab_to_symtab_1): Likewise. Clean up using
6105 free_stack_comp_unit.
6106 (add_to_cu_func_list): Use the comp_unit_obstack.
6107
6108 2004-04-19 Joel Brobecker <brobecker@gnat.com>
6109
6110 * dwarf2read.c (dwarf2_flag_true_p): New function.
6111 (die_is_declaration): Use the function above. Add some comments.
6112
6113 2004-04-19 Mark Kettenis <kettenis@gnu.org>
6114
6115 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6116 architecture when registering sparcnbsd_core_osabi_sniffer.
6117 Adjust comment.
6118
6119 2004-04-18 Mark Kettenis <kettenis@gnu.org>
6120
6121 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6122 return value.
6123
6124 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6125 * i386-tdep.c: Correct register numbering scheme comments
6126 throughout.
6127 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6128 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6129 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6130 (i386_gdb_arch_init): Likewise.
6131
6132 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6133 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6134 ppcnbsd-tdep.o.
6135
6136 * m68k-tdep.h: Tweak comments.
6137 * m68k-tdep.c: Tweak comment.
6138
6139 2004-04-17 Randolph Chung <tausq@debian.org>
6140
6141 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6142 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6143 (hppa_hpux_som_init_abi): Set is_elf to 0.
6144 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6145 * hppa-tdep.c (low_text_segment_address): Remove global.
6146 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6147 section offset to calculate segment address.
6148 (internalize_unwinds): Define low_text_segment_address as local and
6149 pass to record_text_segment_lowaddr for ELF targets.
6150 (hppa_gdbarch_init): Zero fill tdep structure.
6151 (hppa_dump_tdep): Print tdep structure.
6152 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6153
6154 2004-04-17 Randolph Chung <tausq@debian.org>
6155
6156 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6157 (hppa_gdbarch_init): Set pseudo_register_read.
6158 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6159 * regcache.c (supply_register): Remove check for
6160 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6161
6162 2004-04-17 Randolph Chung <tausq@debian.org>
6163
6164 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6165 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6166 (hpread_adjust_stack_address): Move to hpread.c.
6167 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6168 obj_private_struct): Move from tm-hppa.h.
6169 * hpread.c (hppa-tdep.h): Include.
6170 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6171 (hpread_read_function_type, hpread_read_doc_function_type)
6172 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6173 directly.
6174 * pa64solib.c (hppa-tdep.h): Include.
6175 * somsolib.c (hppa-tdep.h): Include.
6176 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6177 inferior_status): Remove unused forward declarations.
6178 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6179 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6180 obj_private_struct): Move to hppa-tdep.h.
6181 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6182
6183 2004-04-17 Randolph Chung <tausq@debian.org>
6184
6185 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6186 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6187 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6188 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6189 Remove forward declaration and make static.
6190 (hppa_reg_struct_has_addr): Remove.
6191
6192 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6193
6194 * observer.sh: Move comments in sed command to first column.
6195
6196 2004-04-16 Jason Molenda (jmolenda@apple.com)
6197
6198 * frame.c: Minor typeo corrections in comments.
6199
6200 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6201
6202 * observer.c (observer_test_first_notification_function): Update
6203 function profile.
6204 (observer_test_second_notification_function): Likewise.
6205 (observer_test_third_notification_function): Likewise.
6206
6207 2004-04-16 Mark Kettenis <kettenis@gnu.org>
6208
6209 From Brian Ford <ford@vss.fsi.com>:
6210 * i386-tdep.c (i386_coff_init_abi): New function.
6211 * i386-tdep.h (i386_coff_init_abi): New prototype.
6212 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6213 register number translation functions for DWARF and DWARF 2.
6214
6215 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6216
6217 * dwarf2read.c: Back out my previous change, it was incorrect.
6218
6219 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
6220
6221 * dwarf2read.c: Include "hashtab.h".
6222 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6223 has_namespace_info.
6224 (struct partial_die_info): Add comments. Use bitfields to reduce
6225 memory footprint. Add scope, scope_set, has_specification,
6226 spec_offset, die_parent, die_child, and die_sibling.
6227 (peek_die_abbrev): Add prototype.
6228 (partial_read_comp_unit_head): New function, broken out from
6229 dwarf2_build_psymtabs_hard.
6230 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6231 Use partial_read_comp_unit_head. Initialize the CU and
6232 comp_unit_obstack. Update calls to read_partial_die and
6233 scan_partial_symbols. Use free_stack_comp_unit and
6234 load_partial_dies.
6235 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6236 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6237 Update calls to helper functions. Remove NAMESPACE argument.
6238 Update comments.
6239 (partial_die_parent_scope, partial_die_full_name): New functions.
6240 (add_partial_symbol): Remove namespace argument. Update call to
6241 pdi_needs_namespace. Use partial_die_full_name. Handle
6242 DW_TAG_namespace. Check has_namespace_info flag.
6243 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6244 tag. Handle namespaces.
6245 (add_partial_namespace, add_partial_enumeration): Simplify.
6246 (guess_structure_name): New function, derived from
6247 add_partial_structure.
6248 (add_partial_structure): Remove.
6249 (determine_class_name): Update comment.
6250 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6251 (is_type_tag_for_partial, load_partial_dies): New functions.
6252 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6253 Record specifications instead of following them immediately.
6254 (find_partial_die_in_comp_unit, find_partial_die)
6255 (fixup_partial_die, free_stack_comp_unit)
6256 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6257 (partial_die_hash, partial_die_eq): New functions.
6258 * Makefile.in (hashtab_h): Define.
6259 (dwarf2read.o): Update dependencies.
6260 (observer_inc, observer_h): Move to the correct section.
6261
6262 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6263
6264 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6265 (die_is_declaration): Use the function above. Add comment.
6266
6267 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6268
6269 * dwarf2read.c (read_structure_scope): Identify stub types
6270 using die_is_declaration() only.
6271
6272 2004-04-15 Roland McGrath <roland@redhat.com>
6273
6274 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6275 argument instead of NAME.
6276 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6277 in call to symbol_file_add_with_addrs_or_offsets.
6278 (build_addr_info): New function, helper for ...
6279 (symbol_file_add_from_memory): New function.
6280 (add_symbol_file_from_memory_command): New function using that.
6281 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6282 (pre_add_symbol_hook): Add const to argument type.
6283 * symfile.h (symbol_file_add_from_memory): Declare it.
6284
6285 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6286
6287 * NEWS (New native configurations): Mention OpenBSD/vax.
6288 * configure.host: Add vax-*-openbsd*.
6289 * config/vax/obsd.mh: New file.
6290 * config/vax/nm-obsd.h: New file.
6291
6292 * vax-tdep.c: Include "regset.h".
6293 (vax_supply_gregset): New function.
6294 (vax_gregset): New variable.
6295 (vax_regset_from_core_section): New function.
6296 (vax_gdbarch_init): Set regset_from_core_section.
6297 * Makefile.in (vax-tdep.o): Update dependencies.
6298
6299 2004-04-15 Andrew Cagney <cagney@redhat.com>
6300
6301 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6302 (observer_normal_stop_notification_stub)
6303 (observer_attach_normal_stop, observer_detach_normal_stop):
6304 Delete, replaced by #include "observer.inc".
6305 * infrun.c (normal_stop): Pass "stop_bpstat" to
6306 observer_notify_normal_stop.
6307 * Makefile.in (observer_inc): Define.
6308 (observer.o): Update dependencies.
6309 (observer.h, observer.inc): New rules.
6310 * observer.h: Delete file.
6311 * observer.sh: New file.
6312
6313 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6314
6315 * vax-tdep.c (vax_frame_cache): Fix typo.
6316
6317 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6318
6319 * NEWS (New native configurations): Mention NetBSD/vax.
6320 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6321 * config/vax/nbsdelf.mh: New file.
6322 * config/vax/nbsdaout.mh: New file.
6323 * config/vax/nm-nbsd.h: New file.
6324 * config/vax/nm-nbsdaout.h: New file.
6325
6326 * vaxnbsd-tdep.c: New file.
6327 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6328 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6329 * config/vax/nbsd.mt: New file.
6330 * config/vax/tm-nbsd.h: New file.
6331
6332 * Makefile.in (vaxbsd-nat.o): New dependency.
6333
6334 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6335 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6336 struct_addr arguments. Don't push return value address.
6337 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6338 arguments to vax_store_arguments. Store return value address in
6339 R1.
6340 (vax_store_struct_return, vax_extract_return_value)
6341 (vax_store_return_value): Remove functions.
6342 (vax_return_value): New function.
6343 (vax_gdbarch_init): Set return value. Don't set
6344 deprecated_store_struct_return, deprecated_extract_struct_return
6345 and deprecated_store_return_value.
6346
6347 2004-04-14 Andreas Schwab <schwab@suse.de>
6348
6349 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6350 value buffer.
6351 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6352
6353 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6354
6355 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6356 (vax_unwind_dummy_id): New functions.
6357 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6358 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6359 variables.
6360 (vax_fix_call_dummy): Remove function.
6361 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6362 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6363 call_dummy_location, deprecated_call_dummy_words,
6364 deprecated_sizeof_call_dummy_words,
6365 deprecated_call_dummy_breakpoint_offset,
6366 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6367 and deprecated_dummy_write_sp.
6368
6369 2004-04-13 David Carlton <carlton@kealia.com>
6370
6371 * MAINTAINERS: Move myself to "paper trail" section.
6372
6373 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6374
6375 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6376 "trad-frame.h".
6377 (vax_frame_init_saved_regs): Remove function.
6378 (vax_sigtramp_saved_pc): Remove function.
6379 (vax_frame_saved_pc): Remove function.
6380 (vax_frame_args_address): Remove function.
6381 (vax_frame_num_args): Rewrite.
6382 (vax_frame_chain): Remove function.
6383 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6384 VAX_FP_REGNUM.
6385 (vax_pop_frame): Likewise.
6386 (vax_saved_pc_after_call): Remove function.
6387 (struct vax_frame_cache): New structure.
6388 (vax_frame_cache): New function.
6389 (vax_frame_this_id): New function.
6390 (vax_frame_prev_register): New function.
6391 (vax_frame_unwind): New variable.
6392 (vax_frame_sniffer): New function.
6393 (vax_frame_base_address): New function.
6394 (vax_frame_args_address): New function.
6395 (vax_frame_base): New variable.
6396 (vax_unwind_pc): New function.
6397 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6398 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6399 deprecated_frame_chain, deprecated_frame_saved_pc,
6400 deprecated_frame_args_address and
6401 deprecated_frame_init_saved_regs.
6402 * Makefile.in (vax-tdep.o): Update dependencies.
6403
6404 * vaxbsd-nat.c: New file.
6405
6406 * vax-tdep.h: Update copyright year. Adjust comments.
6407 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6408 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6409 (vax_regnum): New enum. Replacing...
6410 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6411 (VAX_PS_REGNUM): ... these removed macros.
6412 * vax-tdep.c (vax_register_name): Remove prototype.
6413 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6414 (vax_register_byte, vax_register_raw_size,
6415 vax_register_virtual_size, vax_register_virtual_type): Remove
6416 functions.
6417 (vax_register_type): New function.
6418 (vax_breakpoint_from_pc): Reorganize.
6419 (vax_gdbarch_init): Set register_type. Don't set
6420 deprecated_register_size, deprecated_register_bytes,
6421 deprecated_register_byte, deprecated_register_raw_size,
6422 deprecated_max_register_raw_size,
6423 deprecated_register_virtual_size,
6424 deprecated_max_register_virtual_size and
6425 deprecated_register_virtual_type. Add comment on stack direction.
6426
6427 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6428
6429 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6430 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
6431 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
6432
6433 2004-04-10 Randolph Chung <tausq@debian.org>
6434
6435 * MAINTAINERS (write after approval): Add myself.
6436
6437 2004-04-07 Randolph Chung <tausq@debian.org>
6438
6439 * hppa-tdep.c (hppa_inner_than): Remove.
6440 (is_pa_2): Remove unused static variable.
6441 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
6442
6443 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6444
6445 * language.h (language_defn): Add new la_post_parser field.
6446 * parser-defs.h (null_post_parser): New declaration (default for
6447 la_post_parser).
6448
6449 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6450 insert call to that function.
6451 (parse_exp_in_context): New function, including code formerly in
6452 parse_exp_1. Calls language-dependent post-parser after
6453 prefixification.
6454 (parse_expression_in_context): New exported function.
6455 (null_post_parser): New definition.
6456 * expression.h (parse_expression_in_context): Add declaration.
6457
6458 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6459 * c-lang.c (c_language_defn): Ditto.
6460 (cplus_language_defn): Ditto.
6461 (asm_language_defn): Ditto.
6462 (minimal_language_defn): Ditto.
6463 * f-lang.c (f_language_defn): Ditto.
6464 * jv-lang.c (java_language_defn): Ditto.
6465 * language.c (unknown_language_defn): Ditto.
6466 (auto_language_defn): Ditto.
6467 (local_language_defn): Ditto.
6468 * m2-lang.c (m2_language_defn): Ditto.
6469 * scm-lang.c (scm_language_defn): Ditto.
6470 * obj-lang.c (objc_language_defn): Ditto.
6471
6472 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6473
6474 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6475 (amd64nbsd_mcontext_addr): New function.
6476 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6477 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6478 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6479
6480 * corelow.c (core_xfer_partial): Fix coding standards violation.
6481 Add support for TARGET_OBJECT_WCOOKIE.
6482
6483 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6484 deprecated_pc_in_sigtramp.
6485 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6486 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6487 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6488 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6489 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6490 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6491 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6492
6493 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6494 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6495 Fix typo.
6496
6497 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6498 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6499 (amd64_collect_fxsave): Likewise.
6500
6501 * i386-sol2-tdep.c: Include "gdb_string.h".
6502 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6503 name.
6504 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6505
6506 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6507
6508 * i386-sol2-tdep.c: Include "solib-svr4.h".
6509 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6510 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6511 * config/i386/tm-i386sol2.h: Include :solib.h".
6512 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6513 solib-svr4.o and solib-legacy.o.
6514 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6515 solib-svr4.o.
6516
6517 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6518
6519 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6520 whether a register is supplied by PTRACE_GETFPREGS.
6521 (store_inferior_registers): Likewise.
6522 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6523 whether a register is supplied by PT_GETFPREGS.
6524 (store_inferior_registers): Likewise.
6525
6526 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6527 * config/i386/linux64.mt (TDEPFILES): Likewise.
6528
6529 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6530
6531 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6532 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6533 the program counter is in the range specified by `struct
6534 gdbarch_tdep'.
6535 * amd64-linux-tdep.c: Include "symtab.h".
6536 (amd64_linux_pc_in_sigtramp): Remove function.
6537 (amd64_linux_sigtramp_p): New function.
6538 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6539 deprecated_pc_in_sigtramp.
6540 * amd64nbsd-tdep.c: Include "symtab.h".
6541 (amd64nbsd_sigtramp_p): New function.
6542 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6543 deprecated_pc_in_sigtramp.
6544 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6545 few comments.
6546 (amd64obsd_pc_in_sigtramp): Remove function.
6547 (amd64obsd_sigtramp_p): New function.
6548 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6549 deprecated_pc_in_sigtramp.
6550 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6551 (i386bsd_pc_ins_sigtramp): Remove prototype.
6552 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6553 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6554 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6555 the program counter is in the range specified by `struct
6556 gdbarch_tdep'.
6557 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6558 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6559 (i386_go32_pc_in_sigtramp): Remove function.
6560 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6561 Initialize TDEP->sigtramp_p.
6562 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6563 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6564 deprecated_pc_in_sigtramp.
6565 * i386-linux-tdep.c: Adjust comments.
6566 (i386_linux_pc_in_sigtramp): Remove function.
6567 (i386_linux_sigtramp_p): New function.
6568 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6569 deprecated_pc_in_sigtramp.
6570 * i386-nto-tdep.c: Update copyright year.
6571 (i386nto_pc_in_sigtramp): Remove function.
6572 (i386nto_sigtramp_p): New function.
6573 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6574 SP_REGNUM.
6575 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6576 deprecated_pc_in_sigtramp.
6577 * i386-sol2-tdep.c: Update copyright year.
6578 (i386_sol2_pc_in_sigtramp): Remove function.
6579 (i386_sol2_sigtramp_p): New function.
6580 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6581 deprecated_pc_in_sigtramp.
6582 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6583 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6584 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6585 deprecated_sigtramp_start and deprecated_sigtramp_end.
6586 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6587 (i386nbsd_pc_in_sigtramp): Remove function.
6588 (i386nbsd_sigtramp_p): New function.
6589 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6590 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6591 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6592 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6593 (i386obsd_pc_in_sigtramp): Remove function.
6594 (i386obsd_sigtramp_p): New function.
6595 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6596 functions.
6597 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6598 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6599 TDEP->sigtramp_p.
6600 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6601 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6602 dependencies.
6603
6604 * config/i386/i386aout.mt: Remove file.
6605
6606 * configure.tgt: Remove i[34567]86-*-go32*,
6607 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6608 and i[34567]86-*-isc*. Set gdb_target to i386 for
6609 i[34567]86-*-netware* and i[34567]86-*-*.
6610 * config/i386/i386.mt: New file.
6611 * config/i386/embed.mt: Remove file.
6612 * config/i386/go32.mt: Remove file.
6613 * config/i386/i386nw.mt: Remove file.
6614 * config/i386/i386v.mt: Remove file.
6615 * config/i386/tm-go32.h: Remove file.
6616
6617 * tui/tui-hooks.c: Include "readline/readline.h" after
6618 "gdb_curses.h" instead of before.
6619 * tui/tui-io.c: Likewise.
6620
6621 * tui/tui.c: Fix typo in comment.
6622
6623 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6624
6625 2004-04-08 Andrew Cagney <cagney@redhat.com>
6626
6627 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6628 (deprecated_exception_support_initialized): Declare.
6629 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
6630 (initialize_hp_cxx_exception_support)
6631 (child_enable_exception_callback): Update.
6632 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6633 (deprecated_exception_support_initialized): Rename
6634 deprecated_exception_catchpoints_are_fragile and
6635 deprecated_exception_support_initialized.
6636 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6637
6638 * symtab.c (deprecated_hp_som_som_object_present): Rename
6639 hp_som_som_object_present.
6640 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6641 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6642 Update. Delete extern declaration.
6643 * valops.c (hp_som_som_object_present): Ditto.
6644 * parse.c (deprecated_hp_som_som_object_present)
6645 (parse_nested_classes_for_hpacc): Ditto.
6646 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6647 * hppa-hpux-tdep.c (hp_som_som_object_present)
6648 (initialize_hp_cxx_exception_support): Ditto.
6649 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6650 * cp-valprint.c (hp_som_som_object_present)
6651 (cp_print_class_method): Ditto.
6652 * c-typeprint.c (hp_som_som_object_present):
6653 (c_type_print_base): Ditto.
6654 * c-exp.y (hp_som_som_object_present): Ditto.
6655
6656 2004-04-08 Andrew Cagney <cagney@redhat.com>
6657
6658 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6659 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6660 (frame_unwind_find_by_frame): Re-implement the unwind code so
6661 that it can both prepend and append sniffers. Replace
6662 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6663 * tramp-frame.c (tramp_frame_append): Use
6664 frame_unwind_prepend_unwinder.
6665 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6666 frame_unwind_register_unwinder.
6667 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6668 tramp_frame_append.
6669 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6670 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6671 (mips_linux_init_abi): Update.
6672
6673 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6674
6675 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6676 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6677 file support.
6678
6679 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6680
6681 * ia64-tdep.c (elf.h): Don't include.
6682 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6683
6684 2004-04-07 Jason Molenda (jmolenda@apple.com)
6685
6686 * frame.h: Typeo corrections in comments.
6687
6688 2004-04-07 Jim Blandy <jimb@redhat.com>
6689
6690 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6691 %esp and %ebp
6692
6693 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6694
6695 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6696 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6697 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6698 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6699 and solib-legacy.o.
6700 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6701 solib-svr4.o.
6702 * config/sparc/tm-sol2.h: Update copyright year. Include
6703 "solib.h".
6704
6705 * sparc-sol2-tdep.c: Update copyright year. Include
6706 "solib-svr4.h".
6707 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6708 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6709 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6710 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6711 dependencies.
6712
6713 2004-04-06 Andrew Cagney <cagney@redhat.com>
6714
6715 * infttrace.c: Include "infttrace.h".
6716 * infttrace.h: Include "target.h".
6717 * Makefile.in (infttrace_h): Update.
6718 (infttrace.o): Update.
6719
6720 2004-04-06 Andrew Cagney <cagney@redhat.com>
6721
6722 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6723 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6724 move extern declarations from here ...
6725 * infttrace.h: ... to here.
6726 * Makefile.in (hppah-nat.o): Update dependencies.
6727
6728 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6729 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6730 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6731 (hppa_breakpoint_from_pc): Delete.
6732
6733 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6734
6735 2004-04-05 Andrew Cagney <cagney@redhat.com>
6736
6737 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6738 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6739 <sys/file.h>.
6740
6741 2004-04-06 Randolph Chung <tausq@debian.org>
6742
6743 Committed by Andrew Cagney (mechanical change).
6744 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6745 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6746 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6747 child_enable_exception_callback, current_ex_event,
6748 null_symtab_and_line, child_get_current_exception_event,
6749 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6750 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6751 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6752 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6753 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6754 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6755 Move hpux-specific definitions ...
6756 * hppa-hpux-tdep.c: ... to here.
6757
6758 2004-04-05 Andrew Cagney <cagney@redhat.com>
6759
6760 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6761 skip_prologue_using_sal.
6762
6763 2004-04-05 Andrew Cagney <cagney@redhat.com>
6764
6765 * config/i386/tm-i386.h: Delete file.
6766 * config/i386/tm-vxworks.h: Update copyright, do not include
6767 "tm-i386.h".
6768 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6769 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6770 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6771 * config/i386/ncr3000.mt (TM_FILE): Delete.
6772 * config/i386/interix.mt (TM_FILE): Delete.
6773 * config/i386/i386v.mt (TM_FILE): Delete.
6774 * config/i386/i386nw.mt (TM_FILE): Delete.
6775 * config/i386/i386gnu.mt (TM_FILE): Delete.
6776 * config/i386/i386aout.mt (TM_FILE): Delete.
6777 * config/i386/embed.mt (TM_FILE): Delete.
6778
6779 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6780
6781 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6782 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6783 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6784 (accg7_regnum): New constants.
6785 (last_spr_regnum, last_pseudo_regnum): Update.
6786 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6787 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6788 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6789 for accg registers.
6790 (frv_register_sim_regno): Update spr_map[].
6791
6792 2004-04-04 Andrew Cagney <cagney@redhat.com>
6793
6794 * config/mips/xm-riscos.h: Delete.
6795 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6796 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6797 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6798 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6799 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6800 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6801 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6802 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6803 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6804 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6805 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6806 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6807 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6808 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6809 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6810 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6811 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6812 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6813 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6814 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6815 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6816 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6817 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6818 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6819 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6820 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6821
6822 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6823 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6824 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6825 * configure.host: Remove m680[01]0-sun-sunos3*,
6826 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6827 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6828 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6829 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6830 mips-*-riscos*.
6831 * NEWS: Mention removed systems.
6832
6833 2004-04-04 Andrew Cagney <cagney@redhat.com>
6834
6835 GDB 6.1 release created from 6.1 branch.
6836
6837 2004-04-04 Andrew Cagney <cagney@redhat.com>
6838
6839 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6840 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6841 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6842
6843 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6844 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6845 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6846
6847 2004-04-03 Jim Blandy <jimb@redhat.com>
6848
6849 * MAINTAINERS: Chris Faylor has changed employers; add him to
6850 "paper trail" section, and update his E-mail address.
6851
6852 2004-04-03 Andrew Cagney <cagney@redhat.com>
6853
6854 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6855 generic dummy frames.
6856 * dummy-frame.c: Update copyright.
6857 (dummy_frame_sniffer): Delete check for generic dummy frames.
6858
6859 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6860 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6861 (REG_PARM_STACK_SPACE): Delete.
6862 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6863 Inline reference to REG_PARM_STACK_SPACE.
6864
6865 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6866 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6867 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6868 (FRAME_BASE_BEFORE_SIGTRAMP)
6869 (hppa32_hpux_frame_base_before_sigtramp)
6870 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6871 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6872 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6873 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6874 (FRAME_BASE_BEFORE_SIGTRAMP)
6875 (hppa64_hpux_frame_base_before_sigtramp)
6876 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6877
6878 2004-04-03 Andrew Cagney <cagney@redhat.com>
6879
6880 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6881
6882 2004-04-02 Andrew Cagney <cagney@redhat.com>
6883
6884 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6885 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6886 * dummy-frame.h: Delete out-of-date comments.
6887 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6888 * gdbarch.h, gdbarch.c: Re-generate.
6889
6890 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6891
6892 Committed by Andrew Cagney <cagney@redhat.com>.
6893 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6894 into account an instruction saving a register if we have already
6895 seen an earlier instruction saving that same register.
6896
6897 2004-04-02 Andrew Cagney <cagney@redhat.com>
6898
6899 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6900 * gdbarch.h, gdbarch.c: Re-generate.
6901 * frame.c (legacy_get_prev_frame): Delete references to
6902 DEPRECATED_INIT_FRAME_PC_FIRST.
6903
6904 * infrun.c (pc_in_sigtramp): Delete function.
6905 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6906 get_frame_type.
6907
6908 2004-04-02 Andrew Cagney <cagney@redhat.com>
6909
6910 * infrun.c (handle_step_into_function): Delete code conditional on
6911 legacy_frame_p.
6912 (handle_inferior_event, step_over_function): Ditto.
6913
6914 2004-04-02 Andrew Cagney <cagney@redhat.com>
6915
6916 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6917 "previous frame inner to this frame" test.
6918
6919 2004-04-02 Andrew Cagney <cagney@redhat.com>
6920
6921 * frame.c (safe_frame_unwind_memory): New function.
6922 * frame.h (safe_frame_unwind_memory): Declare. Update description
6923 of /safe_/ methods.
6924 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6925 "next_frame". Use safe_frame_unwind_memory.
6926 (tramp_frame_sniffer): Update call to tramp_frame_start.
6927
6928 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6929
6930 * dwarf2read.c (dwarf2_objfile_data_key): New.
6931 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6932 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6933 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6934 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6935 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6936 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6937 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6938 Remove variables.
6939 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6940 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6941 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6942 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6943 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6944 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6945 Remove macros.
6946 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6947 data.
6948 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6949 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6950 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6951 (read_partial_die, read_full_die, read_indirect_string)
6952 (dwarf_decode_line_header, dwarf_decode_macros)
6953 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6954 Update uses of removed variables.
6955 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6956 of removed macros.
6957 (_initialize_dwarf2_read): New function.
6958 * symfile.h (dwarf2_has_info): Update prototype.
6959 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6960 * elfread.c (elf_symfile_read): Likewise.
6961
6962 2004-04-01 Jim Blandy <jimb@redhat.com>
6963
6964 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6965 function for register numbers on all the rs6000-derived targets.
6966 (rs6000_gdbarch_init): Don't register a separate
6967 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6968 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6969 variants.
6970
6971 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6972 numbering.
6973
6974 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6975
6976 * valarith.c: Update copyright notice.
6977 (value_add): Handle range types.
6978 (value_sub): Ditto.
6979 (value_equal): Ditto.
6980 (value_less): Ditto.
6981 (value_neg): Ditto.
6982 (value_complement): Ditto.
6983 (value_binop): Simplify slightly by using is_integral_type and
6984 eliminiating unnecessary COERCE_ENUMs.
6985
6986 2004-03-31 Andrew Cagney <cagney@redhat.com>
6987
6988 * frame.h (frame_unwind_id): Declare.
6989 * frame.c (frame_unwind_id): New function.
6990 (get_prev_frame_1): New function.
6991 (frame_debug_got_null_frame): New function.
6992 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6993 code proper to prev_frame, update description.
6994 * infrun.c (step_over_function): Use frame_unwind_id.
6995
6996 2004-04-31 J. Brobecker <brobecker@gnat.com>
6997
6998 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6999 (hppa64_push_dummy_call): Likewise.
7000
7001 2004-03-30 Jim Blandy <jimb@redhat.com>
7002
7003 From Ulrich Weigand:
7004 * utils.c (query): Do not use a va_list variable multiple times.
7005
7006 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7007
7008 * Makefile.in (linux_nat_h): Update dependencies.
7009 * configure.in: Check for <gnu/libc-version.h>.
7010 * configure: Regenerate.
7011 * config.in: Regenerate.
7012 * linux-nat.h: Include "target.h". Add waitstatus field to
7013 struct lwp_info.
7014 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7015 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7016 to.
7017 (lin_lwp_handle_extended): New function. Handle clone events.
7018 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7019 thread exit events.
7020 (child_wait): Handle clone events.
7021 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7022 * linux-nat.c (linux_enable_event_reporting): Turn on
7023 PTRACE_O_TRACECLONE.
7024 (linux_handle_extended_wait): Handle clone events.
7025 * thread-db.c: Include <gnu/libc-version.h>.
7026 (struct private_thread_info): Add dying flag.
7027 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7028 higher.
7029 (attach_thread): Update comments. Handle dying threads.
7030 (detach_thread): Set the dying flag.
7031 (check_event): Always call attach_thread.
7032
7033 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7034
7035 * mips-tdep.c (mips_pdr_data): New.
7036 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7037 (_initialize_mips_tdep): Initialize mips_pdr_data.
7038
7039 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
7040
7041 * minsyms.c (install_minimal_symbols): Move dropping leading
7042 char from linkage name from here...
7043 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7044 test for "__gnu_compiled*" symbols.
7045
7046 2004-03-28 Jim Blandy <jimb@redhat.com>
7047
7048 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7049 registers to temp register r0 and byte stores as prologue
7050 instructions.
7051
7052 2004-03-28 Andrew Cagney <cagney@redhat.com>
7053
7054 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7055 arm*-*-*.
7056
7057 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7058
7059 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7060 and switch the layout to force a display of register window.
7061
7062 2004-02-26 J. Brobecker <brobecker@gnat.com>
7063
7064 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7065 of the INTEGER class.
7066
7067 2004-03-26 Jim Blandy <jimb@redhat.com>
7068
7069 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7070 bytes long on PPC GNU/Linux.
7071
7072 2004-03-26 David Carlton <carlton@kealia.com>
7073
7074 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7075
7076 2004-03-25 Andrew Cagney <cagney@redhat.com>
7077
7078 * PROBLEMS: Add general section titles, remove references to
7079 specific releases.
7080
7081 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
7082
7083 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7084 INT_REGISTER_SIZE.
7085 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7086 FP_REGISTER_VIRTUAL_SIZE.
7087 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7088 of DEPRECATED_REGISTER_RAW_SIZE.
7089 (arm_register_type): Add gdbarch argument.
7090 (arm_register_raw_size, arm_register_virtual_size): Delete.
7091 (arm_register_byte, arm_extract_return_value)
7092 (arm_store_return_value, arm_get_longjmp_target): Update references
7093 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7094 (arm_gdbarch_init): Likewise. Don't set
7095 deprecated_register_raw_size, deprecated_register_virtual_size,
7096 deprecated_max_register_raw_size,
7097 deprecated_max_register_virtual_size, or
7098 deprecated_max_register_virtual_type. Do set register_type.
7099 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7100 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7101 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7102 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7103 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7104 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7105 INT_REGISTER_SIZE.
7106 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7107 (remote_rdp_store_register): Likewise.
7108
7109 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
7110
7111 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7112 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7113 to after osabi initialization.
7114 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7115 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7116 functions.
7117 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7118 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7119 variables.
7120 (mips_linux_init_abi): Append signal trampoline unwinders.
7121
7122 2004-03-24 Andrew Cagney <cagney@redhat.com>
7123
7124 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7125 * tramp-frame.c: Include "gdb_assert.h".
7126 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7127 correct sizeof.
7128 (tramp_frame_append): Validate the tramp frame's instructions.
7129 * Makefile.in (tramp-frame.o): Update dependencies.
7130
7131 2004-03-23 Andrew Cagney <cagney@redhat.com>
7132
7133 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7134
7135 2004-03-23 Andrew Cagney <cagney@redhat.com>
7136
7137 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7138 Nasser as past testsuite/lib/ (and other) maintainers.
7139
7140 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7141
7142 * infcmd.c (attach_command): Reread symbols if we already have
7143 an exec file.
7144
7145 2004-03-23 Andrew Cagney <cagney@redhat.com>
7146
7147 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7148
7149 2004-03-23 Andrew Cagney <cagney@redhat.com>
7150
7151 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7152 * gdbarch.h, gdbarch.c: Re-generate.
7153 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7154 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7155 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7156 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
7157 (DEPRECATED_SIGTRAMP_START): Update.
7158 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
7159 (DEPRECATED_SIGTRAMP_START): Update.
7160 * blockframe.c (find_pc_sect_partial_function): Update.
7161 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7162
7163 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7164
7165 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7166 if necessary.
7167
7168 2004-03-23 Andrew Cagney <cagney@redhat.com>
7169
7170 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7171 predicate, deprecate.
7172 * gdbarch.h, gdbarch.c: Re-generate.
7173 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7174 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7175 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7176 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7177 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7178 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7179 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7180 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7181 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7182 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7183 * blockframe.c (find_pc_partial_function): Update.
7184 * breakpoint.c (bpstat_what): Update.
7185 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7186 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7187 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7188 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7189 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7190 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7191 * i386-nto-tdep.c (i386nto_init_abi): Update.
7192 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7193 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7194 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7195 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7196 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7197 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7198 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7199 * infrun.c (pc_in_sigtramp): Update.
7200 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7201 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7202 * mips-tdep.c (mips_gdbarch_init): Update.
7203 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7204 * ppc-linux-tdep.c: Update comment.
7205 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7206 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7207 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7208 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7209 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7210 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7211 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7212 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7213 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7214 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
7215
7216 2004-03-23 Andrew Cagney <cagney@redhat.com>
7217
7218 * tramp-frame.h, tramp-frame.h: New files.
7219 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7220 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7221
7222 * Makefile.in: Update all dependencies.
7223
7224 2004-03-23 Andrew Cagney <cagney@redhat.com>
7225
7226 * Makefile.in (trad_frame_h): Add $(frame_h).
7227 * trad-frame.h: Update copyright. Include "frame.h".
7228 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7229 (trad_frame_set_id, trad_frame_get_id): Declare.
7230 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7231 * trad-frame.c: Update copyright.
7232 (struct trad_frame_cache): Define.
7233 (trad_frame_cache_zalloc): New function.
7234 (trad_frame_set_id, trad_frame_get_id): New functions.
7235 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
7236
7237 2004-03-22 Andrew Cagney <cagney@redhat.com>
7238
7239 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7240 s390_pltstub_unwind_cache.
7241 (s390_stub_frame_unwind_cache): Rename
7242 s390_pltstub_frame_unwind_cache.
7243 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7244 (s390_stub_frame_prev_register): Rename
7245 s390_pltstub_frame_prev_register.
7246 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7247 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7248
7249 From Ulrich Weigand:
7250 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7251 pointer calls like PLT calls.
7252
7253 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7254
7255 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7256 PC rather than the partial function start address. Use the start
7257 address to sanity check the found PDR.
7258
7259 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7260
7261 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7262 linux_handle_extended_wait.
7263
7264 2004-03-22 Andrew Cagney <cagney@redhat.com>
7265
7266 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7267 function.
7268
7269 * frame.h (generic_pop_current_frame): Delete declaration.
7270 (deprecate_pop_dummy_frame): Deprecate
7271 generic_pop_dummy_frame.
7272 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7273 (generic_pop_current_frame): Delete function.
7274 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7275 generic_pop_current_frame.
7276 * v850-tdep.c (v850_pop_frame): Update.
7277 * mcore-tdep.c (mcore_pop_frame): Update.
7278 * sh64-tdep.c (sh64_pop_frame): Update.
7279 * h8300-tdep.c (h8300_pop_frame): Update.
7280
7281 2004-03-22 Andrew Cagney <cagney@redhat.com>
7282
7283 * frame.h (deprecated_pc_in_call_dummy): Rename
7284 generic_pc_in_call_dummy.
7285 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7286 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7287 generic_pc_in_call_dummy.
7288 (pc_in_dummy_frame): Make static.
7289 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7290 * gdbarch.h, gdbarch.c: Re-generate.
7291 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7292 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7293 (legacy_get_prev_frame): Ditto.
7294 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7295 comment.
7296
7297 2004-03-21 Andrew Cagney <cagney@redhat.com>
7298
7299 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7300 declaration and out-of-date comment.
7301 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7302 Delete function.
7303 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7304 deprecated_pc_in_call_dummy.
7305
7306 * infrun.c (handle_inferior_event): For non legacy frames, use the
7307 frame ID and frame type to identify a signal trampoline. Update
7308 comments.
7309
7310 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7311
7312 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7313 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7314
7315 2004-03-21 Andrew Cagney <cagney@redhat.com>
7316
7317 * frame-unwind.h: Update copyright.
7318 (struct frame_data): Add opaque declaration.
7319 (frame_sniffer_ftype): Declare.
7320 (struct frame_unwind): Add "unwind_data" and "sniffer".
7321 (frame_unwind_register_unwinder): Declare.
7322 (frame_unwind_find_by_frame): Add parameter "this_cache".
7323 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7324 (legacy_get_prev_frame, legacy_get_prev_frame)
7325 (get_frame_type): Pass the prologue_cache to
7326 frame_unwind_find_by_frame.
7327 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7328 "unwinder".
7329 (frame_unwind_register_unwinder): New function.
7330 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7331
7332 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7333
7334 * bcache.c (print_percentage): Use floating point to avoid
7335 incorrect results when portion*100 overflows.
7336
7337 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7338
7339 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7340 (ppc_linux_init_extra_frame_info)
7341 (ppc_linux_frameless_function_invocation)
7342 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7343 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7344 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7345 (rs6000_frame_chain): Delete declarations.
7346 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7347 (ppc_linux_init_extra_frame_info)
7348 (ppc_linux_frameless_function_invocation)
7349 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7350 (ppc_linux_init_abi): Remove registration of above deleted functions.
7351 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7352 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7353 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7354 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7355 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7356 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7357 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7358 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7359 frame management for all OSABIs.
7360
7361 2004-03-19 Andrew Cagney <cagney@redhat.com>
7362
7363 Committed by Kevin Buettner <kevinb@redhat.com>.
7364
7365 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7366 Update copyright.
7367 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7368 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7369 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7370 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7371 unwinders. #ifdef legacy frame code.
7372 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7373 "frame-base.h".
7374 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7375 (struct rs6000_frame_cache, rs6000_frame_cache)
7376 (rs6000_frame_this_id, rs6000_frame_prev_register)
7377 (rs6000_frame_sniffer, rs6000_frame_unwind)
7378 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7379 (rs6000_frame_base): Implement a traditional frame unwinder.
7380 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7381 frame unwinder.
7382
7383 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7384
7385 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7386 breakpoint address for watchpoints or the catch eventpoints.
7387 Add new paramter ``bptype''. Adjust all callers.
7388
7389 2004-03-19 Andrew Cagney <cagney@redhat.com>
7390
7391 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7392
7393 * PROBLEMS: Delete note that ARM does not use frame code, problem
7394 fixed.
7395
7396 2004-03-18 Andrew Cagney <cagney@redhat.com>
7397
7398 * stack.c (return_command): Delete code wrapped in #ifdef
7399 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7400
7401 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7402
7403 2004-03-18 Andrew Cagney <cagney@redhat.com>
7404
7405 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7406 DEPRECATED_IN_SIGTRAMP.
7407 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7408 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7409 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7410 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7411 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7412 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7413 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7414 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7415 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7416 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7417
7418 2004-03-18 Andrew Cagney <cagney@redhat.com>
7419
7420 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7421 (struct frame_base_table_entry): Define.
7422 (struct frame_base_table): Re-implement as a linked list.
7423 (frame_base_init): Re-implement.
7424 (frame_base_table): Delete function.
7425 (append_predicate): Delete function.
7426 (frame_base_append_sniffer): Update.
7427 (frame_base_set_default): Update.
7428 (frame_base_find_by_frame): Update.
7429 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7430 * Makefile.in (frame-base.o): Update dependencies.
7431
7432 2004-03-17 Andrew Cagney <cagney@redhat.com>
7433
7434 * frame.c (legacy_get_prev_frame): Pass correct frame to
7435 frame_unwind_find_by_frame.
7436
7437 2004-03-17 David Carlton <carlton@kealia.com>
7438
7439 * NEWS: Mention C++ nested types and namespaces
7440
7441 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7442
7443 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7444 and "Regressions since gdb 5.3.". Add known regressions since
7445 gdb 6.0.
7446
7447 2004-03-16 David Carlton <carlton@kealia.com>
7448
7449 * dwarf2read.c (process_structure_scope): Process children even
7450 when we're a declaration.
7451
7452 2004-03-16 Andrew Cagney <cagney@redhat.com>
7453
7454 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7455 * blockframe.c (find_pc_partial_function)
7456 (find_pc_sect_partial_function): Merge into a single
7457 find_pc_partial_function.
7458
7459 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7460
7461 * i386bsd-nat.c: s/regno/regnum/g.
7462 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7463 FP0_REGNUM.
7464 (store_inferior_registers): Likewise.
7465
7466 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7467
7468 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7469 of i387_fill_fsave.
7470 (store_inferior_registers): Call i387_collect_fsave and
7471 i387_collect_fxsave instead of i387_fill_fsave and
7472 i387_fill_fxsave.
7473
7474 2004-03-15 Andrew Cagney <cagney@redhat.com>
7475
7476 * Makefile.in (frame-unwind.o): Update dependencies.
7477 * frame-unwind.c: Include "gdb_obstack.h".
7478 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7479 parameter.
7480 (append_predicate): Delete function.
7481 (struct frame_unwind_table_entry): New structure.
7482 (struct frame_unwind_table): Replace "sniffer" with "head" and
7483 "tail".
7484 (frame_unwind_append_sniffer): Update.
7485 (frame_unwind_find_by_frame): Update.
7486 (_initialize_frame_unwind): Registe frame_unwind_init using
7487 gdbarch_data_register_pre_init.
7488
7489 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7490
7491 * i386bsd-nat.c: Update copyright year.
7492 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7493 define unconditionally.
7494
7495 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7496
7497 * i387-tdep.h (i387_collect_fsave): New prototype.
7498 * i387-tdep.c (i387_collect_fsave): New function containing most
7499 of the code from i387_fill_fsave.
7500 (i387_fill_fsave): Call i387_collect_fsave.
7501
7502 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7503
7504 * i386-linux-tdep.c: Update copyright year.
7505 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7506 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7507 svr4_ilp32_link_map_offsets instead of
7508 i386_linux_svr4_fetch_link_map_offsets.
7509
7510 2004-03-15 David Carlton <carlton@kealia.com>
7511
7512 Fix for PR c++/1553:
7513 * dwarf2read.c (read_structure_type): Determine type name by
7514 calling determine_class_name.
7515 (determine_class_name): New.
7516 (determine_prefix): Look at TYPE_TAG_NAME and call
7517 determine_class_name when appropriate.
7518 (determine_prefix_aux, class_name): Delete.
7519 (read_namespace): Set die->type.
7520
7521 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7522
7523 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7524 unused macro definition. The definition in target.h (or perhaps
7525 elsewhere) takes precedence.
7526
7527 2004-03-15 Andrew Cagney <cagney@redhat.com>
7528
7529 * ppc-tdep.h: Update copyright.
7530 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7531 function signatures to match "regsets.h".
7532 * ppc-linux-tdep.c: Include "regset.h".
7533 (ELF_GREGSET_SIZE): Delete.
7534 (right_supply_register): New function.
7535 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7536 using right_supply_register.
7537 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7538 functions.
7539 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7540 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7541 (_initialize_ppc_linux_tdep): Do not register
7542 ppc_linux_regset_core_fns.
7543 (ppc_linux_regset_from_core_section): Replace
7544 fetch_core_registers.
7545 (ppc_linux_regset_core_fns): Delete.
7546 * ppc-linux-nat.c: (right_fill_reg): New function.
7547 (supply_gregset): Update call to ppc_linux_supply_gregset.
7548 (fill_gregset): Clear the register set, use right_fill_reg.
7549 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7550 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7551
7552 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7553 unsigned.
7554
7555 2004-03-15 Andrew Cagney <cagney@redhat.com>
7556
7557 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7558 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7559 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7560 and register_gdbarch_data.
7561 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7562 (struct gdbarch_data): Replace "init" by "pre_init" and
7563 "post_init".
7564 * gdbarch.h, gdbarch.c: Re-generate.
7565 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7566 with"obstack", use OBSTACK_ZALLOC.
7567 (dwarf2_frame_ops): Delete.
7568 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7569 (dwarf2_frame_init_reg): Use gdbarch_data.
7570 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7571 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7572 (_initialize_svr4_solib): Update.
7573 * user-regs.c (_initialize_user_regs): Update.
7574 * reggroups.c (_initialize_reggroup): Update.
7575 * regcache.c (_initialize_regcache): Update.
7576 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7577 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7578 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7579 * frame-unwind.c (_initialize_frame_unwind): Update.
7580 * frame-base.c (_initialize_frame_base): Update.
7581 * user-regs.c (user_reg_add): Update.
7582 * reggroups.c (reggroup_add): Update.
7583 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7584 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7585 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7586 * frame-base.c (frame_base_table): Update.
7587 * remote.c (_initialize_remote): Update.
7588 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7589
7590 2004-03-15 Andrew Cagney <cagney@redhat.com>
7591
7592 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7593
7594 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7595
7596 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7597 * frv-linux-tdep.c: New file.
7598 * frv-tdep.c (struct gdbarch_tdep): Add new field
7599 ``sigcontext_reg_addr''.
7600 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7601 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7602 (frv_sigramp_frame_sniffer): New functions.
7603 (frv_sigtramp_frame_unwind): New static global.
7604 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7605 sniffers.
7606 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7607 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7608
7609 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7610
7611 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7612 but not via a call to error(), when unable to read memory.
7613
7614 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7615
7616 * frv-tdep.c (frv_call_dummy_words): Delete.
7617 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7618
7619 2004-03-15 Andrew Cagney <cagney@redhat.com>
7620
7621 * infrun.c (handle_step_into_function, step_over_function): Only
7622 update and use STEP_FRAME_ID when the system is using legacy
7623 frames. Update comments.
7624
7625 2004-03-14 Mark Kettenis <kettenis@gnu.org>
7626
7627 * amd64-linux-tdep.h: Remove file.
7628 * amd64-linux-tdep.c: Don't include "inferior.h" and
7629 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7630 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7631 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7632 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7633 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7634 macros.
7635 (user_to_gdb_regmap): Remove variable.
7636 (amd64_linux_gregset_reg_offset): New variable.
7637 (amd64_core_fns): Remove variable.
7638 (fetch_core_registers): Remove function.
7639 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7640 functions.
7641 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7642 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7643 * Makefile.in (amd64_linux_tdep_h): Remove.
7644 (amd64-linux-nat.o): Update dependencies.
7645 (amd64-linux-tdep.o): Update dependencies.
7646
7647 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7648 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7649 functions.
7650 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7651
7652 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7653 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7654
7655 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7656
7657 * dwarf2read.c (read_structure_type): Rename from
7658 read_structure_scope. Don't create a symbol or call process_die.
7659 Return immediately if die->type is set. Call read_type_die before
7660 dwarf2_add_member_fn.
7661 (process_structure_scope): New function.
7662 (read_enumeration_type, process_enumeration_scope): New functions,
7663 broken out from read_enumeration. Don't create the enumeration
7664 type if it has already been created.
7665 (read_enumeration): Removed.
7666 (process_die): Call read_structure_type, process_structure_scope,
7667 read_enumeration_type, and process_enumeration_scope. Just call
7668 new_symbol for base and subrange types. Add a comment about other
7669 type dies.
7670 (read_type_die): Call read_enumeration_type.
7671 (add_partial_structure, new_symbol): Update comments.
7672
7673 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7674
7675 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7676
7677 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7678
7679 * tui/tui-win.h (tui_get_cmd_list): Declare.
7680 * tui/tui-win.c (tui_command): New function.
7681 (tui_get_cmd_list): New function.
7682 (_initialize_tui_win): Moved initialization of tui command in
7683 tui_get_cmd_list.
7684
7685 * tui/tui-data.c (init_content_element): Setup new data members.
7686 (init_win_info): Likewise.
7687 (free_content_elements): Free it.
7688 * tui/tui-data.h (struct tui_data_element): Store the register
7689 content to print.
7690 (struct tui_data_info): Keep the current register group.
7691
7692 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7693
7694 * tui/tui-regs.h (tui_show_registers): Update prototype.
7695 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7696 (tui_resize_all): No need to calculate anything for register window.
7697 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7698 (tui_set_register_element, tui_set_general_regs_content): Remove.
7699 (tui_set_special_regs_content): Remove.
7700 (tui_set_general_and_special_regs_content): Remove.
7701 (tui_set_float_regs_content): Remove.
7702 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7703 (tui_set_regs_content): Remove.
7704 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7705 (tui_v_show_registers_command_support): Remove.
7706 (tui_show_registers): Use a reggroup to specify the registers to show.
7707 (tui_show_register_group): New function.
7708 (tui_display_registers_from): Compute the layout of register window
7709 and refresh with new API; be sure to delete old register windows.
7710 (tui_check_register_values): Update to use tui_get_register and
7711 tui_display_data.
7712 (tui_display_register): Just refresh the register window part.
7713 (tui_register_format): Format registers and save in tui_data_element.
7714 (tui_get_register): New to combine tui_reg_value_has_changed and
7715 tui_get_register_raw_value; fix to use the new gdb API.
7716 (tui_show_float_command): Renamed tui_reg_float_command.
7717 (tui_show_general_command): Renamed tui_reg_general_command.
7718 (tui_show_special_command): Renamed tui_reg_system_command.
7719 (_initialize_tui_regs): Remove unused commands.
7720
7721 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7722
7723 * NEWS (New native configurations): Mention OpenBSD/amd64.
7724
7725 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7726 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7727 Remove defines.
7728 * config/i386/nm-fbsd64.h: Likewise.
7729 * config/i386/nm-obsd.h: Likewise.
7730 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7731 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7732
7733 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7734
7735 * frv-tdep.c (set_variant_scratch_registers): New function.
7736 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7737 New constants.
7738
7739 From Richard Sandiford <rsandifo@redhat.com>:
7740 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7741
7742 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7743
7744 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7745 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7746 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7747 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7748 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7749 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7750 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7751 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7752 definitions from frv-tdep.c to frv-tdep.h.
7753
7754 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7755
7756 Add shared library support for FR-V FDPIC ABI:
7757 * Makefile.in (solib-frv.o): Add dependencies.
7758 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7759 New functions.
7760 (frv_push_dummy_call): Add support for FDPIC ABI.
7761 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7762 for FDPIC ABI.
7763 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7764 (frv_fdpic_find_canonical_descriptor): Declare.
7765 * solib-frv.c: New file.
7766 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7767 * config/frv/tm-frv.h (solib.h): Include.
7768
7769 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7770
7771 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7772 (frv-tdep.o): Update dependencies.
7773 * frv-tdep.h: New file.
7774 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7775 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7776 constants.
7777 (struct gdbarch_tdep): Add new member ``frv_abi''.
7778 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7779 functions.
7780 (new_variant): Set ``frv_abi'' field.
7781 (gdb_arch_init): Detect FDPIC executables.
7782
7783 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7784
7785 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7786 wrapper.
7787
7788 2004-03-11 Andrew Cagney <cagney@redhat.com>
7789
7790 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7791
7792 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7793
7794 * solist.h (master_so_list): New function.
7795 * solib.c (master_so_list): Likewise.
7796 * solib-svr4.c (enable_break): Iterate over so_list entries
7797 obtained from master list instead of entries obtained directly
7798 via svr4_current_sos().
7799
7800 2004-03-10 Ben Elliston <bje@gnu.org>
7801
7802 * MAINTAINERS: Update my mail address.
7803
7804 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7805
7806 * remote-m32r-sdi.c: Support hardware watchpoint.
7807
7808 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7809
7810 * user-regs.c: Update copyright years.
7811 (struct user_regs): Rename to gdb_user_regs.
7812 (append_user_reg, builtin_user_regs, user_regs_init)
7813 (user_reg_add, user_reg_map_name_to_regnum)
7814 (usernum_to_user_reg): Update.
7815
7816 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7817
7818 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7819 (skip_children): New functions.
7820 (locate_pdi_sibling): Call skip_children.
7821
7822 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7823
7824 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7825 * gdbtypes.c (check_typedef): Update comments.
7826
7827 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7828
7829 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7830 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7831 pointer. Update comment about comp_unit_head.
7832 (struct abbrev_info): Shorten two int flags.
7833 (dwarf_alloc_abbrev): Take a CU argument.
7834 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7835 each time through the loop. Update cleanup argument.
7836 (psymtab_to_symtab_1): Update cleanup call.
7837 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7838 abbrev_obstack.
7839 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7840 Just call obstack_free and clear the pointer.
7841
7842 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7843
7844 * infrun.c (handle_inferior_event): Remove short-circuit code for
7845 events in a different thread.
7846
7847 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7848
7849 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7850 print the whole transfer.
7851 (initialize_targets): Update description of "set debug target".
7852
7853 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7854
7855 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7856
7857 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7858
7859 * MAINTAINERS (write after approval): Add myself.
7860
7861 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7862
7863 * sh-tdep.c (sh_print_registers_info): Use for loop.
7864 Don't skip multiple registers when a float register is encountered.
7865
7866 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7867
7868 Fix PR tdep/1291.
7869 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7870 to official SH documentation.
7871
7872 2004-03-07 Andrew Cagney <cagney@redhat.com>
7873
7874 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7875 unused function.
7876
7877 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7878
7879 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7880 (arm_get_next_pc): Handle BX and BLX.
7881
7882 2004-03-07 Andrew Cagney <cagney@redhat.com>
7883
7884 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7885 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7886 HPPA_SP_REGNUM.
7887 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7888 (hppa_target_read_fp): Delete.
7889 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7890 register_virtual_size, max_register_raw_size,
7891 max_register_virtual_size, register_byte, register_size,
7892 target_read_fp, fp_regnum, and register_bytes. Set register_type
7893 instead of register_virtual_type.
7894 (hppa32_register_type, hppa64_register_type): Replace
7895 hppa32_register_virtual_type and hppa64_register_virtual_type.
7896 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7897 (HPPA_FP_REGNUM): Define.
7898
7899 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7900
7901 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7902 (pa_do_registers_info): Delete.
7903 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7904 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7905 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7906
7907 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7908 GDB_TARGET_IS_HPPA code.
7909 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7910 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7911 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7912 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7913 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7914 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7915 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7916 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7917 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7918 (hppa_frameless_function_invocation, hppa64_store_return_value)
7919 (hppa_store_struct_return, hppa64_extract_return_value)
7920 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7921 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7922 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7923 (find_proc_framesize, deposit_21, restore_pc_queue)
7924 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7925 (rp_saved, pc_in_linker_stub): Delete.
7926
7927 Unconditionally enable 64-bit frame and ABI code.
7928 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7929 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7930 push_dummy_frame, fix_call_dummy, push_arguments,
7931 call_dummy_location, extract_return_value, use_struct_convention,
7932 store_return_value, store_struct_return, saved_pc_after_call,
7933 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7934 frame_chain, frame_chain_valid, frameless_function_invocation,
7935 frame_saved_pc, and pop_frame.
7936
7937 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7938 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7939 (hppa_gdbarch_init): Do not set PC_REGNUM.
7940
7941 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7942
7943 * config/alpha/tm-fbsd.h: Remove file.
7944 * config/alpha/fbsd.mt: Tweak comment.
7945 (TM_FILE): Set to tm-alpha.h.
7946
7947 2004-03-05 Andrew Cagney <cagney@redhat.com>
7948
7949 * infrun.c (step_over_function): When non-legacy code, and no
7950 step_frame_id, use the unwinder to get the caller's frame ID.
7951
7952 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7953
7954 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7955 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7956 bfd_arch_unknown. Adjust comment.
7957
7958 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7959 * i386obsd-tdep.c: Correct spelling in comment.
7960 * i386nbsd-tdep.c: Correct spelling in comment.
7961 * sparc-tdep.c: Correct spelling in comments.
7962
7963 2004-03-05 David Carlton <carlton@kealia.com>
7964
7965 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7966 bug.
7967
7968 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7969
7970 * sparc-tdep.c: Fix typo in comment.
7971
7972 2004-03-04 J. Brobecker <brobecker@gnat.com>
7973
7974 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7975
7976 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7977
7978 * dwarf2read.c: Add comment describing memory lifetimes.
7979 (struct dwarf2_pinfo): Update comment.
7980 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7981 (read_enumeration, new_symbol): Don't use obsavestring.
7982
7983 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7984
7985 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7986 instead of amd64_fill_fxsave.
7987 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7988 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7989
7990 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7991 Reorganize code a bit.
7992
7993 2004-03-04 Orjan Friberg <orjanf@axis.com>
7994
7995 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7996 when the frame pointer is pushed. Don't set the frame pointer's
7997 address on the stack unless it's actually located there.
7998 Set the SRP's address on the stack correctly when the PC is still in
7999 the prologue.
8000 (cris_return_value): New function.
8001 (cris_gdbarch_init): Clear deprecated store_return_value,
8002 extract_return_value.
8003
8004 2004-03-02 Jim Blandy <jimb@redhat.com>
8005
8006 * stabsread.c (reg_value_complaint): The maximum register number
8007 is one less than the number of registers.
8008
8009 2004-03-02 Andrew Cagney <cagney@redhat.com>
8010
8011 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8012 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8013 trailing comma and redundant assignment of I386_ST0_REGNUM.
8014 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8015 32-bit segment registers.
8016
8017 2004-03-01 Andrew Cagney <cagney@redhat.com>
8018
8019 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8020 use frame_relative_level and get_next_frame.
8021
8022 2004-02-29 Andrew Cagney <cagney@redhat.com>
8023
8024 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8025 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8026 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8027 Delete macro.
8028
8029 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8030
8031 * inflow.c (terminal_inferior): Don't give up the terminal if we
8032 previously couldn't get the inferior's terminal state.
8033
8034 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8035
8036 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8037 PC_REGNUM.
8038
8039 2004-02-28 Andrew Cagney <cagney@redhat.com>
8040
8041 * NEWS: Refer to GDB 6.1.
8042 * README: Refer to GDB 6.1.
8043 * PROBLEMS: Refer to GDB 6.1.
8044
8045 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
8046
8047 * thread-db.c (disable_thread_signals): Remove unused function.
8048
8049 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8050
8051 * amd64-nat.c: Include "gdb_string.h".
8052 (amd64_collect_native_gregset): Zero-extend the 32-bit
8053 general-purpose registers and %eip.
8054
8055 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8056 * amd64-tdep.c (amd64_collect_fxsave): New function.
8057 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8058
8059 * i387-tdep.h: Update copyright year.
8060 (i387_collect_fxsave): New prototype.
8061 * i387-tdep.c: Update copyright year.
8062 (i387_collect_fxsave): New function containing most of the code
8063 from i387_fill_fxsave.
8064 (i387_fill_fxsave): Call i387_collect_fxsave.
8065
8066 2004-02-28 Andrew Cagney <cagney@redhat.com>
8067
8068 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8069 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8070
8071 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8072
8073 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8074
8075 2004-02-28 Andrew Cagney <cagney@redhat.com>
8076
8077 * utils.c: Use "", instead of <>, to include readline.
8078 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8079 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8080 * source.c, solib.c, exec.c, event-top.c: Ditto.
8081 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8082 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8083 * Makefile.in: Update all dependencies.
8084 (readline_tilde_h, readline_history_h): Define.
8085 (readline_headers): Delete.
8086
8087 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8088
8089 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8090 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8091 "config/i386/tm-lx64.h".
8092
8093 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8094 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8095 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8096
8097 2004-02-28 Andrew Cagney <cagney@redhat.com>
8098
8099 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8100
8101 * breakpoint.c (_initialize_breakpoint): Use
8102 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8103 Add help to show command.
8104
8105 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8106
8107 * i386-nat.c: Reformat to be closer to coding standards.
8108 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8109 `retval'. Make variables `align' and `size' local to while-loop.
8110 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8111 (_initialize_i386_nat): New prototype.
8112
8113 * tui/tui.c: Include <readline/readline.h> instead of
8114 "readline/readline.h". Include it after <term.h> and
8115 "gdb_curses.h".
8116
8117 2004-02-27 Andrew Cagney <cagney@redhat.com>
8118
8119 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8120 the new frame unwind code.
8121 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8122 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8123 PCOQ_HEAD_REGNUM.
8124
8125 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8126 "return_value" and "push_dummy_call".
8127 (hppa32_use_struct_convention): Delete unused function.
8128 (hppa32_store_return_value): Delete unused function.
8129 (hppa32_extract_return_value): Delete unused function.
8130 (hppa32_stack_align): Delete function.
8131
8132 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
8133
8134 * coffread.c (enter_linenos): Don't let rawptr reference memory
8135 outside linetab[]'s limits.
8136
8137 2004-02-27 Andrew Cagney <cagney@redhat.com>
8138
8139 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8140 inferior stack space - the stack needs to grow upwards.
8141 (hppa32_frame_align): New function.
8142 (hppa64_frame_align): Replace hppa_frame_align.
8143 (hppa_gdbarch_init): Update.
8144
8145 2004-02-26 Orjan Friberg <orjanf@axis.com>
8146
8147 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8148 (dwarf2-frame.h): Include.
8149 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8150 Remove static variables related to ABI setting.
8151 (struct gdbarch_tdep): Remove cris_abi member.
8152 (struct frame_extra_info): Remove.
8153 (cris_unwind_cache, stack_item): New structs.
8154 (cris_frame_unwind, cris_frame_base): New variables.
8155 (push_stack_item, pop_stack_item)
8156 (cris_frame_unwind_cache, cris_frame_this_id)
8157 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8158 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8159 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8160 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8161 (cris_reg_struct_has_addr): New functions.
8162 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8163 (cris_frame_saved_pc, cris_saved_pc_after_call,
8164 (cris_store_struct_return, cris_frameless_function_invocation)
8165 (cris_pop_frame, cris_skip_prologue_main)
8166 (cris_abi_original_store_return_value)
8167 (cris_abi_v2_store_return_value)
8168 (cris_abi_original_extract_return_value)
8169 (cris_abi_v2_extract_return_value)
8170 (cris_abi_original_reg_struct_has_addr)
8171 (cris_abi_v2_reg_struct_has_addr)
8172 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8173 (cris_push_return_address, cris_abi_update): Remove.
8174 (_initialize_cris_tdep): Remove ABI command.
8175 (cris_dump_tdep): Ditto.
8176 (cris_gdbarch_init): Remove ABI command.
8177 Set store_return_value, extract_return_value, push_dummy_code,
8178 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8179 frame_unwind_append_sniffer, frame_base_set_default.
8180 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8181 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8182 sizeof_call_dummy_words, get_saved_register, push_return_address,
8183 pop_frame, store_struct_return, frame_init_saved_regs,
8184 init_extra_frame_info, frameless_function_invocation, frame_chain,
8185 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8186 dummy_write_sp.
8187
8188 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8189
8190 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8191 * valprint.c (print_hex_chars): Change from static to external.
8192 (print_char_chars): New function.
8193 * printcmd.c (print_scalar_formatted): For integer and enum types
8194 that are longer than LONGEST, perform processing via appropriate
8195 print_*_chars routines.
8196
8197 2004-02-26 Andrew Cagney <cagney@redhat.com>
8198
8199 * Makefile.in: Update dependencies.
8200 Changes from Ulrich Weigand,
8201 * s390-tdep.c: Include "dwarf2-frame.h".
8202 (s390_dwarf2_frame_init_reg): New function.
8203 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8204 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8205
8206 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8207
8208 * breakpoint.c (pending_break_support): New setting variable.
8209 (break_command_1): Account for pending_break_support setting
8210 when creating pending breakpoints.
8211 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8212 (_initialize_breakpoint): Add "set breakpoint pending" and
8213 "show breakpoint pending" commands.
8214
8215 2004-02-26 Andrew Cagney <cagney@redhat.com>
8216
8217 Fix PR i18n/1570.
8218 * charset.c (backslashable, backslashed, represented): Remove 'e'
8219 from list of escaped characters, not part of ISO-C.
8220
8221 2004-02-25 J. Brobecker <brobecker@gnat.com>
8222
8223 From Peter Schauer <schauer@pdf.de>:
8224 * tui/tui.c: Move system header includes after local includes.
8225 Fixes a build failure on solaris systems.
8226
8227 2004-02-25 J. Brobecker <brobecker@gnat.com>
8228
8229 * configure.in: Refine the previous change.
8230 * configure: Regenerate.
8231
8232 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8233
8234 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8235 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8236 "amd64-tdep.h" instead of "x86-64-tdep.h".
8237 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8238 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8239 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8240 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8241 and "x86-64-tdep.c".
8242 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8243 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8244 and "x86-64-tdep.c".
8245 * amd64bsd-nat.c: Update copyright year.
8246 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8247 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8248 "x86-64-tdep.h".
8249 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8250 "x86-64-tdep.h".
8251 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8252 "x86-64-tdep.h".
8253 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8254 "x86-64-tdep.h".
8255 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8256 "x86-64-tdep.h".
8257 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8258 "x86-64-tdep.h".
8259 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
8260 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8261 * Makefile.in (amd64_linux_tdep_h): Renamed from
8262 x86_64_linux_tdep_h.
8263 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8264 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8265 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8266 (amd64obsd-tdep.o): Update dependencies.
8267 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8268 dependencies.
8269 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8270 dependencies.
8271 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8272 amd64-linux-nat.c amd64-linux-tdep.c.
8273 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8274 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8275 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8276 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8277 amd64-tdep.o and amd64-linux-tdep.o.
8278 (TM_FILE): Set to tm-linux64.h.
8279 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8280 (NAT_FILE): Set to nm-linux64.h.
8281 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8282 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8283 amd64-tdep.o.
8284 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8285 amd64-tdep.o.
8286 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8287 amd64-tdep.o.
8288
8289 2004-02-25 Roland McGrath <roland@redhat.com>
8290
8291 * remote.c (remote_protocol_qPart_auxv): New variable.
8292 (init_all_packet_configs): Initialize it.
8293 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8294 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8295 (show_remote_cmd): Call it.
8296 (_initialize_remote): Initialize commands.
8297 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8298 service TARGET_OBJECT_AUXV requests.
8299
8300 2004-02-25 J. Brobecker <brobecker@gnat.com>
8301
8302 * configure.in: Make sure that the wborder function is available.
8303 Otherwise, search for it in the cur_colr library.
8304 * configure: Regenerate.
8305
8306 2004-02-25 Andrew Cagney <cagney@redhat.com>
8307
8308 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8309
8310 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8311
8312 * config/i386/tm-x86-64linux.h: Tweak comments.
8313
8314 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
8315
8316 * MAINTAINERS: Add self to write-after-approval list.
8317
8318 2004-02-25 Andrew Cagney <cagney@redhat.com>
8319
8320 PR cli/1566. Problem found, and fix suggested by David Allan.
8321 * cli/cli-script.c (execute_control_command): Unconditionally
8322 install a cleanup. Default "ret" to "invalid_control". Use
8323 "break" instead of "return" to escape from the switch.
8324
8325 2004-02-24 J. Brobecker <brobecker@gnat.com>
8326
8327 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8328 with the lines macro defined in term.h on AiX.
8329 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8330 a collision with the label_width macro defined in term.h on AiX.
8331
8332 2004-02-23 David Mosberger <davidm@hpl.hp.com>
8333
8334 Committed by Kevin Buettner <kevinb@redhat.com>.
8335
8336 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8337 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8338 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8339 instead of ia64_write_pc().
8340 * ia64-linux-tdep.c (regcache.h): Include.
8341 (ia64_linux_write_pc): New function.
8342
8343 2004-02-23 Roland McGrath <roland@redhat.com>
8344
8345 * auxv.c (info_auxv_command): Fix typos in error messages.
8346
8347 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8348
8349 * x86-64-tdep.h: Tweak comment.
8350 (enum amd64_regnum): New.
8351 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8352 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8353 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8354 (X86_64_XMM1_REGNUM): Removed.
8355 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8356 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8357 prototypes for renamed functions.
8358 * x86-64-tdep.c: Fix typo.
8359 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8360 register numbers.
8361 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8362 Use constants from `enum amd64_regnum' for register numbers.
8363 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8364 (amd64_analyze_prologue, amd64_frame_cache,
8365 amd64_sigtramp_frame_cache): Use constants from `enum
8366 amd64_regnum' for register numbers.
8367 (amd64_supply_fpregset): Adjust for renamed functions.
8368 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8369 `enum amd64_regnum' for register numbers.
8370 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8371 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8372 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8373 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8374 (amd64_linux_fill_gregset): Adjust for renamed macros.
8375 (fetch_core_registers): Adjust for renamed functions.
8376 (amd64_linux_init_abi): Adjust for renamed functions.
8377 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8378 renamed functions.
8379 * amd64-nat.c: Adjust for renamed macros.
8380 * amd64bsd-nat.c (fetch_inferior_registers)
8381 (store_inferior_registers): Use constants from `enum amd64_regnum'
8382 for register numbers. Adjust for renamed variables.
8383 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8384 renamed variables.
8385 (_initialize_amd64fbsd_nat): Use constants from `enum
8386 amd64_regnum' for register numbers.
8387 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8388 `enum amd64_regnum' for register numbers.
8389 (amd64fbsd_init_abi): Adjust for renamed functions.
8390 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8391 `enum amd64_regnum' for register numbers.
8392 (amd64nbsd_init_abi): Adjust for renamed functions.
8393 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8394 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8395 `enum amd64_regnum' for register numbers.
8396 (amd64obsd_init_abi): Adjust for renamed functions.
8397 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8398
8399 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8400
8401 * breakpoint.c (print_one_breakpoint): Do not output spaces
8402 after printing <PENDING> for a pending breakpoint.
8403
8404 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8405
8406 * printcmd.c (print_scalar_formatted): Initialize val_long
8407 to remove compiler warning message.
8408
8409 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8410
8411 * defs.h (nquery, yquery): New prototypes.
8412 * breakpoint.c (break_command_1): Use new nquery interface.
8413 * utils.c (defaulted_query, nquery, yquery): New functions.
8414
8415 2004-02-23 Andrew Cagney <cagney@redhat.com>
8416
8417 * hppa-tdep.c (hppa_frame_align): New function.
8418 (hppa32_push_dummy_call): New function.
8419 (hppa64_push_dummy_call): New function.
8420 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8421 disabled.
8422
8423 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8424 FIX_CALL_DUMMY when push_dummy_call is available.
8425 (call_function_by_hand, push_dummy_code): Ditto.
8426
8427 2004-02-22 Andrew Cagney <cagney@redhat.com>
8428
8429 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8430 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8431 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8432 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8433 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8434 call_dummy_location to ON_STACK.
8435
8436 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8437
8438 * x86-64-linux-tdep.c: Tweak comment.
8439 (amd64_linux_supply_gregset): Renamed from
8440 x86_64_linux_supply_gresget.
8441 (amd64_linux_fill_gregset): Renamed from
8442 x86_64_linux_fill_gregset.
8443 (fetch_core_registers): Adjust for renamed functions.
8444 (amd64_core_fns): Renamed from x86_64_core_fns.
8445 (amd64_linux_sigtramp_start): Renamed from
8446 x86_64_linux_sigtramp_start.
8447 (amd64_linux_pc_in_sigtramp): Renamed from
8448 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8449 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8450 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8451 (amd64_linux_sigcontext_addr): Renamed from
8452 x86_64_linux_sigcontext_addr.
8453 (amd64_linux_sc_reg_offset): Renamed from
8454 x86_64_linux_sc_reg_offset.
8455 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8456 Adjust for renamed functions and variables.
8457 (_initialize_amd64_linux_tdep): Renamed from
8458 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8459 variables.
8460 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8461 Adjust for renamed functions.
8462
8463 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8464 from x86_64_linux_gregset64_reg_offset.
8465 (amd64_linux_gregset32_reg_offset): Rename from
8466 x86_64_linux_gregset64_reg_offset.
8467 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8468 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8469 (amd64_linux_dr_set_control): Renamed from
8470 x86_64_linux_dr_set_control. Adjust for renamed functions.
8471 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8472 Adjust for renamed functions.
8473 (amd64_linux_dr_reset_addr): Renamed from
8474 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8475 (amd64_linux_dr_get_status): Renamed from
8476 x86_64_linux_dr_get_status. Adjust for renamed functions.
8477 (_initialize_amd64_linux_nat): Renamed from
8478 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8479 functions.
8480 * config/i386/nm-x86-64linux.h: Update copyright year.
8481 Adjust for renamed functions.
8482
8483 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8484 amd64fbsd_sigtramp_start.
8485 (amd64fbsd_sigtramp_end_addr): Renamed from
8486 amd64fbsd_sigtramp_end.
8487 (amd64fbsd_init_abi): Adjust for renamed variables.
8488 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8489 variables.
8490 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8491 amd64fbsd_sigtramp_start.
8492 (amd64fbsd_sigtramp_end_addr): Renamed from
8493 amd64fbsd_sigtramp_end.
8494
8495 2004-02-22 Andrew Cagney <cagney@redhat.com>
8496
8497 * hppa-tdep.c (hppa32_return_value): New function.
8498 (hppa64_return_value): New function.
8499 (hppa_gdbarch_init): Set return_value; keep disabled.
8500
8501 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8502 struct-return and inferior function call methods.
8503
8504 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8505 "frame-base.h".
8506 (struct hppa_frame_cache): Define.
8507 (hppa_frame_cache, hppa_frame_this_id): New functions.
8508 (hppa_frame_prev_register): New function.
8509 (hppa_frame_unwind, hppa_frame_base): New variables.
8510 (hppa_frame_unwind_sniffer): New function.
8511 (hppa_frame_base_address, hppa_unwind_pc): New function.
8512 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8513 sniffer, and frame base sniffer; keep disabled.
8514 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8515 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8516
8517 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8518 to predicates for "seriously old code".
8519
8520 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8521 runtime if(0).
8522
8523 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8524 unsigned.
8525 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8526
8527 * config/pa/tm-hppa.h: Update copyright.
8528 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8529 (deprecated_init_frame_pc_default): Delete declaration.
8530 (hppa_frame_init_saved_regs): Delete declaration.
8531 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8532 * hppa-tdep.c: Include "arch-utils.h".
8533 (hppa_gdbarch_init): Set deprecated init_frame_pc
8534 and deprecated frame_init_saved_regs.
8535 (hppa_frame_init_saved_regs): Make static.
8536
8537 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8538
8539 Remove old 386BSD support.
8540 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
8541 * configure.host: Remove i[34567]86-*-bsd*.
8542 * configure.tgt: Remove i[34567]86-*-bsd*.
8543 * i386b-nat.c: Removed.
8544 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8545 (i386b-nat.o): Remove dependencies.
8546
8547 * config/i386/i386bsd.mh: Removed.
8548 * config/i386/i386bsd.mt: Removed.
8549 * config/i386/nm-i386bsd.h: Removed.
8550 * config/i386/tm-i386bsd.h: Removed.
8551 * config/i386/xm-i386bsd.h: Removed.
8552
8553 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8554
8555 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8556 (amd64fbsd_init_abi): Set link map offsets.
8557 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8558 (amd64nbsd_init_abi): Set link map offsets.
8559 * amd64obsd-tdep.c: Include "solib-svr4.h".
8560 (amd64obsd_init_abi): Set link map offsets.
8561 * i386fbsd-tdep.c: Include "solib-svr4.h".
8562 (i386fbsd_init_abi): Set link map offsets.
8563 * i386nbsd-tdep.c: Include "solib-svr4.h".
8564 (i386nbsdelf_init_abi): Set link map offsets.
8565 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8566 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8567 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8568 solib-legacy.o and core-aout.o. Reformat.
8569 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8570 solib-svr4.o, solib-legacy.o. Reformat.
8571 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8572 * config/i386/nbsdelf.mh: Reformat.
8573 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8574 solib-svr4.o, solib-legacy.o and corelow.o.
8575 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8576 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8577 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8578 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8579 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8580 (TM_FILE): Set to tm-fbsd.h.
8581 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8582 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8583 solib-svr4.o.
8584 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8585 solib-svr4.o.
8586 (TM_FILE): Set to nm-nbsd.h.
8587 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8588 Simplify shared library support. Don't include "elf/common.h".
8589 (SVR4_SHARED_LIBS): Don't define.
8590 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8591 "solib.h".
8592 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8593 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8594 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8595 Don't include "i386/tm-i386.h". Include "solib.h".
8596 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8597 Don't include "i386/tm-i386.h".
8598 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8599 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8600 Include "i386/xm-i386.h".
8601 (HOST_LONG_DOUBLE_FORMAT): Remove.
8602
8603 Fix OpenBSD/i386 sigtramp recognition.
8604 * i386-tdep.h: Update copyright year.
8605 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8606 (i386bsd_sigtramp_end): New prototypes.
8607 (i386fbsd_sigtramp_start_addr): Renamed from
8608 i386fbsd_sigtramp_start.
8609 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8610 (i386obsd_sigtramp_start_addr): Renamed from
8611 i386obsd_sigtramp_start.
8612 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8613 * i386bsd-tdep.c: Update copyright year.
8614 (i386bsd_pc_in_sigtramp): Make public.
8615 * i386fbsd-nat.c: Update copyright year.
8616 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8617 * i386fbsd-tdep.c: Update copyright year.
8618 (i386fbsd_sigtramp_start_addr): Renamed from
8619 i386fbsd_sigtramp_start.
8620 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8621 (i386fbsdaout_init_abi): Adjust for renamed variables.
8622 * i386obsd-nat.c: Update copyright year.
8623 (_initialize_i386obsd_nat): Adjust for renamed variables.
8624 * i386obsd-tdep.c: Include "target.h".
8625 (i386obsd_page_size): New variable.
8626 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8627 (i386obsd_sigtramp_end): New functions.
8628 (i386obsd_sigtramp_start_addr): Renamed from
8629 i386obsd_sigtramp_start.
8630 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8631 (i386obsd_init_abi): Adjust for renamed variables. Set
8632 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8633 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8634
8635 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8636 trampoline change in OpenBSD kernel.
8637
8638 * amd64-nat.c: Update copyright year.
8639 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8640 architecture from REGCACHE.
8641
8642 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8643 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8644
8645 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8646
8647 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8648 i[34567]86-*-openbsd3.[0-3].
8649 * config/i386/obsdaout.mh: New file.
8650
8651 * config/i386/obsd.mh (MH_FLAGS): Remove.
8652
8653 Fix PR build/1549.
8654 * i386obsd-tdep.c: Update copyright years. Include
8655 "solib-svr4.h".
8656 (i386obsd_init_abi): Don't set regset_from_core_section here.
8657 (i386obsd_aout_init_abi): New function. Set
8658 regset_from_core_section here.
8659 (i386obsd_elf_init_abi): New function.
8660 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8661 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8662 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8663 (TM_FILE): Set to tm-nbsd.h.
8664
8665 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8666 solib-sunos.o.
8667
8668 * solib-svr4.h: Update copyright year.
8669 (svr4_ilp32_fetch_link_map_offsets)
8670 (svr4_lp64_fetch_link_map_offsets): New prototype.
8671 * solib-svr4.c: Update copyright year.
8672 (svr4_ilp32_fetch_link_map_offsets)
8673 (svr4_lp64_fetch_link_map_offsets): New function.
8674
8675 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8676
8677 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8678 to the partial symbol table.
8679
8680 2004-02-20 J. brobecker <brobecker@gnat.com>
8681
8682 * PROBLEMS: Add description of problem documented under gdb/1560.
8683
8684 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8685
8686 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8687 comments.
8688 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8689 functions.
8690 (amd64obsd_init_abi): Reorder initializations. Use
8691 amd64obsd_r_reg_offset to initialize the general-purpose register
8692 set details. Set regset_from_core_section.
8693 (_initialize_amd64obsd_tdep): Rename from
8694 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8695 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8696 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8697
8698 * NEWS (New native configurations): Mention OpenBSD/alpha.
8699 * configure.tgt: Add alpha*-*-openbsd*.
8700 * configure.host: Add alpha*-*-openbsd*.
8701 * alphanbsd-tdep.c: Update copyright year.
8702 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8703
8704 2004-02-20 Andrew Cagney <cagney@redhat.com>
8705
8706 Fix PR tdep/1372.
8707 * configure.tgt: Delete target "none-*-*".
8708 * configure.host: Delete host "none-*-*".
8709 * config/none/none.mh: Delete file.
8710 * config/none/none.mt: Delete file.
8711 * config/none/xm-none.h: Delete file.
8712 * config/none/tm-none.h: Delete file.
8713 * config/none/nm-none.h: Delete file.
8714
8715 2004-02-19 Fred Fish <fnf@redhat.com>
8716
8717 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8718 cache->uses_fp prior to setting it.
8719
8720 2004-02-19 Fred Fish <fnf@redhat.com>
8721
8722 Fix for PR breakpoint/1558.
8723 * sh-tdep.c (IS_JSR): New macro.
8724 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8725
8726 2004-02-19 Jim Blandy <jimb@redhat.com>
8727
8728 * findvar.c (value_from_register): Doc fix.
8729
8730 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8731
8732 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8733 type being greater than sizeof of host's LONGEST. Always use
8734 unpack_long() unless format 'f' chosen.
8735
8736 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8737
8738 Committed by Elena Zannoni <ezannoni@redhat.com>
8739
8740 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8741 contains a symbol wich is the best, non-exact match for the given
8742 pc. Update comments.
8743
8744 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8745
8746 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8747 macro, which was part of the now removed Mach 3 port.
8748 * utils.c (request_quit): Ditto.
8749
8750 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8751
8752 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8753 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8754
8755 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8756
8757 Committed by Mark Kettenis <kettenis@gnu.org>.
8758
8759 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8760 Define.
8761
8762 2004-02-18 Andrew Cagney <cagney@redhat.com>
8763
8764 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8765 CONFIG_INSTALL and CONFIG_UNINSTALL.
8766 * configure: Re-generate.
8767 * interps.h (INTERP_TUI): Define.
8768 * Makefile.in: Update dependencies.
8769 (TUI): New macro.
8770 (tui-main.o): Specify dependencies.
8771 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8772 * tui/tui-main.c: New file.
8773
8774 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8775
8776 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8777 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8778 dependencies.
8779 * configure.host: Add x86_64-*-openbsd*.
8780 * configure.tgt: Add x86_64-*-openbsd*.
8781 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8782
8783 * tui/tui.c: Don't include <malloc.h>.
8784
8785 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8786 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8787 amd64nbsd-tdep.c.
8788
8789 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8790 static. Remove extraneous whitespace.
8791 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8792 static.
8793
8794 2004-02-17 Jim Blandy <jimb@redhat.com>
8795
8796 * findvar.c (value_from_register): Doc fix.
8797
8798 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8799
8800 Committed by Jim Blandy <jimb@redhat.com>.
8801
8802 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8803 CORE_ADDR as type for selectors. Correct types for GNU run time
8804 message lookup function to use double indirection.
8805 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8806 * objc-lang.h (lookup_child_selector): Adapt prototype.
8807
8808 * s390-nat.c (SUBOFF): New macro.
8809 (supply_gregset, fill_gregset): Use it to handle debugging
8810 of 32-bit exectuables running under a 64-bit kernel.
8811 * s390-tdep.c: Include "solib-svr4.h".
8812 (s390_svr4_fetch_link_map_offset): New function.
8813 (s390x_svr_fetch_link_map_offset): Likewise.
8814 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8815 * Makefile.in (s390-tdep.o): Update dependencies.
8816
8817 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8818 "frame-unwind.h".
8819 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8820 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8821 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8822 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8823 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8824 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8825 S390_SIGNAL_FRAMESIZE,
8826 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8827 (struct frame_extra_info): Remove.
8828 (s390_memset_extra_info): Remove.
8829 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8830 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8831 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8832 (is_rse): Renamed to ...
8833 (is_rsy): ... this. Support long displacements.
8834 (is_rxe): Renamed to ...
8835 (is_rxy): ... this. Support long displacements.
8836 (compute_x_addr): Support long displacements.
8837 (struct s390_prologue_data): New data type.
8838 (s390_on_stack): Change API to use struct s390_prologue_data.
8839 (s390_store): Reimplement.
8840 (s390_load): New function.
8841 (s390_get_signal_frame_info): Remove.
8842 (s390_get_frame_info): Remove, replace by ...
8843 (s390_analyze_prolog): ... this new function.
8844 (s390_check_function_end): Remove.
8845 (s390_function_start): Remove.
8846 (s390_frameless_function_invokation): Remove.
8847 (s390_is_sigreturn): Remove.
8848 (s390_init_frame_pc_first): Remove.
8849 (s390_init_frame_extra_info): Remove.
8850 (s390_frame_init_saved_regs): Remove.
8851 (s390_frame_saved_pc_nofix): Remove.
8852 (s390_frame_saved_pc): Remove.
8853 (s390_frame_chain): Remove.
8854 (s390_fp_regnum, s390_read_fp): Remove.
8855 (s390_pop_frame_regular, s390_pop_frame): Remove.
8856 (s390_saved_pc_after_call): Remove.
8857 (s390_skip_prologue): Reimplement.
8858 (s390_in_function_epilogue_p): Support long displacements.
8859 (struct s390_unwind_cache): New data structure.
8860 (s390_frame_unwind_cache): New function.
8861 (s390_prologue_frame_unwind_cache): Likewise.
8862 (s390_backchain_frame_unwind_cache): Likewise.
8863 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8864 (s390_frame_unwind): Define.
8865 (s390_frame_sniffer): New function.
8866 (struct s390_pltstub_unwind_cache): New data structure.
8867 (s390_pltstub_frame_unwind_cache): New function.
8868 (s390_pltstub_frame_this_id): Likewise.
8869 (s390_pltstub_frame_prev_register): Likewise.
8870 (s390_pltstub_frame_unwind): Define.
8871 (s390_pltstub_frame_sniffer): New function.
8872 (struct s390_sigtramp_unwind_cache): New data structure.
8873 (s390_sigtramp_frame_unwind_cache): New function.
8874 (s390_sigtramp_frame_this_id): Likewise.
8875 (s390_sigtramp_frame_prev_register): Likewise.
8876 (s390_sigtramp_frame_unwind): Define.
8877 (s390_sigtramp_frame_sniffer): New function.
8878 (s390_frame_base_address, s390_local_base_address): New functions.
8879 (s390_frame_base): Define.
8880 (s390_unwind_pc, s390_unwind_sp): New function.
8881 (s390_push_dummy_call): Use new frame base location.
8882 (s390_unwind_dummy_id): Likewise.
8883 (s390_gdbarch_init): Remove calls to:
8884 set_gdbarch_frameless_function_invocation,
8885 set_gdbarch_deprecated_init_frame_pc,
8886 set_gdbarch_deprecated_frame_chain,
8887 set_gdbarch_deprecated_frame_init_saved_regs,
8888 set_gdbarch_deprecated_pop_frame,
8889 set_gdbarch_deprecated_init_extra_frame_info,
8890 set_gdbarch_deprecated_init_frame_pc_first,
8891 set_gdbarch_deprecated_target_read_fp,
8892 set_gdbarch_deprecated_frame_saved_pc,
8893 set_gdbarch_deprecated_saved_pc_after_call,
8894 set_gdbarch_deprecated_fp_regnum.
8895 Add calls to:
8896 set_gdbarch_in_solib_call_trampoline,
8897 frame_unwind_append_sniffer,
8898 frame_base_set_default,
8899 set_gdbarch_unwind_pc,
8900 set_gdbarch_unwind_sp.
8901 * Makefile.in (s390-tdep.o): Update dependencies.
8902
8903 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8904 (S390_STACK_FRAME_OVERHEAD): Remove.
8905 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8906 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8907 (s390_promote_integer_argument): Remove.
8908 (s390_cannot_extract_struct_value_address): Remove.
8909 (s390_use_struct_convention, s390_store_struct_return): Remove.
8910 (s390_extract_return_value, s390_store_return_value): Remove.
8911 (s390_return_value_convention, s390_return_value): New functions.
8912 (is_float_singleton): Handle typedefs.
8913 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8914 Remove, replace by ...
8915 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8916 s390_function_arg_integer): ... these new functions.
8917 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8918 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8919 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8920 Fill in tdep->abi.
8921 Remove calls to:
8922 set_gdbarch_deprecated_store_struct_return,
8923 set_gdbarch_deprecated_extract_return_value,
8924 set_gdbarch_deprecated_store_return_value,
8925 set_gdbarch_use_struct_convention,
8926 set_gdbarch_extract_struct_value_address,
8927 set_gdbarch_deprecated_pc_in_call_dummy,
8928 set_gdbarch_deprecated_push_arguments,
8929 set_gdbarch_deprecated_save_dummy_frame_tos,
8930 set_gdbarch_deprecated_push_return_address,
8931 set_gdbarch_deprecated_sizeof_call_dummy_words,
8932 set_gdbarch_deprecated_call_dummy_words,
8933 set_gdbarch_deprecated_dummy_write_sp.
8934 Add calls to:
8935 set_gdbarch_push_dummy_call,
8936 set_gdbarch_unwind_dummy_id,
8937 set_gdbarch_return_value.
8938
8939 * config/s390/nm-linux.h: Update comments.
8940 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8941 (STOPPED_BY_WATCHPOINT): Redefine.
8942 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8943 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8944 (s390_stopped_by_watchpoint): Likewise.
8945 (watch_area_cnt): Remove.
8946 * s390-nat.c: Update comments.
8947 (watch_area): Remove typedef.
8948 Global replace watch_area by struct watch_area.
8949 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8950 (s390_stopped_by_watchpoint): Remove pid argument,
8951 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8952 (s390_fix_watch_points): Remove pid argument,
8953 use s390_inferior_tid. Recompute area spanned by watchpoints.
8954 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8955 argument. Reimplement.
8956
8957 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8958 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8959 (FETCH_INFERIOR_REGISTERS): Define.
8960 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8961 core-regset.o.
8962 * config/s390/s390x.mt: Remove.
8963 * config/s390/tm-s390.h: Remove.
8964 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8965 (TARGET_ELF64): Remove.
8966 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8967 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8968 s390*-*-* case; always set gdb_target to s390.
8969 * regformats/reg-s390.dat: Remove control registers.
8970 * regformats/reg-s390x.dat: Likewise.
8971 * s390-tdep.h: New file.
8972 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8973 Include "inferior.h" and "s390-tdep.h".
8974 Remove private definition of offsetof.
8975 (s390_register_u_addr): Remove.
8976 (regmap_gregset, regmap_fpregset): Define.
8977 (supply_gregset, fill_gregset): Reimplement.
8978 (supply_fpregset, fill_fpregset): Likewise.
8979 (s390_inferior_tid): New function.
8980 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8981 (fetch_inferior_registers, store_inferior_registers): Likewise.
8982 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8983 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8984 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8985 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8986 (struct gdbarch_tdep): Define.
8987 (struct s390_register_info): Define.
8988 (s390_register_info): New variable.
8989 (s390_register_name): Reimplement.
8990 (s390_register_type): New function.
8991 (s390_register_raw_size, s390x_register_raw_size): Remove.
8992 (s390_cannot_fetch_register): Remove.
8993 (s390_register_byte): Remove.
8994 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8995 (s390_dwarf_regmap): New variable.
8996 (s390_dwarf_reg_to_regnum): New function.
8997 (s390_stab_reg_to_regnum): Remove.
8998 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8999 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9000 (s390_convert_register_p): Likewise.
9001 (s390_register_to_value, s390_value_to_register): Likewise.
9002 (s390_register_reggroup_p): Likewise.
9003 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9004 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9005 (s390_supply_regset, s390_regset_from_core_section): New functions.
9006 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9007 (S390_FPR_SIZE): Likewise.
9008 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9009 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9010 (S390_NUM_GPRS): Move here from tm-s390.h.
9011 (S390_NUM_FPRS): Likewise.
9012 (s390_in_function_epilogue_p): New function.
9013 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9014 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9015 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9016 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9017 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9018 Remove calls to:
9019 set_gdbarch_deprecated_max_register_raw_size,
9020 set_gdbarch_deprecated_max_register_virtual_size,
9021 set_gdbarch_deprecated_register_byte,
9022 set_gdbarch_cannot_fetch_register,
9023 set_gdbarch_cannot_store_register,
9024 set_gdbarch_deprecated_register_size,
9025 set_gdbarch_deprecated_register_raw_size,
9026 set_gdbarch_deprecated_register_virtual_size,
9027 set_gdbarch_deprecated_register_virtual_type,
9028 set_gdbarch_deprecated_register_bytes.
9029 Add calls to:
9030 set_gdbarch_num_pseudo_regs,
9031 set_gdbarch_register_type,
9032 set_gdbarch_convert_register_p,
9033 set_gdbarch_register_to_value,
9034 set_gdbarch_value_to_register,
9035 set_gdbarch_register_reggroup_p,
9036 set_gdbarch_regset_from_core_section,
9037 set_gdbarch_pseudo_register_read,
9038 set_gdbarch_pseudo_register_write,
9039 set_gdbarch_in_function_epilogue_p.
9040 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9041 (s390_tdep_h): New variable.
9042
9043 2004-02-17 Jim Blandy <jimb@redhat.com>
9044
9045 * findvar.c (value_from_register): If the type has no length, just
9046 return an acceptable value --- don't report an internal error.
9047
9048 * stabsread.c (read_type): If we find any type numbers that are
9049 forward references, complain if the references aren't resolved by
9050 the time we're finished reading.
9051 (cleanup_undefined_types): Make error message more appropriate for
9052 a complaint.
9053
9054 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9055
9056 * Makefile.in (defs_h): Remove dependency on progress_h.
9057 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9058 progress.h.
9059 * main.c (captured_main): Delete use of START_PROGRESS and
9060 END_PROGRESS.
9061
9062 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9063
9064 * objfiles.c (terminate_minimal_symbol_table): Add back
9065 initialization of MSYMBOL_TYPE.
9066
9067 2004-02-17 David Mosberger <davidm@hpl.hp.com>
9068
9069 Committed by Andrew Cagney.
9070 * Makefile.in (ia64_tdep_h): New macro.
9071 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9072 (ia64-tdep.o): Likewise.
9073 * ia64-tdep.h: New file.
9074 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9075 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9076 (ia64_aix_sigcontext_register_address): Likewise.
9077 (ia64_linux_getunwind_table): Delete declaration.
9078 * ia64-linux-tdep.c: Likewise.
9079
9080 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
9081
9082 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9083 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9084 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9085
9086 2004-02-17 Andrew Cagney <cagney@redhat.com>
9087
9088 * symtab.c (skip_prologue_using_sal): New function.
9089 * symtab.h (skip_prologue_using_sal): Declare.
9090 * frv-tdep.c: Include "symtab.h".
9091 (skip_prologue_using_sal): Delete function.
9092 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9093 * rs6000-tdep.c (refine_prologue_limit): Mention
9094 skip_prologue_using_sal.
9095 * ia64-tdep.c (refine_prologue_limit): Ditto.
9096 * Makefile.in: Update dependencies.
9097
9098 2004-02-16 Andrew Cagney <cagney@redhat.com>
9099
9100 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9101 START_INFERIOR_TRAPS_EXPECTED.
9102 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9103 START_INFERIOR_TRAPS_EXPECTED.
9104 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9105 Delete macro.
9106 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9107 macro, moved to "nm-osf.h". Update copyright.
9108 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9109 update copyright.
9110
9111 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9112 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9113 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9114 frameless_look_for_prologue.
9115 * frame.h (legacy_frameless_look_for_prologue): Rename
9116 frameless_look_for_prologue.
9117 * gdbarch.h, gdbarch.c: Re-generate.
9118 * sh64-tdep.c (sh64_gdbarch_init): Update.
9119 * sh-tdep.c (sh_gdbarch_init): Update.
9120 * s390-tdep.c (s390_gdbarch_init): Update.
9121 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9122 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9123 * m68k-tdep.c (m68k_gdbarch_init): Update.
9124 (delta68_frame_args_address): Update.
9125 * m32r-tdep.c (m32r_gdbarch_init): Update.
9126 * hppa-tdep.c (hppa_gdbarch_init): Update.
9127 * h8300-tdep.c (h8300_gdbarch_init): Update.
9128 * frv-tdep.c (frv_gdbarch_init): Update.
9129 (frv_frameless_function_invocation): Update.
9130 * cris-tdep.c (cris_gdbarch_init): Update.
9131 (cris_frameless_function_invocation): Update.
9132 * avr-tdep.c (avr_gdbarch_init): Update.
9133 * arm-tdep.c (arm_gdbarch_init): Update.
9134 * stack.c (frame_info): Update, call predicate.
9135 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9136 * frame.c (legacy_get_prev_frame): Update, call predicate..
9137 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9138 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9139 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9140 invocation.
9141 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9142 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9143 * vax-tdep.c (vax_gdbarch_init): Ditto.
9144
9145 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9146 function.
9147
9148 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9149
9150 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9151 initializations.
9152
9153 2004-02-16 Andrew Cagney <cagney@redhat.com>
9154
9155 * tui/tui-windata.c: Include "gdb_string.h".
9156 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9157 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9158 * Makefile.in: Update dependencies.
9159
9160 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9161
9162 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9163 * infrun.c: Include "gdb_assert.h".
9164 (singlestep_ptid, saved_singlestep_ptid)
9165 (stepping_past_singlestep_breakpoint): New variables.
9166 (resume): Set singlestep_ptid. Check for singlestep thread
9167 hop.
9168 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9169 (handle_inferior_event): Handle singlestep thread hop.
9170
9171 2004-02-16 Andrew Cagney <cagney@redhat.com>
9172
9173 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9174 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9175 (dwarf2_frame_init_reg): Ditto.
9176
9177 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9178 suggested by Joshua Neuheisel
9179
9180 * configure.in: Always check for curses, including pdcurses.
9181 Warn, instead of error, when no curses are found. Enable TUI when
9182 curses is available.
9183 * configure: Re-generate.
9184
9185 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9186
9187 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9188 sh_sh4_register_convert_to_virtual.
9189 (sh_register_convert_to_raw): Rename from
9190 sh_sh4_register_convert_to_raw.
9191 (sh_pseudo_register_read): Accomodate above name change.
9192 (sh_pseudo_register_write): Ditto.
9193
9194 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9195
9196 * sh-tdep.c (sh_generic_register_name): Remove.
9197 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9198
9199 2004-02-15 Andrew Cagney <cagney@redhat.com>
9200
9201 * configure.in (build_warnings): Add -Wunused-function.
9202 * configure: Re-generate.
9203
9204 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9205 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9206
9207 * procfs.c (procfs_init_inferior): Assume that
9208 START_INFERIOR_TRAPS_EXPECTED is defined.
9209 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9210 * config/ns32k/tm-nbsd.h: Delete file,
9211 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9212
9213 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9214 * config/vax/tm-vax.h: Delete file.
9215
9216 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9217 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9218 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9219 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9220 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9221 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9222 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9223
9224 2004-02-15 Mark Kettenis <kettenis@gnu.org>
9225
9226 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9227 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9228 (struct dwarf2_frame_ops): New.
9229 (dwarf2_frame_default_init_reg): New function, based on
9230 dwarf2_frame_init_reg.
9231 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9232 (dwarf2_frame_init_reg): Call architecture-specific function.
9233 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9234 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9235 instead of dwarf2_frame_data.
9236 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9237 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9238
9239 2004-02-15 Andrew Cagney <cagney@redhat.com>
9240
9241 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9242 register_gdbarch_swap.
9243 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9244 * f-lang.c (_initialize_f_language): Update, use
9245 DEPRECATED_REGISTER_GDBARCH_SWAP.
9246 * remote.c (_initialize_remote): Ditto.
9247 * regcache.c (_initialize_regcache): Ditto.
9248 * parse.c (_initialize_parse): Ditto.
9249 * infrun.c (_initialize_infrun): Ditto.
9250 * mi/mi-main.c (_initialize_mi_main): Ditto.
9251 * gdbtypes.c (_initialize_gdbtypes): Ditto.
9252
9253 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9254 poking .cacheable directly.
9255 * symfile.c (symfile_bfd_open): Ditto.
9256
9257 * Makefile.in: Update all dependencies.
9258
9259 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9260 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9261 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9262 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9263 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
9264
9265 2004-02-14 Andrew Cagney <cagney@redhat.com>
9266
9267 * arch-utils.c (legacy_convert_register_p): Check
9268 DEPRECATED_REGISTER_CONVERTIBLE_P.
9269 * findvar.c (value_of_register): Ditto.
9270
9271 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9272 * gdbarch.h, gdbarch.c: Re-generate.
9273 * arch-utils.c (deprecated_register_convertible_not): Delete.
9274 * arch-utils.h (deprecated_register_convertible_not): Delete.
9275 * mi/mi-main.c (get_register): Update. Update copyright.
9276 * infcmd.c (default_print_registers_info): Update.
9277
9278 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9279 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9280 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
9281 * gdbarch.h, gdbarch.c: Re-generate.
9282 * frame.c (deprecated_get_next_frame_hack): Delete function.
9283 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9284 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9285 Update.
9286 * infcall.c (call_function_by_hand): Update.
9287
9288 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
9289
9290 * symfile.c (init_entry_point_info, entry_point_address): Move
9291 from here...
9292 * objfiles.c (init_entry_point_info, entry_point_address):..to
9293 here.
9294 * symfile.h (init_entry_point_info, entry_point_address): Remove
9295 prototypes.
9296 * objfiles.h (init_entry_point_info, entry_point_address):Add
9297 prototypes.
9298 * cris-tdep.c: Remove include of symfile.h. Add include of
9299 objfiles.h.
9300 * infcall.c: Ditto.
9301 * mcore-tdep.c: Ditto.
9302 * mn10300-tdep.c: Ditto.
9303 * sh64-tdep.c: Ditto.
9304 * v850-tdep.c: Ditto.
9305 * arm-tdep.c: Remove include of symfile.h.
9306 * blockframe.c: Ditto.
9307 * coffread.c: Ditto.
9308 * dbxread.c: Ditto.
9309 * dwarf2read.c: Ditto.
9310 * dwarfread.c: Ditto.
9311 * frv-tdep.c: Ditto.
9312 * ia64-tdep.c: Ditto.
9313 * mdebugread.c: Ditto.
9314 * mipsread.c: Ditto.
9315 * rs6000-tdep.c: Ditto.
9316 * s390-tdep.c: Ditto.
9317 * sh-tdep.c: Ditto.
9318 * xstormy16-tdep.c: Ditto.
9319 * gdbarch.sh: Remove include of symfile.h.
9320 * gdbarch.c: Regenerate.
9321 * solib-irix.c (enable_break): Use entry_point_address().
9322 Add comment about include file.
9323 * xcoffread.c: Add comment about include file.
9324 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9325 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9326 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9327 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9328 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9329
9330 2004-02-13 Andrew Cagney <cagney@redhat.com>
9331
9332 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9333 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9334 copyright.
9335 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9336
9337 2004-02-12 Fred Fish <fnf@redhat.com>
9338
9339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9340 set_gdbarch_store_return_value.
9341
9342 2004-02-12 Andrew Cagney <cagney@redhat.com>
9343
9344 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9345 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9346 (interrupt_query): Ditto.
9347 (ofunc): Delete unused variable.
9348 * cris-tdep.c (cris_abi): Delete unused function.
9349 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9350 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9351 (cris_get_asr_quick_shift_steps): Ditto.
9352 (cris_skip_prologue_frameless_p): Ditto.
9353 * arm-tdep.c (arm_push_return_address): Delete unused function.
9354 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9355 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9356 * s390-tdep.c (s390_function_start): Delete unused function.
9357
9358 2004-02-12 Andrew Cagney <cagney@redhat.com>
9359
9360 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9361 gdbarch.h, gdbarch.c: Re-generate.
9362 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9363 to generic_prologue_frameless_p.
9364 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9365 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9366
9367 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9368
9369 * mips-linux-tdep.c: Include "frame.h".
9370 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9371 (mips_linux_skip_resolver): New functions.
9372 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9373 and set_gdbarch_in_solib_call_trampoline.
9374 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9375 to after set_gdbarch_in_solib_return_trampoline. Only set the
9376 solib hooks to mips16 functions if the OS ABI is unknown.
9377 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9378 including "config/tm-linux.h".
9379 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9380 * Makefile.in (mips-linux-tdep.o): Update.
9381
9382 2004-02-11 David Carlton <carlton@kealia.com>
9383
9384 * linespec.c (decode_compound): Only look for a class symbol when
9385 considering all but the rightmost component.
9386
9387 2004-02-11 Andrew Cagney <cagney@redhat.com>
9388
9389 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9390 abi code are are separatly grouped.
9391
9392 2004-02-11 Andrew Cagney <cagney@redhat.com>
9393
9394 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9395 * gdbarch.h, gdbarch.c: Re-generate.
9396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9397 * v850-tdep.c (v850_gdbarch_init): Update.
9398 * sh64-tdep.c (sh64_gdbarch_init): Update.
9399 * sh-tdep.c (sh_gdbarch_init): Update.
9400 * s390-tdep.c (s390_gdbarch_init): Update.
9401 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9402 * mips-tdep.c (mips_gdbarch_init): Update.
9403 * mcore-tdep.c (mcore_gdbarch_init): Update.
9404 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9405 * m32r-tdep.c (m32r_gdbarch_init): Update.
9406 * ia64-tdep.c (ia64_gdbarch_init): Update.
9407 * hppa-tdep.c (hppa_gdbarch_init): Update.
9408 * h8300-tdep.c (h8300_gdbarch_init): Update.
9409 * frv-tdep.c (frv_gdbarch_init): Update.
9410 * d10v-tdep.c (d10v_gdbarch_init): Update.
9411 * cris-tdep.c (cris_gdbarch_init): Update.
9412 * avr-tdep.c (avr_gdbarch_init): Update.
9413 * arm-tdep.c (arm_gdbarch_init): Update.
9414 * alpha-tdep.c (alpha_gdbarch_init): Update.
9415
9416 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9417
9418 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9419 comma.
9420 (sh_sh4al_dsp_register_name): Ditto.
9421
9422 2004-02-10 Andrew Cagney <cagney@redhat.com>
9423
9424 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9425 (mips_init_frame_pc_first): Delete function.
9426 (mips_frame_saved_pc): Delete function.
9427 (mips_frame_chain): Delete function.
9428 (mips_init_extra_frame_info): Delete function.
9429 (mips_xfer_register): Delete unused variable "reg".
9430 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9431 (mips_n32n64_return_value): Delete unused variable "reg".
9432 (mips_n32n64_return_value): Delete unused variable "pos".
9433 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9434 (mips_o32_return_value): Delete unused variable "pos".
9435 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9436 (mips_print_fp_register): Delete unused variable "namelen"
9437 (mips_print_fp_register): Delete unused variable "flt2"
9438 (get_frame_pointer): Delete function.
9439 (cached_proc_desc): Delete static variable.
9440 (mips_pop_frame): Delete function.
9441 (mips_find_saved_regs): Delete function.
9442 (mips_get_saved_register): Delete function.
9443 (mips_saved_pc_after_call): Delete function.
9444 (SIGFRAME_BASE): Delete macro.
9445 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9446 (SIGFRAME_PC_OFF): Delete macro.
9447 (SIGFRAME_REGSAVE_OFF): Delete macro.
9448 (mips_dump_tdep): Do not print deleted macro definitions.
9449
9450 2004-02-10 Andrew Cagney <cagney@redhat.com>
9451
9452 * Makefile.in (SFILES): Remove explictly listed tui files.
9453 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9454
9455 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9456
9457 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9458 to use paddr functions to format ia64 addresses and long values.
9459 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9460 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9461 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9462 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9463 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9464
9465 2004-02-10 Andrew Cagney <cagney@redhat.com>
9466
9467 * defs.h: Do not include "tui.h".
9468 * gdb_curses.h: New file.
9469 * tui/tui-hooks.h: New file.
9470 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9471 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9472 (tui_initialize_io): Delete declaration.
9473 (tui_initialize_readline: Delete redundant declaration.
9474 (struct tui_point): Delete definition.
9475 * tui/tui-data.h (struct tui_point): Define.
9476 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9477 * utils.c: Include "tui/tui.h".
9478 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9479 * printcmd.c [TUI]: Include "tui/tui.h".
9480 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9481 * tui/tui-command.c: Include "gdb_curses.h".
9482 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9483 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9484 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9485 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9486 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9487 * Makefile.in: Update all dependencies.
9488 (tui_hooks_h, gdb_curses_h): Define.
9489 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9490
9491 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9492
9493 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9494 auxf2. Add comments about some other rarely used fields.
9495
9496 2004-02-10 Andrew Cagney <cagney@redhat.com>
9497
9498 * Makefile.in (init.c): Fix script removing duplicates. Problem
9499 reported by Peter Schauer.
9500
9501 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9502
9503 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9504 obstack_specify_allocation.
9505 * objfiles.c (allocate_objfile): Ditto.
9506 * solib-sunos.c (solib_add_common_symbols)
9507 (allocate_rt_common_objfile): Ditto.
9508 * symfile.c (reread_symbols): Ditto.
9509 * gdb_obstack.h: Add comment.
9510
9511 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9512
9513 * linespec.c (decode_line_1, locate_first_half)
9514 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9515 commented out code.
9516
9517 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9518
9519 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9520 obstack_free.
9521
9522 2004-02-09 Andrew Cagney <cagney@redhat.com>
9523
9524 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9525 fails, try find_pc_section. Fix PR c++/1267.
9526 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9527 instead of find_pc_mapped_section.
9528 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9529 not default to the section containing PC. Fix PR symtab/1519.
9530
9531 2004-02-09 Andrew Cagney <cagney@redhat.com>
9532
9533 * Makefile.in (mips-tdep.o): Update dependencies.
9534 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9535 "trad-frame.h".
9536 (mips_unwind_pc): Return the pseudo PC register.
9537 (mips_unwind_dummy_id): New function.
9538 (mips16_fetch_instruction): New function.
9539 (mips32_fetch_instruction): New function.
9540 (struct mips_frame_cache): Define.
9541 (mips_mdebug_frame_cache): New function.
9542 (mips_mdebug_frame_this_id): New function.
9543 (mips_mdebug_frame_prev_register): New function.
9544 (mips_mdebug_frame_unwind): Define.
9545 (mips_mdebug_frame_sniffer): New function.
9546 (mips_mdebug_frame_base_address): New function.
9547 (mips_mdebug_frame_base): Define.
9548 (mips_mdebug_frame_base_sniffer): New function.
9549 (mips_gdbarch_init): Append unwind and base sniffers. Set
9550 unwind_dummy_id.
9551
9552 2004-02-08 Andrew Cagney <cagney@redhat.com>
9553
9554 * frame.c: Print both the register number and name.
9555
9556 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9557 and a sed into a single sed. Make .c and .o patterns more robust.
9558 (OBS): Delete.
9559 (INIT_FILES): Replace OBS with COMMON_OBS.
9560 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9561
9562 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9563
9564 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9565 the PT_WCOOKIE request.
9566
9567 2004-02-08 Andrew Cagney <cagney@redhat.com>
9568
9569 * mips-tdep.c (mips_unwind_pc): New function.
9570 (mips_gdbarch_init): Set mips_unwind_pc.
9571
9572 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9573 (get_frame_id): Allow the UNKNOWN_FRAME.
9574 (frame_register_unwind, get_frame_type): Ditto.
9575
9576 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9577 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9578 unwind_dummy_id indicates a legacy frame.
9579
9580 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9581 * configure: Re-generate.
9582
9583 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9584 methods.
9585
9586 2004-02-08 Andrew Cagney <cagney@redhat.com>
9587
9588 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9589 makefile macro.
9590 * configure: Re-generate.
9591 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9592 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9593 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9594 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9595 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9596 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9597 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9598 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9599 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9600 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9601
9602 2004-02-07 Andrew Cagney <cagney@redhat.com>
9603
9604 * Makefile.in: Update all dependencies.
9605
9606 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9607 * configure: Re-generate.
9608 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9609 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9610 (COMMON_OBS): Add "main.o" and "annotate.o".
9611 (ANNOTATE_OBS): Delete.
9612 (OBS): Remove ANNOTATE_OBS.
9613 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9614 CONFIG_INITS.
9615 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9616 against CONFIG_OBS and "main.o".
9617 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9618 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9619
9620 * tui/tui-command.c: Include "gdb_string.h", delete register
9621 attribute, use ISO-C function signatures.
9622 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9623 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9624 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9625 * tui/tui.c: Ditto.
9626
9627 * tui/tui-command.c: Change variable and function names to lower
9628 case.
9629 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9630 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9631 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9632 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9633 * tui/tui-winsource.c, tui/tui.c: Ditto.
9634
9635 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9636
9637 * buildsym.c (free_pending_blocks, finish_block)
9638 (record_pending_block, make_blockvector, end_symtab): Replace
9639 symbol_obstack with objfile_obstack.
9640 * coffread.c (process_coff_symbol, coff_read_struct_type)
9641 (coff_read_enum_type): Ditto.
9642 * cp-namespace.c (initialize_namespace_symtab)
9643 (check_one_possible_namespace_symbol): Ditto.
9644 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9645 (dwarf2_symbol_mark_computed): Ditto.
9646 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9647 * elfread.c (elf_symtab_read): Ditto.
9648 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9649 (hpread_read_enum_type, hpread_read_function_type)
9650 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9651 Ditto.
9652 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9653 (java_link_class_type): Ditto.
9654 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9655 (new_symbol): Ditto.
9656 * minsyms.c (install_minimal_symbols): Ditto.
9657 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9658 (terminate_minimal_symbol_table): Replace symbol_obstack with
9659 objfile_obstack.
9660 (free_objfile): Remove freeing of symbol_obstack.
9661 * objfiles.h: Remove symbol_obstack field.
9662 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9663 objfile_obstack.
9664 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9665 symbol_obstack.
9666 (solib_add_common_symbols): Replace symbol_obstack with
9667 objfile_obstack.
9668 * somsolib.c (som_solib_add): Ditto.
9669 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9670 (common_block_start, common_block_end): Ditto.
9671 * symfile.c (reread_symbols): Remove freeing and init of
9672 symbol_obstack.
9673 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9674 * symfile.h: Update comment.
9675 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9676 stats printing.
9677 * symtab.c (symbol_set_names): Replace symbol_obstack with
9678 objfile_obstack.
9679 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9680 Update comments.
9681 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9682 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9683 objfile_obstack.
9684
9685 2004-02-07 Andrew Cagney <cagney@redhat.com>
9686
9687 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9688 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9689 fields and variables.
9690 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9691 (m_beInvisible): Delete macro.
9692 * tui/tui-data.h: Fix case case fields and variables.
9693 (m_genWinPtrIsNull): Delete macro.
9694 (tui_win_list): Rename winList.
9695 (TUI_SRC_WIN): Rename srcWin.
9696 (TUI_DISASM_WIN): Rename disassemWin.
9697 (TUI_DATA_WIN): Rename dataWin.
9698 (TUI_CMD_WIN): Rename cmdWin.
9699 (m_genWinPtrNotNull): Delete macro.
9700 (m_winPtrIsNull): Delete macro.
9701 (m_winPtrNotNull): Delete macro.
9702 (tui_win_is_source_type): Replace m_winIsSourceType
9703 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9704 (tui_win_has_locator): Replace m_hasLocator.
9705 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9706 m_setWinHighlightOff.
9707 * tui/tui-data.c: Update references.
9708 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9709 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9710 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9711 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9712 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9713 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9714 * tui/tui-winsource.c, tui/tui.c: Ditto.
9715
9716 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9717
9718 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9719 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9720 StackGhost.
9721
9722 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9723 variable `i6' to `i7'.
9724 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9725
9726 2004-02-07 Andrew Cagney <cagney@redhat.com>
9727
9728 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9729 (TuiPoint, TuiPointPtr): Ditto.
9730 (TuiStatus, TuiStatusPtr): Ditto.
9731 (TuiWinType, TuiWinTypePtr): Ditto.
9732 (struct tui_point): Rename _TuiPoint.
9733 (tui_get_low_disassembly_address): Rename
9734 tuiGetLowDisassemblyAddress.
9735 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9736 (tuiFree): Delete declaration.
9737 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9738 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9739 * tui/tui.c (tuiFree): Delete function.
9740 * cli/cli-cmds.c (disassemble_command): Update references.
9741 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9742 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9743 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9744 * tui/tui-winsource.c: Ditto.
9745
9746 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9747
9748 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9749 coffstab_build_psymtabs, elfstab_build_psymtabs)
9750 (stabsect_build_psymtabs): Replace psymbol_obstack with
9751 objfile_obstack.
9752 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9753 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9754 Ditto.
9755 * dwarfread.c (scan_compilation_units): Ditto.
9756 * elfread.c (elfstab_offset_sections): Ditto.
9757 * hppa-tdep.c (read_unwind_info): Ditto.
9758 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9759 (hpread_end_psymtab): Ditto.
9760 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9761 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9762 Ditto.
9763 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9764 * objfiles.c (add_to_objfile_sections)
9765 (build_objfile_section_table): Ditto.
9766 (allocate_objfile): Remove init of psymbol_obstack.
9767 (free_objfile): Remove freeing of psymbol_obstack.
9768 * objfiles.h (struct objfile): Remove field
9769 psymbol_obstack. Update comments.
9770 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9771 psymbol_obstack with objfile_obstack.
9772 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9773 psymbol_obstack.
9774 * somread.c (som_symfile_offsets, init_import_symbols)
9775 (init_export_symbols): Replace psymbol_obstack with
9776 objfile_obstack.
9777 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9778 * symfile.c (default_symfile_offsets, syms_from_objfile)
9779 (reread_symbols): Remove freeing and init of psymbol_obstack.
9780 (cashier_psymtab): Update comment.
9781 * symmisc.c (print_objfile_statistics): Don't report stats for
9782 psymbol obstack.
9783 * symtab.h (struct general_symbol_info, struct partial_symtab):
9784 Update comments.
9785 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9786 (xcoff_symfile_offsets): Replace psymbol_obstack with
9787 objfile_obstack.
9788
9789 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9790
9791 * objfiles.h (struct objfile): Add objfile_obstack field.
9792 Remove type_obstack field.
9793
9794 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9795 read_structure_scope read_enumeration, new_symbol): Replace
9796 type_obstack with objfile_obstack.
9797 * dwarfread.c (struct_type, enum_type): Ditto.
9798 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9799 (lookup_fundamental_type): Ditto.
9800 * gdbtypes.h (TYPE_ALLOC): Ditto.
9801 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9802 (hpread_read_doc_function_type, hpread_read_struct_type)
9803 (fix_static_member_physnames, hpread_read_array_type)
9804 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9805 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9806 (java_link_class_type): Ditto.
9807 * mdebugread.c (parse_type): Ditto.
9808 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9809 * solib-sunos.c (solib_add_common_symbols): Ditto.
9810 * stabsread.c (define_symbol, read_type, read_member_functions,
9811 read_cpp_abbrev, read_one_struct_field): Ditto.
9812 * symfile.c (reread_symbols): Ditto.
9813 * symmisc.c (print_objfile_statistics): Ditto.
9814
9815 2004-02-07 Andrew Cagney <cagney@redhat.com>
9816
9817 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9818 (tui_exec_info_content): Rename TuiExecInfoContent.
9819 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9820 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9821 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9822 (TuiList, TuiListPtr): Ditto.
9823 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9824 (TuiDataType, TuiDataTypePtr): Ditto.
9825 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9826 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9827 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9828 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9829 (TuiDataElement, TuiDataElementPtr): Ditto.
9830 (TuiWinElement, TuiWinElementPtr): Ditto.
9831 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9832 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9833 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9834 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9835 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9836 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9837 * tui/tui-command.c, tui/tui-data.c: Update references.
9838 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9839 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9840 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9841 * tui/tui-winsource.c, tui/tui.c: Ditto.
9842
9843 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9844
9845 * dwarf2-frame.h: Update copyright.
9846 (enum dwarf2_frame_reg_rule): New.
9847 (struct dwarf2_frame_state_reg): New.
9848 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9849 * dwarf2-frame.c: Update copyright.
9850 (enum dwarf2_reg_rule): Remove.
9851 (struct dwarf2_frame_state): Remove defenition of `struct
9852 dwarf2_frame_state_reg'.
9853 (read_reg): Call get_frame_arch to get the architecture instead of
9854 using CURRENT_GDBARCH.
9855 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9856 DWARF2_FRAME_.
9857 (dwarf2_frame_init_reg): New function.
9858 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9859 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9860 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9861 tags with DWARF2_FRAME_.
9862 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9863 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9864 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9865
9866 2004-02-06 Andrew Cagney <cagney@redhat.com>
9867
9868 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9869 (enum tui_data_type): Rename _TuiDataType.
9870 (struct tui_layout_def): Rename _TuiLayoutDef.
9871 (struct tui_source_element): Rename _TuiSourceElement.
9872 (struct tui_data_element): Rename _TuiDataElement.
9873 (struct tui_command_element): Rename _TuiCommandElement.
9874 (struct tui_locator_element): Rename _TuiLocatorElement.
9875 (union tui_which_element): Define.
9876 (struct tui_win_element): Rename _TuiWinElement.
9877 (struct tui_data_info): Rename _TuiDataInfo.
9878 (struct tui_source_info): Rename _TuiSourceInfo.
9879 (struct tui_command_info): Rename _TuiCommandInfo.
9880 (tui_initialize_static_data): Rename initializeStaticData.
9881 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9882 (tui_alloc_win_info): Rename allocWinInfo.
9883 (tui_init_generic_part): Rename initGenericPart.
9884 (tui_init_win_info): Rename initWinInfo.
9885 (tui_alloc_content): Rename allocContent.
9886 (tui_add_content_elements): Rename addContentElements.
9887 (tui_init_content_element): Rename initContentElement.
9888 (tui_free_window): Rename freeWindow.
9889 (tui_free_win_content): Rename freeWinContent.
9890 (tui_free_data_content): Rename freeDataContent.
9891 (tui_free_all_source_wins_content): Rename
9892 freeAllSourceWinsContent.
9893 (tui_del_window): Rename tuiDelWindow.
9894 (tui_del_data_windows): Rename tuiDelDataWindows.
9895 (tui_partial_win_by_name): Rename partialWinByName.
9896 (tui_win_name): Rename winName.
9897 (tui_current_layout): Rename currentLayout.
9898 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9899 (tui_term_height): Rename termHeight.
9900 (tui_set_term_height_to): Rename setTermHeightTo.
9901 (tui_term_width): Rename termWidth.
9902 (tui_set_term_width_to): Rename setTermWidthTo.
9903 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9904 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9905 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9906 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9907 (tui_source_windows): Rename sourceWindows.
9908 (tui_clear_source_windows): Rename clearSourceWindows.
9909 (tui_clear_source_windows_detail): Rename
9910 clearSourceWindowsDetail.
9911 (tui_clear_win_detail): Rename clearWinDetail.
9912 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9913 (tui_default_tab_len): Rename tuiDefaultTabLen.
9914 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9915 (tui_win_with_focus): Rename tuiWinWithFocus.
9916 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9917 (tui_layout_def): Rename tuiLayoutDef.
9918 (tui_win_resized): Rename tuiWinResized.
9919 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9920 (tui_next_win): Rename tuiNextWin.
9921 (tui_prev_win): Rename tuiPrevWin.
9922 (tui_add_to_source_windows): Rename addToSourceWindows.
9923 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9924 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9925 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9926 * tui/tui.c, tui/tui-data.c: Ditto.
9927 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9928 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9929
9930 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9931 (struct symtab): Declare.
9932 (tui_set_source_content): Rename tuiSetSourceContent.
9933 (tui_show_symtab_source): Rename tuiShowSource.
9934 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9935 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9936 * tui/tui-source.c: Update copyright. Update references.
9937 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9938 * tui/tui-stack.c: Update references.
9939
9940 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9941 (struct tui_win_info): Declare.
9942 (tui_scroll_forward): Rename tuiScrollForward.
9943 (tui_scroll_backward): Rename tuiScrollBackward.
9944 (tui_scroll_left): Rename tuiScrollLeft.
9945 (tui_scroll_right): Rename tuiScrollRight.
9946 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9947 (tui_resize_all): Rename tuiResizeAll.
9948 (tui_refresh_all_win): Rename tuiRefreshAll.
9949 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9950 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9951 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9952 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9953
9954 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9955 (tui_erase_data_content): Rename tuiEraseDataContent.
9956 (tui_display_all_data): Rename tuiDisplayAllData.
9957 (tui_check_data_values): Rename tuiCheckDataValues.
9958 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9959 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9960 (tui_first_data_element_no_in_line): Rename
9961 tuiFirstDataElementNoInLine.
9962 (tui_delete_data_content_windows): Rename
9963 tuiDeleteDataContentWindows.
9964 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9965 (tui_display_data_from): Rename tuiDisplayDataFrom.
9966 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9967 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9968 * tui/tui-win.c, tui/tui-regs.c: Update references.
9969 * tui/tui-layout.c, tui/tui.c: Update references.
9970
9971 * tui/tui-wingeneral.h: Update copyright.
9972 (m_allBeVisible): Delete macro.
9973 (m_allBeInvisible): Delete macro.
9974 (struct tui_gen_win_info): Declare.
9975 (struct tui_win_info): Declare.
9976 (tui_unhighlight_win): Rename unhighlightWin.
9977 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9978 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9979 (tui_make_window): Rename makeWindow.
9980 (tui_copy_win): Rename copyWin.
9981 (tui_box_win): Rename boxWin.
9982 (tui_highlight_win): Rename highlightWin.
9983 (tui_check_and_display_highlight_if_needed): Rename
9984 checkAndDisplayHighlightIfNeeded.
9985 (tui_refresh_all): Rename refreshAll.
9986 (tui_delete_win): Rename tuiDelwin.
9987 (tui_refresh_win): Rename tuiRefreshWin.
9988 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9989 (tui_make_visible, tui_make_invisible): New functions.
9990 (tui_make_all_visible, tui_make_all_invisible): New functions.
9991 (make_all_visible): Rename makeAllVisible.
9992 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9993 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9994 * tui/tui-windata.c, tui/tui-win.c: Update references.
9995 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9996 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9997
9998 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9999
10000 * proc-api.c (write_with_trace): Initialize local variable to
10001 silence compiler warning.
10002
10003 2004-02-06 Andrew Cagney <cagney@redhat.com>
10004
10005 * tui/tui-source.h: Do not include "defs.h".
10006 (struct tui_win_info): Declare.
10007 (tui_set_source_content_nil): Declare.
10008 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10009 (union tui_line_or_address): Rename _TuiLineOrAddress.
10010 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10011 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10012 (tui_update_source_window_as_is): Rename
10013 tuiUpdateSourceWindowAsIs.
10014 (tui_update_source_windows_with_addr): Rename
10015 tuiUpdateSourceWindowsWithAddr.
10016 (tui_update_source_windows_with_line): Rename
10017 tuiUpdateSourceWindowsWithLine.
10018 (tui_clear_source_content): Rename tuiClearSourceContent.
10019 (tui_erase_source_content): Rename tuiEraseSourceContent.
10020 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10021 (tui_show_source_content): Rename tuiShowSourceContent.
10022 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10023 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10024 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10025 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10026 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10027 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10028 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10029 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10030 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10031 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10032 (struct tui_win_info): Declare.
10033 * tui/tui-stack.c: Update references.
10034 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10035 * tui/tui-win.c, tui/tui-source.c: Ditto.
10036 * tui/tui.c, tui/tui-disasm.c: Ditto.
10037
10038 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10039
10040 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10041 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10042
10043 2004-02-05 Mark Kettenis <kettenis@gnu.org>
10044
10045 * infrun.c (handle_inferior_event): Allow for breakpoint
10046 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10047 and SIGEMT. Update comments.
10048 * NEWS (Revised SPARC target): Mention support for non-executable
10049 stack.
10050
10051 2004-02-04 Mark Kettenis <kettenis@gnu.org>
10052
10053 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10054 * inftarg.c: Update copyright year.
10055 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10056 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10057 (sparc_xfer_wcookie): New function.
10058 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10059 * Makefile.in (sparc-nat.o): Update dependencies.
10060 * config/sparc/nm-nbsd.h: Include "target.h".
10061 (NATIVE_XFER_WCOOKIE): New define.
10062 (sparc_xfer_wcookie): New prototype.
10063
10064 2004-02-04 Andrew Cagney <cagney@redhat.com>
10065
10066 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10067 SYSCALL_TRAP function.
10068 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10069
10070 2004-02-04 Andrew Cagney <cagney@redhat.com>
10071 Daniel Jacobowitz <drow@mvista.com>
10072
10073 * objfiles.h: Delete comments refering to inside_entry_func and
10074 DEPRECATED_FRAME_CHAIN_VALID.
10075 * defs.h (inside_entry_func): Update prototype..
10076 * blockframe.c (inside_entry_func): Rename to
10077 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10078 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10079
10080 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10081
10082 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10083 outside of #ifdef SOLIB_ADD region.
10084 (do_restore_lang_radix_cleanup): Ditto.
10085 (resolve_pending_breakpoint): Ditto.
10086
10087 2004-02-03 Andrew Cagney <cagney@redhat.com>
10088
10089 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10090 (process_note_abi_tag_sections): Delete unused function.
10091 (ia64_read_fp): Delete unused function.
10092 (gdbarch_extract_struct_value_address): Delete declaration.
10093
10094 2004-02-02 Andrew Cagney <cagney@redhat.com>
10095
10096 * vax-tdep.c (vax_frame_chain): Delete call to
10097 deprecated_inside_entry_file.
10098 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10099
10100 2004-02-02 Mark Kettenis <kettenis@gnu.org>
10101
10102 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10103 column that's "empty" or "same value" when eliminating REG_RA
10104 rules.
10105
10106 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10107
10108 * NEWS: Add information about new pending breakpoint support.
10109
10110 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10111
10112 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10113 and pending fields for pending breakpoint support.
10114 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10115 (condition_command): Only parse condition if not a pending
10116 breakpoint.
10117 (print_one_breakpoint): Add support for pending breakpoints.
10118 (describe_other_breakpoints): Add checks to verify we are not
10119 dealing with pending breakpoints.
10120 (check_duplicates): Don't check pending breakpoints.
10121 (set_raw_breakpoint): Initialize pending flag.
10122 (do_restore_lang_radix_cleanup): New cleanup routine.
10123 (resolve_pending_breakpoint): New function.
10124 (re_enable_breakpoints_in_shlibs): Try and resolve any
10125 pending breakpoints via resolve_pending_breakpoint.
10126 (mention): Add pending breakpoint support.
10127 (parse_breakpoint_sals): Add new parameter to pass to
10128 decode_line_1 to indicate silent errors when files or functions
10129 are not found. Change all callers.
10130 (do_captured_parse_breakpoint): New function.
10131 (break_command_1): Change prototype to return an rc value and to
10132 take an optional pending breakpoint pointer. Support creating
10133 a pending breakpoint if a "not found" form of error occurs when
10134 parsing the breakpoint. Also support resolving an existing pending
10135 breakpoint and be silent if the resolution fails.
10136 (create_breakpoints): Change prototype to take pending breakpoint
10137 pointer. When resolving a pending breakpoint, use the new pointer
10138 to provide a conditional or commands added by the end-user.
10139 (delete_breakpoint): Add appropriate check for pending.
10140 (breakpoint_re_set_one): Ditto.
10141 (do_enable_breakpoint): Ditto.
10142
10143 2004-02-02 David Carlton <carlton@kealia.com>
10144
10145 * valops.c (enum oload_classification): New.
10146 (find_overload_match): Break implementation into separate
10147 functions; delete #if 0'd code; look for symbols within
10148 namespaces.
10149 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10150 (find_oload_champ,oload_method_static,classify_oload_match): New.
10151 * cp-support.h: Add declaration for cp_func_name; update
10152 declaration for make_symbol_overload_list.
10153 * cp-support.c (cp_func_name): New.
10154 (overload_list_add_symbol): Fix comment, use
10155 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10156 (make_symbol_overload_list): Take a function name and a namespace
10157 instead of a symbol; change implementation.
10158 (make_symbol_overload_list_using): New.
10159 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10160
10161 2004-02-02 Fred Fish <fnf@redhat.com>
10162
10163 * main.c (gdb_stdtarg): Move definition to group with other
10164 gdb_stdtarg definitions and update copyright years.
10165 * remote-sim.c (gdb_os_write_stderr): Write output to
10166 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10167 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
10168 gdb_stderr stream and update copyright years.
10169
10170 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10171
10172 * Makefile.in (mips-linux-nat.o): Update dependencies.
10173 * mips-linux-nat.c: Include mips-tdep.h.
10174
10175 2004-02-01 Roland McGrath <roland@redhat.com>
10176
10177 * sol-thread.c (sol_thread_xfer_partial): New function.
10178 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10179 (init_sol_core_ops): Likewise.
10180
10181 * procfs.c (procfs_xfer_partial): New function.
10182 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10183 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10184
10185 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10186 procfs_xfer_auxv function.
10187
10188 * procfs.c (procfs_make_note_section): If we can read
10189 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10190 * linux-proc.c (linux_make_note_section): Likewise.
10191
10192 * auxv.h: New file.
10193 * auxv.c: New file.
10194 * Makefile.in (auxv_h): New variable.
10195 (COMMON_OBS): Add auxv.o here.
10196 (auxv.o): New target.
10197
10198 * corelow.c (core_xfer_partial): New function.
10199 (init_core_ops): Use it for core_ops.to_xfer_partial.
10200
10201 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10202 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10203 macro if that is defined.
10204
10205 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10206
10207 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10208 and check the specified thread for each breakpoint.
10209 * breakpoint.h (bpstat_stop_status): Update prototype.
10210 * infrun.c (handle_inferior_event): Update calls to
10211 bpstat_stop_status.
10212
10213 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10214
10215 * Makefile.in (cli-cmds.o): Add $(readline_h).
10216
10217 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10218
10219 * cli/cli-cmds.c: Include readline.h.
10220 (complete_command): Pass the start of the last word to
10221 complete_line.
10222
10223 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10224
10225 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10226 argument, and change first argument to a CORE_ADDR.
10227 * breakpoint.h (bpstat_stop_status): Update prototype.
10228 * infrun.c (adjust_pc_after_break): Add a new comment.
10229 (handle_inferior_event): Update calls to bpstat_stop_status.
10230
10231 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10232
10233 * breakpoint.h: Update copyright years.
10234
10235 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10236
10237 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10238 (bpstat_stop_status): Don't decrement PC.
10239 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10240 prototype.
10241 * infrun.c (adjust_pc_after_break): New function.
10242 (handle_inferior_event): Call it, early. Remove later references
10243 to DECR_PC_AFTER_BREAK.
10244 (normal_stop): Add commentary.
10245
10246 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10247
10248 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10249 2004-01-27 double-free fix.
10250
10251 2004-01-31 Mark Kettenis <kettenis@gnu.org>
10252
10253 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10254 (sparc32_frame_prev_register): Handle StackGhost.
10255 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10256
10257 2004-01-29 Roland McGrath <roland@redhat.com>
10258
10259 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10260 * configure: Regenerated.
10261
10262 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10263 * Makefile.in (procfs.o): Add dep.
10264
10265 2004-01-28 Andrew Cagney <cagney@redhat.com>
10266
10267 * tui/tui-stack.h: Update copyright.
10268 (struct frame_info): Add opaque declaration.
10269 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10270 (tui_show_locator_content): Rename tuiShowLocatorContent.
10271 (tui_show_frame_info): Rename tuiShowFrameInfo.
10272 * tui/tui-stack.c: Update copyright. Update references.
10273 * tui/tui-winsource.c: Update references.
10274 * tui/tui-win.c: Update references.
10275 * tui/tui-layout.c: Update references.
10276 * tui/tui-hooks.c: Update copyright, update references.
10277 * tui/tui.c: Update copyright, update references.
10278 * tui/tui-disasm.c: Update references.
10279
10280 2004-01-28 David Carlton <carlton@kealia.com>
10281
10282 * dwarf2read.c (add_partial_structure): Use demangled name if
10283 namespace equals "".
10284
10285 2004-01-27 Jim Blandy <jimb@redhat.com>
10286
10287 Clean up misapplied patch:
10288 * dwarf2read.c (determine_prefix): Change one of the two forward
10289 declarations for 'determine_prefix_aux' to a declaration for this.
10290 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10291 argument to 'die_specification'.
10292
10293 * dwarf2read.c (read_func_scope): Re-indent comment.
10294
10295 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
10296
10297 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10298 b->exp to NULL after freeing so that error during re-parsing or
10299 evaluation of expressions associated with breakpoint don't
10300 eventually lead to re-freeing of storage.
10301 Committed by Andrew Cagney.
10302
10303 2004-01-27 Andrew Cagney <cagney@redhat.com>
10304
10305 * source.c (ambiguous_line_spec): Delete undefined declaration.
10306 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10307 (m32r_set_server_address, m32r_set_download_path): Ditto.
10308 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10309
10310 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
10311
10312 * dwarf2read.c: Update calls to changed and renamed functions, and
10313 references to moved variables.
10314
10315 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10316 language, language_defn, list_in_scope, and ftypes members.
10317 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10318 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10319 (baseaddr): Remove globals.
10320
10321 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10322 (set_cu_language, die_is_declaration, die_specification)
10323 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10324 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10325 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10326 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10327
10328 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10329 cu.list_in_scope. Don't initialize cu_header_offset.
10330 (add_partial_symbol): Add local baseaddr.
10331 (psymtab_to_symtab_1): Add local baseaddr. Use
10332 objfile->section_offsets for consistency. Don't initialize
10333 cu_header_offset; do initialize cu.header.offset and
10334 cu.list_in_scope.
10335 (read_file_scope, read_func_scope, read_lexical_block_scope)
10336 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10337
10338 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10339
10340 * PROBLEMS: Add gdb/1516.
10341
10342 2003-12-29 Robert Millan <robertmh@gnu.org>
10343
10344 Patch committed by Andrw Cagney.
10345 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10346 * configure.tgt: Match knetbsd*-gnu.
10347
10348 2004-01-26 Andrew Cagney <cagney@redhat.com>
10349
10350 * breakpoint.c (catch_command_1): Delete #ifdef code.
10351 (catch_fork_command_1): Delete #ifdef wrapper.
10352 (catch_exec_command_1): Ditto.
10353 (catch_load_command_1): Ditto.
10354 (catch_unload_command_1): Ditto.
10355
10356 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10357 (catch_breakpoint): Delete #if0ed function.
10358 (disable_catch_breakpoint): Ditto.
10359 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10360 (disable_catch, enable_catch, delete_catch): Ditto.
10361
10362 2004-01-26 Andrew Cagney <cagney@redhat.com>
10363
10364 * remote.c (echo_check, quit_flag): Delete variables.
10365 (cisco_kernel_mode): Delete variable.
10366 (minitelnet_return, tty_input, escape_count): Delete variables.
10367 (remote_cisco_mode): Delete variable.
10368 (remote_cisco_open, remote_cisco_close): Delete function.
10369 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10370 (init_remote_cisco_ops): Delete function.
10371 (_initialize_remote): Do not install "remote cisco" code.
10372 (read_frame): Delete cisco specific code.
10373 (remote_info_process): Delete function.
10374 (remote_wait): Delete cisco specific code.
10375 (remote_cisco_section_offsets): Delete function.
10376 (remote_cisco_objfile_relocate): Delete function.
10377 (remote_async_wait): Delete cisco specific code.
10378 (minitelnet, readtty, readsocket): Delete function.
10379
10380 2004-01-26 Andrew Cagney <cagney@redhat.com>
10381
10382 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10383 comments mentioning extract_returned_value_address.
10384 * infcmd.c (print_return_value): Update. Add comments on
10385 extract_returned_value_address.
10386 * stack.c (return_command): Add comments on
10387 extract_returned_value_address.
10388 * values.c: Update comment.
10389 * m32r-tdep.c: Update comment.
10390 * sparc-tdep.c: Update comment.
10391 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10393 * sh64-tdep.c (sh64_gdbarch_init): Update.
10394 * sh-tdep.c (sh_gdbarch_init): Update.
10395 * s390-tdep.c (s390_gdbarch_init): Update.
10396 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10397 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10398 * m68k-tdep.c (m68k_gdbarch_init): Update.
10399 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10400 * m32r-tdep.c (m32r_gdbarch_init): Update.
10401 * ia64-tdep.c (ia64_gdbarch_init): Update.
10402 * h8300-tdep.c (h8300_gdbarch_init): Update.
10403 * frv-tdep.c (frv_gdbarch_init): Update.
10404 * arm-tdep.c (arm_gdbarch_init): Update.
10405 * alpha-tdep.c (alpha_gdbarch_init): Update.
10406
10407 2004-01-26 Andrew Cagney <cagney@redhat.com>
10408
10409 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10410 SYMBOL_LOCATION_FUNCS
10411 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10412 "struct symbol_ops".
10413 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10414 type to "struct symbol_ops".
10415 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10416 (struct symbol): Replace ".aux_value.loc.funcs" and
10417 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10418 (SYMBOL_OBJFILE): Delete macro.
10419 (SYMBOL_LOCATION_FUNCS): Delete macro.
10420 (SYMBOL_LOCATION_BATON): Update.
10421 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10422 intead of SYMBOL_LOCATION_FUNCS.
10423 * ax-gdb.c (gen_var_ref): Ditto.
10424 * printcmd.c (address_info): Ditto.
10425 * findvar.c (read_var_value): Ditto.
10426 (symbol_read_needs_frame): Ditto.
10427
10428 2004-01-26 Andrew Cagney <cagney@redhat.com>
10429
10430 * dwarf2read.c (read_func_scope): Document frame-base hack.
10431
10432 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10433
10434 * infcmd.c (print_return_value): Plug memory leak; delete
10435 ui_stream object. Rename argument `structure_return' to
10436 `struct_return'.
10437
10438 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10439
10440 * infcmd.c (print_return_value): Wrap long lines.
10441 (finish_command_continuation, finish_command): Remove unused
10442 variable `funcaddr'. Fix some coding-standards problems.
10443
10444 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
10445 SECT_SIZE is large enough, not whether it's exactly the right size.
10446 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10447 TDEP->fpregset to zero.
10448
10449 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
10450 floating-point registers for traditional NetBSD core files.
10451 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10452 TDEP->sizeof_fpregset here.
10453
10454 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10455
10456 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10457 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10458 function with code split out from
10459 sparc32nbsd_sigcontext_frame_cache.
10460 (sparc32nbsd_sigcontext_frame_cache): Use
10461 sparc32nbsd_sigcontext_saved_regs.
10462 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10463 OpenBSD.
10464 * sparcobsd-tdep.c: New file.
10465 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10466 (sparcobsd-tdep.o): New dependency.
10467 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10468 * config/sparc/obsd.mt: New file.
10469
10470 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10471 TDEP->fpregset to be initialized to enable core file register
10472 sets.
10473
10474 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10475
10476 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10477 Add opaque declarations.
10478 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10479 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10480 function with code split out from
10481 sparc64nbsd_sigcontext_frame_cache.
10482 (sparc64nbsd_sigcontext_frame_cache): Use
10483 sparc64nbsd_sigcontext_saved_regs.
10484 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10485 OpenBSD.
10486 * sparc64obsd-tdep.c: New file.
10487 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10488 (sparc64obsd-tdep.o): New dependency.
10489 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10490 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10491 * config/sparc/obsd64.mt: New file.
10492
10493 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10494 read the instruction at PC.
10495
10496 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10497 value of GDB_OSABI_DEFAULT.
10498 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10499 instead of GDB_OSABI_NETBSD_AOUT.
10500
10501 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10502
10503 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10504 copyright.
10505
10506 2004-01-23 Andrew Cagney <cagney@redhat.com>
10507
10508 * printcmd.c (display_command): Replace tui_set_display call with
10509 tui_set_layout_for_display_command.
10510 * tui/tui.h (enum tui_win_type): Define.
10511 (tui_set_layout): Delete declaration.
10512 (tui_set_layout_for_display_command): Rename set_tui_layout.
10513 * tui/tui-data.h (enum tui_layout_type): Define.
10514 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10515 "tui.h".
10516 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10517 (tui_default_win_height): Rename tuiDefaultWinHeight.
10518 (tui_default_win_viewport_height): Rename
10519 tuiDefaultWinViewportHeight.
10520 (tui_set_layout): RenametuiSetLayout.
10521 * tui/tui-layout.c: Update references.
10522 * tui/tui.c: Update references.
10523 * tui/tui-disasm.c: Update references.
10524
10525 2004-01-23 David Carlton <carlton@kealia.com>
10526
10527 Partial workaround for PR c++/1511:
10528 * cp-namespace.c: Include frame.h.
10529 (cp_lookup_transparent_type): New
10530 (cp_lookup_transparent_type_loop): New.
10531 * cp-support.h: Declare cp_lookup_transparent_type.
10532 * symtab.c (basic_lookup_transparent_type): Renamed from
10533 lookup_transparent_type.
10534 (lookup_transparent_type): Replace old body by a call to
10535 current_language->la_lookup_transparent_type.
10536 * symtab.h: Update copyright. Declare
10537 basic_lookup_transparent_type.
10538 * language.h: Update copyright.
10539 (struct language_defn): Add la_lookup_transparent_type.
10540 * language.c: Update copyright.
10541 (unknown_language_defn): Add basic_lookup_transparent_type.
10542 (auto_language_defn): Add basic_lookup_transparent_type.
10543 (local_language_defn): Add basic_lookup_transparent_type.
10544 * ada-lang.c: Update copyright.
10545 (ada_language_defn): Add basic_lookup_transparent_type.
10546 * c-lang.c: Update copyright.
10547 (c_language_defn): Add basic_lookup_transparent_type.
10548 (cplus_language_defn): Add basic_lookup_transparent_type.
10549 (asm_language_defn): Add basic_lookup_transparent_type.
10550 (minimal_language_defn): Add basic_lookup_transparent_type.
10551 * f-lang.c: Update copyright.
10552 (f_language_defn): Add basic_lookup_transparent_type.
10553 * jv-lang.c: Update copyright.
10554 (java_language_defn): Add basic_lookup_transparent_type.
10555 * m2-lang.c: Update copyright.
10556 (m2_language_defn): Add basic_lookup_transparent_type.
10557 * objc-lang.c: Update copyright.
10558 (objc_language_defn): Add basic_lookup_transparent_type.
10559 * p-lang.c: Update copyright.
10560 (p_language_defn): Add basic_lookup_transparent_type.
10561 * scm-lang.c: Update copyright.
10562 (scm_language_defn): Add basic_lookup_transparent_type.
10563 * Makefile.in (cp-namespace.o): Depend on frame.h.
10564
10565 2004-01-23 David Carlton <carlton@kealia.com>
10566
10567 Patch for PR c++/1520:
10568 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10569 properly if we have a specification die.
10570 (determine_prefix_aux): Rename from determine_prefix.
10571 (determine_prefix): Like the old determine_prefix, but never
10572 returns NULL.
10573
10574 2004-01-23 Theodore A. Roth <troth@openavr.org>
10575
10576 * avr-tdep.c: Update copyright.
10577 (avr_iaddr_p): Delete unused function.
10578 (avr_saddr_p): Delete unused function.
10579
10580 2004-01-23 David Carlton <carlton@kealia.com>
10581
10582 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10583 Fix for PR symtab/1534.
10584
10585 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10586
10587 * NEWS (New native configurations): Mention OpenBSD/sparc and
10588 OpenBSD/sparc64.
10589 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10590 * configure.host: Likewise.
10591 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10592 handler for OpenBSD.
10593 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10594
10595 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10596
10597 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10598 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10599
10600 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10601 * cli/cli-cmds.c (shell_escape): Likewise.
10602
10603 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10604 OpenBSD .note.openbsd.ident sections.
10605
10606 2004-01-22 David Carlton <carlton@kealia.com>
10607
10608 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10609 get_scope_pc_bounds.
10610 (read_file_scope): Ditto.
10611 (get_scope_pc_bounds): New function, produced by extracting code
10612 from the above two functions, consolidating it, and adding support
10613 for DW_TAG_namespace.
10614
10615 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10616
10617 * osabi.c (MAX_NOTESZ): New define.
10618 (check_note): New function.
10619 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10620 check_note.
10621
10622 2004-01-21 Roland McGrath <roland@redhat.com>
10623
10624 * MAINTAINERS (write after approval): Add myself.
10625
10626 2004-01-21 Eli Zaretskii <eliz@gnu.org>
10627
10628 * utils.c (init_page_info): Move declarations of `rows' and
10629 `cols' before the __GO32__-specific code. Move the closing brace
10630 outside the #ifdef __GO32__..#endif block.
10631 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10632
10633 2004-01-21 Paul Brook <paul@codesourcery.com>
10634
10635 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10636 BPSTAT_WHAT_CHECK_SHLIBS.
10637
10638 2004-01-21 Paul Brook <paul@codesourcery.com>
10639
10640 * MAINTAINERS: Add myself to write-after-approval.
10641
10642 2004-01-20 Andrew Cagney <cagney@redhat.com>
10643
10644 * ax-gdb.c (print_axs_value): Delete unused function.
10645 * jv-lang.c (java_lookup_type): Delete unused function.
10646 * cli/cli-dump.c (dump_filetype): Delete unused function.
10647 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10648 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10649 (mips_getstring): Delete unused function.
10650 (pmon_insert_breakpoint): Delete #if0ed function.
10651 (PMON_MAX_BP): Delete #if0ed MACRO.
10652 (mips_pmon_bp_info): Delete #if0ed variable.
10653 (pmon_remove_breakpoint): Delete #if0ed function.
10654 * monitor.c (monitor_write_even_block): Delete unused function.
10655 (monitor_write_memory_block): Delete #if0ed code.
10656 * dink32-rom.c (dink32_load): Delete unused function.
10657 (_initialize_dink32_rom): Delete #if0ed code.
10658 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10659
10660 * tui/tui-command.c: Update references.
10661 * tui/tui-io.c: Update references.
10662 * tui/tui-command.h: Update copyright.
10663 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10664
10665 * source.c (ambiguous_line_spec): Delete never-defined function.
10666 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10667 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10668 * cli/cli-cmds.c (validate_comname): Ditto.
10669
10670 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10671 "tui-data.h".
10672 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10673 (tui_show_disassem): Rename tuiShowDisassem.
10674 (tui_show_disassem_and_update_source): Rename
10675 tuiVerticalDisassemScroll.
10676 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10677 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10678 * tui/tui.h: Update copyright.
10679 (enum tui_status): Define.
10680 * tui/tui-data.h (enum tui_scroll_direction): Define.
10681 * tui/tui-disasm.c: Update copyright. Update references.
10682 * tui/tui-winsource.c: Update copyright. Update references.
10683 * tui/tui-win.c: Update references.
10684 * tui/tui-layout.c: Update references.
10685
10686 2004-01-20 Andrew Cagney <cagney@redhat.com>
10687
10688 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10689 sym2 to start of block.
10690
10691 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10692
10693 * MAINTAINERS: Delete mmalloc.
10694 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10695 * NEWS: Mention removal of --with-malloc.
10696 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10697 * config.in: Regenerate.
10698 * configure: Regenerate.
10699 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10700 USE_MMALLOC, MMCHECK_FORCE.
10701 * gdbinit.in: Remove mmalloc.
10702 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10703 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10704 * config/i386/go32.mh: Likewise.
10705 * config/i386/interix.mh: Likewise.
10706 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10707
10708 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10709
10710 * linespec.c (decode_variable, symtab_from_filename): Call
10711 error_silent with error message instead of throwing an exception
10712 directly.
10713 * defs.h (error_silent, error_output_message): Add prototypes.
10714 (catch_exceptions_with_msg): Ditto.
10715 * utils.c (error_silent, error_output_message): New functions.
10716 * top.c (catch_exceptions_with_msg): New function.
10717
10718 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10719
10720 * mi/mi-cmds.h (enum print_values): Add definition.
10721
10722 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10723 type and value for simple data types and just the name and type
10724 for complex ones, if required.
10725
10726 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10727 children, if required.
10728
10729 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10730
10731 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10732 unused declarations.
10733
10734 2004-01-19 Andrew Cagney <cagney@redhat.com>
10735
10736 * top.h (mapped_symbol_files): Delete declaration.
10737 * main.c (captured_main): Delete option "m" and "mapped".
10738 * objfiles.c (mapped_symbol_files): Delete variable.
10739 * symfile.c (symbol_file_command): Delete mmap code.
10740 (symbol_file_add_with_addrs_or_offsets): Ditto.
10741 (add_symbol_file_command, reread_separate_symbols): Ditto.
10742 * objfiles.h (OBJF_MAPPED): Delete.
10743 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10744 (free_objfile) [USE_MMALLOC]: Ditto.
10745 (open_existing_mapped_file): Delete function.
10746 (open_mapped_file): Delete function.
10747 (map_to_file): Delete function.
10748
10749 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10750
10751 * infrun.c (step_into_function): Account for possible breakpoint
10752 adjustment when computing ``stop_func_start''.
10753
10754 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10755
10756 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10757 the region size against the size of a pointer, not the size of
10758 a register as given by DEPRECATED_REGISTER_SIZE.
10759
10760 2004-01-19 Andrew Cagney <cagney@redhat.com>
10761
10762 * tui/tui-regs.h: Include "tui-data.h".
10763 (tuiFirstRegElementNoInLine): Delete declaration.
10764 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10765 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10766 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10767 (tui_calculate_regs_column_count): Rename
10768 tuiCalculateRegsColumnCount.
10769 (tui_check_register_values): Rename tuiCheckRegisterValues.
10770 (tui_show_registers): Rename tuiShowRegisters.
10771 (tui_display_registers_from_line): Rename
10772 tuiDisplayRegistersFromLine.
10773 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10774 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10775 (tui_first_reg_element_no_inline): Rename
10776 tuiFirstRegElementNoInLine.
10777 * tui/tui-data.h: Update copyright.
10778 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10779 * tui/tui-windata.c: Update copyright, update references.
10780 * tui/tui-regs.c: Update copyright, update references.
10781 * tui/tui-win.c: Update copyright, update references.
10782 * tui/tui-layout.c: Update copyright, update references.
10783
10784 2004-01-18 Andrew Cagney <cagney@redhat.com>
10785
10786 * tui/tui-io.c: Update copyright.
10787 (key_is_end_sequence, key_is_backspace): New functions.
10788 (key_is_command_char, key_is_start_sequence): New function.
10789 (tui_getc): Update references.
10790 * tui/tui-io.h: Update copyright.
10791 (m_tuiStartNewLine): Delete macro.
10792 (m_isBackspace, m_isDeleteChar): Delete macros.
10793 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10794 (m_isNextPage, m_isPrevPage): Delete macros.
10795 (m_isLeftArrow, m_isRightArrow): Delete macros.
10796 (m_isXdbStyleCommandChar): Delete macro.
10797 (key_is_start_sequence): Declare, replace m_isStartSequence.
10798 (key_is_end_sequence): Declare, replace m_isEndSequence.
10799 (key_is_backspace): Declare ,replace m_isBackspace.
10800 (key_is_command_char): Declare, replace m_isCommandChar.
10801 * tui/tui-command.c: Update copyright.
10802 (tuiDispatchCtrlChar): Update references.
10803
10804 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10805 tuiSourceWin.h.
10806
10807 * tui/tui-command.c: Rename tui/tuiCommand.c.
10808 * tui/tui-command.h: Rename tui/tuiCommand.h.
10809 * tui/tui-data.c: Rename tui/tuiData.c.
10810 * tui/tui-data.h: Rename tui/tuiData.h.
10811 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10812 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10813 * tui/tui-io.c: Rename tui/tuiIO.c.
10814 * tui/tui-io.h: Rename tui/tuiIO.h.
10815 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10816 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10817 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10818 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10819 * tui/tui-source.c: Rename tui/tuiSource.c.
10820 * tui/tui-source.h: Rename tui/tuiSource.h.
10821 * tui/tui-stack.c: Rename tui/tuiStack.c.
10822 * tui/tui-stack.h: Rename tui/tuiStack.h.
10823 * tui/tui-win.c: Rename tui/tuiWin.c.
10824 * tui/tui-win.h: Rename tui/tuiWin.h.
10825 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10826 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10827 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10828 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10829 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10830 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10831 * tui/tui-file.c: Update includes.
10832 * tui/tui-hooks.c: Update includes.
10833 * tui/tui-interp.c: Update includes.
10834 * tui/tui.c: Update includes.
10835 * Makefile.in: Update all tui/ dependencies.
10836 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10837
10838 * Makefile.in: Update copyright. Update dependencies.
10839
10840 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10841 problem.
10842
10843 2004-01-18 Andrew Cagney <cagney@redhat.com>
10844
10845 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10846 instead of register_gdbarch_init.
10847
10848 * remote-sds.c (tohex): Delete unused function. Update copyright.
10849 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10850 * v850-tdep.c (v850_register_virtual_size): Ditto.
10851 * target.c (normal_target_post_startup_inferior): Ditto.
10852 * source.c (ambiguous_line_spec): Ditto.
10853 * remote.c (adapt_remote_get_threadinfo): Ditto.
10854 * mi/mi-out.c (out_field_fmt): Ditto.
10855 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10856 (output_control_change_notification): Ditto.
10857 * m68k-tdep.c (m68k_register_byte): Ditto.
10858 (m68k_remote_breakpoint_from_pc): Ditto.
10859 * ui-out.c (init_ui_out_state): Delete unused declaration.
10860 * stabsread.c (search_value): Ditto.
10861 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10862 * maint.c (print_section_table): Ditto.
10863 * infrun.c (set_follow_fork_mode_command): Ditto.
10864
10865 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10866
10867 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10868 DW_CFA_def_cfa_exporession. Add support for
10869 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10870 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10871
10872 2004-01-18 Andrew Cagney <cagney@redhat.com>
10873
10874 * ocd.c: Update copyright.
10875 (bdm_read_register_command): Delete unused function.
10876 (_initialize_remote_ocd): Delete commented out reference.
10877 (get_quoted_char, reset_packet): Delete #if0ed function.
10878 (output_packet, put_quoted_char): Delete #if0ed function.
10879 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10880 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10881 (BDM_BREAKPOINT): Delete #if0ed macro.
10882 (remote_timeout): Delete #if0ed variable.
10883
10884 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10885
10886 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10887 (core-sol2.o): Remove dependency.
10888 * core-sol2.c: Remove file.
10889
10890 2004-01-17 Andrew Cagney <cagney@redhat.com>
10891
10892 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10893 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10894 enums.
10895
10896 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10897
10898 * remote.c: Update copyright years.
10899
10900 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10901
10902 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10903
10904 2004-01-17 Andrew Cagney <cagney@redhat.com>
10905
10906 * mdebugread.c: Update copyright.
10907 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10908 (parse_type, parse_procedure): Ditto.
10909 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10910
10911 * cris-tdep.c (cris_store_struct_return): Put back accidently
10912 deleted function.
10913
10914 * gdbarch.sh: Update copyright year.
10915 * gdbarch.h, gdbarch.c: Re-generate.
10916
10917 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10918
10919 Suggested by George Anzinger.
10920 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10921 correct stack offset. Include unknown opcode numbers in the error
10922 message.
10923
10924 2004-01-17 Andrew Cagney <cagney@redhat.com>
10925
10926 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10927 extract_struct_value_address, i386 does not set it.
10928 * sparc64-tdep.c (sparc64_init_abi): Do not set
10929 extract_struct_value_address, never called.
10930 (sparc64_extract_struct_value_address): Delete function.
10931 * m68hc11-tdep.c: Update copyright.
10932 (m68hc11_gdbarch_init): Delete redundant assignment of
10933 extract_struct_value_address.
10934 * i386-tdep.c: Update copyright.
10935 (i386_gdbarch_init): Do not set extract_struct_value_address,
10936 never called.
10937 (i386_extract_struct_value_address): Delete function.
10938 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10939 extract_struct_value_address, never called.
10940 (sparc32_extract_struct_value_address): #if 0 function. Add
10941 comments explaining its future.
10942
10943 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10944
10945 * arm-tdep.c (arm_write_pc): New function.
10946 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10947
10948 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10949
10950 * breakpoint.c (must_shift_inst_regs): Delete.
10951 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10952 and SHIFT_INST_REGS.
10953 * infcmd.c (step_1, step_1_continuation): Delete references to
10954 SHIFT_INST_REGS.
10955 * infrun.c (keep_going): Likewise.
10956 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10957 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10958
10959 2004-01-17 Andrew Cagney <cagney@redhat.com>
10960
10961 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10962 * gdbarch.h, gdbarch.c: Re-generate.
10963 * infcmd.c (print_return_value): Delete reference to
10964 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10965
10966 * cris-tdep.c (cris_gdbarch_init): Do not set
10967 deprecated_extract_struct_value_address.
10968
10969 * xstormy16-tdep.c: Update copyright.
10970 (xstormy16_extract_struct_value_address): Update to current
10971 extract struct value address interface.
10972 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10973 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10974 current extract struct value address interface.
10975 (sh64_gdbarch_init): Set extract_struct_value_address.
10976
10977 * cris-tdep.c: Update copyright.
10978 (cris_extract_struct_value_address): Delete function.
10979 (struct_return_address): Delete variable.
10980 (cris_store_struct_return): Do not set struct_return_address.
10981
10982 * mcore-tdep.c: Update copyright.
10983 (mcore_extract_struct_value_address): Delete function. Update
10984 comments.
10985 (mcore_gdbarch_init): Update.
10986 * mn10300-tdep.c: Update copyright.
10987 (mn10300_extract_struct_value_address): Delete function.
10988 (mn10300_gdbarch_init): Update.
10989 * v850-tdep.c: Update copyright.
10990 (v850_extract_struct_value_address): Delete.
10991 (v850_gdbarch_init): Update.
10992 * ns32k-tdep.c: Update copyright.
10993 (ns32k_extract_struct_value_address): Delete.
10994 (ns32k_gdbarch_init): Update.
10995 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10996 (hppa_gdbarch_init): Update.
10997 * vax-tdep.c: Update copyright.
10998 (vax_extract_struct_value_address): Delete.
10999 (vax_gdbarch_init): Update.
11000
11001 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11002 * gdbarch.h, gdbarch.c: Re-generate.
11003 * procfs.c (procfs_fetch_registers): Delete reference to
11004 DEPRECATED_NPC_REGNUM.
11005 (procfs_store_registers): Ditto.
11006 * regcache.c (generic_target_write_pc): Simplify.
11007 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11008
11009 * core-sol2.c (fetch_core_registers): Replace
11010 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11011
11012 * hppa-tdep.c: Update copyright year.
11013 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11014 NPC_REGNUM.
11015 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11016
11017 * mips-tdep.c (mips_write_pc): New function.
11018 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11019 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11020 (mips_find_saved_regs, mips_software_single_step: Ditto.
11021 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11022 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11023
11024 2004-01-17 Andrew Cagney <cagney@redhat.com>
11025
11026 * mips-tdep.c: Re-indent. Group functions by ABI.
11027
11028 2004-01-17 Andrew Cagney <cagney@redhat.com>
11029
11030 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11031 * gdbarch.c: Re-generate.
11032 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11033 DECR_PC_AFTER_BREAK to zero.
11034 * vax-tdep.c (vax_gdbarch_init): Ditto.
11035 * v850-tdep.c (v850_gdbarch_init): Ditto.
11036 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11037 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11038 * sh-tdep.c (sh_gdbarch_init): Ditto.
11039 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11040 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11041 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11042 * mips-tdep.c (mips_gdbarch_init): Ditto.
11043 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11044 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11045 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11046 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11047 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11048 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11049 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11050 * frv-tdep.c (frv_gdbarch_init): Ditto.
11051 * cris-tdep.c (cris_gdbarch_init): Ditto.
11052 * avr-tdep.c (avr_gdbarch_init): Ditto.
11053 * arm-tdep.c (arm_gdbarch_init): Ditto.
11054 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11055
11056 2004-01-17 J. Brobecker <brobecker@gnat.com>
11057
11058 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11059 Delete, no longer used.
11060 (read_subrange_type): New function, mostly extracted from
11061 read_array_type().
11062 (read_array_type): Replace extracted code by call to
11063 read_subrange_type().
11064 (dwarf2_get_attr_constant_value): New function.
11065 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11066 (add_partial_symbol): Likewise.
11067 (process_die): Likewise.
11068 (new_symbol): Likewise.
11069 (read_type_die): Likewise.
11070
11071 2004-01-16 Andrew Cagney <cagney@redhat.com>
11072
11073 * symfile.c: Update copyright year.
11074 (compare_symbols): Delete unused function.
11075 * stabsread.c: Update copyright year.
11076 (lrs_general_complaint): Delete unused function.
11077 (ref_search_value): Ditto.
11078 (get_substring): Delete declaration.
11079 * sh64-tdep.c: Update copyright year.
11080 (sh64_get_gdb_regnum): Delete unused function.
11081 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11082 Delete unused function.
11083
11084 2004-01-17 Mark Kettenis <kettenis@gnu.org>
11085
11086 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11087 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11088
11089 2004-01-16 Andrew Cagney <cagney@redhat.com>
11090
11091 Changes from Peter Schauer.
11092 * rs6000-tdep.c: Update copyright year.
11093 (rs6000_push_dummy_call): Update the stack pointer before
11094 accessing the corresponding stack region.
11095 * rs6000-nat.c: Update copyright year.
11096 (set_host_arch): Set "info.abfd" to "exec_bfd".
11097
11098 2004-01-15 Mark Kettenis <kettenis@gnu.org>
11099
11100 * blockframe.c: Update copyright year.
11101 (inside_entry_func): Don't treat a zero PC specially.
11102
11103 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
11104
11105 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11106 variable.
11107 (gcore_create_callback): Ditto. Skip any memory segment that has
11108 no permissions set.
11109
11110 2004-01-14 David Carlton <carlton@kealia.com>
11111
11112 Change symbols for C++ nested types to contain the fully qualified
11113 name, if possible. (At least in the DWARF-2 case.) Partial fix
11114 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11115 c++/895.
11116 * c-exp.y (qualified_type): Handle types nested within classes.
11117 * cp-namespace.c: Update comments.
11118 (cp_set_block_scope): Delete #if 0.
11119 (cp_lookup_nested_type): Handle types nested within classes.
11120 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11121 when appropriate.
11122 (add_partial_symbol): Add the name of the enclosing namespace to
11123 types.
11124 (pdi_needs_namespace): New.
11125 (add_partial_namespace): Tweak comment.
11126 (add_partial_structure): New.
11127 (psymtab_to_symtab_1): Initialize processing_current_prefix
11128 here...
11129 (process_die): instead of here.
11130 (read_structure_scope): Try to figure out the name of the class or
11131 namespace that the structure might be defined within.
11132 (read_enumeration): Generate fully-qualified names, if possible.
11133 (read_namespace): Don't set name to NULL.
11134 (die_specification): New.
11135 (new_symbol): Generate fully-qualified names for types.
11136 (read_type_die): Determine appropriate prefix.
11137 (determine_prefix): New.
11138 (typename_concat): New.
11139 (class_name): New.
11140 * valops.c (value_aggregate_elt): Pass NOSIDE to
11141 value_struct_elt_for_reference.
11142 (value_struct_elt_for_reference): Make static, add NOSIDE
11143 parameter, call value_maybe_namespace_elt as a last resort.
11144 (value_namespace_elt): Break out code into
11145 value_maybe_namespace_elt.
11146 (value_maybe_namespace_elt): New.
11147
11148 2004-01-12 Andrew Cagney <cagney@redhat.com>
11149
11150 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11151 cooked floating-point registers.
11152 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11153 and value_to_register.
11154
11155 2004-01-13 Andrew Cagney <cagney@redhat.com>
11156
11157 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11158 * gdbarch.c: Re-generate.
11159 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11160 FUNCTION_START_OFFSET.
11161 * v850-tdep.c (v850_gdbarch_init): Ditto.
11162 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11163 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11164 * sh-tdep.c (sh_gdbarch_init): Ditto.
11165 * s390-tdep.c (s390_gdbarch_init): Ditto.
11166 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11167 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11168 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11169 * mips-tdep.c (mips_gdbarch_init): Ditto.
11170 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11171 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11173 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11174 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11175 * i386-tdep.c (i386_gdbarch_init): Ditto.
11176 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11177 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11178 * frv-tdep.c (frv_gdbarch_init): Ditto.
11179 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11180 * cris-tdep.c (cris_gdbarch_init): Ditto.
11181 * avr-tdep.c (avr_gdbarch_init): Ditto.
11182 * arm-tdep.c (arm_gdbarch_init): Ditto.
11183 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11184
11185 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
11186
11187 * infrun.c (follow_fork_mode_ask): Remove.
11188 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11189 (follow_fork): Simplify and remove internal error for
11190 follow_fork_mode_ask.
11191 (_initialize_infrun): Update "set follow-fork-mode" help text.
11192
11193 2004-01-13 Andrew Cagney <cagney@redhat.com>
11194
11195 * configure.in: Update copyright year.
11196 (build_warnings): Add -Wunused-label.
11197 * configure: Re-generate.
11198
11199 2004-01-12 Andrew Cagney <cagney@redhat.com>
11200
11201 * exec.h (exec_ops): Make "extern".
11202
11203 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11204 the function is void.
11205 (mips_pseudo_register_write): Ditto.
11206
11207 2004-01-12 Andrew Cagney <cagney@redhat.com>
11208
11209 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11210 call. Never defined.
11211 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11212 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11213 (struct sparc_gregset, struct regcache): Ditto.
11214 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11215
11216 2004-01-12 Andrew Cagney <cagney@redhat.com>
11217
11218 * mi/ChangeLog: Delete file. Renamed to ...
11219 * mi/ChangeLog-1999-2003: New file.
11220 * tui/ChangeLog: Delete file. Renamed to ...
11221 * tui/ChangeLog-1998-2003: New file.
11222
11223 2004-01-11 Mark Kettenis <kettenis@gnu.org>
11224
11225 * sparc64nbsd-tdep.c: Include "regset.h".
11226 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11227 Remove variables.
11228 (fetch_core_registers): Remove function.
11229 (sparc64nbsd_core_fns): Remove variable.
11230 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11231 functions.
11232 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11233 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11234 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11235
11236 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11237 sparc_extract_struct_value_address.
11238 (sparc32_gdbarch_init): Set extract_struct_value_address.
11239 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11240 function.
11241 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11242 return_value_on_stack.
11243
11244 * NEWS: Mention that %cs and %ss have been added to the AMD64
11245 configurations
11246
11247 * frame.c: Update copyright year.
11248 (get_prev_frame): Improve comment.
11249
11250 * sparc64fbsd-tdep.c: Include "regset.h".
11251 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11252 Remove variables.
11253 (fetch_core_registers): Remove function.
11254 (sparc64fbsd_core_fns): Remove variable.
11255 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11256 functions.
11257 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11258 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11259 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
11260
11261 * sparcnbsd-tdep.c: Include "regset.h".
11262 (fetch_core_registers): Remove function.
11263 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11264 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11265 functions.
11266 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11267 TDEP->fpregset.
11268 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
11269
11270 * sparc-tdep.h (struct regset): Provide opaque declaration.
11271 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11272 fpregset and sizeof_fpregset members.
11273 * sparc-tdep.c (struct regset): Provide opaque declaration.
11274 (sparc_regset_from_core_section): New function.
11275 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11276 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11277 Set regset_from_core_section when appropriate.
11278
11279 2004-01-10 Mark Kettenis <kettenis@gnu.org>
11280
11281 * x86-64-tdep.c (amd64_non_pod_p): New function.
11282 (amd64_classify_aggregate): Return class memory for non-POD
11283 C++ structure types.
11284
11285 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11286 argument. Use it to reserve a register if necessary.
11287 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11288 amd64_push_arguments.
11289
11290 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11291
11292 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11293 register numbers in comments.
11294 * x86-64-tdep.h: Update copyright year.
11295 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11296 Adjust for addition of %cs and %ss.
11297 * amd64fbsd-nat.c: Update copyright year.
11298 (reg_offset): Add register offsets for %cs and %ss.
11299 * amd64fbsd-tdep.c: Update copyright year.
11300 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11301 (amd64fbsd_sc_reg_offset): Likewise.
11302 * x86-64-linux-nat.c: Update copyright year.
11303 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11304 and %ss.
11305 * amd64nbsd-nat.c: Update copyright year.
11306 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11307 * amd64nbsd-tdep.c: Update copyright year.
11308 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11309 * x86-64-linux-tdep.c: Update copyright year.
11310 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11311 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11312 * regformats/reg-x86-64.dat: Add %cs and %ss.
11313
11314 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11315 variables to prevent long lines. Update comments to reflect
11316 reality.
11317
11318 2004-01-09 David Carlton <carlton@kealia.com>
11319
11320 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11321 * dwarf2read.c (read_namespace): Pull out name-generating code
11322 into namespace_name. Rename previous_namespace to previous_prefix
11323 and processing_current_namespace to processing_current_prefix..
11324 (namespace_name): New function.
11325 (add_partial_symbol): Substitute uses of pdi->name with
11326 actual_name.
11327 * cp-support.h: Rename processing_current_namespace to
11328 processing_current_prefix.
11329 Update copyright year.
11330 * cp-namespace.c: Rename processing_current_namespace to
11331 processing_current_prefix.
11332 Update copyright year.
11333
11334 2004-01-09 Andrew Cagney <cagney@redhat.com>
11335
11336 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11337
11338 2004-01-09 Mark Kettenis <kettenis@gnu.org>
11339
11340 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11341 complaining.
11342 (process_one_symbol): Deal with N_PATCH stabs.
11343
11344 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11345
11346 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11347 ifdeffed code.
11348 Update copyright year.
11349
11350 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11351
11352 * config/pa/tm-hppa.h: Update extern declarations for
11353 hppa32_hpux_frame_saved_pc_in_sigtramp,
11354 hppa32_hpux_frame_base_before_sigtramp, and
11355 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11356
11357 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11358
11359 * config/pa/tm-hppah.h: Update copyright years.
11360
11361 2004-01-08 Andrew Cagney <cagney@redhat.com>
11362
11363 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11364 (mips_o32_reg_struct_has_addr): Delete function.
11365 (mips_gdbarch_init): Update.
11366 (mips_extract_struct_value_address): Delete function.
11367
11368 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11369
11370 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11371 reality.
11372
11373 2004-01-07 Andrew Cagney <cagney@redhat.com>
11374
11375 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11376 architecture's elf flags (when available).
11377
11378 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11379 FPU to the start, check the MIPS FPU when looking for an old
11380 architecture.
11381 (set_mipsfpu_single_command): Update the architecture.
11382 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11383
11384 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11385 (mips_mask_address_p): Add "tdep" parameter.
11386 (show_mask_address, mips_addr_bits_remove): Update.
11387 (mips_dump_tdep): Update.
11388 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11389 (MIPS_STACK_ARGSIZE): Delete macro.
11390 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11391 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11392 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11393 (mips_dump_tdep): Update.
11394 (MIPS_SAVED_REGSIZE): Delete macro.
11395 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11396 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11397 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11398 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11399 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11400 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11401 (mips_pop_frame, return_value_location): Update.
11402 (mips_n32n64_return_value, mips_dump_tdep): Update.
11403
11404 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11405 MIPS ABI.
11406
11407 * mips-tdep.c: Update copyright.
11408 (mips_gdbarch_init): Merge two code blocks handling the register
11409 name and number layout.
11410
11411 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11412
11413 * tracepoint.c (validate_actionline): Fix segv at EOF
11414
11415 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11416
11417 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11418 properly for static fields.
11419
11420 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11421 Jason Molenda <jmolenda@apple.com>
11422
11423 * disasm.c: Update copyright to include 2004.
11424 (do_mixed_source_and_assembly): For uiout asm list
11425 and tuple cleanups, initialize to null_cleanup instead of
11426 NULL and do so prior to loop. Only reset when we close off
11427 the tuple/list. Move check for whether to close off the
11428 asm tuple/list to after dump_insns call where it will be run
11429 on each loop iteration.
11430
11431 2004-01-05 Andrew Cagney <cagney@redhat.com>
11432
11433 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11434 should be a switch case and not a label.
11435 * mips-tdep.c (mips32_next_pc): Delete unused labels
11436 "greater_equal_branch" and "less_zero_branch".
11437 * jv-valprint.c (java_print_value_fields): Delete unused label
11438 "flush_it".
11439
11440 * target.c (unpush_target): Only close a target that is in the
11441 target stack.
11442
11443 2004-01-05 Mark Kettenis <kettenis@gnu.org>
11444
11445 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11446 address from [sp + 64] instead of %o2.
11447
11448 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11449 fixes PR backtrace/1476.
11450
11451 2004-01-05 Andrew Cagney <cagney@redhat.com>
11452
11453 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11454 move to start of file.
11455 * i386-tdep.h (struct regcache): Add opaque declaration.
11456 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11457 declaration.
11458 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11459 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11460 * win32-nat.c (fake_create_process): Use ISO C style definition.
11461 * stabsread.c (define_symbol): Delete #ifndef
11462 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11463 stabs_argument_has_addr call, macro never defined.
11464
11465 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11466
11467 * op50-rom.c: Delete.
11468 * w89k-rom.c: Delete.
11469 * Makefile.in: Remove references.
11470
11471 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11472
11473 * x86-64-tdep.c: Update copyright year.
11474 (struct amd64_register_info): Rename from x86_64_register_info.
11475 (amd64_register_info): Rename from x86_64_register_info.
11476 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11477 (amd64_register_name): Rename from x86_64_register_name.
11478 (amd64_register_type): Rename from x86_64_register_type.
11479 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11480 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11481 (amd64_dwarf_reg_to_regnum): Rename from
11482 x86_64_dwarf_reg_to_regnum.
11483 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11484 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11485 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11486 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11487 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11488 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11489 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11490 (amd64_frame_cache): Rename from x86_64_frame_cache.
11491 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11492 (amd64_frame_prev_register): Rename from
11493 x86_64_frame_prev_register.
11494 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11495 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11496 (amd64_sigtramp_frame_cache): Rename from
11497 x86_64_sigtramp_frame_cache.
11498 (amd64_sigtramp_frame_prev_register): Rename from
11499 x86_64_sigtramp_frame_prev_register.
11500 (amd64_sigtramp_frame_unwind): Rename from
11501 x86_64_sigtramp_frame_unwind.
11502 (amd64_sigtramp_frame_sniffer): Rename from
11503 x86_64_sigtramp_frame_sniffer.
11504 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11505 (amd64_frame_base): Rename from x86_64_frame_base.
11506 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11507 (amd64_frame_align): Rename from x86_64_frame_align.
11508 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11509 (amd64_regset_from_core_section): Rename from
11510 x86_64_regset_from_core_section.
11511 (x86_64_init_abi): Update comments.
11512
11513 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11514
11515 * MAINTAINERS (write after approval): Add myself.
11516
11517 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11518
11519 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11520 `float' arguments.
11521
11522 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11523
11524 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11525 such that it mentions a specific version of GCC that exhibits this
11526 bug.
11527
11528 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11529
11530 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11531 structure that has a single `float' member, store it in %f1 in
11532 addition to %f0.
11533
11534 * sparc-sol2-nat.c: Add missing '\'.
11535
11536 * sparc-tdep.c (sparc32_return_value): New function.
11537 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11538 Remove functions.
11539 (sparc32_gdbarch_init): Set return_value, don't set
11540 extract_return_value, store_return_value, use_struct_convention
11541 and return_value_on_stack.
11542
11543 * sparc-sol2-nat.c: Add missing ')'.
11544
11545 2004-01-03 J. Brobecker <brobecker@gnat.com>
11546
11547 * infrun.c (handle_step_into_function): New function.
11548 (handle_inferior_event): Extract out some code into the new
11549 function above.
11550
11551 2004-01-03 J. Brobecker <brobecker@gnat.com>
11552
11553 * infrun.c (handle_inferior_event): Move the declaration of
11554 real_stop_pc inside the if blocks where it is used.
11555
11556 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11557
11558 * sparc64-tdep.c (sparc64_16_byte_align_p)
11559 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11560 Use check_typedef to get subtypes of structures and unions.
11561 (sparc64_store_return_value): Fix calculation of the appropriate
11562 offset into VALBUF when storing a structure or union.
11563 (sparc64_return_value): New function.
11564 (sparc64_use_struct_convention): Remove function.
11565 (sparc64_init_abi): Set return_value, don't set
11566 extract_return_value, store_return_value and
11567 use_struct_convention.
11568
11569 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11570
11571 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11572 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11573 gdb/config/alpha/xm-alphaosf.h,
11574 gdb/config/powerpc/tm-ppcle-eabi.h,
11575 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11576 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11577 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11578 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11579 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11580 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11581 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11582 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11583 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11584 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11585 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11586 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11587 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11588 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11589 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11590 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11591 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11592 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11593 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11594 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11595 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11596 Remove lines for .cvsignore files.
11597
11598 2004-01-03 J. Brobecker <brobecker@gnat.com>
11599
11600 * infrun.c: Back out the previous change.
11601
11602 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11603
11604 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11605 sparc-*-sunos4* to the list of REMOVED configurations.
11606
11607 * configure.tgt: Add back sparc-*-vxworks*.
11608 * remote-vxsparc.c: Remove all includes except for "defs.h",
11609 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11610 Include "sparc-tdep.h".
11611 (SPARC_R_G1): New define.
11612 (vxsparc_gregset): New variable.
11613 (ext_format_sparc): Remove extern declaration.
11614 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11615 sparc32_supply_fpregset.
11616 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11617 sparc_collect_rwindow and sparc32_collect_fpregset.
11618 * config/sparc/tm-vxworks.h: New file, based on recently removed
11619 tm-vxsparc.h.
11620 * config/sparc/vxworks.mt: New file, based on recently removed
11621 vxworks.mt.
11622
11623 2004-01-03 J. Brobecker <brobecker@gnat.com>
11624
11625 * infrun.c (handle_step_into_function): New function.
11626 (handle_inferior_event): Extract out some code into the new
11627 function above.
11628
11629 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11630
11631 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11632 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11633 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11634 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11635 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11636 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11637 (sparc_nat_h): New variable.
11638 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11639 (tm-sun4os4.h): Remove dependency.
11640 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11641 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11642 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11643 sparc-tdep.o): Update dependencies.
11644 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11645 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11646 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11647 dependencies.
11648 * configure.host: Remove existing sparc-*-lynxos*,
11649 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11650 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11651 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11652 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11653 triplets.
11654 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11655 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11656 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11657 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11658 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11659 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11660 sparc64-*-solaris2* and sparc64-*-* triplets.
11661 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11662 "symtab.h" and "objfiles.h".
11663 (BIAS): Remove define.
11664 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11665 (X_DISP19): Remove macros.
11666 (sparc_fetch_instruction): Remove function.
11667 (struct gdbarch_tdep): Remove definition.
11668 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11669 (sparc_breakpoint_from_pc): Remove function.
11670 (struct sparc64_frame_cache): Remove definition.
11671 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11672 sparc64_unwind_pc): Remove functions.
11673 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11674 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11675 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11676 (sparc64_frame_cache): Change return type to `struct
11677 sparc_frame_cache *'. Simply call sparc_frame_cache.
11678 (sparc64_frame_this_id, sparc64_frame_prev_register,
11679 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11680 instead of `struct sparc64_frame_cache.
11681 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11682 sparc_analyze_control_transfer, sparc_software_single_step,
11683 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11684 _initialize_sparc64_tdep): Remove functions.
11685 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11686 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11687 macros.
11688 (sparc64_supply_gregset, sparc64_collect_gregset,
11689 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11690 (sparc64_init_abi): New function.
11691 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11692 inclusion guard. Include "sparc-tdep.h".
11693 (BIAS): Define.
11694 (r_tstate_offset, r_fprs_offset): New defines.
11695 (enum sparc_regnum): Remove defenition.
11696 (enum sparc64_regnum): Reformat.
11697 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11698 (sparc64_init_abi, sparc64_supply_gregset,
11699 sparc64_collect_gregset, sparc64_supply_fpregset,
11700 sparc64_collect_fpregset): New prototypes.
11701 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11702 Add extern declarations.
11703 (sparc64_sol2_init_abi): New prototype.
11704 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11705 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11706 prototypes.
11707 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11708 "sparnbsd-nat.h".
11709 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11710 functions.
11711 (_initialize_sparc64fbsd_nat): Remove initialization of
11712 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11713 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11714 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11715 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11716 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11717 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11718 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11719 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11720 (sparc64fbsd_r_y_offset): Remove variables.
11721 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11722 Make static and const.
11723 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11724 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11725 functions.
11726 (sparc64fbsd_gregset): New variable.
11727 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11728 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11729 and sparc64_supply_fpregset.
11730 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11731 (sparc64fbsd_sigtramp_frame_this_id)
11732 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11733 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11734 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11735 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11736 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11737 * sparcnbsd-tdep.c: Update copyright year. Include
11738 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11739 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11740 "value.h" and "sparcnbsd-tdep.h".
11741 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11742 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11743 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11744 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11745 defines.
11746 (sparcnbsd_gregset): New variable.
11747 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11748 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11749 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11750 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11751 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11752 variables.
11753 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11754 (sparc32nbsd_sigcontext_frame_this_id)
11755 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11756 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11757 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11758 (sparcnbsd_get_longjmp_target_32,
11759 sparcnbsd_get_longjmp_target_64): Remove functions.
11760 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11761 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11762 sparcnbsd_init_elf): Remove.
11763 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11764 (sparcnbsd_elf_init_abi): New functions.
11765 (_initialize_sparcnbsd_tdep): New prototype.
11766 (_initialize_sparnbsd_tdep): Update.
11767 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11768 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11769 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11770 * config/sparc/linux.mh: Update comment.
11771 (XM_FILE, HOST_IPC): Remove variables.
11772 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11773 sparc-linux-nat.o.
11774 * config/sparc/linux.mt: Update comment.
11775 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11776 * config/sparc/nbsd.mt: Reformat.
11777 * config/sparc/nbsd64.mh: Update comment.
11778 (NATDEPFILES): Add sparc-nat.o.
11779 * config/sparc/nbsd64.mt: Update comment.
11780 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11781 (TM_FILE): Set to tm-nbsd.h.
11782 * config/sparc/nbsdelf.mh: Update comment.
11783 (NATDEPFILES): Add sparc-nat.o.
11784 (XM_FILE): Delete.
11785 * config/sparc/nbsdaout.mh: Update comment.
11786 (NATDEPFILES): Add sparc-nat.o
11787 (XM_FILE): Delete.
11788 * config/sparc/nm-linux.h: Update copyright year. Don't include
11789 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11790 inclusion.
11791 (KERNEL_U_SIZE): Remove define.
11792 (kernel_u_size): Remove prototype.
11793 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11794 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11795 "regcache.h".
11796 (CHILD_PREPARE_TO_STORE): Remove define.
11797 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11798 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11799 sparcnbsd-nat.c: Rewrite files.
11800 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11801 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11802 sparcnbsd-tdep.h: Remove files.
11803 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11804 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11805 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11806 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11807 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11808 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11809 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11810 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11811 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11812 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11813 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11814 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11815 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11816 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11817 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11818 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11819 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11820 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11821 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11822
11823 2004-01-02 Andrew Cagney <cagney@redhat.com>
11824
11825 From 2003-12-18 Kazuhiro Inaoka:
11826 * configure.host: Add m32r-linux target.
11827
11828 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11829
11830 * top.c (print_gdb_version): Update year to 2004.
11831
11832 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11833
11834 * MAINTAINERS: Add myself to the write-after-approval category.
11835
11836 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11837
11838 From Bernardo Innocenti <bernie@develer.com>:
11839 * configure.tgt: Add uClinux target.
11840
11841 2004-01-02 Andrew Cagney <cagney@redhat.com>
11842
11843 * utils.c (do_my_cleanups): Make static, add forward declaration.
11844 * defs.h (do_my_cleanups): Delete declaration.
11845
11846 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11847
11848 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11849 bfd/ChangeLog-0203.
11850
11851 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11852
11853 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11854 in <machine/reg.h>.
11855 * configure, config.in: Regenerate.
11856
11857 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11858 tui/ChangeLog-1998-2003.
11859 \f
11860 Local Variables:
11861 mode: change-log
11862 left-margin: 8
11863 fill-column: 74
11864 version-control: never
11865 End:
This page took 0.314399 seconds and 4 git commands to generate.