* hpux-core.c (thread_section_p): New function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b7ffc4a8
AC
12004-09-12 Andrew Cagney <cagney@gnu.org>
2
2bfb72ee
AC
3 * valprint.c (print_longest): Use fputs_filtered. Make "val"
4 const.
5 * Makefile.in (valprint.o): Delete explict rule.
6
4f17c3c1
AC
7 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
8 reported by Dave Anderson.
9
f810308b
AC
10 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
11
b7ffc4a8
AC
12 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
13
28b41c52
AC
142004-09-12 Salvador E. Tropea <set@users.sf.net>
15 Andrew Cagney <cagney@gnu.org>
16
17 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
18 (mi_cmd_data_list_register_values)
19 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
20 the register number computation.
21
5bf970f9
AC
222004-09-12 Andrew Cagney <cagney@gnu.org>
23
24 * ppcnbsd-nat.c: Include "inf-ptrace.h".
25 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
26 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
27 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
28 target.
29 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
30 inf-ptrace.o and inf-child.o.
31 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
32 * Makefile.in: Update dependencies.
33
0759e0bf
AC
342004-09-11 Andrew Cagney <cagney@gnu.org>
35
36 * language.c (hex_string, hex_string_custom): Move from here ...
37 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
38 (CELLSIZE): Increase to 50.
39 * language.h (hex_string, hex_string_custom): Move from here ...
40 * defs.h: ... to here.
41 * Makefile.in: Update all dependencies.
42
bb599908
PH
432004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
44
45 * language.c (local_hex_format_custom): Remove.
46 (local_hex_string): Rename to hex_string, use C format, and move to
47 utils.c
48 (local_hex_string_custom): Rename to hex_string_custom and change
49 interface. Now uses C format. Move to utils.c
50 (local_octal_format_custom): Remove.
51 (local_decimal_format_custom): Remove.
52 (unknown_language_defn): Remove language-specific number
53 formatting entries.
54 (auto_language_defn): Ditto.
55 (local_language_defn): Ditto.
56 * language.h (struct language_format_info): Delete declaration.
57 (struct language_defn): Remove language_format_info fields
58 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
59 (local_binary_format): Remove macro.
60 (local_binary_format_prefix): Remove macro.
61 (local_binary_format_specifier): Remove macro.
62 (local_binary_format_suffix): Remove macro.
63 (local_octal_format): Remove macro.
64 (local_octal_format_prefix): Remove macro.
65 (local_octal_format_specifier): Remove macro.
66 (local_octal_format_suffix): Remove macro.
67 (local_decimal_format): Remove macro.
68 (local_decimal_format_prefix): Remove macro.
69 (local_decimal_format_specifier): Remove macro.
70 (local_decimal_format_suffix): Remove macro.
71 (local_hex_format): Remove macro.
72 (local_hex_format_prefix): Remove macro.
73 (local_hex_format_specifier): Remove macro.
74 (local_hex_format_suffix): Remove macro.
75 (local_decimal_format_custom): Remove.
76 (local_octal_format_custom): Remove.
77 (local_hex_format_custom): Remove.
78 (local_hex_string): Rename to hex_string and move to defs.h.
79 (local_hex_string_custom): Rename to hex_string_custom, change
80 interface, and move to defs.h.
81 * utils.c: (int_string): New function.
82 (hex_string): New function (from language.c).
83 (hex_string_custom): New function (from language.c).
84 (octal2str): New function.
85 (decimal2str): Add width parameter.
86 (paddr_u): Use new decimal2str interface.
87 (paddr_d): Ditto.
88 * defs.h (hex_string): Declare.
89 (hex_string_custom): Declare.
90 (int_string): Declare.
91 * printcmd.c (print_scalar_formatted): Remove localized binary
92 formatting.
93 * valprint.c (print_longest): Use int_string.
94 (print_floating): Use C hex format.
95 (print_hex_chars): Ditto.
96 (print_binary_chars): Remove language-specific formatting.
97 (print_octal_chars): Use C octal format.
98 (print_decimal_chars): Delocalize format.
99 (print_decimal): Remove.
100 * ada-lang.c (ada_language_defn): Remove language-specific number
101 formatting entries.
102 * p-lang.c (pascal_language_defn): Ditto.
103 * c-lang.c (c_language_defn): Ditto.
104 (cplus_language_defn): Ditto.
105 (asm_language_defn): Ditto.
106 (minimal_language_defn): Ditto.
107 * f-lang.c (f_language_defn): Ditto.
108 * jv-lang.c (java_language_defn): Ditto.
109 * m2-lang.c (m2_language_defn): Ditto.
110 * scm-lang.c (scm_language_defn): Ditto.
111 * objc-lang.c (objc_language_defn): Ditto.
112 * memattr.c (mem_info_command): Use renamed hex_string_custom with
113 new interface.
114 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
115 * ui-out.c (ui_out_field_core_addr): Ditto.
116 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
117 * exec.c (print_section_info): Ditto.
118 * i387-tdep.c (print_i387_status_word): Ditto.
119 (print_i387_control_word): Ditto.
120 (i387_print_float_info): Ditto.
121 * maint.c (maint_print_section_info): Ditto.
122 * solib.c (info_sharedlibrary_command): Ditto.
123 * somsolib.c (som_sharedlibrary_info_command): Ditto.
124 * symtab.c (print_msymbol_info): Ditto.
125 * tracepoint.c (tracepoints_info): Ditto.
126 * solib-frv.c (lm_base): Ditto.
127 (frv_current_sos): Ditto.
128 (enable_break2): Ditto.
129 (enable_break): Ditto.
130 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
131 (process_one_symbol): Ditto.
132 * infcmd.c (program_info): Ditto.
133 * mdebugread.c (parse_partial_symbols): Ditto.
134 * symfile.c (add_symbol_file_command): Ditto.
135 * cli/cli-cmds.c (edit_command): Ditto.
136 (list_command): Ditto.
137 * infcall.c (call_function_by_hand): Ditto.
138 * remote-vx.c (vx_run_files_info): Ditto.
139 (vx_wait): Ditto.
140 (vx_attach): Ditto.
141 (vx_detach): Ditto.
142 (vx_kill): Ditto.
143 * aix-thread.c (pdc_symbol_addrs): Ditto.
144 (pdc_read_regs): Ditto.
145 (pdc_write_regs): Ditto.
146 (pdc_read_data): Ditto.
147 (pdc_write_data): Ditto.
148 * d10v-tdep.c (display_trace): Ditto.
149 * rs6000-nat.c (find_toc_address): Ditto.
150 * aix-thread.c: Don't include language.h.
151 * buildsym.c: Ditto.
152 * dbxread.c: Ditto.
153 * mdebugread.c: Ditto.
154 * rs6000-nat.c: Ditto.
155 * buildsym.c (make_blockvector): Use renamed hex_string.
156
33f2d567
JM
1572004-09-10 Jason Molenda (jmolenda@apple.com)
158
159 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
160 chars after 'if' or 'while' commands in user-defined commands.
161
7b90c3f9
JB
1622004-09-08 Jim Blandy <jimb@redhat.com>
163
164 Fix bug reported and analyzed by Olivier Crete:
165 * symfile.c (copy_section_addr_info): New function.
166 (symbol_file_add_with_addrs_or_offsets): Use it to save the
167 original set of address arguments, instead of handwritten code
168 that uses one length to allocate and a different length to
169 initialize. Use make_cleanup_free_section_addr_info.
170 * symfile.h (copy_section_addr_info): New declaration.
171 * utils.c: #include "symfile.h".
172 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
173 New functions.
174 * defs.h (make_cleanup_free_section_addr_info): New declaration.
175 * Makefile.in (utils.o): Update dependencies.
176
b26a6851
AC
1772004-09-08 Andrew Cagney <cagney@gnu.org>
178
179 * thread-db.c (keep_thread_db): Delete.
180 (thread_db_new_objfile, thread_db_create_inferior)
181 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
182
be24b061
MK
1832004-09-08 Mark Kettenis <kettenis@gnu.org>
184
f6792ef4
MK
185 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
186 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
187 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
188 (i386_frameless_signal_p): Remove prototype.
189 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
190 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
191 I386_SSE_NUM_REGS.
192 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
193 instead of FP0_REGNUM.
194 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
195 of FP0_REGNUM and FPC_REGNUM.
196
eeefdaa7
MK
197 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
198 (sunos_solib_create_inferior_hook): Don't call
199 sunos_relocate_main_executable.
200
be24b061
MK
201 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
202 solib_svr4_fetch_link_map_offsets to
203 svr4_ilp32_fetch_link_map_offsets.
204 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
205 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
206 svr4_ilp32_fetch_link_map_offsets.
207 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
208
7c679d16
JB
2092004-09-07 Jim Blandy <jimb@redhat.com>
210
211 * frame.h (frame_register): Doc fix.
212
1f04aa62
AC
2132004-09-07 Andrew Cagney <cagney@gnu.org>
214
215 * vx-share/wait.h: Delete #ifdef USG.
216 * utils.c (request_quit): Ditto.
217 * tui/tui.c (tui_reset): Ditto.
218 * remote.c: Ditto.
219 * remote-sds.c: Ditto.
220 * remote-rdi.c: Ditto.
221 * mdebugread.c: Ditto.
222 * m68klinux-nat.c: Ditto.
223 * infttrace.c: Ditto.
224 * infptrace.c: Ditto.
225 * i386v-nat.c: Ditto.
226 * exec.c: Ditto.
227 * dbxread.c: Ditto.
228 * core-aout.c: Ditto.
229
90edbfbc
JB
2302004-09-05 Joel Brobecker <brobecker@gnat.com>
231
232 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
233 heuristic_proc_desc.
234 (mips_insn32_frame_cache): Likewise.
235
01f4bf2b
JB
2362004-09-04 Joel Brobecker <brobecker@gnat.com>
237
238 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
239 left behind by error.
240
8511a048
JB
2412004-09-04 Joel Brobecker <brobecker@gnat.com>
242
243 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
244 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
245
649dfe9f
JB
2462004-09-04 Joel Brobecker <brobecker@gnat.com>
247
248 * config/rs6000/xm-aix4.h: Remove this file.
249 * config/rs6000/aix4.mh (XM_FILE): Delete.
250
6e50f889
JB
2512004-09-04 Joel Brobecker <brobecker@gnat.com>
252
253 * config/rs6000/xm-rs6000.h: Remove this file.
254 * config/rs6000/rs6000.mh (XM_FILE): Remove.
255
b8c4aece
AC
2562004-09-03 Andrew Cagney <cagney@gnu.org>
257
fb603883
AC
258 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
259 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
260 only use.
261
c9343fd1
AC
262 * mips-tdep.c (temp_saved_regs): Delete.
263 (set_reg_offset): Replace saved_regs parameter with this_cache.
264 (heuristic_proc_desc, mips16_heuristic_proc_desc)
265 (mips32_heuristic_proc_desc): Add this_cache parameter.
266 (mips_insn32_frame_cache, mips_insn16_frame_cache)
267 (after_prologue): Pass a NULL this_cache.
268
9733cfe1
AC
269 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
270 non-kernel trap prologues.
271
0d5febcc
AC
272 * mips-tdep.c (find_proc_desc): Delete function.
273 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
274 simplify.
275 (mips_insn16_frame_cache): Replace find_proc_desc with code from
276 mips_insn32_frame_cache.
277
9733cfe1 278 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
279 Simplify as NEXT_FRAME is NULL.
280 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
281
177f84a3
AC
282 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
283 local variable.
284 (mips_skip_prologue): Update.
285
465f7520
AC
286 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
287 "cur_frame" parameter.
177f84a3
AC
288 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
289 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 290
e38b8658
AC
291 * config/vax/nm-obsd.h: Delete file.
292 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
293 * config/vax/nm-nbsd.h: Delete file.
294 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
295 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
296 * config/sh/nm-nbsd.h: Delete file.
297 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
298 * config/rs6000/nm-rs6000ly.h: Delete file.
299 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
300 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
301 * config/powerpc/nm-obsd.h: Delete file.
302 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
303 * config/powerpc/nm-nbsd.h: Delete file.
304 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
305 * config/pa/nm-obsd.h: Delete file.
306 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
307 * config/mips/nm-nbsd.h: Delete file.
308 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
309 * config/m88k/nm-obsd.h: Delete file.
310 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
311 * config/m68k/nm-nbsd.h: Delete file.
312 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
313 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
314 * config/i386/nm-nbsd.h: Delete file.
315 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
316 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
317 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
318 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
319 * config/i386/nm-i386lynx.h: Delete file.
320 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
321 * config/arm/nm-nbsd.h: Delete file.
322 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
323 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
324
be1ed680
AC
325 * config/i386/tm-fbsd.h: Delete file.
326 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
327 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
328
4b392b26
AC
329 * config/rs6000/tm-rs6000-aix4.h: Delete file.
330 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
331 * config/rs6000/aix4.mt (TM_FILE): Set to
332 config/rs6000/tm-rs6000.h.
333 * config/powerpc/tm-ppc-aix.h: Delete file.
334 * config/powerpc/aix.mt (TM_FILE): Set to
335 config/rs6000/tm-rs6000.h.
336 * config/m68k/tm-linux.h: Delete file.
337 * config/m68k/linux.mt (TM_FILE): Set to solib.h
338 * config/i386/tm-linux64.h: Delete file.
339 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
340 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
341
f3219c75
AC
342 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
343 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
344 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
345 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
346 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
347 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
348 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
349 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
350 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
351
b8c4aece
AC
352 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
353 gdb_host_cpu.
354
8ac2e020
JB
3552004-09-02 Joel Brobecker <brobecker@gnat.com>
356
357 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
358 Minor reformatting. Some code factoring.
359
c185a355
AC
3602004-09-02 Andrew Cagney <cagney@gnu.org>
361
63f22f0d
AC
362 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
363 * config/vax/tm-nbsd.h: Delete file.
364 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
365 * config/sparc/tm-vxworks.h: Delete file.
366 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
367 * config/sparc/tm-nbsd.h: Delete file.
368 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
369 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
370 * config/sparc/tm-linux.h: Delete file.
371 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
372 * config/s390/tm-linux.h: Delete file.
373 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
374 * config/pa/tm-bsd.h: Delete file.
375 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
376 * config/m68k/tm-obsd.h: Delete file.
377 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
378 * config/m68k/tm-nbsd.h: Delete file.
379 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
380 * config/i386/tm-vxworks.h: Delete file.
381 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
382 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
383 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
384 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
385 * config/i386/tm-nbsd.h: Delete file.
386 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
387 * config/i386/tm-i386lynx.h: Delete file.
388 * config/cris/cris.mt (TM_FILE): Set to solib.h.
389 * config/cris/tm-cris.h: Delete file.
390
0f475e27
AC
391 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
392 * configure: Re-generate.
393 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
394 * config/arm/tm-nbsd.h: Delete file.
395
458ed000
AC
396 * config/powerpc/tm-ppcle-sim.h: Delete.
397 * config/powerpc/tm-ppcle-eabi.h: Delete.
398 * config/powerpc/tm-nbsd.h: Delete.
399 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
400 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
401 tm-ppcle-eabi.h.
402
f14375f3
AC
403 * config/i386/nto.mh (NAT_FILE): Delete.
404 * config/i386/nm-nto.h: Delete.
405
c34d127c
AC
406 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
407 * config/m68k/tm-os68k.h: Ditto.
408 * config/m68k/tm-monitor.h: Ditto.
409 * config/m68k/tm-cisco.h: Ditto.
410 * config/m68k/st2000.mt (TM_FILE): Delete.
411 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
412 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
413 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
414 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
415
f7f0fe03
AC
416 * config/m68k/tm-st2000.h: Delete.
417 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
418 * config/sparc/fbsd.mt (TM_FILE): Delete.
419 * config/sparc/tm-fbsd.h: Delete.
420
a2558533
AC
421 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
422 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
423 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
424
b78960be
AC
425 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
426 GDB_TM_FILE and GDB_XM_FILE.
427 * gdbarch.c: Re-generate.
428 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
429 quotes in macro definition.
430 * configure.in: Re-generate.
431
4d60522e
AC
432 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
433 validating architecture methods.
434 * gdbarch.c: Re-generate.
435
5010d38b
AC
436 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
437 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
438 GDB_MULTI_ARCH_PARTIAL.
439 * gdbarch.h: Re-generate.
440
c185a355
AC
441 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
442 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
443 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
444 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
445 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
446 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
447 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
448 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
449 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
450 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
451 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
452 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
453
14aaa6ab
AC
4542004-09-01 Andrew Cagney <cagney@gnu.org>
455
456 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
457 and main_func_highpc.
458 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
459 * objfiles.c (init_entry_point_info, objfile_relocate): Update
460 * nlmread.c (nlm_symfile_read): Update.
461
a343eb3c
JB
4622004-09-01 Joel Brobecker <brobecker@gnat.com>
463
464 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
465 (mips_insn32_frame_cache): Inline call to find_proc_desc.
466 (find_proc_desc): Remove dead code.
467
4fbbbd07
JB
4682004-09-01 Joel Brobecker <brobecker@gnat.com>
469
470 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
471
84acb35a
JJ
4722004-09-01 Jeff Johnston <jjohnstn@redhat.com>
473
474 * observer.sh: Add struct so_list declaration.
475 * Makefile.in: Add dependencies on observer.h for solib.c and
476 breakpoint.c.
477 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
478 function.
479 (_initialize_breakpoint): Register
480 disable_breakpoints_in_unloaded_shlib as an observer of the
481 "solib unloaded" observation event.
482 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
483 call decode_line_1 so unfound breakpoint errors are silent.
484 * solib.c (update_solib_list): When a solib is discovered to have
485 been unloaded by the program, notify all observers of the
486 "solib unloaded" observation event.
487
c8cd9f6c
AC
4882004-09-01 Andrew Cagney <cagney@gnu.org>
489
490 * frame.c: Include "objfiles.h".
491 (inside_main_func): New function.
492 (get_prev_frame): Use new inside_main_func.
493 * Makefile.in (frame.o): Update dependencies.
494 * defs.h (inside_main_func): Delete declaration.
495 * blockframe.c (inside_main_func): Delete function.
496
1168df01
JB
4972004-08-31 Jim Blandy <jimb@redhat.com>
498
499 * dwarf2read.c (is_vtable_name): New function, based on logic from
500 read_structure_type, but passing the correct length to strncmp,
501 and using 'sizeof' instead of 'strlen'.
502 (read_structure_type): Call it.
503
f14f9744
JB
5042004-08-31 Joel Brobecker <brobecker@gnat.com>
505
506 * config/powerpc/aix.mh: Add comment.
507
386d4518
PG
5082004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
509
510 * MAINTAINERS: Add self to Write-After-Approval.
511
7d97d5e2
MI
5122004-08-30 Manoj Iyer <manjo@austin.ibm.com>
513
514 * MAINTAINERS: Add self to Write-After-Approval.
515
68f53502
AC
5162004-08-30 Andrew Cagney <cagney@gnu.org>
517
518 Fix PR breakpoints/1757.
519 * infrun.c (struct execution_control_state): Replace
520 remove_breakpoints_on_following_step with
521 step_after_step_resume_breakpoint.
522 (init_execution_control_state): Update.
523 (handle_inferior_event): For signals, when stepping off a
524 breakpoint, set step_after_step_resume_breakpoint. When
525 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
526 (keep_going): Delete code handling
527 remove_breakpoints_on_following_step.
528
7ca2d3a3
DL
5292004-08-29 David Lecomber <david@streamline-computing.com>
530
531 Fix PR gdb/648
532 * language.h (enum array_ordering): New enum.
533 * language.h (struct language_defn): New la_array_ordering
534 attribute.
535 * language.c (unknown_language_defn, auto_language_defn)
536 (local_language_defn): Ditto.
537 * ada-lang.c (ada_language_defn): Ditto.
538 * c-lang.c (c_language_defn, cplus_language_defn)
539 (asm_language_defn, minimal_language_defn): Ditto.
540 * f-lang.c (f_language_defn): Ditto.
541 * jv-lang.c (java_language_defn): Ditto.
542 * m2-lang.c (f_language_defn): Ditto.
543 * objc-lang.c (objc_language_defn): Ditto.
544 * p-lang.c (pascal_language_defn): Ditto.
545 * scm-lang.c (scm_language_defn): Ditto.
546 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
547 oriented large to small in type structure.
548 * dwarf2read.c (read_array_order): New function.
549 (read_array_type): Use read_array_order to check row/column
550 major ordering.
551
e354df01
NW
5522004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
553
554 * target.c (target_resize_to_sections): Check
555 current_target.to_sections for an old value when updating.
556
9185ddce
JB
5572004-08-27 Joel Brobecker <brobecker@gnat.com>
558
559 * procfs.c (dbx_link_bpt_addr): New static global variable.
560 (dbx_link_shadow_contents): New static global variable.
561 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
562 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
563 if we just hit it.
564 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
565 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
566 from run to run.
567 (procfs_create_inferior): Remove syssgi syscall-exit notifications
568 after the inferior has been forked.
569 (remove_dbx_link_breakpoint): New function.
570 (dbx_link_addr): New function.
571 (insert_dbx_link_bpt_in_file): New function.
572 (insert_dbx_link_bpt_in_region): New function.
573 (insert_dbx_link_breakpoint): New function.
574 (proc_trace_syscalls_1): New function, extracted from
575 proc_trace_syscalls.
576 (proc_trace_syscalls): Replace extract code by call to
577 proc_trace_syscalls_1.
578 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
579 is no longer valid.
580
e6742ace
JB
5812004-08-25 Jim Blandy <jimb@redhat.com>
582
583 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
584
8fb3e588
AC
5852004-08-25 Andrew Cagney <cagney@gnu.org>
586
629a41ee
AC
587 * infrun.c (struct execution_control_state): Delete field
588 "stepping_through_sigtramp".
589 (init_execution_control_state): Do not set same.
590 (context_switch): Do not pass same to save_infrun_state and
591 load_infrun_state.
592 * gdbthread.h (struct thread_info): Delete field
593 stepping_through_sigtramp.
594 (save_infrun_state, load_infrun_state): Delete parameter
595 stepping_through_sigtramp.
596 * thread.c (load_infrun_state, save_infrun_state): Update.
597
8fb3e588
AC
598 * infrun.c: Re-indent. Move expression operators to the beginning
599 of the line. Remove long disabled #if 0 code.
600
49c54768
AC
6012004-08-24 Andrew Cagney <cagney@gnu.org>
602
603 * doublest.h (floatformat_ieee_quad): Rename
604 floatformat_ia64_quad.
605 * doublest.c (floatformat_ieee_quad): Rename
606 floatformat_ia64_quad.
607 (_initialize_doublest): Update.
608
5ca2e327
JB
6092004-08-24 Jim Blandy <jimb@redhat.com>
610
87808bd6
JB
611 * dwarf2expr.h (struct dwarf_expr_context): New members
612 'num_pieces' and 'pieces', for returning the result of an
613 expression that uses DW_OP_piece.
614 (struct dwarf_expr_piece): New struct type.
615 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
616 pieces.
617 (free_dwarf_expr_context): Free pieces, if any.
618 (add_piece): New function.
619 (execute_stack_op): Implement DW_OP_piece.
620 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
621 expression is a list of pieces, print an error message.
622 (dwarf2_loc_desc_needs_frame): If the expression yields
623 pieces, and any piece is in a register, then we need a frame.
624
5ca2e327
JB
625 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
626 the stack until we've decided what sort of result the evaluation
627 has produced. Use separate variables, with more specific names.
628
2afeb6b8
RE
6292004-08-23 Richard Earnshaw <rearnsha@arm.com>
630
631 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
632 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
633 (arm_netbsd_init_abi_common): Register them.
634
5885ab49
MK
6352004-08-22 Mark Kettenis <kettenis@gnu.org>
636
fda820a6
MK
637 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
638
1c5bf419
MK
639 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
640 safe_frame_unwind_memory instead of target_read_memory.
641
8cbba7c8
MK
642 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
643 Reorder includes.
644 (fetch_register, store_register): Remove prototypes.
645 (child_resume): Reorganize code and comments such that it is
646 grouped a bit more logically.
647 (attach): Explicitly compare errno against 0.
648 (detach): Likewise. Use perror_with_name instead of
649 print_sys_errmsg.
650 * Makefile.in (infptrace.o): Update dependencies.
651
c5fa4245
MK
652 * ia64-linux-nat.c: Update copyright year.
653 (fetch_debug_register, store_debug_register)
654 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
655 PTRACE_TYPE_ARG3.
656 * config/ia64/nm-linux.h: Update copyright year.
657 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
658
387c058c
MK
659 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
660 from CORE_ADDR to struct frame_info *. Use
661 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
662 (amd64_linux_sigtramp_p): Adjust for changed signature of
663 and64_linux_sigtramp_start
664
277215a6
MK
665 * gdb_ptrace.h: GNU/Linux.
666
25f6178e
MK
667 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
668 Remove defines.
669
652fc137
MK
670 * infptrace.c: Include "gdb_assert.h".
671 (PTRACE_XFER_TYPE): Remove define.
672 (offsetof): Only define if U_REGS_OFFSET isn't defined.
673 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
674 Tweak comment.
675 (fetch_inferior_registers, store_inferior_registers): Remove
676 redundant culry braces. Tweak comment. s/regno/regnum.
677 * Makefile.in (infptrace.o): Update dependencies.
678
5885ab49
MK
679 * configure.in: Change test for return type of ptrace to default
680 to `long' instead of `int'.
681 * configure: Regenerate.
682
11003ae3
MK
6832004-08-21 Mark Kettenis <kettenis@gnu.org>
684
6b95110c
MK
685 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
686
bcb3dc3d
MK
687 * configure.in: Check for ttrace function.
688 * configure, config.in: Regenerate.
689
11003ae3
MK
690 * gdb_ptrace.h: New file.
691 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
692 <sys/ptrace.h>.
693 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
694 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
695 (attach): Don't define PT_ATTACH.
696 (detach): Don't define PT_DETACH.
697 * Makefile.in (gdb_ptrace_h): New variable.
698 (infptrace.o): Update dependencies.
699
f8707cac
MK
7002004-08-16 Mark Kettenis <kettenis@gnu.org>
701
702 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
703 instead of `int' if not already defined.
704 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
705 PTRACE_TYPE_ARG3.
706 * infptrace.c (call_ptrace): Revert change that replaced
707 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
708
655c5466
MK
7092004-08-15 Mark Kettenis <kettenis@gnu.org>
710
156e5ba7
MK
711 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
712 Remove defines.
713
de9a9e51
MK
714 * linux-nat.c (kill_inferior): Add missing third and fourth
715 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
716
88800403
MK
717 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
718 PTRACE_TYPE_RET.
719
849a1d7c
MK
720 * proc-why.c (proc_prettyfprint_why): Fix format string.
721
61ad16d1
MK
722 * solib-osf.c (osf_current_sos): Remove unsused label.
723
a6ed5501
MK
724 * configure.in: Add <ncurses/ncurses.h> to the list of possible
725 curses headers.
726 * configure, config.in: Regenerate.
727 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
728 <ncurses/ncurses.h>.
729
016ddeca
MK
730 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
731 * config/nm-nbsd.h: Update copyright year.
732 (PTRACE_ARG3_TYPE): Remove define.
733
49ec097f
MK
734 * sparc-nat.c (fetch_inferior_registers)
735 (store_inferior_registers, sparc_xfer_wcookie):
736 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
737
9f8e0089
MK
738 * alphabsd-nat.c (fetch_inferior_registers):
739 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
740 PTRACE_TYPE_ARG3.
741 * amd64bsd-nat.c (fetch_inferior_registers)
742 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
743 PTRACE_TYPE_ARG3.
744 * armnbsd-nat.c: Update copyright year.
745 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
746 (store_register, store_regs, store_fp_register, store_fp_regs):
747 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
748 * hppabsd-nat.c (fetch_inferior_registers)
749 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
750 PTRACE_TYPE_ARG3.
751 * i386bsd-nat.c (fetch_inferior_registers)
752 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
753 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
754 * m68kbsd-nat.c (fetch_inferior_registers)
755 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
756 PTRACE_TYPE_ARG3.
757 * m88kbsd-nat.c (fetch_inferior_registers)
758 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
759 PTRACE_TYPE_ARG3.
760 * mipsnbsd-nat.c: Update copyright year.
761 (fetch_inferior_registers, store_inferior_registers):
762 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
763 * ns32knbsd-nat.c: Update copyright year.
764 (fetch_inferior_registers, store_inferior_registers):
765 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
766 * ppcnbsd-nat.c (fetch_inferior_registers):
767 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
768 PTRACE_TYPE_ARG3.
769 * ppcobsd-nat.c (fetch_inferior_registers):
770 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
771 PTRACE_TYPE_ARG3.
772 * shnbsd-nat.c: Update copyright year.
773 (fetch_inferior_registers, store_inferior_registers):
774 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
775 * vaxbsd-nat.c (fetch_inferior_registers)
776 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
777 PTRACE_TYPE_ARG3.
778
655c5466
MK
779 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
780 PTRACE_TYPE_ARG3.
781 * infptrace.c (call_ptrace, child_resume, attach, detach)
782 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
783 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
784 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
785 PTRACE_TYPE_ARG3.
786
c40d0d10
MK
7872004-08-14 Mark Kettenis <kettenis@gnu.org>
788
5cb0ff31
MK
789 * defs.h: Remove out-of-date comment.
790 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
791 [!GETENV_PROVIDED] (getenv): Remove prototype.
792
5f0f34cb
MK
793 * standalone.c: Remove file.
794 * Makefile.in (standalone.o): Remove dependency.
795
7532965f
MK
796 * i386-linux-nat.c (dummy_sse_values): Remove function and
797 prototype.
798 (i386_linux_dr_get): Fix typo in comment.
799 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
800
1bdc6c53
MK
801 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
802
c40d0d10
MK
803 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
804 from declaration.
805 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
806 from definition.
807
64218d3e
MK
8082004-08-13 Mark Kettenis <kettenis@gnu.org>
809
810 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
811 parenthesis in definition.
812 * configure: Regenerated.
813
926c94e7
MC
8142004-08-12 Michael Chastain <mec.gnu@mindspring.com>
815
816 * PROBLEMS: Mention build/1411.
817
69489883
NN
8182004-08-09 Robert Millan <robertmh@gnu.org>
819
820 Committed by Nathanael Nerode.
821 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
822 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
823
ebb7c577
AC
8242004-08-12 Andrew Cagney <cagney@gnu.org>
825
826 * NEWS: Mention fixes in GDB 6.2.1.
827 * PROBLEMS: Remove mention of mips-irix.
828
232d697c
JB
8292004-08-11 Joel Brobecker <brobecker@gnat.com>
830
831 * config/powerpc/xm-aix.h: Delete.
832 * config/powerpc/aix.mh (MH_FILE): Remove.
833 * config/powerpc/aix432.mh (MH_FILE): Remove.
834
72f4e82b
JB
8352004-08-11 Joel Brobecker <brobecker@gnat.com>
836
837 * config/powerpc/aix.mh: Remove obsolete comment.
838 * config/powerpc/aix432.mh: Likewise.
839
0687ccb2
JB
8402004-08-11 Joel Brobecker <brobecker@gnat.com>
841
842 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
843
dbf3ada7
JB
8442004-08-11 Joel Brobecker <brobecker@gnat.com>
845
e08e1886
JB
846 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
847 this file is now empty.
848 * config/xm-aix4.h: Remove, this file is no longer included
849 anywhere.
850
8512004-08-11 Joel Brobecker <brobecker@gnat.com>
852
853 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
854 that file is now empty.
dbf3ada7
JB
855 (termdef): Remove prototype, function no longer used.
856
4c525ef6
JB
8572004-08-11 Joel Brobecker <brobecker@gnat.com>
858
859 * doc/gdbint.texinfo (Host Definition): Remove documentation
860 for USE_O_NOCTTY, no longer used.
861 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
862 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
863
82e0b968
JB
8642004-08-11 Joel Brobecker <brobecker@gnat.com>
865
866 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
867 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
868 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
869
f2acbe1c
MK
8702004-08-11 Mark Kettenis <kettenis@gnu.org>
871
daa98270
MK
872 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
873 instead of FIVE_ARG_PTRACE.
874
f2acbe1c
MK
875 * inflow.c (O_NOCTTY): Define to zero if not already defined.
876 (new_tty): Use O_NOCTTY unconditionally.
877
cc377e6b
MK
8782004-08-10 Mark Kettenis <kettenis@gnu.org>
879
880 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
881 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
882 fflush on stdout.
883
3bcc18fa
JB
8842004-08-10 Joel Brobecker <brobecker@gnat.com>
885
886 * xcoff_symfile_finish: Replace last call to xmfree by call
887 to xfree.
888
7936743b
AC
8892004-08-10 Andrew Cagney <cagney@gnu.org>
890
cc503c8a
AC
891 * main.c (captured_main): Delete call to init_malloc.
892 * defs.h (init_malloc): Delete declaration.
893 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
894 (init_malloc): Delete functions.
895
2dc74dc1
AC
896 * defs.h (xmfree): Delete.
897 * utils.c (xmfree): Delete function.
898 (xfree): Inline calls to xmfree and mfree.
899 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
900 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
901 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
902 * somread.c (som_symfile_finish): Ditto.
903 * objfiles.c (allocate_objfile, free_objfile):
904 * nlmread.c (nlm_symfile_finish): Ditto.
905 * hpread.c (hpread_symfile_finish): Ditto.
906 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
907 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
908 * coffread.c (coff_symfile_finish): Ditto.
909
aa2ee5f6
AC
910 * defs.h (xmcalloc): Delete declaration.
911 * utils.c (xmcalloc): Delete.
912 (xcalloc): Inline calls to xmcalloc and mcalloc.
913 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
914 xcalloc and xfree.
915 * symtab.c (create_demangled_names_hash): Ditto.
916
0efffb96
AC
917 * defs.h (xmrealloc): Delete.
918 * utils.c (xmrealloc): Delete.
919 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
920 * symmisc.c (extend_psymbol_list): Use xrealloc.
921 * source.c (find_source_lines): Ditto.
922 * hpread.c (hpread_lookup_type): Ditto.
923 * dbxread.c (add_bincl_to_list): Ditto.
924
7936743b
AC
925 * utils.c (xmmalloc): Delete.
926 (xmalloc): Inline xmmalloc and mmalloc calls.
927 (msavestring): Use xmalloc.
928 * defs.h (xmmalloc): Delete declaration.
929 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
930 xmmalloc.
931 * symmisc.c (extend_psymbol_list): Ditto.
932 * symfile.c (init_psymbol_list): Ditto.
933 * source.c (find_source_lines): Ditto.
934 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
935 * elfread.c (elf_symtab_read): Ditto.
936 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
937 * coffread.c (coff_symfile_init): Ditto.
938
252ab814
DC
9392004-08-10 David Carlton <carlton@bactrian.org>
940
941 * MAINTAINERS: Remove David Carlton from c++ testsuite
942 maintainers.
943
8f5ba92b
JG
9442004-08-10 Jerome Guitton <guitton@gnat.com>
945
946 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
947 print a line feed before the prompt.
948
21749010
MK
9492004-08-10 Mark Kettenis <kettenis@gnu.org>
950
951 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
952
1f011ce2
JB
9532004-08-09 Joel Brobecker <brobecker@gnat.com>
954
955 General cleanup of the AIX xm include file:
956 * config/xm-aix4.h (fd_set): Remove undefine.
957 Remove include of <sys/select.h>.
958 (HAVE_TERMIO): Remove define.
959 (USG): Likewise.
960 (NULL): Remove redefine.
961 (alloca): Remove #pragma.
962 (vfork): Remove define.
963 (termdef): Remove.
964 (SIGWINCH_HANDLER): Remove.
965 (SIGWINCH_HANDLER_BODY): Remove.
966
cf4e7692
MK
9672004-08-09 Mark Kettenis <kettenis@gnu.org>
968
969 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
970 GDB_OSABI_OPENBSD_ELF.
971
ac5754fa
MK
9722004-08-07 Robert Millan <robertmh@gnu.org>
973
974 * bsd-kvm.c: Check for nlist.h before including it.
975
086ec9eb
MK
9762004-08-09 Mark Kettenis <kettenis@gnu.org>
977
bbe06c74
MK
978 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
979 sigcontext' offset consistency checks for ancient BSD.
980
3aa7b3b3
MK
981 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
982
086ec9eb
MK
983 * configure.in: Check for <sys/types.h>. Check return and
984 argument types of ptrace.
985 * configure, config.in: Regenerate.
986
09991fa0
JB
9872004-08-09 Jim Blandy <jimb@redhat.com>
988
989 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
990 rs6000_register_sim_regno): Doc fixes.
991
fed7ba43
JB
9922004-08-08 Joel Brobecker <brobecker@gnat.com>
993
994 * mips-tdep.c: Include "floatformat.h".
995 (n32n64_floatformat_always_valid): New function.
996 (floatformat_n32n64_long_double_big): New constant.
997 (mips_gdbarch_init): Set size and format of long double
998 for N32 and N64 ABIs.
999 * Makefile.in (mips-tdep.o): Update dependencies.
1000
456fcf94
AC
10012004-08-08 Andrew Cagney <cagney@gnu.org>
1002
2f9b146e
AC
1003 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1004 print. Improve script's error messages.
1005 * gdbarch.h: Re-generate.
1006
456fcf94
AC
1007 * gdbarch.sh (pformat): New function.
1008 (float_format, double_format, long_double_format): List with bit
1009 members. Use pformat when printing.
1010 * gdbarch.c, gdbarch.h: Re-generate.
1011
69e9e646
NW
10122004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1013
1014 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1015 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1016 (ppcnbsd_supply_pcb): New function.
1017 (_initialize_ppcnbsd_nat): New prototype and function.
1018 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1019 (LOADLIBES): New variable.
1020 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1021
5ef2d0aa
AC
10222004-08-08 Andrew Cagney <cagney@gnu.org>
1023
1024 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1025 (builtin_type_ieee_double, builtin_type_ia64_quad)
1026 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1027 BE/LE floating-point types.
1028 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1029 (builtin_type_ieee_double, builtin_type_ia64_quad)
1030 (builtin_type_ia64_spill): Declare.
1031 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1032 (floatformat_ieee_double, floatformat_arm_ext)
1033 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1034 of LE/BE floatformats.
1035 * doublest.h: (struct floatformat, floatformat_ieee_single)
1036 (floatformat_ieee_double, floatformat_arm_ext)
1037 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1038
5c7f2947
MK
10392004-08-08 Mark Kettenis <kettenis@gnu.org>
1040
ecac404d
MK
1041 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1042
9b8607ce
MK
1043 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1044 instead of regcache_raw_supply when storing the registers.
1045
f6052080
MK
1046 * i386gnu-nat.c: Update copyright year.
1047 (gnu_store_registers): Don't use deprecated_registers and
1048 deprecated_registers_valid. Use regcache_valid_p and
1049 regcache_raw_supply instead.
1050
17777823
MK
1051 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1052 frame_pc_unwind.
1053
5240ceac
MK
1054 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1055 variables. Incapitalized "process".
1056
5c7f2947
MK
1057 * configure.in: Add cursesX to the list of possible curses libs.
1058 Add cursesX.h to the list of possible curses headers.
1059 * configure, config.in: Regenerate.
1060
da7d81e3
NW
10612004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1062
1063 * configure.in: Test for struct lwp in <sys/lwp.h>.
1064 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1065 the offset of l_addr in struct lwp.
1066
7f245d65
NW
10672004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1068
1069 * bsd-kvm.c: Include "gdbcore.h"
1070 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1071
47b3f456
AC
10722004-08-07 Andrew Cagney <cagney@gnu.org>
1073
70bd8e24
AC
1074 * gdbtypes.c (build_flt, build_complex): New functions.
1075 (gdbtypes_post_init): Use.
1076
9b0dea39
AC
1077 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1078
5cf7abac
AC
1079 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1080 through to builtin_type_uint128.
1081
64d2b26d
AC
1082 * c-exp.y: Use builtin_type function to obtain builtin types.
1083
7ad6570d
AC
1084 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1085 builtin_uint128.
1086 * gdbtypes.c (gdbtypes_post_init): Update.
1087 (build_gdbtypes): Move initialization of builtin_type_int0
1088 through to builtin_type_uint128 from here ...
1089 (_initialize_gdbtypes): ... to here.
1090 * d10v-tdep.c (d10v_register_type): Update.
1091
47b3f456
AC
1092 * doublest.c: Update copyright.
1093 (floatformat_from_length): Call error when floatformat is NULL.
1094 (extract_floating_by_length): Remove NULL fmt check.
1095 (store_floating_by_length): Ditto.
1096
0a8146bf
AC
10972004-08-07 Andrew Cagney <cagney@gnu.org>
1098
1099 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1100 that the register is valid.
1101
c0ccb908
MK
11022004-08-05 Mark Kettenis <kettenis@chello.nl>
1103
8e6bed05
MK
1104 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1105 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1106 struct frame_info *. Use safe_frame_unwind_memory instead of
1107 deprecated_read_memory_nobpt.
1108 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1109 changed signature of i386_linux_sigtramp_start and
1110 i386_linux_rt_sigtramp_start.
1111
24f9f5e3
MK
1112 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1113 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1114 instead of deprecated_read_memory_nobpt.
1115 (i386nbsd_sigtramp_p): Adjust for changed signature of
1116 i386nbsd_sigtramp_offset.
1117
c822af0c
MK
1118 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1119 safe_frame_unwind_memory instead of target_read_memory.
1120
c0ccb908
MK
1121 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1122 !NO_SYS_FILE.
1123 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1124 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1125 (_initialize_kernel_u_addr): Remove prototype and function.
1126 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1127 !NO_SYS_FILE.
1128 * xcoffread.c: Likewise.
1129
b9e1c0d6
MK
11302004-08-06 Mark Kettenis <kettenis@gnu.org>
1131
1132 * vax-nat.c: New file.
1133 * vaxbsd-nat.c: Tweak comment.
1134 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1135 vaxnbsd-tdep.c.
1136 (vax-nat.o): New dependency.
1137 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1138 (vax-*-ultrix2*): Remove.
1139 * config/vax/vax.mh: New file.
1140 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1141 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1142 (vax_register_u_addr): New prototype.
1143 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1144 * config/vax/vaxult2.mh: Remove file.
1145 * config/vax/vaxult.mh: Remove file.
1146 * config/vax/vaxbsd.mh: Remove file.
1147 * config/vax/vax.mt (TM_FILE): Remove.
1148 * config/vax/tm-vaxbsd.h: Remove file.
1149
9ad7bec7
JB
11502004-08-06 Joel Brobecker <brobecker@gnat.com>
1151
1152 * aix-thread.c (get_signaled_thread): New function.
1153 (iter_trap): Delete, no longer used.
1154 (iter_tid): New function.
1155 (pd_update): Find the thread that received the SIGTRAP signal
1156 by first locating the kernel thread, and then finding its
1157 associated thread.
1158
bf0d233d
UW
11592004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1160
1161 * lin-lwp.c (child_wait): Continue inferior after processing
1162 PTRACE_EVENT_CLONE event.
1163
d0f853e1
NN
11642004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1165
1166 * MAINTAINERS: Add self to Write-After-Approval.
1167
ab14aeb0
JJ
11682004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1169
1170 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1171 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1172
9c8dbfa9
AC
11732004-08-05 Andrew Cagney <cagney@gnu.org>
1174
c8f3ca46
AC
1175 * config/xm-sysv4.h: Delete file.
1176 * config/mips/xm-irix5.h: Delete file.
1177 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1178 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1179 * config/ia64/xm-aix.h: Delete file.
1180 * config/ia64/aix.mh (XM_FILE): Delete.
1181 * config/pa/xm-hppah.h: Delete file.
1182 * config/pa/hpux11w.mh (XM_FILE): Delete.
1183 * config/pa/hpux11.mh (XM_FILE): Delete.
1184 * config/pa/hpux1020.mh (XM_FILE): Delete.
1185 * config/pa/hppahpux.mh (XM_FILE): Delete.
1186
5f7daaff
AC
1187 * config/alpha/xm-alphalinux.h: Delete file.
1188 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1189 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1190 * config/alpha/xm-alphaosf.h: Delete file.
1191 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1192 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1193 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1194 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1195
69babf95
AC
1196 * config/i386/xm-i386v.h: Delete file.
1197 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1198 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1199 * config/i386/xm-i386sco.h: Delete file.
1200 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1201 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1202 * config/i386/xm-i386v4.h: Delete file.
1203 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1204 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1205 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1206 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1207
6f009c8a
AC
1208 * config/vax/xm-vax.h: Delete file.
1209 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1210 * config/vax/xm-vaxult2.h: Delete file.
1211 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1212 * config/vax/vaxult2.mh (XM_FILE): Delete.
1213 * config/vax/xm-vaxult.h: Delete file.
1214 * config/vax/vaxult.mh (XM_FILE): Delete.
1215 * config/vax/xm-vaxbsd.h: Delete file.
1216 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1217
9c8dbfa9
AC
1218 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1219 * gdbarch.h, gdbarch.c: Re-generate.
1220 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1221 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1222 * frame.h: Delete deprecated_read_fp from comments.
1223 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1224 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1225
84367a3e
MK
12262004-08-04 Mark Kettenis <kettenis@gnu.org>
1227
9c8e3411
MK
1228 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1229 trampoline in OpenBSD 3.5-current.
1230
b87bc0d8
MK
1231 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1232 SSE registers.
1233
84367a3e
MK
1234 * Makefile.in: Remove embedded page breaks.
1235
a44bddec
JB
12362004-08-04 Jim Blandy <jimb@redhat.com>
1237
7ab3286f
JB
1238 * regcache.c (regcache_raw_read): Assert that, after calling
1239 target_fetch_registers, the register we're reading is cached.
1240
a44bddec
JB
1241 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1242 a call to 'internal_error', with a more helpful error message.
1243 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 1244 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 1245
35124113
AC
12462004-08-04 Andrew Cagney <cagney@gnu.org>
1247
1248 * Makefile.in: Update dependencies.
1249
9f643768
JB
12502004-08-04 Jim Blandy <jimb@redhat.com>
1251
6ced10dd
JB
1252 Change the layout of the PowerPC E500 raw register cache to allow
1253 the lower 32-bit halves of the GPRS to be their own raw registers,
1254 not pseudoregisters.
1255 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1256 add ppc_ev0_upper_regnum flag.
1257 * rs6000-tdep.c: #include "reggroups.h".
1258 (spe_register_p): Recognize the ev upper half registers as SPE
1259 registers.
1260 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1261 registers.
1262 (e500_move_ev_register): New function.
1263 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1264 vector registers are the pseudo-registers now, formed by splicing
1265 together the gprs and the upper-half registers.
1266 (e500_register_reggroup_p): New function.
1267 (P): Macro deleted.
1268 (P8, A4): New macro.
1269 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1270 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1271 macros.
1272 (registers_e500): Rearrange register set so that the raw register
1273 set contains 32-bit GPRs and upper-half registers, and the SPE
1274 vector registers become pseudo-registers.
1275 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1276 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1277 register numbers are now the same for the E500 as they are for
1278 other PowerPC variants. Register e500_register_reggroup_p as the
1279 register group function for the E500.
1280 * Makefile.in (rs6000-tdep.o): Update dependencies.
1281
1282 Adapt PPC E500 native support to the new raw regcache layout.
1283 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1284 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1285 (fetch_spe_register, store_spe_register): Handle fetching/storing
1286 all the SPE registers at once, if regno == -1. These now take
1287 over the job of fetch_spe_registers and store_spe_registers.
1288 (fetch_spe_registers, store_spe_registers): Deleted.
1289 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1290 unconditionally; they're always raw. Fetch/store SPE upper half
1291 registers, if present, instead of ev registers.
1292 (fetch_register, store_register): Remove sanity checks: gprs are
1293 never pseudo-registers now, so we never need to even mention any
1294 registers that are ever pseudoregisters.
1295
9f643768
JB
1296 Use a fixed register numbering when communicating with the PowerPC
1297 simulator.
1298 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1299 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1300 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1301 New functions.
1302 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1303 init_sim_regno_table.
1304 * Makefile.in (gdb_sim_ppc_h): New variable.
1305 (rs6000-tdep.o): Update dependencies.
1306
1e2279c8
AC
13072004-08-02 Andrew Cagney <cagney@gnu.org>
1308
1d94326f
AC
1309 * cris-tdep.c (cris_register_size): Restore function, still used
1310 locally.
1311
331ae7ed
AC
1312 * gdbarch.sh (deprecated_target_read_fp)
1313 (deprecated_frame_locals_address, deprecated_frame_args_address)
1314 (deprecated_frame_chain_valid, deprecated_frame_chain)
1315 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1316 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1317 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1318 * gdbarch.h, gdbarch.c: Re-generate.
1319 * regcache.c (deprecated_read_fp): Do not call
1320 DEPRECATED_TARGET_READ_FP_P.
1321 * infcmd.c (default_print_registers_info): Do not call
1322 DEPRECATED_DO_REGISTERS_INFO.
1323 * frame-base.c (default_frame_locals_address): Do not call
1324 DEPRECATED_FRAME_LOCALS_ADDRESS.
1325 (default_frame_args_address): Do not call
1326 DEPRECATED_FRAME_ARGS_ADDRESS.
1327
1e2279c8
AC
1328 * gdbarch.sh (deprecated_register_raw_size)
1329 (deprecated_register_virtual_size:int): Delete.
1330 * gdbarch.h, gdbarch.c: Re-generate.
1331 * cris-tdep.c (cris_register_size): Delete.
1332 (cris_gdbarch_init): Update.
1333 * alpha-tdep.c (alpha_register_raw_size)
1334 (alpha_register_virtual_size): Delete.
1335 (alpha_gdbarch_init): Update.
1336
a90c06b4
AC
1337 * gdbarch.sh (deprecated_register_virtual_type)
1338 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1339 (deprecated_dummy_write_sp): Delete.
1340 * gdbarch.h, gdbarch.c: Re-generate.
1341
f42accbe
AC
1342 * gdbarch.sh (deprecated_register_bytes): Delete.
1343 * gdbarch.h, gdbarch.c: Re-generate.
1344 * regcache.c (deprecated_register_bytes): New function.
1345 * regcache.h (deprecated_register_bytes): Declare.
1346 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1347 * v850-tdep.c (v850_gdbarch_init): Update.
1348 * sh64-tdep.c (sh64_gdbarch_init): Update.
1349 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1350 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1351 * mcore-tdep.c (mcore_gdbarch_init): Update.
1352 * cris-tdep.c (cris_gdbarch_init): Update.
1353 * arm-tdep.c (arm_gdbarch_init): Update.
1354 * remote.c (init_remote_state): Update.
1355 * remote-vx.c (vx_prepare_to_store): Update.
1356 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1357 * irix5-nat.c (fetch_core_registers): Update.
1358 * cris-tdep.c (cris_register_bytes_ok): Update.
1359 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1360
45c9dd44
AC
1361 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1362 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1363 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1364 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1365 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1366 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1367 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1368 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1369 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1370 with mips_insn16 and mips_insn32.
1371
3acba339
AC
1372 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1373 * rs6000-tdep.c (rs6000_push_dummy_call)
1374 (rs6000_extract_return_value): Use register_size.
1375 * xstormy16-tdep.c (xstormy16_get_saved_register)
1376 (xstormy16_extract_return_value): Ditto.
1377 * valops.c (value_assign): Ditto.
1378 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1379 * v850-tdep.c (v850_extract_return_value): Ditto.
1380 * tracepoint.c (collect_symbol): Ditto.
1381 * target.c (debug_print_register): Ditto.
1382 * stack.c (frame_info): Ditto.
1383 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1384 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1385 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1386 (store_register_using_P): Ditto.
1387 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1388 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1389 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1390 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1391 * regcache.c (deprecated_read_register_bytes)
1392 (deprecated_write_register_bytes, read_register)
1393 (write_register): Ditto.
1394 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1395 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1396 * monitor.c (monitor_supply_register, monitor_fetch_register)
1397 (monitor_store_register): Ditto.
1398 * mn10300-tdep.c (mn10300_pop_frame_regular)
1399 (mn10300_print_register): Ditto.
1400 * mipsv4-nat.c (fill_fpregset): Ditto.
1401 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1402 (mips64_fill_fpregset): Ditto.
1403 * mi/mi-main.c (register_changed_p, get_register)
1404 (mi_cmd_data_write_register_values): Ditto.
1405 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1406 * irix5-nat.c (fill_gregset, fetch_core_registers):
1407 * infrun.c (write_inferior_status_register): Ditto.
1408 * infptrace.c (fetch_register, store_register): Ditto.
1409 * infcmd.c (default_print_registers_info): Ditto.
1410 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1411 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1412 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1413 * hpux-thread.c (hpux_thread_fetch_registers)
1414 (hpux_thread_store_registers): Ditto.
1415 * hppah-nat.c (store_inferior_registers, fetch_register):
1416 * findvar.c (value_from_register): Ditto.
1417 * dve3900-rom.c (fetch_bitmapped_register):
1418 * cris-tdep.c (cris_gdbarch_init): Ditto.
1419 * alpha-tdep.h: Ditto.
1420 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1421
01e1877c
AC
1422 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1423 DEPRECATED_REGISTER_RAW_SIZE from comments.
1424 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1425 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1426 DEPRECATED_REGISTER_RAW_SIZE.
1427 * findvar.c (value_of_register): Simplify by assuming that the
1428 registers raw and virtual sizes are identical.
1429 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1430 comment.
1431 * arch-utils.c (generic_register_size): Simplify by assuming
1432 register_type.
1433
73f458fb
AC
1434 * regcache.c (legacy_read_register_gen, real_register)
1435 (legacy_write_register_gen): Delete, not used.
1436
336a3131
AC
1437 * regcache.c (struct regcache_descr): Delete legacy_p.
1438 (init_legacy_regcache_descr): Delete function.
1439 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1440 Do not use deprecated register functions.
1441 (regcache_raw_read, deprecated_write_register_gen):
1442 (deprecated_read_register_gen, regcache_raw_write): Delete code
1443 predicated on legacy_p.
1444 (register_size): Delete check against register raw size.
1445
c1d546cd
AC
1446 * cris-tdep.c (cris_register_type): Replace
1447 cris_register_virtual_type.
1448 (cris_gdbarch_init): Update, set register_type.
1449
48c2c0a6
AC
1450 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1451 * gdbarch.h, gdbarch.c: Re-generate.
1452 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1453 (arm_gdbarch_init) Do not set frameless function invocation.
1454 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1455 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1456 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1457 (frv_gdbarch_init): Do not set frameless function invocation.
1458 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1459 * sh-tdep.c (sh_gdbarch_init): Ditto.
1460 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1461 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1462 * avr-tdep.c (avr_gdbarch_init): Ditto.
1463
474093a6
AC
1464 * blockframe.c (legacy_frame_chain_valid): Delete function.
1465
3c109c8b
AC
1466 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1467 and pc. Update comments.
1468 (pc_in_dummy_frame): Delete function.
1469 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1470 use the "id".
1471 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1472 call_hi, top and pc, use the id.
1473 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1474
96860204
AC
1475 * dummy-frame.c: Include "gdb_string.h".
1476 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1477 (generic_save_dummy_frame_tos): Delete.
1478 (dummy_frame_push): New function, replaces above.
1479 * dummy-frame.h: Update copyright.
1480 (dummy_frame_push): Declare.
1481 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1482 (generic_save_call_dummy_addr): Delete declarations.
1483 * infcall.c: Include "dummy-frame.h".
1484 (call_function_by_hand): Add locals caller_regcache,
1485 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1486 with call to frame_save_as_regcache plus cleanup. Delete calls to
1487 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1488 Move clear_proceed_status to just before the resume, add call to
1489 dummy_frame_push (discard cleanup).
1490 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1491 (dummy-frame.o): Add $(gdb_string_h).
1492
d67ec5db
AC
14932004-08-01 Andrew Cagney <cagney@gnu.org>
1494
1495 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1496 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1497 * dummy-frame.c (find_dummy_frame): Delete.
1498 (struct dummy_frame_cache, dummy_frame_sniffer)
1499 (dummy_frame_prev_register, dummy_frame_this_id)
1500 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1501 frame unwinder using a dummy_frame_cache.
1502
a81dcb05
AC
15032004-08-01 Andrew Cagney <cagney@gnu.org>
1504
1505 * frame.h (frame_save_as_regcache): Declare.
1506 * frame.c (frame_save_as_regcache): New function.
1507 (do_frame_read_register): Replace do_frame_unwind_register.
1508 (frame_pop): Use frame_save_as_regcache.
1509 * dummy-frame.c (generic_push_dummy_frame): Use
1510 frame_save_as_regcache.
1511
aa495d11
JB
15122004-08-01 Joel Brobecker <brobecker@gnat.com>
1513
1514 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1515 file as included until we record the first line in the linetable.
1516
ff65ac78
AC
15172004-08-01 Andrew Cagney <cagney@gnu.org>
1518
1519 * frame.h (deprecated_pop_dummy_frame)
1520 (deprecated_read_register_dummy)
1521 (deprecated_generic_find_dummy_frame): Delete.
1522 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1523 (deprecated_read_register_dummy)
1524 (deprecated_find_dummy_frame_regcache)
1525 (discard_innermost_dummy)
1526 (deprecated_pop_dummy_frame): Delete.
1527 (dummy_frame_this_id): Simplify.
1528 (struct dummy_frame): Delete "fp" and "sp".
1529 (find_dummy_frame): Simplify.
1530 (generic_push_dummy_frame): Do not set "fp" or "sp".
1531 (fprint_dummy_frames): Do not print "fp" and "sp"
1532
37bdc87e
MK
15332004-08-01 Mark Kettenis <kettenis@gnu.org>
1534
1535 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1536 (struct i386_insn): New structure.
1537 (i386_match_insn): New function.
1538 (i386_frame_setup_skip_insns): New variable.
1539 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1540 array i386_frame_setup_insns of instructions that should be
1541 skipped inside the frame setup sequence.
1542
8241eaa6
AC
15432004-08-01 Andrew Cagney <cagney@gnu.org>
1544
5bc602c7
AC
1545 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1546 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1547 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1548 * stack.c (frame_info): Delete references to
1549 DEPRECATED_FRAME_INIT_SAVED_REGS and
1550 deprecated_get_frame_saved_regs.
1551 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1552 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1553 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1554 (frame_unwind_register_signed)
1555 (frame_unwind_register_unsigned)
1556 (frame_unwind_unsigned_register): Use register_size.
1557 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1558 (deprecated_frame_xmalloc_with_cleanup)
1559 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1560 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1561
03d363a1
AC
1562 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1563 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1564 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1565 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1566
8241eaa6
AC
1567 * infcall.c (call_function_by_hand): Do not use
1568 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1569 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1570 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1571 DEPRECATED_STACK_ALIGN.
1572
f00df8b7
AC
15732004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1574
1575 Committed by Andrew Cagney.
1576 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1577
eec63939
AC
15782004-08-01 Andrew Cagney <cagney@gnu.org>
1579
1580 * mips-tdep.c (mips16_frame_cache)
1581 (mips16_frame_this_id, mips16_frame_prev_register)
1582 (mips16_frame_unwind, mips16_frame_sniffer)
1583 (mips16_frame_base_address, mips16_frame_base)
1584 (mips16_frame_base_sniffer, mips32_frame_cache)
1585 (mips32_frame_this_id, mips32_frame_prev_register)
1586 (mips32_frame_unwind, mips32_frame_sniffer)
1587 (mips32_frame_base_address, mips32_frame_base)
1588 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1589 separate heuristic mips16 and mips32 unwinders.
1590 (mips_stub_frame_cache, mips_stub_frame_this_id)
1591 (mips_stub_frame_prev_register)
1592 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1593 (mips_stub_frame_base_address, mips_stub_frame_base)
1594 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1595 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1596 match true mdebug frames.
1597 (non_heuristic_proc_desc): Add forward declaration.
1598
e66299b3
AC
15992004-08-01 Andrew Cagney <cagney@gnu.org>
1600
83cbbf3e
AC
1601 * config/mips/tm-irix6.h: Delete file.
1602 * config/mips/tm-irix5.h: Delete file.
1603 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1604 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1605
22d41b37
AC
1606 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1607 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1608 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1609 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1610 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1611 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1612 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1613 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1614 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1615 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1616 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1617 (TARGET_SIGNAL_RAW_VALUES): Delete.
1618 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1619 Delete.
1620 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1621 (TARGET_HW_WATCH_LIMIT): Delete.
1622 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1623 * minimon.h: Delete file.
1624
e66299b3
AC
1625 * trad-frame.c (trad_frame_get_this_base)
1626 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1627 functions.
1628 * trad-frame.h (trad_frame_set_this_base)
1629 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1630
1f67027d
AC
16312004-07-31 Andrew Cagney <cagney@gnu.org>
1632
1633 * trad-frame.c (trad_frame_get_prev_register): Rename
1634 trad_frame_get_prev_register.
1635 * vax-tdep.c (vax_frame_prev_register): Update.
1636 * trad-frame.h: Update.
1637 * trad-frame.c (trad_frame_get_register): Update.
1638 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1639 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1640 Update.
1641 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1642 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1643 Update.
1644 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1645 Update.
1646 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1647 Update.
1648 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1649 Update.
1650 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1651 Update.
1652 * s390-tdep.c (s390_frame_prev_register)
1653 (s390_stub_frame_prev_register)
1654 (s390_sigtramp_frame_prev_register): Update.
1655 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1656 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1657 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1658 * m88k-tdep.c (m88k_frame_prev_register)
1659 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1660 * m32r-tdep.c (m32r_frame_prev_register): Update.
1661 * hppa-tdep.c (hppa_frame_prev_register_helper)
1662 * frv-tdep.c (frv_frame_prev_register): Update.
1663 * d10v-tdep.c (d10v_frame_prev_register): Update.
1664 * cris-tdep.c (cris_frame_prev_register): Update.
1665 * avr-tdep.c (avr_frame_prev_register): Update.
1666 * arm-tdep.c (arm_prologue_prev_register)
1667 (arm_sigtramp_prev_register): Update.
1668
c1bf6f65
AC
16692004-07-31 Andrew Cagney <cagney@gnu.org>
1670
1671 * frame.h (legacy_saved_regs_unwind)
1672 (legacy_frame_chain_valid, legacy_frame_p)
1673 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1674 * dummy-frame.c (dummy_frame_this_id): Simplify.
1675 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1676 * frame.c (struct frame_info): Delete the field "type".
1677 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1678 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1679 (legacy_saved_regs_unwind, legacy_frame_p)
1680 (frame_type_from_pc): Delete.
1681 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1682 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1683
dc856692
MK
16842004-07-31 Mark Kettenis <kettenis@gnu.org>
1685
5a5effe1
MK
1686 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1687 indentation.
1688
d4fd50a6
MK
1689 * mips-nat.c: Remove file.
1690 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1691 (mips-nat.o): Remove dependency.
1692
2689df5a
MK
1693 * infptrace.c: Update copyright year.
1694 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1695 explicitly setting the buffer to all zeroes.
1696
dc856692
MK
1697 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1698 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1699
763910e0
AC
17002004-07-30 Andrew Cagney <cagney@gnu.org>
1701
1702 * GDB 6.2 released from gdb_6_2-branch.
1703
0b66e38c
EZ
17042004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1705
1706 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1707
1708 * exec.c (exec_file_attach):
1709 * nto-tdep.c (nto_find_and_open_solib):
1710 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1711 * solib.c (solib_open):
1712 * somsolib.c (som_solib_sizeof_symbol_table):
1713 * source.c (is_regular_file, openp, open_source_file):
1714 * symfile.c (symfile_bfd_open):
1715 * wince.c (upload_to_device): Differentiate between the search for
1716 binary and source files.
1717
be7d7357
AC
17182004-07-30 Andrew Cagney <cagney@gnu.org>
1719
1720 * complaints.c (_initialize_complaints): Pass NULL to
1721 add_setshow_zinteger_cmd for help_doc.
1722 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1723
ddc9cd0f
AC
17242004-07-30 Andrew Cagney <cagney@gnu.org>
1725
1726 Fix PR i18n/761.
1727 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1728 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1729 $(PACKAGE).pot and update-po.
1730 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1731 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1732 (update-po): New rules.
1733 (localedir): Define using autoconf.
1734 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1735 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1736 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1737 * configure.in: Generate CATALOGS and LINGUAS from contents of
1738 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1739 * configure: Re-generate.
1740 * po/gdbtext: New file
1741
e92f3704
JG
17422004-07-30 Jerome Guitton <guitton@gnat.com>
1743
1744 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1745 order.
1746
b0f35d58
DL
17472004-07-30 David Lecomber <dsl@sources.redhat.com>
1748
1749 * dwarf2read.c (read_file_scope): Set producer if attribute
1750 present.
1751 (struct dwarf2_cu): Added new member producer.
1752
ce7d4522
JG
17532004-07-30 Jerome Guitton <guitton@gnat.com>
1754
1755 * inflow.c (kill_command): release file handles in BFD.
1756 * exec.c (exec_file_attach): Ditto.
1757 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1758
05ee07c7
AC
17592004-07-29 Andrew Cagney <cagney@gnu.org>
1760
1761 * PROBLEMS (mips-irix): Note that it is broken.
1762
62eceb47
AC
17632004-07-29 Andrew Cagney <cagney@gnu.org>
1764
e57b8d41
AC
1765 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1766 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1767
d334389b
AC
1768 * config/xm-nbsd.h: Delete file.
1769 * config/arm/xm-nbsd.h: Delete file.
1770 * config/i386/xm-nbsd.h: Delete file.
1771 * config/ns32k/xm-nbsd.h: Delete file.
1772 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1773 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1774 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1775 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1776 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1777
e910f676
AC
1778 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1779 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1780 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1781 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1782 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1783 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1784
6fa856b9
AC
1785 * config/powerpc/xm-linux.h: Delete empty file.
1786 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1787 * config/powerpc/linux.mh (XM_FILE): Delete.
1788 * config/m68k/xm-linux.h: Delete empty file.
1789 * config/m68k/linux.mh (XM_FILE): Delete.
1790 * config/ia64/xm-linux.h: Delete empty file.
1791 * config/ia64/linux.mh (XM_FILE): Delete.
1792 * config/arm/xm-linux.h: Delete empty file.
1793 * config/arm/linux.mh (XM_FILE): Delete.
1794
471ae5ae
AC
1795 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1796 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1797 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1798 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1799 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1800 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1801 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1802 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1803
62eceb47
AC
1804 * config/m68k/xm-m68k.h: Delete file.
1805 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1806 copyright.
1807 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1808 * config/pa/xm-linux.h: Delete empty file.
1809 * config/pa/linux.mh (XM_FILE): Delete.
1810 * config/i386/xm-i386.h: Delete empty file.
1811 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1812 "i386/xm-i386.h".
1813 * config/i386/obsdaout.mh (XM_FILE): Delete.
1814 * config/i386/obsd64.mh (XM_FILE): Delete.
1815 * config/i386/fbsd64.mh (XM_FILE): Delete.
1816 * config/i386/nto.mh (XM_FILE): Delete.
1817 * config/i386/obsd.mh (XM_FILE): Delete.
1818 * config/i386/linux64.mh (XM_FILE): Delete.
1819 * config/i386/linux.mh (XM_FILE): Delete.
1820 * config/i386/i386sol2.mh (XM_FILE): Delete.
1821 * config/i386/i386gnu.mh (XM_FILE): Delete.
1822 * config/i386/fbsd.mh (XM_FILE): Delete.
1823 * config/i386/nbsd64.mh (XM_FILE): Delete.
1824
c35f4ffc
AC
18252004-07-29 Andrew Cagney <cagney@gnu.org>
1826
1827 * config/pa/xm-linux.h: Do not include "floatformat.h".
1828 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1829 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1830 * config/i386/xm-i386.h: Do not include "floatformat.h".
1831 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1832 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1833 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1834 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1835 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1836 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1837 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1838 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1839 * configure, config.in: Regenerate.
1840 * configure.host (gdb_host_float_format, gdb_host_double_format)
1841 (gdb_host_long_double_format): Set according to the host.
1842
624a44a3
AC
18432004-07-29 Andrew Cagney <cagney@gnu.org>
1844
1845 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1846
0dea2468
AC
18472004-07-28 Andrew Cagney <cagney@gnu.org>
1848
1849 * PROBLEMS: Mention threads/1650.
1850 * NEWS: Mention the NPTL fix.
1851
b3f42336
AC
18522004-07-28 Andrew Cagney <cagney@gnu.org>
1853
1854 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1855 (add_setshow_cmd_full): Make static.
1856 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1857 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1858 * cli/cli-decode.c (add_setshow_filename_cmd)
1859 (add_setshow_string_cmd): New functions.
1860 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1861 * mips-tdep.c (_initialize_mips_tdep): Update.
1862 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1863 * cli/cli-logging.c (_initialize_cli_logging): Update.
1864 * complaints.c (_initialize_complaints): Update.
1865 * remote.c (_initialize_remote): Update.
1866
3b64bf98
AC
18672004-07-28 Andrew Cagney <cagney@gnu.org>
1868
1869 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1870 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1871 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1872 print parameters. Make string parameters constant.
1873 * command.h: Update. Update copyright.
1874 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1875 * observer.c (_initialize_observer): Ditto.
1876 * frame.c (_initialize_frame): Ditto.
1877 * complaints.c (_initialize_complaints): Ditto.
1878 * maint.c (_initialize_maint_cmds): Ditto.
1879 * target.c (initialize_targets): Ditto.
1880 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1881 * infcall.c (_initialize_infcall): Ditto.
1882 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1883 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1884 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1885 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1886 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1887
e9667a65
AC
18882004-07-28 Andrew Cagney <cagney@gnu.org>
1889
54a5b07d
AC
1890 * gdbtypes.c (lookup_primitive_typename): Delete function.
1891 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1892 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1893 * gdbtypes.c (lookup_typename): Ditto.
1894 * f-exp.y (yylex): Ditto.
1895 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1896
e9667a65
AC
1897 * scm-lang.c (c_builtin_types): Delete extern declaration.
1898 (scm_language_defn): Replace
1899 string_char_type and primitive_type_vector with
1900 la_language_arch_info.
1901 * jv-lang.c (java_language_defn): Replace
1902 string_char_type and primitive_type_vector with
1903 la_language_arch_info.
1904 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1905 c_builtin_types in comment.
1906 * c-lang.h (struct language_arch_info): Declare opaque.
1907 (c_language_arch_info): Declare.
1908 (c_builtin_types): Delete declaration.
1909 * c-lang.c (c_language_arch_info): Set string_char_type to
1910 builtin_char, not builtin_true_char. Make global.
1911 (c_builtin_types): Delete array.
1912 (asm_language_defn, minimal_language_defn): Replace
1913 string_char_type and primitive_type_vector with
1914 la_language_arch_info.
1915
685419e2
AC
19162004-07-28 Andrew Cagney <cagney@gnu.org>
1917
1918 * gdbtypes.h (struct builtin_type): Rename true_char to
1919 builtin_true_char.
1920 * gdbtypes.c (gdbtypes_post_init): Update.
1921 * c-lang.c (arch_info): New function.
1922 (enum c_primitive_types): New enum.
1923 (c_language_defn): Instead of string_char_type and
1924 primitive_type_vector set la_language_arch_info.
1925
5a44ea29
AC
19262004-07-28 Andrew Cagney <cagney@gnu.org>
1927
1928 * language.h (struct language_arch_info): Fix typo
1929 s/primative/primitive/.
1930 * gdbtypes.c (lookup_primitive_typename): Ditto.
1931 * language.c (language_lookup_primitive_type_by_name)
1932 (unknown_language_arch_info): Ditto.
1933
f290d38e
AC
19342004-07-27 Andrew Cagney <cagney@gnu.org>
1935
1936 * defs.h (enum language): Add nr_languages.
1937 * language.h (struct language_arch_info): Define.
1938 (struct language_defn): Add la_language_arch_info.
1939 (language_lookup_primative_type_by_name): Declare.
1940 (language_string_char_type): Declare.
1941 * language.c (_initialize_language, language_gdbarch_post_init)
1942 (struct language_gdbarch, language_gdbarch_data): Implement
1943 per-architecture language information.
1944 (unknown_language_arch_info, language_string_char_type)
1945 (language_lookup_primative_type_by_name): New functions.
1946 (unknown_language_defn, auto_language_defn)
1947 (local_language_defn): Set la_language_arch_info to
1948 unknown_language_arch_info.
1949 (unknown_builtin_types): Delete.
1950 * gdbtypes.c (lookup_primitive_typename): Use
1951 language_lookup_primative_type_by_name.
1952 (create_string_type): Use language_string_char_type.
1953 * values.c (value_from_string): Use language_string_char_type.
1954 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1955 * p-lang.c (pascal_language_defn): Ditto.
1956 * m2-lang.c (m2_language_defn): Ditto.
1957 * jv-lang.c (java_language_defn): Ditto.
1958 * objc-lang.c (objc_language_defn): Ditto.
1959 * f-lang.c (f_language_defn): Ditto.
1960 * c-lang.c (c_language_defn, cplus_language_defn)
1961 (asm_language_defn, minimal_language_defn): Ditto.
1962
000177f0
AC
19632004-07-27 Andrew Cagney <cagney@gnu.org>
1964
1965 * gdbtypes.h (struct builtin_type): Declare.
1966 (builtin_type): Declare.
1967 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1968 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1969 (gdbtypes_post_init): New function.
1970 (builtin_type): New function.
1971
e22f895c
KI
19722004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1973
1974 * remote-m32r-sdi.c: Fix breakpoint bug.
1975 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1976 recv_char_data, recv_long_data): New functions to replace communication
1977 sequences.
1978
536517dd
MC
19792004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1980
1981 Document PR threads/1650.
1982 * PROBLEMS (Threads): Document problem with many threads
1983
a0a44d18
AC
19842004-07-26 Andrew Cagney <cagney@gnu.org>
1985
1986 * gdb-mi.el: Move from here ...
1987 * mi/gdb-mi.el: ... to here.
1988
7ac4ac06
AC
19892004-07-26 Andrew Cagney <cagney@gnu.org>
1990
1991 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1992 * main.c (captured_main): When in batch mode always detach.
1993
a1b461bf
AC
19942004-07-26 Andrew Cagney <cagney@gnu.org>
1995
1996 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1997 and h8300 as broken.
1998 * NEWS: END-OF-LIFE frame compatibility module.
1999 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2000 specific comments.
2001
cb1a6d5f
AC
20022004-07-26 Andrew Cagney <cagney@gnu.org>
2003
2004 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2005 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2006 * wince.c (_initialize_wince): Update.
2007 * win32-nat.c (_initialize_win32_nat): Update.
2008 * varobj.c (_initialize_varobj): Update.
2009 * valops.c (_initialize_valops): Update.
2010 * utils.c (initialize_utils, initialize_utils): Update.
2011 * tui/tui-win.c (_initialize_tui_win): Update.
2012 * top.c (init_main): Update.
2013 * symfile.c (_initialize_symfile): Update.
2014 * source.c (_initialize_source): Update.
2015 * somsolib.c (_initialize_som_solib): Update.
2016 * solib.c (_initialize_solib): Update.
2017 * solib-frv.c (_initialize_frv_solib): Update.
2018 * serial.c (_initialize_serial): Update.
2019 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2020 * remote.c (_initialize_remote, _initialize_remote): Update.
2021 * remote-vx.c (_initialize_vx): Update.
2022 * remote-utils.c (_initialize_sr_support): Update.
2023 * remote-sds.c (_initialize_remote_sds): Update.
2024 * remote-mips.c (_initialize_remote_mips): Update.
2025 * remote-e7000.c (_initialize_remote_e7000): Update.
2026 * proc-api.c (_initialize_proc_api): Update.
2027 * printcmd.c: Update.
2028 * parse.c (_initialize_parse): Update.
2029 * pa64solib.c (_initialize_pa64_solib): Update.
2030 * p-valprint.c (_initialize_pascal_valprint): Update.
2031 * monitor.c (_initialize_remote_monitors): Update.
2032 * mips-tdep.c (_initialize_mips_tdep): Update.
2033 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2034 * maint.c (_initialize_maint_cmds): Update.
2035 * lin-lwp.c (_initialize_lin_lwp): Update.
2036 * language.c (_initialize_language): Update.
2037 * kod.c (_initialize_kod): Update.
2038 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2039 * i386-tdep.c (_initialize_i386_tdep): Update.
2040 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2041 * gdbarch.sh: Update.
2042 * gdbarch.c: Re-generate.
2043 * gdb-events.sh: Update.
2044 * gdb-events.c: Re-generate.
2045 * frame.c (_initialize_frame): Update.
2046 * exec.c: Update.
2047 * demangle.c (_initialize_demangler): Update.
2048 * dcache.c (_initialize_dcache): Update.
2049 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2050 * cp-valprint.c (_initialize_cp_valprint): Update.
2051 * corefile.c (_initialize_core): Update.
2052 * command.h: Update.
2053 * cli/cli-decode.h: Update.
2054 * cli/cli-cmds.c (init_cli_cmds): Update.
2055 * charset.c (_initialize_charset): Update.
2056 * breakpoint.c (_initialize_breakpoint): Update.
2057 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2058 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2059 * aix-thread.c (_initialize_aix_thread): Update.
2060
b4632131
MK
20612004-07-24 Mark Kettenis <kettenis@gnu.org>
2062
2063 Partial fix for PR backtrace/1718.
2064 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2065 that GCC migrates into the prolugue. Don't handle any
2066 instructions that clobber %ebx.
2067
822c9732
AC
20682004-07-23 Andrew Cagney <cagney@gnu.org>
2069
2070 Use regcache_raw_collect instead of regcache_collect.
2071 * regcache.h (regcache_collect): Delete declaration.
2072 * regcache.c (regcache_colect): Delete function.
2073 * win32-nat.c (do_child_store_inferior_registers): Update.
2074 * sol-thread.c (sol_thread_store_registers): Update.
2075 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2076 * rs6000-nat.c (store_register): Update.
2077 * remote.c (store_register_using_P, remote_store_registers): Update.
2078 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2079 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2080 (fill_vrregset, store_spe_registers, fill_gregset)
2081 (fill_gregset): Update.
2082 * nto-procfs.c (procfs_store_registers): Update.
2083 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2084 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2085 * m68klinux-nat.c (store_register, fill_gregset): Update.
2086 * m68k-tdep.c (fill_gregset): Update.
2087 * infptrace.c (store_register): Update.
2088 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2089 * i386-linux-nat.c (store_register, fill_gregset): Update.
2090 * hppa-linux-nat.c (fill_gregset): Update.
2091 * go32-nat.c (store_register): Update.
2092 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2093 (store_fp_regs): Update.
2094 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2095 (store_nwfpe_extended, store_fpregister, store_fpregs)
2096 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2097 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2098 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2099 (store_regs_user_thread, store_regs_kernel_thread): Update.
2100
32b05c07
MK
21012004-07-24 Mark Kettenis <kettenis@gnu.org>
2102
2103 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2104 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2105 encoding.
2106 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2107 member of `struct comp_unit'.
2108
8567c30f
AC
21092004-07-23 Andrew Cagney <cagney@gnu.org>
2110
2111 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2112 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2113
f6da8dd8
MH
21142004-07-23 Martin Hunt <hunt@redhat.com>
2115 Kevin Buettner <kevinb@redhat.com>
2116
2117 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2118 alignment was being added to the offset instead of multiplied.
2119
bd921882
MK
21202004-07-23 Mark Kettenis <kettenis@gnu.org>
2121
24f033e8
MK
2122 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2123 changed signal trampoline in OpenBSD 3.5-current.
2124
90f3cecd
MK
2125 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2126 <machine/pcb.h> and "bsd-kvm.h".
2127 (sparc64nbsd_supply_pcb): New function.
2128 (_initialize_sparc64nbsd_nat): Renamed from
2129 _initialize_sparcnbsd_nat. Enable libkvm interface.
2130 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2131 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2132 (LOADLIBES): New variable.
2133
a4954a62
MK
2134 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2135
bd921882
MK
2136 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2137
23a6d369
AC
21382004-07-21 Andrew Cagney <cagney@gnu.org>
2139
2140 Use regcache_raw_supply instead of supply_register.
2141 * regcache.h (supply_register): Delete declaration.
2142 * regcache.c (supply_register): Delete function.
2143 * wince.c (do_child_fetch_inferior_registers): Update.
2144 * win32-nat.c (do_child_fetch_inferior_registers)
2145 (fetch_elf_core_registers): Update.
2146 * v850ice.c (v850ice_fetch_registers): Update.
2147 * thread-db.c (thread_db_store_registers): Update.
2148 * sol-thread.c (sol_thread_store_registers): Update.
2149 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2150 * rs6000-nat.c (fetch_register): Update.
2151 * rom68k-rom.c (rom68k_supply_one_register): Update.
2152 * remote.c (remote_wait, remote_async_wait): Update.
2153 * remote-st.c (get_hex_regs): Update.
2154 * remote-sim.c (gdbsim_fetch_register): Update.
2155 * remote-sds.c (sds_fetch_registers): Update.
2156 * remote-rdp.c (remote_rdp_fetch_register): Update.
2157 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2158 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2159 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2160 * remote-hms.c (init_hms_cmds): Update.
2161 * remote-est.c (init_est_cmds): Update.
2162 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2163 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2164 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2165 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2166 (fetch_register, supply_vrregset, supply_vrregset)
2167 (fetch_spe_registers): Update.
2168 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2169 * monitor.c (monitor_supply_register): Update.
2170 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2171 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2172 (mipsnbsd_supply_fpreg): Update.
2173 * mips-nat.c (fetch_inferior_registers)
2174 (fetch_core_registers): Update.
2175 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2176 (supply_fpregset, mips64_supply_gregset)
2177 (mips64_supply_fpregset): Update.
2178 * m68klinux-nat.c (fetch_register, supply_gregset)
2179 (supply_fpregset): Update.
2180 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2181 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2182 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2183 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2184 * infptrace.c (fetch_register): Update.
2185 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2186 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2187 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2188 (gnu_fetch_registers, gnu_store_registers): Update.
2189 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2190 * i386-linux-nat.c (fetch_register, supply_gregset)
2191 (dummy_sse_values): Update.
2192 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2193 * hppah-nat.c (fetch_register): Update.
2194 * hppa-linux-nat.c (fetch_register, supply_gregset)
2195 (supply_fpregset): Update.
2196 * go32-nat.c (fetch_register): Update.
2197 * dve3900-rom.c (fetch_bitmapped_register)
2198 (_initialize_r3900_rom): Update.
2199 * cris-tdep.c (supply_gregset): Update.
2200 * abug-rom.c (init_abug_cmds): Update.
2201 * core-aout.c (fetch_core_registers): Update.
2202 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2203 (fetch_register, fetch_fp_register): Update.
2204 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2205 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2206 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2207 * alphanbsd-tdep.c (fetch_core_registers): Update.
2208 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2209 * alpha-nat.c (fetch_osf_core_registers)
2210 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2211 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2212 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2213
73cc75f3
AC
22142004-07-21 Andrew Cagney <cagney@gnu.org>
2215
2216 * PROBLEMS: Mention breakpoints/1702.
2217 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2218 that is known to work.
2219
a53c66de
AC
22202004-07-21 Andrew Cagney <cagney@gnu.org>
2221
2222 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2223 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2224 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2225 (handle_inferior_event): Wrap call to deprecated
2226 IGNORE_HELPER_CALL in #ifdef.
2227 * config/mips/tm-nbsd.h: Update.
2228
708ff411
JB
22292004-07-20 Jim Blandy <jimb@redhat.com>
2230
412b3060
JB
2231 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2232 bfd_mach_ppc has no segment registers.
2233
13ac140c
JB
2234 Include PowerPC SPR numbers for special-purpose registers.
2235 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2236 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2237 new member in initializer.
2238 (S, S4, SN4, S64): New macros for defining special-purpose
2239 registers.
2240 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2241 registers_403, registers_403GC, registers_505, registers_860,
2242 registers_601, registers_602, registers_603, registers_604,
2243 registers_750, registers_e500): Use them.
2244
708ff411
JB
2245 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2246 replace references with expression used to initialize variable.
2247
1f602b35
AC
22482004-07-20 Andrew Cagney <cagney@gnu.org>
2249
2250 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2251 read_memory_nobpt.
2252 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2253 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2254 (s390_sigtramp_frame_sniffer): Update.
2255 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2256 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2257 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2258 (mips32_fetch_instruction): Update.
2259 * mcore-tdep.c (get_insn): Update.
2260 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2261 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2262 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2263 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2264 (i386_linux_rt_sigtramp_start): Update.
2265 * i386-linux-nat.c (child_resume): Update.
2266 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2267 * hppa-linux-tdep.c (insns_match_pattern): Update.
2268 * gdbcore.h: Update.
2269 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2270 * frame.c (safe_frame_unwind_memory): Update.
2271 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2272 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2273 * alpha-tdep.c (alpha_read_insn): Update.
2274
2cd8546d
AC
22752004-07-20 Andrew Cagney <cagney@gnu.org>
2276
2277 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2278 containing both bytes and mask. Add "frame_type".
2279 * tramp-frame.c (tramp_frame_start): Update.
2280 (tramp_frame_prepend_unwinder): Update.
2281 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2282 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2283 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2284 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2285
f928dd62
EZ
22862004-07-19 Eli Zaretskii <eliz@gnu.org>
2287
2288 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2289 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2290 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2291 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2292
d5c560f7
AC
22932004-07-17 Andrew Cagney <cagney@gnu.org>
2294
860660cb
AC
2295 * NEWS, PROBLEMS: Update for 6.2.
2296
8c266f54
AC
2297 * README: Update to 6.2.
2298
a552edd9
AC
2299 * utils.c (xvasprintf): Call xstrvprintf.
2300
c4a172b5
AC
2301 * parse.c: Update copyright.
2302 (null_post_parser): Eliminate ARGSUSED.
2303
da745b36
AC
2304 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2305 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2306 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2307
9cbc6ef0
AC
2308 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2309 * ppc-linux-nat.c: Use "Linux kernel".
2310 * hppa-linux-tdep.c: Use GNU/Linux.
2311 * hppa-linux-nat.c: Use GNU/Linux.
2312 * dwarfread.c: Add [sic] to use of Linux.
2313
1b89295f
AC
2314 * hppa-linux-nat.c: Do not include <string.h>.
2315 (supply_fpregset): Remove "register" attribute.
2316
d5c560f7
AC
2317 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2318
7ddd7709
MK
23192004-07-17 Mark Kettenis <kettenis@gnu.org>
2320
b1d19a62
MK
2321 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2322 * configure, config.in: Regenerated.
2323
7ddd7709
MK
2324 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2325 "bsd-kvm.h".
2326 (vaxbsd_supply_pcb): New function.
2327 (_initialize_vaxbsd_nat): New prototype and function.
2328 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2329 solib-sunos.o.
2330 (LOADLIBES): New variable.
2331 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2332 (LOADLIBES): New variable.
2333 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2334 (LOADLIBES): New variable.
2335 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2336
2c07db7a
AC
23372004-07-16 Andrew Cagney <cagney@gnu.org>
2338
2339 * defs.h (event_loop_p): Replace variable declaration with macro,
2340 always 1.
2341 * main.c (captured_main): Delete options "-async" and "-noasync".
2342 (event_loop_p): Delete variable.
2343 * NEWS: Mention that "-async" and "-noasync" were removed.
2344
717eb1cf
AC
23452004-07-16 Andrew Cagney <cagney@gnu.org>
2346
2347 * remote-m32r-sdi.c: Re-indent.
2348
c101bc14
JB
23492004-07-16 Jim Blandy <jimb@redhat.com>
2350
5109a438
JB
2351 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2352 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2353 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2354 missing MPC823 SPRs.
2355 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2356 incorrect. (This was corrected in GDB's register name tables on
2357 2004-07-14.)
2358
c101bc14
JB
2359 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2360 should be "esasrr" ("ESA Save and Restore Register").
2361
7ce450bd
AC
23622004-07-16 Andrew Cagney <cagney@gnu.org>
2363
2364 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2365 calls, no longer applicable. Update comments and rename parameter
2366 "step_frame" to "return_frame".
2367
ca73dd9d
AC
23682004-07-16 Andrew Cagney <cagney@gnu.org>
2369
2370 * frame.c (fprint_field): New function.
2371 (fprint_frame_id): Use fprint_field.
2372
31941f6d
JB
23732004-07-15 Joel Brobecker <brobecker@gnat.com>
2374
2375 * ada-lang.c (ada_language_defn): Remove commented out code.
2376
f86a7158
JB
23772004-07-15 Jim Blandy <jimb@redhat.com>
2378
2379 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2380 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2381
c24791ec
JB
23822004-07-14 Jim Blandy <jimb@redhat.com>
2383
29bb1356
JB
2384 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2385
cc98b5cc
JB
2386 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2387
8f088af7
JB
2388 * ppc-tdep.h (ppc_num_srs): New enum constant.
2389
0ea0ec5f
JB
2390 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2391 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2392 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2393 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2394 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2395 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2396 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2397 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2398 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2399 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2400 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2401 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2402 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2403 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2404 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2405 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2406 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2407 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2408 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2409 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2410 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2411 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2412 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2413 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2414 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2415 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2416 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2417 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2418 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2419 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2420 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2421 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2422 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2423 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2424 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2425 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2426 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2427 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2428 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2429 special-purpose register numbers.
2430
c24791ec
JB
2431 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2432 manual mentions 'md_twb', but many mention 'm_twb', and at that
2433 point in the register list.)
2434
d833db3b
AC
24352004-07-14 Andrew Cagney <cagney@gnu.org>
2436
2437 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2438 instead of "internal-error".
2439
080228b2
JB
24402004-07-10 Joel Brobecker <brobecker@gnat.com>
2441
2442 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2443 that was inserted inside a comment.
2444
c268433a
RC
24452004-07-10 Randolph Chung <tausq@debian.org>
2446
2447 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2448 function.
2449 (hppa_hpux_push_dummy_code): New function.
2450 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2451 Set find_global_pointer method.
2452
71009278
MK
24532004-07-10 Mark Kettenis <kettenis@gnu.org>
2454
2455 * NEWS: Mention BSD libkvm interface.
2456
b2fa5097
MS
24572004-07-10 Michael Snyder <msnyder@redhat.com>
2458
2459 * symfile.c (generic_load): Comment typo.
2460 * stack.c (get_selected_block): Ditto.
2461 * regcache.c (regcache_cooked_read): Ditto.
2462 * monitor.c (monitor_debug): Ditto.
2463 * mips-tdep.c (mips_read_pc): Ditto.
2464 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2465 * gdb_mbuild.sh: Ditto.
2466 * gdbarch.sh: Ditto.
2467 * gdbarch.h: Ditto.
2468
c3e5cd34
PH
24692004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2470
8a2225b2
PH
2471 * ada-tasks.c: Remove file.
2472
c3e5cd34
PH
2473 Remove ARI problems:
2474
2475 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2476 beginning of line.
2477
2478 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2479 Add comment.
2480 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2481 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2482 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2483 (UMIN_OF_SIZE): Remove.
2484 (max_of_type): New function to replace orphan macro in gdbtypes.h
2485 (min_of_type): Ditto.
2486 (discrete_type_high_bound): Use max_of_type.
2487 (discrete_type_low_bound): Use min_of_type.
2488 (possible_user_operator_p): Move operator to beginning of line.
2489 (ada_is_variant_part): Ditto.
2490 (ensure_lval): Rewrite to avoid deprecated operations.
2491 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2492 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2493 (ada_enum_name): Remove assignments in 'if' statements.
2494 (build_ada_types): Add gdbarch parameter.
2495 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2496 with gdbarch_data_register_post_init.
2497 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2498 add_show_from_set.
2499
2500 * ada-valprint.c (inspect_it): Remove declaration.
2501 (repeat_count_threshold): Remove declaration.
2502 (ada_print_floating): Remove assignments in 'if' statements.
2503 (print_str): Move operator to beginning of line.
2504
61ce229a
JB
25052004-07-08 Jim Blandy <jimb@redhat.com>
2506
2507 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2508
09bcec80
BR
25092004-07-08 Bob Rossi <bob@brasko.net>
2510
2511 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2512
31c27f77
JJ
25132004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2514
2515 * language.h (struct_language_defn): Add new function pointer:
2516 la_class_name_from_physname. Also add new prototype for
2517 language_class_name_from_physname.
2518 * language.c (language_class_name_from_physname): New function.
2519 (unk_lang_class_name): Ditto.
2520 (unknown_language_defn, auto_language_defn): Change
2521 to add unk_lang_class_name function pointer for
2522 la_class_name_from_physname.
2523 (local_language_defn): Ditto.
2524 * dwarf2read.c (guess_structure_name): Change to call
2525 language_class_name_from_physname.
2526 (determine_class_name): Ditto.
2527 * cp-support.c (class_name_from_physname): Renamed.
2528 (cp_class_name_from_physname): New name of function.
2529 * cp-support.h: Ditto.
2530 * c-lang.c (c_language_defn): Change to add NULL
2531 for class_name_from_physname function pointer.
2532 (cplus_language_defn): Change to add cp_class_name_from_physname.
2533 * jv-lang.c (java_class_name_physname): New function.
2534 (java_find_last_component): New static routine.
2535 (java_language_defn): Add java_class_name_from_physname pointer.
2536 * ada-lang.c (ada_language_defn): Change to add NULL
2537 for class_name_from_physname function pointer.
2538 * f-lang.c (f_language_defn): Ditto.
2539 * m2-lang.c (m2_language_defn): Ditto.
2540 * objc-lang.c (objc_language_defn): Ditto.
2541 * p-lang.c (pascal_language_defn): Ditto.
2542 * scm-lang.c (scm_language_defn): Ditto.
2543
ee28ca0f
AC
25442004-07-06 Andrew Cagney <cagney@gnu.org>
2545
2546 Patch from Bart Robinson.
2547 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2548 (O_LARGEFILE): Define to 0, if not defined.
2549
fdb1bf9d
MK
25502004-07-03 Mark Kettenis <kettenis@gnu.org>
2551
cb162ff6
MK
2552 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2553 <machine/pcb.h> and "bsd-kvm.h".
2554 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2555 (m68kbsd_supply_pcb): New function.
2556 (_initialize_m68kbsd_nat): New prototype and function.
2557 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2558 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2559 (LOADLIBES): New variable.
2560 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2561 (LOADLIBES): New variable.
2562
fdb1bf9d
MK
2563 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2564
963c4174
MK
25652004-07-03 Mark Kettenis <kettenis@gnu.org>
2566
2567 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2568 <sys/proc.h>.
2569 (bsd_kvm_cmdlist): New variable.
2570 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2571 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2572 command and "kvm proc" command.
2573 * Makefile.in (bsd-kvm.o): Update dependencies.
2574
533f1d8f
MK
25752004-07-02 Mark Kettenis <kettenis@gnu.org>
2576
2577 * osabi.c: Update copyright year.
2578 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2579 notes if EI_OSABI is set to ELFOSABI_HPUX.
2580
6780dcde
MS
25812004-07-01 Michael Snyder <msnyder@redhat.com>
2582
2583 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2584 that seems to have gotten whacked out of line.
2585
67bebe79
MK
25862004-07-01 Mark Kettenis <kettenis@gnu.org>
2587
2588 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2589 code.
2590
0b5d8877
PH
25912004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2592
2593 * ada-lang.c (decode_packed_array): Minor change to comment.
2594 (ada_value_slice_ptr): New function.
2595 (ada_value_slice): New function.
2596 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2597 test. Don't know why it is there.
2598 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2599 to avoid dereferencing huge arrays from which one is slicing.
2600 (empty_array): Correct to return an array rather than
2601 a subrange value.
2602 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2603 on empty arrays (let'em use 'FIRST instead).
2604
19c1ef65
PH
26052004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2606
2607 Address complaints from gdb_ari.sh:
2608
2609 * ada-exp.y: Include gdb_string.h rather than string.h.
2610 (convert_char_literal): Reformat declaration.
2611 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2612 * ada-lex.l: Change use of free to xfree (the macro would do so
2613 anyway, but this is harmless).
2614 Include gdb_string.h rather than string.h.
2615 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2616
2617 * ada-lang.c (parse): Remove K&Rism in parameter list.
2618 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2619
d81cbc94
MK
26202004-06-30 Mark Kettenis <kettenis@gnu.org>
2621
2622 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2623 dead code.
2624
07681759
MK
26252004-06-30 Mark Kettenis <kettenis@gnu.org>
2626
2627 * alphabsd-nat.c: Update copyright year.
2628 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2629
f7948b5f
JB
26302004-06-29 Joel Brobecker <brobecker@gnat.com>
2631
6e0cdd28 2632 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2633 (i386_cygwin_in_solib_call_trampoline): New function.
2634 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2635 and skip_trampoline_code gdbarch methods.
2636
8f113c9a
JB
26372004-06-29 Jim Blandy <jimb@redhat.com>
2638
2639 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2640 name actually used in the dependency lists.
2641
97dc871c
RC
26422004-06-29 Randolph Chung <tausq@debian.org>
2643
2644 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2645
47216e51
CV
26462004-06-29 Corinna Vinschen <vinschen@redhat.com>
2647
2648 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2649 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2650 functionality.
2651
e623b504
AC
26522004-06-28 Andrew Cagney <cagney@gnu.org>
2653
2654 * defs.h (xstrvprintf): Declare.
2655 * utils.c (xstrvprintf): New function.
2656 (internal_vproblem, xstrprintf, xasprintf)
2657 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2658 * serial.c (serial_printf): Ditto.
2659 * complaints.c (vcomplaint): Ditto.
2660
79acc9b3
CV
26612004-06-29 Corinna Vinschen <vinschen@redhat.com>
2662
2663 * infcmd.c (attach_command): Move call to target_terminal_inferior
2664 behind loading symbol table.
2665
1daf35d9
AC
26662004-06-28 Andrew Cagney <cagney@gnu.org>
2667
2668 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2669 change - add back extern deprecated_ui_loop_hook declaration.
2670
b435e160
AC
26712004-06-28 Andrew Cagney <cagney@gnu.org>
2672
2673 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2674 xstrprintf.
2675 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2676 (c_value_of_variable): Ditto.
2677 * utils.c (internal_vproblem): Ditto.
2678 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2679 * remote.c (add_packet_config_cmd): Ditto.
2680 * remote-rdp.c (rdp_set_command_line): Ditto.
2681 * regcache.c (regcache_dump): Ditto.
2682 * frv-tdep.c (new_variant, new_variant): Ditto.
2683 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2684 (fbsd_find_memory_regions): Ditto.
2685 * breakpoint.c (create_thread_event_breakpoint)
2686 (create_breakpoints): Ditto.
2687 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2688 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2689
06d5cf63
JB
26902004-06-28 Joel Brobecker <brobecker@gnat.com>
2691
2692 * ada-lang.c: Re-indent file, with some massaging to help indent
2693 a bit when the result is otherwise really too ugly.
2694
35809fad
UW
26952004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2696
2697 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2698 code_addr_p and special_addr_p to 'unsigned int'.
2699
40e20472
MK
27002004-06-27 Mark Kettenis <kettenis@gnu.org>
2701
2702 * i386v4-nat.c: Update copyright year and tweak comment.
2703 (regmap): Remove trailing comma.
2704 (supply_gregset): Rename local variable i to regnum. Call
2705 regcache_raw_supply instead of supply_register.
2706 (fill_gregset): Rename argument regno to regnum. Call
2707 regcache_raw_collect instead of regcache_collect.
2708
12b0b6de
UW
27092004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2710
2711 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2712 and special_addr_p.
2713 (frame_id_build, frame_id_build_special): Update comments.
2714 (frame_id_build_wild): New prototype.
2715 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2716 struct frame_id fields.
2717 (frame_id_build_wild): New function.
2718 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2719
47b42a3e
MK
27202004-06-27 Mark Kettenis <kettenis@gnu.org>
2721
2722 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2723 hppabsd-tdep.c.
2724
1265e4aa
JB
27252004-06-27 Joel Brobecker <brobecker@gnat.com>
2726
2727 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2728
76a01679
JB
27292004-06-27 Joel Brobecker <brobecker@gnat.com>
2730
2731 * ada-lang.c: Re-indent file.
2732
7aca490a
JB
27332004-06-27 Joel Brobecker <brobecker@gnat.com>
2734
2735 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2736 (no_symtab_msg): Likewise.
2737
5e987968
AS
27382004-06-27 Andreas Schwab <schwab@suse.de>
2739
2740 * source.c: Fix whitespace.
2741
315c4276
MK
27422004-06-27 Mark Kettenis <kettenis@gnu.org>
2743
d15be926
MK
2744 * configure.in: Include <sys/param.h> for td_pcb test.
2745 * configure: Regenerated.
2746
9062529b
MK
2747 * i386nbsd-nat.c: New file.
2748 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2749 i386obsd-nat.c and i386obsd-tdep.c.
2750 (i386nbsd-nat.o): New dependency.
2751 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2752 bsd-kvm.o.
2753 (LOADLIBES): New variable.
2754 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2755 bsd-kvm.o.
2756 (LOADLIBES): New variable.
2757
8010310e
MK
2758 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2759 (LOADLIBES): New variable.
2760
efe1d7b9
MK
2761 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2762 fetching from BSD_KVM_PADDR. Correctly lookup address for
2763 "_thread0".
2764
315c4276
MK
2765 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2766 "bsd-kvm.h".
2767 (amd64fbsd_supply_pcb): New funcion.
2768 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2769
399cfac6
DL
27702004-06-27 <david@streamline-computing.com>
2771
2772 Partial fix for PR cli/1056.
2773 * valarith.c: Check for zero in division and remainder
2774 evaluation.
2775
6235f9c8
MK
27762004-06-27 Mark Kettenis <kettenis@gnu.org>
2777
2778 * i387-tdep.c: Remove excessive whitespace.
2779
2726dafc
AC
27802004-06-26 Andrew Cagney <cagney@gnu.org>
2781
2782 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2783 * gdb-events.h, gdb-events.c: Re-generate.
2784 * tui/tui-hooks.c (tui_install_hooks): Update.
2785 (tui_remove_hooks): Update.
2786 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2787
0e56aeaf
MK
27882004-06-26 Mark Kettenis <kettenis@gnu.org>
2789
cb461069
MK
2790 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2791 (gregset_t, fpregset_t): Remove typedefs.
2792 (REG_OFFSET): Rename argument.
2793 (amd64bsd_r_reg_offset): Rename from reg_offset.
2794 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2795 Remove functions.
2796 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2797 of reg_offset.
2798 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2799
ecba89de
MK
2800 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2801
4cd80476
MK
2802 * vax-tdep.c: Tweak comment.
2803
0e56aeaf
MK
2804 Add OpenBSD/hppa support.
2805 * NEWS (New native configurations): Mention OpenBSD/hppa.
2806 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2807 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2808 files.
2809 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2810 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2811 * configure.host: Add hppa*-*-openbsd*.
2812 * configure.tgt: Add hppa*-*-openbsd*.
2813
98bbd631
AC
28142004-06-25 Andrew Cagney <cagney@gnu.org>
2815
2816 * defs.h (deprecated_ui_loop_hook): Deprecated.
2817 * wince.c (child_wait): Update.
2818 * win32-nat.c (child_wait): Update.
2819 * v850ice.c (v850ice_wait): Update.
2820 * top.c (deprecated_ui_loop_hook): Update.
2821 * serial.h: Update.
2822 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2823 (do_unix_readchar): Update.
2824 * ser-tcp.c (net_open): Update.
2825 * remote-sim.c (gdb_os_poll_quit): Update.
2826 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2827
769d7dc4
AC
28282004-06-24 Andrew Cagney <cagney@gnu.org>
2829
2830 * defs.h (deprecated_pre_add_symbol_hook)
2831 (deprecated_post_add_symbol_hook): Deprecated.
2832 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2833 (symbol_file_add_with_addrs_or_offsets): Update references.
2834
11c949aa
AC
28352004-06-24 Andrew Cagney <cagney@gnu.org>
2836
2837 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2838 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2839 * wince.c (ui_loop_hook): Delete extern declaration.
2840 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2841 * v850ice.c (ui_loop_hook): Delete extern declaration..
2842 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2843 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2844 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2845 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2846 ui_loop_hook declaration.
2847
eedc19af
AC
28482004-06-24 Andrew Cagney <cagney@gnu.org>
2849
2850 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2851 entry_func_highpc fields.
2852 * objfiles.c (init_entry_point_info): Do not clear
2853 entry_func_lowpc and entry_func_highpc.
2854 (objfile_relocate): Do not relocate entry_func_lowpc and
2855 entry_func_highpc.
2856 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2857 entry_func_highpc.
2858 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2859 entry_func_highpc.
2860 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2861 entry_func_lowpc and entry_func_highpc with call to
2862 inside_entry_func.
2863
d47079be
MK
28642004-06-24 Mark Kettenis <kettenis@gnu.org>
2865
2866 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2867 quad-precision floating point arguments in registers.
2868
2107e348
MK
28692004-06-24 Mark Kettenis <kettenis@gnu.org>
2870
2871 From Michael Mueller <m.mueller99@kay-mueller.de>:
2872 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2873 account.
2874
46587c42
JJ
28752004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2876
2877 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2878 to -1.
2879 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2880 untriggered watchpoints to a separate if clause. Update function
2881 comment regarding STOPPED_BY_WATCHPOINT argument.
2882
226f5cf4
JB
28832004-06-22 Jim Blandy <jimb@redhat.com>
2884
2885 * gdbarch.sh: Doc fix.
2886
f10683bb
MH
28872004-06-21 Martin Hunt <hunt@redhat.com>
2888 Kevin Buettner <kevinb@redhat.com>
2889
2890 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2891 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2892 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2893 to set_gdbarch_sp_regnum(). Use cooked register number.
2894 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2895
412d5987
AC
28962004-06-21 Andrew Cagney <cagney@gnu.org>
2897
2898 * gdbarch.sh: When the macro field is empty, do not generate a
2899 macro definition. When the macro field is "=", generate the macro
2900 name from the upper-case function name.
2901 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2902 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2903 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2904 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2905 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2906 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2907 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2908 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2909 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2910 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2911 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2912 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2913 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2914 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2915 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2916 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2917 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2918 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2919 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2920 (DEPRECATED_USE_STRUCT_CONVENTION)
2921 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2922 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2923 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2924 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2925 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2926 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2927 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2928 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2929 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2930 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2931 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2932 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2933 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2934 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2935 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2936 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2937 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2938 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2939
68908a3e
AC
29402004-06-21 Andrew Cagney <cagney@gnu.org>
2941
48f7351b
AC
2942 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2943 macro name, and the function rather than macro value. Only wrap
2944 macro print statements in #ifdef. Move format logic to where it
2945 is needed.
2946 * gdbarch.c: Re-generate.
2947
283354d8
AC
2948 * gdbarch.sh (read): Delete "print_p" and "description", add
2949 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2950 Delete references to print_p.
2951 (TARGET_ARCHITECTURE): Delete print predicate.
2952 * gdbarch.c: Re-generate.
2953
68908a3e
AC
2954 * gdbarch.sh: Check that multi-arch methods do not provide a
2955 macro.
2956 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2957 (print_registers_info, print_float_info, print_vector_info)
2958 (adjust_breakpoint_address, remote_translate_xfer_address)
2959 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2960 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2961 name from the multi-arch definition.
2962
a2428dbe
AC
29632004-06-20 Andrew Cagney <cagney@gnu.org>
2964
2965 * gdbarch.sh: Sort by the function, instead of macro name.
2966 * gdbarch.c: Re-generate.
2967
750eb019
AC
29682004-06-20 Andrew Cagney <cagney@gnu.org>
2969
66d659b1
AC
2970 * gdbarch.sh: Use the function, instead of macro name in
2971 errors and the log file.
2972 (return_value): Remove stray ":" in spec.
2973
750eb019
AC
2974 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2975 * gdbarch.h, gdbarch.c: Re-generate.
2976 * Makefile.in (arch-utils.o): Update dependencies.
2977 * values.c (using_struct_return): Move code calling
2978 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2979 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2980 to legacy_return_value, simplify.
2981 * infcmd.c (print_return_value): Move code calling
2982 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2983 to legacy_return_value, simplify.
2984 * infcall.c (call_function_by_hand): Move code calling
2985 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2986 * arch-utils.c: Update copyright. Include "gdbcore.h".
2987 (legacy_return_value): New function.
2988 * arch-utils.h: Update copyright.
2989 (legacy_return_value): Declare.
2990
b5622e8d
AC
29912004-06-20 Andrew Cagney <cagney@gnu.org>
2992
2993 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2994 * gdbarch.h, gdbarch.c: Re-generate.
2995 * values.c (using_struct_return): Update call.
2996 * mcore-tdep.c: Update comment.
2997 * infcall.c (call_function_by_hand): Update comment.
2998 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2999 * arch-utils.h (always_use_struct_convention): Update.
3000 * v850-tdep.c (v850_gdbarch_init): Update.
3001 * sh64-tdep.c (sh64_gdbarch_init): Update.
3002 * sh-tdep.c (sh_gdbarch_init): Update.
3003 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3004 * mips-tdep.c (mips_gdbarch_init): Update.
3005 * mcore-tdep.c (mcore_gdbarch_init): Update.
3006 * m32r-tdep.c (m32r_gdbarch_init): Update.
3007 * ia64-tdep.c (ia64_gdbarch_init): Update.
3008 * h8300-tdep.c (h8300_gdbarch_init): Update.
3009 * frv-tdep.c (frv_gdbarch_init): Update.
3010 * cris-tdep.c (cris_gdbarch_init): Update.
3011 * arm-tdep.c (arm_gdbarch_init): Update.
3012 * alpha-tdep.c (alpha_gdbarch_init): Update.
3013
5191de37
MC
30142004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3015
3016 * PROBLEMS: Add more specific information, and a work-around,
3017 for PR gdb/1458.
3018
782263ab
AC
30192004-06-18 Andrew Cagney <cagney@gnu.org>
3020
3021 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3022 * gdbarch.h, gdbarch.c: Re-generate.
3023 * ada-lang.c (ada_finish_decode_line_1): Update.
3024 * infrun.c (handle_inferior_event): Update.
3025 * infcall.c (find_function_addr): Update.
3026 * linespec.c (minsym_found): Update.
3027 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3028 Update.
3029 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3030 * cli/cli-cmds.c (disassemble_command): Update.
3031 * vax-tdep.c (vax_gdbarch_init): Update.
3032
2f305df1
MK
30332004-06-18 Mark Kettenis <kettenis@gnu.org>
3034
3035 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3036
e5fe55f7
AC
30372004-06-17 Andrew Cagney <cagney@gnu.org>
3038
3039 GDB 6.1.1 released from the GDB 6.1 branch.
3040 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3041 * PROBLEMS: Ditto.
3042
473b7be6
DJ
30432004-06-16 Daniel Jacobowitz <dan@debian.org>
3044
3045 PR gdb/1658
3046 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3047 operation as a uleb128. Found by Michael Coulter.
3048
96d887e8
PH
30492004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3050
3051 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3052 make it non-static.
3053 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3054 to ada-lang.h; this is needed to be able to implement the kill command
3055 in multi-task mode.
3056 (task_ptid): Ditto.
3057 (task_entry): Ditto.
3058 (task_list): Ditto.
3059 (ada_build_task_list): Ditto.
3060
3061 * ada-lang.c: Conditionalize routines and data structures related
3062 to breakpoints, exceptions, completion, and symbol caching on
3063 GNAT_GDB, since these are not yet used in the submitted public sources.
3064 (ada_main_name): Editorial: Move definition out of exception-related
3065 code.
3066
31eef181
AC
30672004-06-15 Andrew Cagney <cagney@gnu.org>
3068
3069 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3070 deprecated_pc_in_call_dummy.
3071
2c500098
AM
30722004-06-15 Alan Modra <amodra@bigpond.net.au>
3073
3074 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3075 bfd_get_section_size_before_reloc or _raw_size.
3076 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3077 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3078 (dwarf2_read_section): Likewise.
3079 * elfread.c (elf_locate_sections): Likewise.
3080 * gcore.c (derive_heap_segment): Likewise.
3081 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3082 * remote-e7000.c (e7000_load): Likewise.
3083 * remote-m32r-sdi.c (m32r_load): Likewise.
3084 * remote-mips.c (mips_load_srec): Likewise.
3085 (pmon_load_fast): Likewise.
3086 * remote.c (compare_sections_command): Likewise.
3087 * symfile.c (add_section_size_callback): Likewise.
3088 (load_section_callback): Likewise.
3089 (pc_in_unmapped_range): Likewise.
3090 (pc_in_mapped_range): Likewise.
3091 (sections_overlap): Likewise.
3092 (list_overlays_command): Likewise.
3093 (simple_overlay_update_1): Likewise.
3094 (simple_overlay_update): Likewise.
3095 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3096 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3097
90f943f1
RC
30982004-06-14 Randolph Chung <tausq@debian.org>
3099
3100 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3101 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3102 static.
3103 (hppa_hpux_inferior_created): New function.
3104 (hppa_hpux_init_abi): Register observer.
3105 * symfile.c (hp_cxx_exception_support_initialized)
3106 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3107 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3108
700c15aa
RC
31092004-06-14 Randolph Chung <tausq@debian.org>
3110
3973a7d3
AC
3111 * MAINTAINERS (Write After Approval): Alphabetize my entry
3112 correctly.
700c15aa 3113
cea4838c
AC
31142004-06-14 Andrew Cagney <cagney@gnu.org>
3115
3116 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3117 testsuite maintainer.
3118
97092415
AC
31192004-06-13 Andrew Cagney <cagney@gnu.org>
3120
e8c3165b
AC
3121 * infcmd.c (print_return_value): Fix logic, allow
3122 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3123
bceabdd8
AC
3124 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3125 defining any macros.
3126 * gdbarch.h: Re-generate.
3127
57010b1c
AC
3128 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3129 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3130 * gdbarch.h: Re-generate.
3131
bc87dfa0
AC
3132 * values.c (generic_use_struct_convention): Don't check gcc_p.
3133
15ac804d
AC
3134 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3135 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3136 * gdbarch.h, gdbarch.c: Regenerate.
3137 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3138 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3140 deprecated_max_register_raw_size and
3141 deprecated_max_register_virtual_size.
3142 * v850-tdep.c (v850_gdbarch_init): Ditto.
3143 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3144 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3145 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3146 * cris-tdep.c (cris_gdbarch_init): Ditto.
3147
97092415
AC
3148 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3149 * gdbarch.h, gdbarch.c: Re-generate.
3150 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3151 (m68hc11_use_struct_convention): Delete function.
3152 (m68hc11_extract_struct_value_address): Delete function.
3153 (m68hc11_return_value): New function.
3154 (m68hc11_gdbarch_init): Instead of store_return_value,
3155 extract_return_value, return_value_on_stack,
3156 deprecated_extract_struct_value_address and use_struct_convention,
3157 set return_value.
3158 * values.c (using_struct_return): Do not call
3159 RETURN_VALUE_ON_STACK.
3160 * arch-utils.h (generic_return_value_on_stack_not): Delete
3161 declaration.
3162 * arch-utils.c (generic_return_value_on_stack_not): Delete
3163 function.
3164
44e5158b
AC
31652004-06-12 Andrew Cagney <cagney@gnu.org>
3166
3167 * values.c (register_value_being_returned): Delete function.
3168 * infcmd.c (legacy_return_value): Delete function.
3169 * infcall.c (call_function_by_hand): Inline
3170 "register_value_being_returned", simplify.
3171 * values.c (using_struct_return): Update comment, refer to
3172 print_return_value instead of register_value_being_returned.
3173 * infcmd.c (print_return_value): Inline calls to
3174 register_value_being_returned and legacy_return_value. Simplify.
3175
b887c273
RC
31762004-06-11 Randolph Chung <tausq@debian.org>
3177
3178 * somread.c (som_symtab_read): Exclude gcc local symbols.
3179
1b2bfbb9
RC
31802004-06-11 Randolph Chung <tausq@debian.org>
3181
3973a7d3
AC
3182 * infrun.c (handle_inferior_event): Handle the case when a
3183 trampoline ends up in the runtime resolver, and if the trampoline
3184 has no name. Rearrange the code so that all the trampoline
3185 processing happens before other step-out-of-range handling.
1b2bfbb9 3186
a9d61c86
MH
31872004-06-11 Martin Hunt <hunt@redhat.com>
3188
3189 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3190 has no fpu.
3191
2c87cf5a
AC
31922004-06-10 Andrew Cagney <cagney@gnu.org>
3193
3194 * blockframe.c (legacy_inside_entry_func): Delete.
3195 (legacy_frame_chain_valid): Inline call to
3196 legacy_inside_entry_func, simplify.
3197
0b67b468 31982004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
3199
3200 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
3201 * dwarf2read.c (partial_die_info): Add dirname field.
3202 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3203 (read_partial_die): Save away DW_AT_comp_dir.
3204 * defs.h (symtab_to_filename): Removed.
3205 * source.c (find_and_open_source): Added.
57c22c6c 3206 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
3207 (symtab_to_filename): Removed.
3208 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
3209 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3210 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3211 symtab_to_filename.
3212 * symtab.h (partial_symtab): Add dirname field.
3213 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
3214 (mi_cmd_file_list_exec_source_file): Call new function
3215 symtab_to_fullname to find fullname.
57c22c6c 3216 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 3217 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
3218 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3219
9a1dd1ad
AC
32202004-06-10 Andrew Cagney <cagney@gnu.org>
3221
239ae8c7
AC
3222 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3223 to generic_use_struct_convention, the default value.
3224
fc720350
AC
3225 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3226 of abort.
3227
9a1dd1ad
AC
3228 * ns32k-tdep.c (ns32k_push_arguments): New function.
3229 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3230 * infcall.c (call_function_by_hand): Call error instead of
3231 legacy_push_arguments.
3232 * value.h (legacy_push_arguments): Delete declaration.
3233 * valops.c (legacy_push_arguments): Delete function.
3234 (value_push): Delete function.
3235
fea25152
BF
32362004-06-10 Brian Ford <ford@vss.fsi.com>
3237
3238 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3239 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3240 info.
3241 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3242
30a4a8e0
AC
32432004-06-10 Andrew Cagney <cagney@gnu.org>
3244
3245 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3246 * gdbarch.h, gdbarch.c: Re-generate.
3247 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3248 parameters.
3249 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3250 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3251 deprecated_pc_in_call_dummy instead of
3252 DEPRECATED_PC_IN_CALL_DUMMY.
3253 (arm_skip_prologue): Ditto.
3254 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3255 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3256 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3257 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3258 Ditto.
3259 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3260 (sh64_init_extra_frame_info, sh64_get_saved_register)
3261 (sh64_pop_frame): Ditto.
3262 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3263 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3264 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3265 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3266 (h8300_pop_frame): Ditto.
3267 * blockframe.c (legacy_inside_entry_func)
3268 (legacy_frame_chain_valid): Ditto.
3269 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3270 to deprecated_pc_in_call_dummy.
3271
81cfbe54
AC
32722004-06-09 Andrew Cagney <cagney@gnu.org>
3273
a1f4a1b6
AC
3274 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3275 provide a default value.
3276 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3277 * gdbarch.h, gdbarch.c: Re-generate.
3278 * arch-utils.c (generic_convert_register_p): Rename
3279 legacy_convert_register_p
3280 (legacy_register_to_value, legacy_value_to_register): Delete
3281 functions.
3282 * arch-utils.h (generic_convert_register_p): Rename
3283 legacy_convert_register_p.
3284 (legacy_register_to_value, legacy_value_to_register): Delete
3285 declarations.
3286
9730f241
AC
3287 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3288 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3289 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3290 * gdbarch.h, gdbarch.c: Re-generate.
3291 * infcmd.c (default_print_registers_info): Simplify.
3292 * findvar.c (value_of_register): Simplify.
3293 * mi/mi-main.c (get_register): Simplify.
3294 * arch-utils.c (legacy_convert_register_p): Always return 0.
3295 (legacy_register_to_value, legacy_value_to_register): Always call
3296 internal_error.
3297
8a1bf479
AC
3298 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3299 #ifdef CLEAR_INSN_CACHE code.
3300 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3301 Delete #ifdef CLEAR_DEFERRED_STORES code.
3302
4b38d6f1
AC
3303 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3304
2d62ecc7
AC
3305 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3306 copyright.
3307 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3308
be4f7469
AC
3309 * config/mips/mipsv4.mh: Delete file.
3310
81cfbe54
AC
3311 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3312 unreferenced macro.
3313 (hpread_adjust_stack_address): Delete declaration.
3314
d966f0cb
AC
33152004-06-08 Andrew Cagney <cagney@gnu.org>
3316
3317 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3318 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3319 PTRACE_ATTACH / PTRACE_DETACH available call error.
3320 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3321 * infttrace.c (update_thread_state_after_attach, attach, detach):
3322 Remove #ifdef wrappers.
3323 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3324 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3325 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3326 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3327 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3328 * config/nm-linux.h (ATTACH_DETACH): Delete.
3329 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3330 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3331 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3332 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3333 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3334
d91670b9
CV
33352004-06-08 Corinna Vinschen <vinschen@redhat.com>
3336
3337 * configure.in: Set $configdir to the right OS specific value.
3338 Use value when setting $tcldir and $tkdir.
3339 * configure: Regenerate.
3340
28ba0b33
PB
33412004-06-06 Paul Brook <paul@codesourcery.com>
3342
3343 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3344 records.
3345
f26caa11
PH
33462004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3347
3348 * ada-lang.c (lookup_symbol_in_language): New function to allow
3349 re-use of another language's symbol lookup code. (Placed here
3350 temporarily while Ada support is being integrated into the public
3351 tree).
3352 (restore_language): New auxiliary function for
3353 lookup_symbol_in_language.
3354 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3355 temporarily while Ada support is being integrated into the public
3356 tree).
3357
d560a54b
AO
33582004-06-08 Alexandre Oliva <aoliva@redhat.com>
3359
e75d110c
AO
3360 * Makefile.in (check//%): New.
3361
d560a54b
AO
3362 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3363 (mn10300_store_return_value): Rewrite.
3364 (mn10300_type_align): New.
3365 (mn10300_use_struct_convention): Rewrite.
3366 (mn10300_return_value): New, using all of the above.
3367 (mn10300_pop_frame_regular): Add saved_regs_size.
3368 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3369
a72fbdb7
AO
3370 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3371 regs if PC is on movm.
3372
01904826
JB
33732004-06-07 Jim Blandy <jimb@redhat.com>
3374
3375 Add native Linux support for the PowerPC E500.
3376 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3377 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3378 all architectures except the E500.
3379 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3380 #definitions.
3381 (struct gdb_evrregset_t): New type.
3382 (have_ptrace_getsetevrregs): New variable.
3383 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3384 fetch_spe_registers): New functions.
3385 (fetch_register): Call fetch_spe_register as appropriate.
3386 Assert that we're only passed raw register numbers.
3387 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3388 Don't fetch gprs if they're pseudoregisters.
3389 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3390 store_spe_registers): New functions.
3391 (store_register): Call store_spe_register as appropriate.
3392 Assert that we're only passed raw register numbers.
3393 (store_ppc_registers): Call store_spe_registers as appropriate.
3394 Don't store gprs if they're pseudoregisters.
3395
f90ef764
JJ
33962004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3397
3398 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3399 struct if one exists, even if we are dealing with a zombie thread.
3400
45b75230
AC
34012004-06-07 Andrew Cagney <cagney@gnu.org>
3402
3403 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3404 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3405 Rename PC_REQUIRES_RUN_BEFORE_USE.
3406 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3407 #ifdef.
3408
1658da49
RC
34092004-06-07 Randolph Chung <tausq@debian.org>
3410
3411 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3412 unwinding after sp has been saved to the stack but before the end
3413 of the prologue, and after the fp has been modified but before it has
3414 been saved to the stack.
3415 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3416 Remove superfluous definitions.
3417 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3418
9a727a3c
RC
34192004-06-07 Guy Martin <gmsoft@gentoo.org>
3420
3421 Committed by Randolph Chung.
3422 * hppa-linux-nat.c: Include the correct version of the header file
3423 depending on the kernel version.
3424
9e500012
RC
34252004-06-06 Randolph Chung <tausq@debian.org>
3426
3427 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3428 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3429
3388d7ff
RC
34302004-06-06 Randolph Chung <tausq@debian.org>
3431
3432 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3433 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3434 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3435 * hppa-tdep.c (hppa_symbol_address): New function definition.
3436 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3437
d49771ef
RC
34382004-06-06 Randolph Chung <tausq@debian.org>
3439
3440 * hppa-tdep.h (struct value): Forward declaration.
3441 (gdbarch_tdep): Define tdep find_global_pointer method.
3442 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3443 associated with the function we are trying to call, and write it
3444 to the gp register.
3445 (hppa32_convert_from_funct_ptr_addr): New function.
3446 (hppa_find_global_pointer): New function.
3447 (hppa_gdbarch_init): Set default find_global_pointer method; set
3448 convert_from_func_ptr_addr method.
3449 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3450 (hppa_linux_init_abi): Set find_global_pointer method.
3451 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3452
7d9b040b
RC
34532004-06-06 Randolph Chung <tausq@debian.org>
3454
3455 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3456 to struct value *function.
3457 * gdbarch.c: Regenerate.
3458 * gdbarch.h: Likewise.
3459 * infcall.c (call_function_by_hand): Pass entire function value
3460 to push_dummy_call.
3461
3462 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3463 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3464 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3465 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3466 * arm-tdep.c (arm_push_dummy_call): Likewise.
3467 * avr-tdep.c (avr_push_dummy_call): Likewise.
3468 * cris-tdep.c (cris_push_dummy_call): Likewise.
3469 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3470 * frv-tdep.c (frv_push_dummy_call): Likewise.
3471 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3472 * hppa-tdep.c (hppa32_push_dummy_call)
3473 (hppa64_push_dummy_call): Likewise.
3474 * i386-tdep.c (i386_push_dummy_call): Likewise.
3475 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3476 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3477 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3478 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3479 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3480 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3481 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3482 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3483 (ppc64_sysv_abi_push_dummy_call): Likewise.
3484 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3485 (ppc64_sysv_abi_push_dummy_call): Likewise.
3486 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3487 * s390-tdep.c (s390_push_dummy_call): Likewise.
3488 * sh-tdep.c (sh_push_dummy_call_fpu)
3489 (sh_push_dummy_call_nofpu): Likewise.
3490 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3491 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3492 * vax-tdep.c (vax_push_dummy_call): Likewise.
3493
4a19ea35
JB
34942004-06-04 Jim Blandy <jimb@redhat.com>
3495
8327ccee
JB
3496 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3497 gdbarch argument to register_size.
3498
a3c001ce
JB
3499 * rs6000-tdep.c (rs6000_store_return_value): Use
3500 regcache_cooked_write_part instead of
3501 deprecated_write_register_bytes.
3502 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3503 not gdbarch_deprecated_store_return_value.
3504
4a19ea35
JB
3505 * ppc-linux-nat.c (store_register, fetch_register): Remove
3506 incorrect assertions. Simplify and generalize handling of
3507 transfers whose sizes are not multiples of, or less than, sizeof
3508 (PTRACE_XFER_TYPE).
3509
b9b5d7ea
JJ
35102004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3511
3512 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3513 as a new thread event.
720c7d64 3514 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3515 zombie, return TD_THR_ZOMBIE.
720c7d64 3516 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3517 TD_THR_ZOMBIE, check if the thread is still on the thread list
3518 and return a -1 ptid if not found.
3519 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3520 change the status to TARGET_WAITKIND_SPURIOUS.
3521
c8a3b559
CV
35222004-06-03 Corinna Vinschen <vinschen@redhat.com>
3523
3524 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3525 double values in little endian mode.
3526
20605361
AC
35272004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3528
3529 Committed by Andrew Cagney.
3530 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3531 after last enum constant to avoid error from IBM C
3532 compiler.
3533
bc97b3ba
JB
35342004-06-02 Jim Blandy <jimb@redhat.com>
3535
3536 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3537 to 'message', and make it local to the lone block that uses it.
3538
1da28ab0
JB
3539 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3540
4c4b4cd2
PH
35412004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3542
8a2225b2
PH
3543 * ada-exp.y: Update copyright notice.
3544 Include block.h.
3545
3546 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3547 SPECIAL_VARIABLE and unify the treatment of these cases.
3548
3549 (write_attribute_call0): Remove.
3550 (write_attribute_call1): Remove.
3551 (write_attribute_calln): Remove.
3552 (save_qualifier): Add missing semicolon.
3553
3554 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3555 temporarily disabled to allow compilation with FSF head version.
3556
3557 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3558 use individual operators (OP_*) for all attributes.
3559 (exp syntax): Use write_int.
3560 Handle STRING literals with OP_STRING.
3561 (variable syntax): Add limit parameter to calls to
3562 write_object_renaming.
3563
3564 (temp_parse_space): New definition to hold entities that need
3565 only live until the next call to ada_parse.
3566 (string_to_operator): Rename fields of ada_opname_table entries.
3567
3568 (write_var_from_sym): Record block.
3569 (write_var_from_name): Minor reformatting.
3570 Make sure saved name is properly encoded in the case of multiple
3571 matches, and set its language to Ada.
3572 Update comment.
3573 Modify to indicate unresolved name as symbol in the UNRESOLVED
3574 namespace, allocated in temp_parse_space.
3575 (write_int): New function.
3576
3577 (write_object_renaming): Add max_depth parameter to limit
3578 chains of object renamings.
3579 Handle case where root of renaming expression is itself a renaming.
3580 Use temp_parse_space for temporary name buffer.
3581 Handle renamings to dereferenced pointers (___XEXA suffices).
3582
3583 (ada_parse, yyerror, string_to_operator,
3584 write_var_from_sym, write_var_from_name, write_attribute_call0,
3585 write_attribute_call1, write_attribute_calln,
3586 write_object_renaming): Protoize.
3587
3588 (_initialize_ada_exp): New function.
3589
3590 * ada-lang.c: Update copyright notice.
3591 General terminology change to conform to GNAT compiler usage:
3592 mangle => encode, demangle => decode
3593 Include gdb_obstack.h.
3594 Include gdb_regex.h
3595 Include frame.h
3596 Include hashtab.h
3597 Include completer.h
3598 Include gdb_stat.h
3599 Include block.h
3600 Include infcall.h
3601
3602 (ADA_RETAIN_DOTS): Make sure this is defined.
3603 (TRUNCATION_TOWARDS_ZERO): Define.
3604 (struct string_vector): Define.
3605 (unresolved_names): Remove definition.
3606 (xnew_string_vector): New function.
3607 (string_vector_append): New function.
3608 (extract_string): Make static.
3609 (ada_unqualified_name): New function.
3610 (add_angle_brackets): New function.
3611 (function_name_from_pc): New function.
3612 (place_on_stack): Rename to ensure_lval.
3613
3614 (ensure_lval): Renamed from place_on_stack.
3615 Make identity on lvals.
3616 Update comment.
3617 (is_nonfunction): New interface.
3618 Only symbols in LOC_CONST class can be enumerals.
3619 (fill_in_ada_prototype): Remove; now independent of language.
3620 (add_defn_to_vec): Add obstack and symtab arguments.
3621 Use obstack to hold collected definitions.
3622 (num_defns_collected): New function.
3623 (defns_collected): New function.
3624 (ada_resolve_subexp): Rename to resolve_subexp.
3625 (resolve_subexp): Renamed from ada_resolve_subexp.
3626 (ada_op_name): Return non-const result.
3627 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3628 other purposes.
3629
3630 (to_fixed_array_type): Add declaration.
3631 (coerce_unspec_val_to_type): Remove offset parameter.
3632 (find_sal_from_funcs_and_line): New interface.
3633 (find_line_in_linetable): Ditto.
3634
3635 (all_sals_for_line): Rename to ada_sals_for_line and make
3636 global.
3637 Add new parameter. When set, do not ask the user to choose the
3638 instance, but use the first one found instead.
3639 Use given line number in returned sals.
3640 Fix comment.
3641 Skip the prologue if funfirstline is set.
3642 Correct for memory leak when 0 lines found.
3643
3644 (value_pos_atr): Use pos_atr.
3645 (pos_atr): New function.
3646 (standard_lookup): Add block parameter.
3647
3648 (makeTimeStart): Remove declaration and uses.
3649 (makeTimeStop): Remove declaration and uses.
3650
3651 (ada_completer_word_break_characters): Allow for VMS.
3652 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3653 (raise_sym_name): New constant.
3654 (raise_unhandled_sym_name): New constant.
3655 (raise_assert_sym_name): New constant.
3656 (process_raise_exception_name): New constant.
3657 (longest_exception_template): New constant.
3658 (warning_limit): New variable to limit warnings during expression
3659 evaluation.
3660 (warnings_issued): New variable to keep track of warnings issued.
3661 (known_runtime_file_name_patterns): New constant.
3662 (known_auxiliary_function_name_patterns): New constant.
3663 (symbol_list_obstack): New variable.
3664
3665 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3666 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3667 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3668 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3669 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3670 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3671 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3672 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3673 and strcmp.
3674
3675 (ada_get_field_index): New function.
3676 (lim_warning): New function.
3677 (ada_translate_error_message): New function.
3678 (MAX_OF_SIZE): New function.
3679 (MIN_OF_SIZE): New function.
3680 (UMAX_OF_SIZE): New function.
3681 (UMIN_OF_SIZE): New function.
3682 (discrete_type_high_bound): New function.
3683 (discrete_type_low_bound): New function.
3684 (base_type): New function.
3685 (do_command): Remove.
3686
3687 (ada_update_initial_language): Use language_ada, not language_unknown.
3688 (ada_encode): Renamed from ada_mangle.
3689 Obey ADA_RETAIN_DOTS.
3690 (ada_decode): Renamed from ada_demangle.
3691 Update coding conventions.
3692 (decoded_names_store): New hash table.
3693 (ada_decode_symbol): New function.
3694 (ada_la_decode): New function.
3695
3696 (modify_general_field): Correct computations of offset and bit
3697 position.
3698 (desc_base_type): Handle ref types, too.
3699 (ada_is_direct_array_type): New function.
3700
3701 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3702 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3703 (ada_is_bogus_array_descriptor,ada_type_of_array,
3704 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3705 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3706 ada_is_array_descriptor_type.
3707
3708 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3709 (ada_is_packed_array_type): Handle pointers or
3710 references to packed arrays as well.
3711 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3712 (decode_packed_array_type): Search for the packed array type
3713 symbol in the currently selected block and associated
3714 superblocks too.
3715 Use lookup_symbol again.
3716
3717 (decode_packed_array): Handle pointers and references.
3718 Update call to coerce_unspec_val_to_type.
3719 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3720 (ada_value_primitive_packed_val): Improve comment.
3721
3722 (ada_index_type): Substitute int type for "undefined".
3723 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3724 ada_array_langth, ada_is_string_type): Use renamed
3725 ada_is_simple_array_type.
3726 (empty_array): New function.
3727
3728 (ada_resolve): Rename to resolve.
3729 (resolve): Make static.
3730 Call renamed resolve_subexp.
3731 Update comment.
3732 (ada_resolve_subexp): Rename to resolve_subexp.
3733 (resolve_subexp): Update comment.
3734 Decomment disabled code.
3735 Add LOC_COMPUTED* cases.
3736 Modify to use temporary struct symbols (marked as being in
3737 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3738 OP_UNRESOLVED_VALUE.
3739 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3740 Add OP_STRING case.
3741 Remove OP_ARRAY.
3742 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3743 Use new ada_lookup_symbol_list interface.
3744 Use new ada_resolve_function interface.
3745 Remove OP_TYPE case.
3746
3747 (ada_args_match): Idiot proof against null actuals.
3748 Use intermediate variables to clarify.
3749 (ada_resolve_function): Update comment and interface.
3750 (mangled_ordered_before): Rename to encoded_ordered_before and
3751 update comment.
3752 (sort_choices): Update comment and interface.
3753 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3754 (user_select_syms): New interface.
3755 Use new sort_choices interface.
3756 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3757 (possible_user_operator_p): Idiot-proof against null values.
3758 (ada_simple_renamed_entity): Don't make cleanup; rely on
3759 caller to free result string.
3760 Remove const from return type.
3761 (make_array_descriptor): Rename uses of place_on_stack to
3762 ensure_lval.
3763 Make sure that arrays are on stack.
3764
3765 (HASH_SIZE): Define.
3766 (struct cache_entry): Define.
3767 (cache_space): Define.
3768 (cache): Define.
3769 (clear_ada_sym_cache): New function.
3770 (find_entry): New function.
3771 (lookup_cached_symbol): New function.
3772 (defn_vector_size): Define.
3773 (cache_symbol): New function.
3774 (defn_symbols): Remove.
3775
3776 (standard_lookup): Use lookup_symbol_in_language to get effect of
3777 C lookup.
3778 Cache results.
3779
3780 (symbol_completion_match): New function.
3781 (symbol_completion_add): New function.
3782 (ada_make_symbol_completion_list): New function.
3783
3784 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3785 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3786 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3787 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3788
3789 (ada_lookup_simple_minsym): New function.
3790 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3791
3792 (add_symbols_from_enclosing_procs): New interface.
3793 Conditionalize more helpfully.
3794 Don't bother if program isn't running.
3795 Use new interface to get_frame_block.
3796 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3797
3798 (remove_extra_symbols): New interface.
3799 (xget_renaming_scope): New function.
3800 (is_package_name): New function.
3801 (renaming_is_visible): New function.
3802 (remove_out_of_scope_renamings): New function.
3803
3804 (ada_lookup_symbol_list): New interface.
3805 Properly reinitialize the symbol list obstack.
3806 Don't call add_symbols_from_enclosing_procs if we start from a
3807 static or global block.
3808 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3809 add_symbols_from_enclosing_procs.
3810 Add symtab data to cached entries.
3811 Handle symbols prefixed with
3812 "standard__" specially; strip prefix and don't look in local symbols.
3813 Do not include out of scope renaming symbols in list of
3814 symbols returned.
3815 Add const to block parameter.
3816 Move check for non-local, non-global symbols earlier.
3817 Remove timing stuff.
3818 (ada_lookup_symbol): New interface.
3819 Find symtab as well.
3820 (ada_lookup_symbol_nonlocal): New function.
3821
3822 (is_name_suffix): Enhance suffix detection to recognize
3823 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3824 (is_dot_digits_suffix): New function.
3825 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3826
3827 (ada_add_block_symbols): New interface. Use obstack to return results
3828 in a vector of struct ada_symbol_infos. Add symtab argument.
3829 Use new interface to add_defn_to_vec.
3830 Remove calls to fill_in_ada_prototype.
3831 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3832
3833 (ada_finish_decode_line_1): Add const qualification to local to fix
3834 warning.
3835 Start looking in static block for functions to avoid attempts
3836 to search frame chain for up-level variables.
3837 Adapt to new ada_sals_for_line interface.
3838 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3839 Handle quoting of the function name inside the spec string.
3840 Skip prologue when funfirstline is set and update the
3841 function documentation to that effect.
3842
3843 (debug_print_lines, debug_print_block, debug_print_blocks,
3844 debug_print_symtab): Remove.
3845
3846 (ada_main_name): New function.
3847 (ada_exception_breakpoint_type): New function.
3848 (is_known_support_routine): New function.
3849 (ada_find_printable_frame): Renamed from find_printable_frame and made
3850 global.
3851 Remove level parameter.
3852 Use new interface to select_frame.
3853
3854 (begin_command): Remove.
3855 (ada_adjust_exception_stop): New function.
3856 (ada_print_exception_stop): New function.
3857 (exception_name_from_cond): New function.
3858 (ada_report_exception_break): Replace disabled code with
3859 conditionalization on GNAT_GDB.
3860 Get the exception name from the condition string.
3861 Remove and move functionality into new functions
3862 ada_print_exception_breakpoint_task and
3863 ada_print_exception_breakpoint_nontask.
3864 (error_breakpoint_runtime_sym_not_found): New function.
3865 (is_runtime_sym_defined): New function.
3866 (ada_breakpoint_rewrite): Uncomment suppressed code.
3867 Use symbolic error-message and runtime-symbol names.
3868 Surround runtime symbol names in quotes.
3869 Allow non-specific breakpoints on exceptions and assertions before
3870 program starts.
3871
3872 (ada_is_tagged_type): Add parameter.
3873 (ada_is_tag_type): New function.
3874 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3875 (ada_variant_discrim_type): Ditto.
3876 (value_tag_from_contents_and_address): New function.
3877 (type_from_tag): New function.
3878 (struct tag_args): New structure used to communicate with
3879 ada_tag_name_1.
3880 (ada_tag_name_1): New function.
3881 (ada_tag_name): New function.
3882
3883 (ada_scan_number): Update comment.
3884 (find_struct_field): New function.
3885 (ada_search_struct_field): Make static.
3886 (ada_value_struct_elt): New version that returns references when
3887 given pointers or references to structs.
3888 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3889 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3890 interface.
3891 (ada_value_ind): Use new ada_to_fixed_value interface.
3892 (ada_coerce_ref): Ditto.
3893 (field_offset): Remove.
3894
3895 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3896 (ada_find_renaming_symbol): New function.
3897 (ada_prefer_type): Prefer named types over unnamed ones.
3898 (variant_field_index): New function.
3899 (contains_variant_part): Removed: subsumed by variant_field_index.
3900 (ada_template_to_fixed_record_type): New function, mostly from
3901 template_to_fixed_record_type.
3902 (template_to_fixed_record_type):
3903 Do not scan the type fields beyond the last one; prevents a
3904 potential SEGV.
3905 Handle case where variant field is listed BEFORE discriminant it
3906 depends on.
3907 Fix calculation of record length when bit length is
3908 not evenly divisible by char length.
3909 Move code to ada_template_to_fixed_record_type and call it.
3910
3911 (template_to_static_fixed_type): Revise comment.
3912 Modify to work on ordinary record types as well as templates,
3913 so as to handle fields that use ___XVE or ___XVU encodings.
3914 (to_record_with_fixed_variant_part): Fill out comment.
3915 Initialize C++ stuff in right type.
3916 Allow case where DVAL is null.
3917 Handle case where variant field is not last.
3918 Fix typo concerning record length.
3919 (to_fixed_record_type): Decomment disabled code.
3920 (to_fixed_record_type): Use variant_field_index instead of
3921 contains_variant_part.
3922 (to_fixed_variant_branch_type): Ditto.
3923 (to_fixed_array_type): Decomment disabled code.
3924 (ada_to_fixed_type): Convert tagged types to the specific type.
3925 Deactivate the size-check for array types in order to avoid
3926 some false size alarms.
3927 (to_static_fixed_type): Decomment disabled code.
3928 Modify to call template_to_static_fixed_type
3929 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3930 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3931 Remove valaddr argument, as it is never really used.
3932 (ada_to_fixed_value): Change interface to act on single struct value*
3933 operand.
3934 (adjust_pc_past_prologue): New function.
3935 (ada_attribute_name): Modify to take enum exp_opcode argument.
3936
3937 (ada_enum_name): Recognize new homonym-distinguishing convention.
3938 Adjust local variable's type to remove compiler warning.
3939 Fix a small problem in the part that unqualifies the enumeration name.
3940 (ada_value_binop): New function.
3941 (ada_value_equal): New function.
3942
3943 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3944 Don't give error message when not doing normal evaluation
3945 and a tagged type doesn't seem to contain a structure member.
3946 Give error message for packed arrays.
3947 For indexing arrays, handle pointers to packed arrays correctly.
3948 Handle case of 'first and 'last attributes of bare integral type
3949 without encoded subtype info.
3950 Remove some unnecessary casts.
3951 Fix uninitialized value of type in computing 'first, 'last, or 'length
3952 of array object.
3953 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3954 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3955 calls.
3956 Attributes are now exp_opcode values.
3957 Correct treatment of 'modulus.
3958 Better error message for taking 'length of wrong kind of type;
3959 improve comment.
3960 Change EVAL_NORMAL to noside for consistency.
3961 Use ada_value_binop for DIV, MOD, REM.
3962 Make special case out of array of length 0, since an argument
3963 of 0 upsets some platforms' malloc.
3964 Use OP_STRING instead of OP_ARRAY.
3965 For slice, add check that we have an array type before extracting
3966 a slice out of it. Avoids a SEGV.
3967 When evaluating an array slice, if the array type is a reference to
3968 an aligner type, then replace the aligner type by the actual type.
3969 Decomment disabled code.
3970 Remove some dead code.
3971 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3972 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3973 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3974 and UNOP_MBR to UNOP_IN_RANGE.
3975 If an array type has a parallel ___XVE type, then use it.
3976 Turn arrays into pointers for lvalue arrays.
3977 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3978 bounds error and handle 0-length slices.
3979 Use lim_warning.
3980 When selecting fields, apply ada_to_fixed_value (because the fields
3981 might have ___XVU or ___XVE encodings even if not dynamic.)
3982 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3983 (ada_is_system_address_type): New function.
3984
3985 (get_var_value): Use new interface to ada_lookup_symbol_list.
3986 (get_int_var_value): New interface.
3987 (to_fixed_range_type): Allow unknown bound, with warning.
3988 (ada_is_modular_type): Decomment disabled code.
3989 (ADA_OPERATORS): New definition.
3990 (ada_operator_length): New function.
3991 (ada_expr_op_name): New function.
3992 (ada_forward_operator_length): New function.
3993 (ada_dump_subexp_body): New function.
3994 (ada_print_subexp): New function.
3995 (ada_exp_descriptor): New constant.
3996 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3997 (ada_language_defn): Add ada_exp_descriptor entry.
3998 Change ada_parse => parse.
3999 Add post-parser entry.
4000 Use ada-specific non-local symbol lookup.
4001 Don't use C-style arrays.
4002 String lower-bound is 1.
4003 Decomment disabled code.
4004 (parse): New function.
4005 New fields ada_translate_error_message, ada_lookup_symbol,
4006 ada_lookup_minimal_symbol.
4007
4008 * ada-lang.h: Update copyright dates.
4009 Replace the mangle/demangle terminology throughout by the
4010 more appropriate encode/decode one.
4011 Include breakpoint.h.
4012 Forward declare struct partial_symbol, struct block.
4013 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4014 (EXTRACT_ADDRESS): Remove.
4015 (EXTRACT_INT): Remove.
4016 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4017 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4018 (MAX_RENAMING_CHAIN_LENGTH): Define.
4019 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4020
4021 (enum task_states): Remove.
4022 ada_task_states: Remove.
4023 (fat_string): Remove.
4024 (struct entry_call): Remove.
4025 (struct task_fields): Remove.
4026 (struct task_entry): Remove.
4027
4028 (struct ada_symbol_info): Define.
4029 (enum ada_attribute): Remove.
4030 (enum ada_operator): Define.
4031
4032 (ada_get_field_index): Declare.
4033 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4034 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4035 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4036 (ada_lookup_symbol_list): New interface.
4037 (ada_decode_symbol): Declare.
4038 (ada_decode): Declare.
4039 (ada_lookup_symbol): New interface.
4040 (ada_update_initial_language): Declare.
4041 (ada_lookup_simple_minsym): Declare.
4042 (user_select_syms): New interface.
4043 (ada_sals_for_line): Declare.
4044 (ada_is_tagged_type): New interface.
4045 (ada_tag_name): Declare.
4046 (ada_lookup_struct_elt_type): Remove declaration.
4047 (ada_search_struct_field): Remove declaration.
4048 (ada_attribute_name): New interface.
4049 (ada_is_system_address_type): Declare.
4050 (ada_to_fixed_value): Remove declaration.
4051 (ada_template_to_fixed_record_type_1): Declare.
4052 (get_int_var_value): New interface.
4053 (ada_find_any_symbol): Declare.
4054 (ada_find_renaming_symbol): Declare.
4055 (ada_mangle): Rename to ada_encode.
4056 (ada_simple_renamed_entity): Remove const.
4057 (ada_main_name): Declare.
4058 (get_current_task): Rename to ada_get_current_task.
4059 (get_entry_number): Remove declaration.
4060 (ada_report_exception_break): Remove declaration.
4061 (ada_print_exception_breakpoint_nontask): Declare.
4062 (ada_print_exception_breakpoint_task): Declare.
4063 (ada_find_printable_frame): Declare.
4064
4065 * ada-lex.l: Update copyright notices.
4066 Use xmalloc and xfree instead of malloc and free.
4067 Use new interface to name_lookup.
4068 Use new interface to
4069 ada_mangle=>ada_encode.
4070 Redo handling of '$...' variable to parallel current treatment
4071 in c-exp.y.
4072 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4073 digit_to_int, strtoulst, processInt, processReal, processId,
4074 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4075 yywrap): Protoize.
4076
4077 (processInt): Use cast to remove harmless warning.
4078 (processReal): Modify to get rid of compiler warning on scan formats.
4079
4080 (processId): Replace xmalloc with obstack_alloc for name and remove
4081 call to ada_name_string_cleanup.
4082 Remove obsolete disabled code.
4083 (name_lookup): Ditto.
4084 New interface.
4085 Use obsavestring on temp_parse_space instead of savestring
4086 on name, and remove call to ada_name_string_cleanup.
4087 Free string returned from ada_simple_renamed_entity.
4088 Use new interface to ada_lookup_symbol_list.
4089 Decomment disabled code.
4090 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4091 not types.
4092 When a type name lookup succeeds as a result of
4093 lookup_primitive_typename, check for regular type entry that has not
4094 yet been read in.
4095 Limit length of chain of renamed symbols we are willing to follow.
4096 Do not break names beginning with "standard__" into segments.
4097 (block_lookup): Use new interface to ada_lookup_symbol_list.
4098
4099 * ada-typeprint.c: Update copyright notice.
4100 (demangled_type_name): Rename to decoded_type_name.
4101 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4102 (print_range_bound): Correct handling of negative
4103 bounds that make the index type looked unsigned under STABS.
4104 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4105 (print_range_type_named): Use the builtin int type if no type
4106 corresponding to the given type name could be found.
4107 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4108 Add some bullet-proofing.
4109 (print_variant_clauses): Allow for variant branches with ___XVU
4110 encodings that are not dynamic fields.
4111 Use new interface to ada_is_tagged_type.
4112 (print_record_type): Allow for fields with ___XVE encodings that
4113 are not dynamic fields.
4114 Use new interface to ada_is_tagged_type.
4115 (ada_print_type): ada_is_array_descriptor =>
4116 ada_is_array_descriptor_type.
4117
4118 * ada-valprint.c: Update copyright notice.
4119 Include gdb_string.h
4120 Include infcall.h
4121 (ui_memcpy): New function.
4122 (ada_print_floating): New function.
4123 (ada_print_str): Order arguments correctly.
4124 Correct handling of empty arrays and arrays of 0-length items.
4125 ada_is_array_descriptor => ada_is_array_descriptor_type
4126 Print values of type System.Address in hexadecimal format.
4127 Use ada_print_floating to print floating-point numbers in Ada format.
4128 Print class tag values with type names.
4129 No longer print the address of reference values. Avoids
4130 a potential confusion.
4131 (ada_value_print): Stop printing the object type for reference
4132 values, but preserve that behavior for access types. Avoids
4133 a potential confusion.
4134 Simplify one conditional expression, as the first part is now
4135 necessarily true.
4136 ada_is_array_descriptor => ada_is_array_descriptor_type
4137 Add check for arrays for null records, and print them by hand.
4c4b4cd2 4138
f65f91b5
JB
41392004-06-01 Jim Blandy <jimb@redhat.com>
4140
4141 * ppc-tdep.h: Delete unused 'regoff' member.
4142 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4143
d4687fa0
MC
41442004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4145
4146 Fix PR symtab/1661.
4147 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4148 (hpread_read_struct_type): Likewise.
4149
de169ec9
AC
41502004-06-01 Andrew Cagney <cagney@gnu.org>
4151
c6902d46
AC
4152 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4153 instead of xasprintf.
4154 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4155 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4156 (mi_cmd_data_list_register_names)
4157 (mi_cmd_data_list_changed_registers)
4158 (mi_cmd_data_list_register_values)
4159 (get_register, mi_cmd_data_write_register_values)
4160 (mi_cmd_data_write_register_values)
4161 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4162 (mi_cmd_target_download, mi_cmd_target_select)
4163 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4164 (mi_execute_cli_command, mi_execute_async_cli_command)
4165 (mi_execute_async_cli_command): Ditto.
4166 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4167 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4168
6085fc2d
AC
4169 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4170 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4171 error_last_message instead of mi_error_last_message.
4172 * mi/mi-main.c (mi_error_last_message): Delete function.
4173
de169ec9
AC
4174 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4175 "invalid number of columns" error. Delete redundant "out of
4176 memory" check.
4177
1fc7d519
MK
41782004-05-31 Mark Kettenis <kettenis@gnu.org>
4179
6cfb2041
MK
4180 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4181 (gregset_t, fpregset_t): Remove typedefs.
4182 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4183 (REG_OFFSET): Rename argument.
4184 (i386bsd_r_reg_offset): Rename from reg_offset.
4185 (REG_ADDR): Remove macro.
4186 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4187 functions.
4188 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4189 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4190 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4191 instead of supply_gregset.
4192 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4193 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4194 instead of fill_gregset.
4195 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4196
1fc7d519
MK
4197 * i386bsd-nat.c: Don't include "gregset.h".
4198 (supply_gregset, fill_gregset): Make static.
4199 (supply_fpregset, fill_fpregset): Remove.
4200 * Makefile.in (i386bsd-nat.o): Update dependencies.
4201
2c34abbe
MK
42022004-05-30 Mark Kettenis <kettenis@gnu.org>
4203
448724fb
MK
4204 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4205 "gdb_assert.h". Con't include "gregset.h".
4206 (fbsd_make_corefile_notes): Use regset-based core file support
4207 instead off fill_gregset and fill_fpregset.
4208 * Makefile.in (fbsd-proc.o): Update dependencies.
4209
5ca8ca7c
MK
4210 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4211 instructions.
4212 (m88k_frame_prev_register): Simplify code a bit.
4213
593adc23
MK
4214 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4215 (amd64_collect_fpregset): New function.
4216 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4217
8d1b517b
MK
4218 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4219
7fdafb5a
MK
4220 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4221 (i386_collect_gregset): New function.
4222 (i386_supply_fpregset): Adjust comment.
4223 (i386_collect_fpregset): New function.
4224 (i386_regset_from_core_section): Use i386_collect_gregset and
4225 i386_collect_fpregset.
4226
8693c419
MK
4227 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4228 handle VALUEP being null.
4229
2c34abbe
MK
4230 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4231
45d134d8
MK
42322004-05-29 Mark Kettenis <kettenis@gnu.org>
4233
1698f4e7
MK
4234 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4235
45d134d8
MK
4236 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4237 assembler in OpenBSD 3.5-current.
4238 (amd64obsd_sigcontext_addr): Likewise.
4239
691d145a
JB
42402004-05-28 Jim Blandy <jimb@redhat.com>
4241
4242 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4243 register set, so our regcache isn't declared "legacy" and our E500
4244 pseudoregister read and write functions aren't ignored.
4245 (rs6000_register_byte, rs6000_register_raw_size,
4246 rs6000_register_virtual_type, rs6000_register_convertible,
4247 rs6000_register_convert_to_virtual,
4248 rs6000_register_convert_to_raw): Deleted.
4249 (rs6000_register_type, rs6000_convert_register_p,
4250 rs6000_register_to_value, rs6000_value_to_register): New
4251 functions.
4252 (rs6000_gdbarch_init): Don't register
4253 gdbarch_deprecated_register_size,
4254 gdbarch_deprecated_register_bytes,
4255 gdbarch_deprecated_register_byte,
4256 gdbarch_deprecated_register_raw_size,
4257 gdbarch_deprecated_register_virtual_type,
4258 gdbarch_deprecated_register_convertible,
4259 gdbarch_deprecated_register_convert_to_virtual, or
4260 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4261 register gdbarch_register_type, gdbarch_convert_register_p,
4262 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4263
18ed0c4e
JB
42642004-05-26 Jim Blandy <jimb@redhat.com>
4265
4266 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4267 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4268 functions, updated to match the register numberings used in GCC.
4269 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4270 rs6000_dwarf2_reg_to_regnum as register number conversions
4271 functions for STABS and Dwarf2.
4272
779af9e3
RC
42732004-05-26 Randolph Chung <tausq@debian.org>
4274
4275 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4276 in header file.
4277
c23968a2
JB
42782004-05-25 Joel Brobecker <brobecker@gnat.com>
4279
4280 * NEWS: Document new "start" command.
4281
3a7d1c27
RC
42822004-05-25 Randolph Chung <tausq@debian.org>
4283
4284 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4285 hppa-linux.
4286
43613416
RC
42872004-05-25 Randolph Chung <tausq@debian.org>
4288
4289 * hppa-hpux-tdep.c (offsetof): Define.
4290 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4291 (hppa32_hpux_frame_base_before_sigtramp)
4292 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4293 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4294 (hppa64_hpux_frame_base_before_sigtramp)
4295 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4296 functions.
4297 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4298 (hppa_hpux_sigtramp_frame_unwind_cache)
4299 (hppa_hpux_sigtramp_frame_this_id)
4300 (hppa_hpux_sigtramp_frame_prev_register)
4301 (hppa_hpux_sigtramp_frame_unwind)
4302 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4303 (hppa_hpux_init_abi): Register sigtramp unwinder.
4304 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4305
6d1be3f1
RC
43062004-05-25 Randolph Chung <tausq@debian.org>
4307
4308 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4309 and multiple stack unwinds.
4310 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4311
97c34f65
AC
43122004-05-25 Andrew Cagney <cagney@gnu.org>
4313
4314 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4315 * symfile-mem.h: Delete file.
4316 * symfile-mem.c: Do not include "symfile-mem.h".
4317 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4318 "struct bfd_section". When an error do not bother returning NULL.
4319 (add_symbol_file_from_memory_command): Use "struct bfd" and
4320 "struct bfd_section".
4321 * Makefile.in (symfile_mem_h): Delete.
4322 (symfile-mem.o): Update dependencies.
4323
e23cbd82
NR
43242004-05-25 Nick Roberts <nickrob@gnu.org>
4325
4326 * gdb-mi.el: New file.
4327
20d2ca3e
AC
43282004-05-25 Andrew Cagney <cagney@gnu.org>
4329
4330 * inftarg.c: Include "observer.h".
4331 (child_attach, child_create_inferior): Notify inferior_created.
4332 * corelow.c: Include "observer.h".
4333 (core_open): Notify inferior_created.
4334 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4335
c27cda74
AC
43362004-05-25 Andrew Cagney <cagney@gnu.org>
4337
4338 * target.h (struct target_ops): Add from_tty to
4339 to_create_inferior.
4340 (target_create_inferior, find_default_create_inferior): Update.
4341 * infcmd.c (run_command): Update.
4342 * wince.c (child_create_inferior): Update.
4343 * win32-nat.c (child_create_inferior): Update.
4344 * uw-thread.c (uw_thread_create_inferior): Update.
4345 * thread-db.c (thread_db_create_inferior): Update.
4346 * target.c (debug_to_create_inferior)
4347 (find_default_create_inferior): Update.
4348 (maybe_kill_then_create_inferior): Update.
4349 * sol-thread.c (sol_thread_create_inferior): Update.
4350 * remote.c (extended_remote_async_create_inferior)
4351 (extended_remote_create_inferior): Update.
4352 * remote-vx.c (vx_create_inferior): Update.
4353 * remote-st.c (st2000_create_inferior): Update.
4354 * remote-sim.c (gdbsim_create_inferior): Update.
4355 * remote-sds.c (sds_create_inferior): Update.
4356 * remote-rdp.c (remote_rdp_create_inferior): Update.
4357 * remote-rdi.c (arm_rdi_create_inferior): Update.
4358 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4359 * remote-e7000.c (e7000_create_inferior): Update.
4360 * procfs.c (procfs_create_inferior): Update.
4361 * ocd.c (ocd_create_inferior): Update.
4362 * ocd.h (ocd_create_inferior): Update.
4363 * nto-procfs.c (procfs_create_inferior): Update.
4364 * monitor.c (monitor_create_inferior): Update.
4365 * lin-lwp.c (lin_lwp_create_inferior): Update.
4366 * inftarg.c (child_create_inferior): Update.
4367 * hpux-thread.c (hpux_thread_create_inferior): Update.
4368 * gnu-nat.c (gnu_create_inferior): Update.
4369
1db2a798
AC
43702004-05-25 Andrew Cagney <cagney@gnu.com>
4371
4372 * MAINTAINERS: Update e-mail address.
4373
007d08bb
RC
43742004-05-24 Randolph Chung <tausq@debian.org>
4375
4376 * thread.c (info_threads_command, thread_apply_all_command)
4377 (thread_apply_command, thread_command, do_captured_thread_select):
4378 Remove HPUXHPPA-specific code.
4379
69e7b95e
RC
43802004-05-24 Randolph Chung <tausq@debian.org>
4381
4382 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4383 unused symbols.
4384 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4385 references.
4386
a4d5f2e0
JB
43872004-05-24 Joel Brobecker <brobecker@gnat.com>
4388
4389 * infcmd.c (kill_if_already_running): New function, extracted
4390 from run_command().
4391 (run_command): Replace extracted code by call to
4392 kill_if_already_running().
4393 (start_command): New function.
4394 (_initialize_infcmd): Add "start" command.
4395
bf2ca189
MK
43962004-05-24 Mark Kettenis <kettenis@gnu.org>
4397
4398 Add OpenBSD/m88k support.
4399 * NEWS (New native configurations): Mention OpenBSD/m88k.
4400 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4401 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4402 * Makefile.in (m88k_tdep_h): New variable.
4403 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4404 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4405 * configure.host: Add m88*-*-openbsd*.
4406 * configure.tgt: Add m88*-*-openbsd*.
4407
80fadb11
JB
44082004-05-24 Jim Blandy <jimb@redhat.com>
4409
4410 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4411 to approve changes.
4412
19e2d14b
KB
44132004-05-24 Kevin Buettner <kevinb@redhat.com>
4414
4415 * symtab.c (fixup_section): Search section table when lookup by
4416 name fails.
4417
1b07b470
RC
44182004-05-24 Randolph Chung <tausq@debian.org>
4419
4420 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4421 be "small_struct".
4422
368702b1
MK
44232004-05-24 Mark Kettenis <kettenis@gnu.org>
4424
5df97fde
MK
4425 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4426 register number in regcache_raw_collect call.
4427 (m68kbsd_collect_fpregset): Likewise.
4428 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4429
368702b1
MK
4430 * regset.h (struct regset): Add back `regset' member.
4431
a770d4ec
MK
44322004-05-23 Mark Kettenis <kettenis@gnu.org>
4433
70f9f479
MK
4434 * configure.in: Check for td_pcb in `struct thread'.
4435 * configure, config.in: Regenerated.
4436
2e16d79e
MK
4437 * dpx2-nat.c: Remove file.
4438 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4439 (dpx2-nat.o): Remove dependencies.
4440
492cf391
MK
4441 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4442 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4443 (amd64obsd_supply_pcb): New function.
4444 (_initialize_amd64obsd_nat): Enable libkvm interface.
4445 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4446 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4447 (LOADLIBES): New variable.
4448
a770d4ec
MK
4449 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4450 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4451 (sparc32nbsd_supply_pcb): New function.
4452 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4453 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4454 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4455 (LOADLIBES): New variable.
4456
9ea75c57
MK
44572004-05-22 Mark Kettenis <kettenis@gnu.org>
4458
2e0c3539
MK
4459 * bsd-kvm.c, bsd-kvm.h: New files.
4460 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4461 "bsd-kvm.h".
4462 (i386fbsd_supply_pcb): New function.
4463 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4464 (i386fbsd-nat.o): Update dependencies.
4465 (bsd_kvm_h): New variable.
4466 (bsd-kvm.o): New dependency.
4467 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4468 (LOADLIBES): New variable.
4469
9ea75c57
MK
4470 * regset.c: Tweak comment.
4471 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4472 macro.
4473 * regset.h: Update copyright year.
4474 (struct regset): Remove `descr' member, add `gdbarch' member.
4475 (regset_alloc): Adjust prototype and comment.
4476 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4477 (i386_supply_fpregset): Likewise.
4478 (i386_regset_from_core_section): Update call to regset_alloc.
4479 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4480 REGSET->arch.
4481 (i386obsd_aout_regset_from_core_section): Update call to
4482 regset_alloc.
4483 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4484 REGSET->arch.
4485 (i386nbsd_aout_regset_from_core_section): Update call to
4486 regset_alloc.
4487 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4488 REGSET->arch.
4489 (amd64_regset_from_core_section): Update call to regset_alloc.
4490 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4491 REGSET->arch.
4492 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4493 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4494 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4495 (sparc32nbsd_init_abi): Update call to regset_alloc.
4496 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4497 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4498 (sparc64obsd_init_abi): Update call to regset_alloc.
4499 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4500 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4501 (sparc64nbsd_init_abi): Update call to regset_alloc.
4502 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4503 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4504 (sparc64fbsd_init_abi): Update call to regset_alloc.
4505
867e2dc5
JB
45062004-05-22 Jim Blandy <jimb@redhat.com>
4507
4508 * ppc-tdep.h (spe_register_p): New declaration.
4509 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4510 ppc_spefscr_regnum.
4511 * rs6000-tdep.c (spe_register_p): New function.
4512 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4513 spefscr.
4514 (rs6000_gdbarch_init): Initialize the new members of the tdep
4515 structure.
4516
617a4cba
JB
45172004-05-21 Jim Blandy <jimb@redhat.com>
4518
0397dee1
JB
4519 * ppc-linux-nat.c (fetch_register): Move code back to be next
4520 to the comment that describes it. (Moved code, instead of
4521 comment, for symmetry with store_register.)
4522
617a4cba
JB
4523 Allocate regset structures in the gdbarch's obstack, not using
4524 xmalloc.
4525 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4526 Add 'arch' argument. Allocate the regset on arch's obstack, not
4527 using xmalloc.
4528 * regset.h (regset_alloc): Update declaration.
4529 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4530 gdbarch argument.
4531 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4532 * i386-tdep.c (i386_regset_from_core_section): Same.
4533 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4534 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4535 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4536 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4537 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4538 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4539
9aa3914d
JB
45402004-05-21 Joel Brobecker <brobecker@gnat.com>
4541
4542 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4543
99c87dab
JB
45442004-05-21 Jim Blandy <jimb@redhat.com>
4545
4546 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4547 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4548
c2b6b4aa
JB
45492004-05-20 Jim Blandy <jimb@redhat.com>
4550
4551 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4552
144529d0
MK
45532004-05-20 Mark Kettenis <kettenis@gnu.org>
4554
4555 * regset.h: Make prototype const-correct.
4556 * regset.c (regset_xmalloc): Make const-correct.
4557
4725b721
PH
45582004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4559
4560 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4561 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4562 (symbol_search_name): Declare.
4563
4564 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4565 (iter_name_next_hashed): Ditto.
4566 (iter_name_next_linear): Ditto.
4567 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4568
4569 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4570 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4571 (symbol_search_name): New function.
4572
4573 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4574
4575 * minsyms.c (build_minimal_symbol_hash_tables): Change
4576 test for adding to demangled hash table to check for difference
4577 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4578
be07a590
JB
45792004-05-19 Jim Blandy <jimb@redhat.com>
4580
4581 Use a constructor function to create regset structures.
4582 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4583 (struct regset): Use supply_regset_ftype. Add new
4584 'collect_regset' member.
4585 (regset_xmalloc): New declaration.
4586 * regset.c: New file.
4587 * am64-tdep.c (amd64_regset_from_core_section): Use
4588 regset_xmalloc to construct regset structures.
4589 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4590 * i386-tdep.c (i386_regset_from_core_section): Same.
4591 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4592 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4593 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4594 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4595 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4596 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4597 * Makefile.in (COMMON_OBS): Add regset.o.
4598 (regset.o): New rule.
4599
604368f5
JB
46002004-05-19 Joel Brobecker <brobecker@gnat.com>
4601
4602 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4603 and pthread_cond_wait.c.
4604
82d69f8b
JB
46052004-05-18 Jim Blandy <jimb@redhat.com>
4606
4607 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4608 before the mach-specific switch, and then let the individual cases
4609 override the defaults, rather than leaving them uninitialized
4610 until the switch and then setting them in each case.
4611
5859efe5
RC
46122004-05-18 Randolph Chung <tausq@debian.org>
4613
4614 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4615 millicode functions.
4616
9ca80cf8
RC
46172004-05-18 Randolph Chung <tausq@debian.org>
4618
4619 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4620 references to dld_flags_buffer consistent.
4621
ed70ba00
RC
46222004-05-18 Randolph Chung <tausq@debian.org>
4623
4624 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4625 it for unwinding the stack.
4626
63100632
RC
46272004-05-18 Randolph Chung <tausq@debian.org>
4628
4629 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4630 Undefine these so we can overide them using gdbarch.
4631
090ccbb7
RC
46322004-05-18 Randolph Chung <tausq@debian.org>
4633
4634 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4635 handling for 64-bit HPUX (elf).
4636
594706e6
DJ
46372004-05-18 Daniel Jacobowitz <dan@debian.org>
4638
4639 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4640 constants.
4641 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4642 * ia64-tdep.c (examine_prologue): Likewise.
4643 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4644 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4645
e5483145
MK
46462004-05-18 Mark Kettenis <kettenis@gnu.org>
4647
4648 * vax-tdep.c (vax_return_value): Implement
4649 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4650
caed1a45
MK
46512004-05-17 Mark Kettenis <kettenis@gnu.org>
4652
4653 * vax-tdep.c (vax_return_value): Fix typo.
4654
3c0b7db2
AC
46552004-05-17 Andrew Cagney <cagney@redhat.com>
4656
5aae53e5
AC
4657 * MAINTAINERS: Mark Salter was also responsible for
4658 testsuite/config/
4659
3c0b7db2
AC
4660 * NEWS: Mention signal fixes.
4661
22b0923d
RC
46622004-05-17 Randolph Chung <tausq@debian.org>
4663
4664 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4665 check to see if we are unwinding an export stub. Export stubs clobber
4666 the %rp in the call path and stores the original rp in a stack slot.
4667
22f2b2f3
JB
46682004-05-17 Jim Blandy <jimb@redhat.com>
4669
4670 * MAINTAINERS: Update address for J.T. Conklin.
4671
cea96d64
RC
46722004-05-17 Randolph Chung <tausq@debian.org>
4673
4674 * hppa-tdep.c: Remove superfluous #include's.
4675 * Makefile.in (hppa-tdep.o): Update dependencies.
4676
f08f6a4a
RC
46772004-05-17 Randolph Chung <tausq@debian.org>
4678
4679 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4680 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4681 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4682 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4683 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4684 Remove static function declarations.
4685
51da707a
MK
46862004-05-17 Mark Kettenis <kettenis@gnu.org>
4687
caed1a45
MK
4688 * alphabsd-nat.c: Update copyright year.
4689 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4690
c0c2b0db
MK
4691 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4692 and M68K_A2_REGNUM.
4693
51da707a
MK
4694 * m68k-tdep.c (m68k_svr4_return_value): Implement
4695 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4696
8d027a04
MK
46972004-05-16 Mark Kettenis <kettenis@gnu.org>
4698
4699 * sol-thread.c Update copyright year. Fix various coding
4700 standards violations. Tweak a few comments.
4701 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4702 Delete prototypes.
4703
0d99fdb9
RC
47042004-05-15 Randolph Chung <tausq@debian.org>
4705
4706 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4707 as pointer instead of array reference since HPUX compiler does
4708 not accept unsized array arguments.
4709 * somsolib.c (dld_flags_buffer): Use constant array size.
4710
f7e3843a
MK
47112004-05-15 Mark Kettenis <kettenis@gnu.org>
4712
0fe85704
MK
4713 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4714 offset with decimal offset.
4715 (amd64obsd_sigcontext_addr): Return correct address for entire
4716 signal trampoline.
4717
a54f9a00
MK
4718 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4719 instead of get_frame_base.
4720
feae6502
MK
4721 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4722 (fill_gregset): Use regcache_raw_collect.
4723
0382d099
MK
4724 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4725 ppcobsd-tdep.c.
4726
f7e3843a
MK
4727 * config/sparc/tm-nbsd64.h: Remove file.
4728 * config/tm-sunos.h: Remove file.
4729
773df3e5
JB
47302004-05-15 Joel Brobecker <brobecker@gnat.com>
4731
4732 * rs6000-tdep.c (store_param_on_stack_p): New function,
4733 an improved version of some code extracted from skip_prologue().
4734 (skip_prologue): Use store_param_on_stack_p() to detect
4735 instructions saving a parameter on the stack. Detect when r0
4736 is used to save a parameter.
4737 Do not mark "li rx, SIMM" instructions as part of the prologue,
4738 unless the following instruction is also part of the prologue.
4739
95918acb
AC
47402004-05-14 Andrew Cagney <cagney@redhat.com>
4741
06f32659
AC
4742 * infrun.c (handle_inferior_event): Simplify
4743 STEP_OVER_UNDEBUGGABLE.
4744
95918acb
AC
4745 * infrun.c (handle_step_into_function): Delete function.
4746 (handle_inferior_event): Inline calls to
4747 handle_step_into_function.
4748
40711ff1 47492004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4750
4751 * rs6000-nat.c: Fix a comment.
4752
02f60eae
JB
47532004-05-12 David Anderson <davea@sgi.com>
4754
4755 Committed by Jim Blandy <jimb@redhat.com>:
4756 * regcache.c (struct regcache_descr): fix comment spelling.
4757
552e377b
JB
47582004-05-13 J. Brobecker <brobecker@gnat.com>
4759
4760 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4761 Fixes a link link failure.
4762
349766b2
JB
47632004-05-13 J. Brobecker <brobecker@gnat.com>
4764
4765 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4766 error that was causing the build to fail.
4767
0d4d5484
JB
47682004-05-13 J. Brobecker <brobecker@gnat.com>
4769
4770 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4771 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4772
0b30808c
AC
47732004-05-13 Andrew Cagney <cagney@redhat.com>
4774
4775 * infrun.c (handle_inferior_event): Check for
4776 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4777 calls. Update comments.
4778
cdf2c5f5
JB
47792004-05-13 Jim Blandy <jimb@redhat.com>
4780
063715bf
JB
4781 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4782 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4783 (store_regs_user_thread, store_regs_kernel_thread): Use
4784 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4785 * ppc-linux-nat.c (fill_gregset): Same.
4786 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4787 (ppc_linux_sigtramp_cache): Same.
4788 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4789 (ppcnbsd_sigtramp_cache_init): Same.
4790 * rs6000-nat.c (fetch_core_registers): Same.
4791 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4792 (rs6000_frame_cache): Same.
4793
cdf2c5f5
JB
4794 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4795 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4796 of assuming that the gprs are numbered starting with zero.
4797 * ppc-linux-nat.c (fill_gregset): Same.
4798 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4799 * ppcnbsd-nat.c (getregs_supplies): Same.
4800 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4801 * rs6000-nat.c (fetch_core_registers): Same.
4802 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4803
450bd37b
MS
48042004-05-07 Michael Snyder <msnyder@redhat.com>
4805
4806 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4807 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4808
4a72a2a6
AC
48092004-05-13 Andrew Cagney <cagney@redhat.com>
4810
4811 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4812
8edfa926
BM
48132004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4814
4815 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4816 base_address for shared libraries.
4817
723e0e3d
BM
48182004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4819
4820 * MAINTAINERS (write after approval): Add myself.
4821
00d4360e
UW
48222004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4823
4824 * breakpoint.c (bpstat_stop_status): Add new argument
4825 STOPPED_BY_WATCHPOINT. Use it instead of testing
4826 target_stopped_data_address agaist 0 to check whether
4827 or not we stopped due to a hardware watchpoint.
4828 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4829 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4830 with new argument.
4831
ec76baa5
JB
48322004-05-12 Jim Blandy <jimb@redhat.com>
4833
4834 * configure.in: When checking whether we should use the -bbigtoc
4835 option, don't forget to restore the original value of LDFLAGS.
4836 * configure: Regenerated.
4837
f2c9ca08
AC
48382004-05-12 Andrew Cagney <cagney@redhat.com>
4839
4840 * thread.c (load_infrun_state): Delete step_sp.
4841 * infrun.c (context_switch): Ditto.
4842 * inferior.h (step_sp): Ditto.
4843 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4844 * gdbthread.h (struct thread_info, save_infrun_state)
4845 (restore_infrun_state): Ditto.
4846
090ddb2a
UW
48472004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4848
4849 * MAINTAINERS (write after approval): Add myself.
4850
8aad930b
AC
48512004-05-12 Andrew Cagney <cagney@redhat.com>
4852
4853 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4854 eliminate reference to step_sp.
4855 (struct execution_control_state, init_execution_control_state)
4856 (handle_inferior_event, keep_going): Delete update_step_sp and
4857 step_sp.
4858 * infcmd.c (step_sp): Note that variable is unused.
4859
922d5ae0
AC
48602004-05-11 Andrew Cagney <cagney@redhat.com>
4861
4862 * infrun.c (step_over_function): Delete function.
4863 (handle_step_into_function): Use insert_step_resume_breakpoint.
4864 (insert_step_resume_breakpoint): Fix assertion.
4865
017c5ca5
NR
48662004-05-11 Nick Roberts <nickrob@gnu.org>
4867
4868 * utils.c (defaulted_query): Just use the normal query input type
4869 when printing the annotations.
4870
42edda50
AC
48712004-05-11 Andrew Cagney <cagney@redhat.com>
4872
4873 * infrun.c (handle_inferior_event): Simplify code handling
4874 step-into or return-from a signal trampoline.
4875
d28b44a7
AC
48762004-05-11 Andrew Cagney <cagney@redhat.com>
4877
4878 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4879 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4880
383f0f5b
JB
48812004-05-10 Jim Blandy <jimb@redhat.com>
4882
d0b57c3a
JB
4883 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4884 with a call to internal_error.
4885
383f0f5b
JB
4886 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4887 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4888 processor variant lacks those registers.
4889 (ppc_floating_point_unit_p): Change description to make it clear
4890 that this returns info about the ISA, not the ABI.
4891 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4892 return true or false by checking tdep->ppc_fp0_regnum and
4893 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4894 arch/mach switching done in rs6000_gdbarch_init; it's better to
4895 keep that logic there, and just check the results here.
4896 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4897 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4898 floating-point registers.
4899 (ppc_supply_fpregset, ppc_collect_fpregset)
4900 (rs6000_push_dummy_call, rs6000_extract_return_value)
4901 (rs6000_store_return_value): Assert that we have floating-point
4902 registers.
4903 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4904 (rs6000_frame_cache): Don't note the locations at which
4905 floating-point registers were saved if we have no fprs.
4906 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4907 registers.
4908 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4909 (store_regs_user_thread, store_regs_kernel_thread): Only call
4910 supply_fprs / fill_fprs if we actually have floating-point
4911 registers.
4912 (special_register_p): Check ppc_fpscr_regnum before matching
4913 against it.
4914 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4915 supply / collect fpscr if we don't have it.
4916 * ppc-bdm.c: #include "gdb_assert.h".
4917 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4918 have floating-point registers, since I can't test this code on
4919 FP-free systems to adapt it.
4920 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4921 fpscr and floating point register numbers if they don't exist.
4922 (fetch_register): Assert that we have floating-point registers
4923 before we reach the code that handles them.
4924 (store_register): Same. And use tdep instead of calling
4925 gdbarch_tdep again.
4926 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4927 don't have them.
4928 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4929 fprs and fpscr if we don't have them.
4930 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4931 don't have them.
4932 * ppcnbsd-nat.c: #include "gdb_assert.h".
4933 (getfpregs_supplies): Assert that we have floating-point registers.
4934 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4935 * ppcobsd-tdep.c: #include "gdb_assert.h".
4936 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4937 have floating-point registers.
4938 * rs6000-nat.c (regmap): Don't match against the fpscr and
4939 floating point register numbers if they don't exist.
4940 (fetch_inferior_registers, store_inferior_registers,
4941 fetch_core_registers): Only fetch / store / supply the
4942 floating-point registers and the fpscr if we have them.
4943 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4944 (ppcobsd-tdep.o): Update dependencies.
4945
15960608
AC
49462004-05-10 Andrew Cagney <cagney@redhat.com>
4947
4948 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4949 (context_switch): Do not switch through_sigtramp_breakpoint.
4950 * gdbthread.h (save_infrun_state, load_infrun_state)
4951 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4952 and structure member.
4953 * thread.c (load_infrun_state, save_infrun_state): Update.
4954
5ab5aa0f
MK
49552004-05-10 Mark Kettenis <kettenis@gnu.org>
4956
4957 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4958
da78b0e7
DJ
49592004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4960
4961 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4962 throughout.
4963 * aclocal.m4: Regenerate.
4964
cca0d3b0
NW
49652004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4966
4967 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4968
d303a6c7
AC
49692004-05-10 Andrew Cagney <cagney@redhat.com>
4970
4971 * infrun.c (check_sigtramp2): Delete function.
4972 (handle_inferior_event): When single stepping, and taking a
4973 signal, set a breakpoint at the signal return address. Delete
4974 redundant calls to check_sigtramp2.
4975 (insert_step_resume_breakpoint): New function.
4976 (through_sigtramp_breakpoint, handle_inferior_event)
4977 (follow_exec, wait_for_inferior, fetch_inferior_event)
4978 (currently_stepping, keep_going): Delete most uses of
4979 through_sigtramp_breakpoint, not that it should be deleted.
4980 (delete_breakpoint_current_contents): Delete function.
4981
03f4cc20
RC
49822004-05-10 Randolph Chung <tausq@debian.org>
4983
4984 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4985 target.
4986 * config/pa/tm-linux.h: New file.
4987
37fc812e
DJ
49882004-05-10 Daniel Jacobowitz <drow@mvista.com>
4989
4990 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4991 of prefixes. Don't print the prefix twice in the CLI.
4992
26c0b942
JB
49932004-05-10 Jim Blandy <jimb@redhat.com>
4994
2e56e9c1
JB
4995 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4996 collect all the gprs.
4997
26c0b942
JB
4998 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4999 loop collecting gprs.
5000
dc497459
AC
50012004-05-09 Andrew Cagney <cagney@redhat.com>
5002
5003 * remote-vx.c (net_step): Delete step-range code.
5004 * remote.c (remote_resume, init_all_packet_configs)
5005 (set_remote_protocol_E_packet_cmd)
5006 (show_remote_protocol_E_packet_cmd)
5007 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5008 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5009 (show_remote_protocol_e_packet_cmd): Ditto.
5010
0543f387
MK
50112004-05-09 Mark Kettenis <kettenis@gnu.org>
5012
c481d1ca
MK
5013 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5014
f626a069
MK
5015 * hppa-tdep.h: Update copyright year.
5016 (struct trad_frame_saved_reg): Add opaque declaration.
5017
6fa57a7d
MK
5018 * amd64-tdep.c (amd64_return_value): Implement
5019 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5020
e47577ab
MK
5021 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5022 (m68k_value_to_register): New functions.
5023 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5024 value_to_register.
5025
31db7b6c
MK
5026 * defs.h (enum return_value_convention): Add
5027 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5028 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5029 * infcmd.c (legacy_return_value): New function.
5030 (print_return_value): Rwerite to implement
5031 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5032 * values.c (using_struct_return): Check for inequality to
5033 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5034 RETURN_VALUE_STRUCT_CONVENTION.
5035 * i386-tdep.c (i386_return_value): Implement
5036 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5037
0543f387
MK
5038 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5039 include "symtab.h", "opcode/vax.h" and "inferior.h".
5040 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5041 to read_memory_unsigned_integer.
5042 (vax_gdbarch_init): Reorder.
5043 (_initialize_vax_tdep): Spell out prototype.
5044 * Makefile.in (vax-tdep.o): Update dependencies.
5045
0c93b7b6
AC
50462004-05-08 Andrew Cagney <cagney@redhat.com>
5047
e6b55ae2
AC
5048 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5049 * target.c (target_detach, target_disconnect): Ditto.
5050
1ac839b8
AC
5051 * infcall.c (call_function_by_hand): When no
5052 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5053 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5054 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5055 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5056 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5057
28954179
AC
5058 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5059 * gdbarch.h, gdbarch.c: Re-generate.
5060 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5061 deprecated_fix_call_dummy.
5062 * v850-tdep.c (v850_gdbarch_init): Ditto.
5063 * infcall.c (call_function_by_hand): Do not call
5064 DEPRECATED_FIX_CALL_DUMMY.
5065
434b87dd
AC
5066 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5067 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5068 * gdbarch.h, gdbarch.c: Re-generate.
5069 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5070 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5071 deprecated_sizeof_call_dummy_words.
5072 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5073 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5074 * v850-tdep.c (v850_gdbarch_init): Ditto.
5075 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5076 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5077 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5078 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5079 * arch-utils.h (legacy_call_dummy_words)
5080 (legacy_sizeof_call_dummy_words): Delete declarations.
5081 * arch-utils.c (legacy_call_dummy_words)
5082 (legacy_sizeof_call_dummy_words): Delete variables.
5083
58d28df8
AC
5084 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5085 * gdbarch.h, gdbarch.c: Re-generate.
5086 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5087 * infcall.c (call_function_by_hand): Eliminate call to
5088 DEPRECATED_PUSH_DUMMY_FRAME.
5089 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5090 push_dummy_frame.
5091 (ns32k_push_dummy_frame): Delete function.
5092
e4a2df64
AC
5093 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5094 deprecated_call_dummy_breakpoint_offset or
5095 deprecated_call_dummy_start_offset.
5096 * dummy-frame.c, arm-tdep.c: Update comments.
5097 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5098 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5099 * gdbarch.h, gdbarch.c: Re-generate.
5100
d3712828
AC
5101 * infcall.c (legacy_push_dummy_code): Delete function.
5102 (push_dummy_code): Delete call.
5103
7a882905
AC
5104 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5105 * gdbarch.h, gdbarch.c: Re-generate.
5106 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5107 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5108 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5109 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5110
0ec5872b
AC
5111 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5112 (struct frame_info): Delete opaque declaration.
5113 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5114 * frame.c (get_frame_type): Delete call.
5115
0c93b7b6
AC
5116 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5117 pc_in_call_dummy.
5118 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5119 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5120
75536971
MK
51212004-05-08 Mark Kettenis <kettenis@gnu.org>
5122
527ca6bb
MK
5123 * alphanbsd-tdep.c: Include "gdb_string.h".
5124 * armnbsd-tdep.c: Update copyright year.
5125 Include "gdb_string.h".
5126 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5127 dependencies.
5128
d39fdc61
MK
5129 * delta68-nat.c: Remove file.
5130 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5131 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5132 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5133 (delta68-nat.o): Remove dependency.
5134
75536971
MK
5135 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5136 function.
5137 (m68k_gdbarch_init): Don't set
5138 deprecated_frameless_function_invocation.
5139
f4ca1d1f
RC
51402004-05-07 Randolph Chung <tausq@debian.org>
5141
5142 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5143 read_memory_nobpt for code reading when doing frame unwinding.
5144 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5145
2f0e8c7a
RC
51462004-05-07 Randolph Chung <tausq@debian.org>
5147
5148 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5149 instead of sp, handle sigaltstack case.
5150 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5151 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5152 signal handler and not that of the caller.
5153 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5154 hppa_linux_sigtramp_find_sigcontext.
5155
959464ff
RC
51562004-05-07 Randolph Chung <tausq@debian.org>
5157
5158 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5159 hppa-linux-nat.c.
5160 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5161 * hppa-linux-nat.c (fetch_register, store_register): Define.
5162 (fetch_inferior_registers, store_inferior_registers): Define.
5163 (supply_gregset): Add comment and clean up some unneeded code.
5164 (fill_gregset): Add comment and fix so that it saves registers in
5165 the right place in the gregset.
5166 (fill_fpregset): Fix buffer overrun problem.
5167 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5168
0da28f8a
RC
51692004-05-07 Randolph Chung <tausq@debian.org>
5170
5171 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5172 do common handling of the pcoqt register.
5173 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5174 to use helper function.
5175 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5176 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5177 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5178 generic fallback unwinder when all else fails.
5179 (hppa_gdbarch_init): Add fallback sniffer.
5180 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5181 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5182 to use helper function.
5183
b9ec757a
JB
51842004-05-08 Joel Brobecker <brobecker@gnat.com>
5185
5186 * config/djgpp/fnchange.lst: Add translation rules for
5187 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5188
756e95f1
MK
51892004-05-08 Mark Kettenis <kettenis@gnu.org>
5190
5191 * frame.c (get_prev_frame_1): Work around GCC bug.
5192 * frame.h: Add comment about GCC bug.
5193
2b4855ab
AC
51942004-05-07 Andrew Cagney <cagney@redhat.com>
5195
5196 * observer.c: Include "commands.h" and "gdbcmd.h".
5197 (observer_debug, _initialize_observer): Add the
5198 command "set/show debug observer".
5199 * observer.sh: When observer debugging, log notify calls.
5200 * Makefile.in (observer.o): Update dependencies.
5201
ba3e8e46
JM
52022004-05-07 Jason Molenda (jmolenda@apple.com)
5203
5204 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5205
16796152
JB
52062004-05-07 Jim Blandy <jimb@redhat.com>
5207
daf6dc85
JB
5208 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5209 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5210 to recognize gpr regnums, instead of assuming that
5211 tdep->ppc_fp0_regnum marks the end of the general-purpose
5212 registers.
5213
16796152
JB
5214 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5215 the given architecture has floating-point registers.
5216
c69b8bfc
AC
52172004-05-07 Andrew Cagney <cagney@redhat.com>
5218
5219 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5220 macro defined to 1.
5221 * gdbarch.h, gdbarch.c: Re-generate.
5222 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5223 deprecated_use_generic_dummy_frames.
5224
7243600a
BF
52252004-05-07 Brian Ford <ford@vss.fsi.com>
5226
5227 * NEWS: Mention Cygwin DWARF 2 support.
5228
73c1e0a1
AC
52292004-05-07 Andrew Cagney <cagney@redhat.com>
5230
5231 * objfiles.h (struct entry_info): Delete unused fields
5232 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5233 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5234 * mipsread.c (mipscoff_symfile_read): Update.
5235 * mdebugread.c (parse_partial_symbols): Update.
5236 * dwarfread.c (read_file_scope): Update.
5237 * dwarf2read.c (read_file_scope): Update.
5238 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5239 * coffread.c (complete_symtab): Update.
5240
1d3056ac
MK
52412004-05-07 Mark Kettenis <kettenis@gnu.org>
5242
5243 * infcall.c (_initialize_infcall): Fix typo.
5244
15170568
AC
52452004-05-07 Andrew Cagney <cagney@redhat.com>
5246
5247 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5248 * command.h (add_setshow_zinteger_cmd): Declare.
5249
34f75cc1
RC
52502004-05-06 Randolph Chung <tausq@debian.org>
5251
5252 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5253 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5254 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5255 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5256 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5257 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5258 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5259 definitions ...
5260 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5261 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5262 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5263 (hppa64_hpux_frame_find_saved_regs_in_sig)
5264 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5265 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5266 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5267 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5268 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5269 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5270 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5271 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5272 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5273 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5274 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5275 (hppa32_register_type, hppa_cannot_store_register)
5276 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5277 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5278 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5279 * pa64solib.c (pa64_solib_have_load_event)
5280 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5281 (pa64_solib_unloaded_library_pathname): Likewise.
5282 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5283 (som_solib_library_pathname): Likewise.
5284
0a5e7efe
JI
52852004-05-05 Jim Ingham <jingham@apple.com>
5286
5287 * breakpoint.c (create_breakpoints): Copy the ignore count and
5288 thread id over from the pended breakpoint to the actual
5289 breakpoint.
5290
10a4b113
AC
52912004-05-05 Andrew Cagney <cagney@redhat.com>
5292
5293 * gdbarch.sh (PARM_BOUNDARY): Delete.
5294 gdbarch.h, gdbarch.c: Re-generate.
5295 * valops.c (PARM_BOUNDARY): Delete macro.
5296 (value_push): Delete PARM_BOUNDARY code.
5297 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5298
366f009f
JB
52992004-05-04 Jim Blandy <jimb@redhat.com>
5300
32b99774
JB
5301 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5302 Don't assume that the gprs, fprs, and UISA sprs are
5303 contiguous, start at register number zero, and end with fpscr.
5304 Instead, use the numbers from the tdep structure.
5305
366f009f
JB
5306 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5307 should no longer be used in code specific to the RS6000 and its
5308 derivatives.
5309 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5310 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5311 tdep->ppc_fp0_regnum.
5312 (ppc_supply_fpregset, ppc_collect_fpregset)
5313 (rs6000_push_dummy_call, rs6000_extract_return_value)
5314 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5315 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5316 FP0_REGNUM.
5317 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5318 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5319 Same.
5320 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5321 bdm_ppc_store_registers): Same.
5322 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5323 (store_register, fill_fpregset): Same.
5324 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5325 (ppc_linux_supply_fpregset): Same.
5326 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5327 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5328 Same.
5329 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5330 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5331 ppc64_sysv_abi_return_value): Same.
5332 * rs6000-nat.c (regmap, fetch_inferior_registers)
5333 (store_inferior_registers, fetch_core_registers): Same.
5334
827f338d
MK
53352004-05-01 Mark Kettenis <kettenis@gnu.org>
5336
5337 * m68knbsd-nat.c: Remove file.
5338 * m68knbsd-tdep.c: Remove file.
5339 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5340 dependencies.
5341 * configure.host: Add m68k-*-netbsdelf*.
5342 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5343 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5344 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5345 (XM_FILE): Remove.
5346 * config/m68k/nbsdelf.mh: New file.
5347 * config/m68k/nbsd.mt: New file.
5348 * config/m68k/nbsdaout.mt: Remove file.
5349 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5350 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5351 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5352 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5353 (use_struct_convention): Remove prototype.
5354 (USE_STRUCT_CONVENTION): Remove define.
5355 * config/m68k/xm-nbsd.h: Remove file.
5356
66894781
MS
53572004-05-04 Michael Snyder <msnyder@redhat.com>
5358
5359 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5360 reg_struct_return method (as gcc usually does for cross targets).
5361
f0f63663
AC
53622004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5363
5364 Committed by Andrew Cagney.
5365 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5366 alignment padding when accessing ucontext struct members.
5367
edf61169
JB
53682004-05-04 Jim Blandy <jimb@redhat.com>
5369
8bf659e8
JB
5370 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5371 'ppc_gplast_regnum' member.
5372 (ppc_num_gprs): New enum constant.
5373 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5374 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5375 * rs6000-nat.c (regmap, fetch_inferior_registers,
5376 store_inferior_registers): Same.
5377 * rs6000-tdep.c (e500_pseudo_register_read)
5378 (e500_pseudo_register_write): Same.
5379 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5380
b967e06f
JB
5381 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5382 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5383 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5384 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5385 FPLAST_REGNUM.
5386 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5387 Same.
5388 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5389 * rs6000-nat.c (regmap, fetch_inferior_registers)
5390 (store_inferior_registers): Same.
5391
edf61169
JB
5392 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5393 with FPLAST_REGNUM.
5394
58a9656e
JB
53952004-05-03 Joel Brobecker <brobecker@gnat.com>
5396
5397 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5398 failure detected by recent versions of GCC.
5399 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5400 to be consistent with the usage in dwarf2_create_include_psymtab.
5401
dc305454
MS
54022004-05-03 Michael Snyder <msnyder@redhat.com>
5403
5404 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5405 (heuristic_proc_start): Whitespace cleanup.
5406
29972665
MK
54072004-05-04 Mark Kettenis <kettenis@gnu.org>
5408
6b57680d
MK
5409 * sun3-nat.c: Remove file.
5410 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5411 dependencies.
5412 (ALLDEPFILES): Remove sun3-nat.c.
5413 (sun3-nat.o): Remove dependencies.
5414
29972665
MK
5415 * i386-interix-nat.c, i386-interix-tdep.c,
5416 config/i386/nm-interix.h, config/i386/interix.mh,
5417 config/i386/interix.mt: Remove files.
5418 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5419 dependencies.
5420
f595cb19
MK
54212004-05-03 Mark Kettenis <kettenis@gnu.org>
5422
5423 * m68k-tdep.h (struct gdbarch_tdep): Add member
5424 struct_value_regnum.
5425 (m68k_svr4_init_abi): New prototype.
5426 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5427 different calling conventions.
5428 (m68k_extract_return_value): Remove code dealing with single-field
5429 structs.
5430 (m68k_store_return_value): Remove code dealing with single-field
5431 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5432 (m68k_extract_struct_value_address): Remove function.
5433 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5434 (m68k_reg_struct_return_p, m68k_return_value)
5435 (m68k_svr4_return_value): New functions.
5436 (m68k_use_struct_convention): Remove function.
5437 (m68k_push_dummy_call): Use new struct_value_regnum member of
5438 `struct gdbarch_tdep' instead of hardcoded register number to
5439 store STRUCT_ADDR.
5440 (m68k_svr4_init_abi): New function.
5441 (m68k_gdbarch_init): Don't set extract_return_value,
5442 store_return_values, deprecated_extract_struct_value_address and
5443 use_struct_convention. Set return_value instead. Initialize new
5444 struct_value_regnum member of `struct gdbarch_tdep'.
5445 * m68klinux-tdep.c: Update copyright year.
5446 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5447 (m68k_linux_extract_struct_value_address): Remove function.
5448 (m68k_linux_init_abi): Don't set extract_return_value,
5449 store_return_values, deprecated_extract_struct_value_address and
5450 use_struct_convention. Call m68k_svr4_init_abi but override the
5451 new struct_value_regnum member of `struct gdbarch_tdep'.
5452 * Makefile.in (m68k-tdep.o): Update dependencies.
5453
aaa75496
JB
54542004-05-03 J. Brobecker <brobecker@gnat.com>
5455
5456 * dwarf2read.c (line_header): Add new included_p field in
5457 field file_names.
5458 (partial_die_info): New field has_stmt_list. New field line_offset.
5459 (dwarf2_create_include_psymtab): New function.
5460 (dwarf2_build_include_psymtabs): New function.
5461 (add_file_name): Add forward declaration. Initialize new field.
5462 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5463 to be able to determine the list of files included by the
5464 given unit, and build their associated psymtabs.
5465 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5466 files as well.
5467 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5468 (read_file_scope): Update call to dwarf_decode_lines.
5469 (read_partial_die): Handle DW_AT_stmt_list attributes.
5470
c848556f
MC
54712004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5472
5473 Unfix PR gdb/1626.
5474 * configure.in: Revert special case for osf5.*.
5475 * configure: Regenerate.
5476
eb4556d7
JB
54772004-05-02 Jim Blandy <jimb@redhat.com>
5478
5479 Move the symbol-file-from-memory functions into their own file.
5480 * symfile-mem.c, symfile-mem.h: New files.
5481 * symfile.c (symbol_file_add_from_bfd): New function.
5482 (symbol_file_add): Call symbol_file_add_from_bfd.
5483 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5484 Moved to symfile-mem.c.
5485 (_initialize_symfile): Move definition of
5486 add-symbol-file-from-memory command to symfile-mem.c.
5487 * symfile.h (symbol_file_add_from_bfd): New declaration.
5488 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5489 * config/powerpc/linux.mt (TDEPFILES): Same.
5490 * Makefile.in (SFILES): Add symfile-mem.c.
5491 (symfile_mem_h): New variable.
5492 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5493 (symfile-mem.o): New rule.
5494
80bb239e
AC
54952004-05-01 Andrew Cagney <cagney@redhat.com>
5496
7789d0fa
AC
5497 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5498 frame_find_by_id instead of frame_relative_level.
5499 (do_enable_breakpoint): Ditto.
5500 * thread.c: Update copyright.
5501 (info_threads_command): Ditto, simplify.
5502
80bb239e
AC
5503 * frame.c (deprecated_generic_get_saved_register): Delete
5504 function, moved to "xstormy16-tdep.c".
5505 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5506 deprecated_generic_get_saved_register from "frame.c".
5507 (xstormy16_frame_saved_register): Call
5508 xstormy16_get_saved_register.
5509 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5510 static.
5511 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5512 * frame.h (deprecated_generic_get_saved_register): Delete.
5513
b2a871dd
MC
55142004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5515
5516 * dwarfread.c: Update documentation on the state of dwarf-1.
5517
0e100dab
AC
55182004-05-01 Andrew Cagney <cagney@redhat.com>
5519
acd8056e
AC
5520 * stack.c (select_frame_command): Delete call to
5521 frame_relative_level.
5522 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5523 Delete #if0 code.
5524 (frame_info): Do not print FRAMELESS.
5525 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5526 (catch_info): Delete #if0 code.
5527
0e100dab
AC
5528 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5529 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5530 of frame_relative_level.
5531 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5532 to SENTINEL_FRAME.
5533 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5534 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5535 frame_relative_level.
5536
55699d59
AC
5537 * frame.h (deprecated_set_frame_type): Delete declaration.
5538 * frame.c (deprecated_set_frame_type): Delete function, update
5539 comments.
5540
fcf70625
AC
5541 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5542 * gdbarch.h, gdbarch.c: Re-generate.
5543 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5544 (shnbsd_pc_in_sigtramp): Delete.
5545 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5546 pc_in_sigtramp.
5547 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5548 pc_in_sigtramp.
5549 * frame.h: Update comments.
5550 * ppc-linux-tdep.c: Update comments.
5551 * breakpoint.c (bpstat_what): Update comments.
5552
ac5eccb7
AC
5553 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5554 m68klinux-tdep.o's dependencies, were previously added to
5555 m68klinux-nat.o.
5556
f2524b93
AC
5557 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5558 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5559 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5560 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5561 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5562
17e20bce
AC
5563 * Makefile.in (m68klinux-nat.o): Update dependencies.
5564 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5565 (m68k_linux_sigtramp_frame_cache)
5566 (m68k_linux_sigtramp_frame_this_id)
5567 (m68k_linux_sigtramp_frame_prev_register)
5568 (m68k_linux_sigtramp_frame_unwind)
5569 (m68k_linux_sigtramp_frame_sniffer)
5570 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5571 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5572 names, use trad-frame.h.
5573 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5574 (struct m68k_sigtramp_info): Delete.
5575 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5576 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5577 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5578 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5579 "m68klinux-tdep.c".
5580
c8864fa2
AC
5581 * infrun.c (check_sigtramp2): Delete check for
5582 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5583
511dd2cd
MK
55842004-05-01 Mark Kettenis <kettenis@gnu.org>
5585
5586 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5587
8c6b0e06
AC
55882004-05-01 Andrew Cagney <cagney@redhat.com>
5589
9df0bb3f
AC
5590 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5591 (frv_linux_sigtramp_frame_cache)
5592 (frv_linux_sigtramp_frame_this_id)
5593 (frv_linux_sigtramp_frame_prev_register)
5594 (frv_linux_sigtramp_frame_unwind)
5595 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5596 include "linux" in function and variable names, directly call
5597 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5598 the latest trad-frame code.
5599 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5600 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5601 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5602 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5603 * frv-tdep.c (frv_sigtramp_frame_cache)
5604 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5605 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5606 frv-linux-tdep.c.
5607 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5608 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5609 (frv_set_sigcontext_reg_addr): Delete function.
5610
8c6b0e06
AC
5611 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5612 (DEPRECATED_SIGTRAMP_END): Delete.
5613 * gdbarch.h, gdbarch.c: Re-generate.
5614 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5615 * config/vax/tm-vaxbsd.h: Update copyright.
5616 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5617 (DEPRECATED_IN_SIGTRAMP): Define.
5618 * config/m68k/tm-nbsd.h: Update copyright.
5619 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5620 (DEPRECATED_IN_SIGTRAMP): Define.
5621
50ea7769
MK
56222004-05-01 Mark Kettenis <kettenis@gnu.org>
5623
03ac2a74
MK
5624 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5625 encondings. Fixes PR gdb/1628.
5626
50ea7769
MK
5627 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5628 DW_CFA_restore state without a matching DW_CFA_remember_state
5629 instead of aborting. Fixes PR backtrace/1589.
5630
9a5d7be1
JB
56312004-04-30 Joel Brobecker <brobecker@gnat.com>
5632
5633 * MAINTAINERS: Add self as AIX maintainer.
5634 Update my e-mail address in write-after-approval section.
5635
2593d1cd
AC
56362004-04-30 Andrew Cagney <cagney@redhat.com>
5637
ce12bbf9
AC
5638 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5639 (legacy_get_prev_frame): Ditto.
5640
36710c63
AC
5641 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5642 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5643 * mipsread.c (sigtramp_address): Delete extern variable.
5644 (mipscoff_new_init): Delete reference.
5645 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5646 (fixup_sigtramp): Delete function.
5647 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5648 (fixup_sigtramp): Delete declarations.
5649
2593d1cd
AC
5650 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5651 deprecated_pc_in_sigtramp.
5652 (ppcnbsd_pc_in_sigtramp): Delete function.
5653
2a25f91c
MK
56542004-05-01 Mark Kettenis <kettenis@gnu.org>
5655
5656 * config/m68k/nm-nbsd.h: Tweak comments.
5657 * config/m68k/nm-nbsdaout.h: Likewise.
5658
0b281939
AC
56592004-04-30 Andrew Cagney <cagney@redhat.com>
5660
5661 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5662 legacy_pc_in_sigtramp.
5663 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5664
8f2d3ea0
MK
56652004-05-01 Mark Kettenis <kettenis@gnu.org>
5666
5667 Add OpenBSD/m68k support.
5668 * NEWS (New native configurations): Mention OpenBSD/m68k.
5669 * m68kbsd-tdep.c: New file.
5670 * m68kbsd-nat.c: New file.
5671 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5672 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5673 * configure.host: Add m68k-*-openbsd.
5674 * configure.tgt: Add m68k-*-openbsd.
5675 * config/m68k/tm-obsd.h: New file.
5676 * config/m68k/obsd.mt: New file.
5677 * config/m68k/obsd.mh: New file.
5678 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5679 m68kbsd-tdep.c.
5680
c40f49a4
AC
56812004-04-30 Andrew Cagney <cagney@redhat.com>
5682
5683 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5684 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5685
e81554cd
MK
56862004-04-30 Mark Kettenis <kettenis@gnu.org>
5687
5688 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5689 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5690
d4dc1a91
BF
56912004-04-30 Brian Ford <ford@vss.fsi.com>
5692
5693 Revert 2004-04-16 change.
5694 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5695 (i386_coff_init_abi): Remove.
5696 * i386-tdep.h (i386_coff_init_abi): Remove.
5697 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5698
2f72f850
AC
56992004-04-30 Andrew Cagney <cagney@redhat.com>
5700
e492f9d6
AC
5701 * blockframe.c (find_pc_partial_function): Delete use of
5702 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5703 DEPRECATED_SIGTRAMP_END.
5704
7b7adad0
AC
5705 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5706 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5707 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5708 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5709 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5710
2f72f850
AC
5711 * defs.h (deprecated_inside_entry_file): Delete declaration.
5712 * blockframe.c (deprecated_inside_entry_file): Delete function.
5713 (legacy_frame_chain_valid): Delete call.
5714 * sh64-tdep.c (sh64_frame_chain): Delete call.
5715 * objfiles.h: Update comments.
5716 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5717 call.
5718 * frame.c (get_prev_frame): Delete call, update comments.
5719
283f90a7
BF
57202004-04-30 Brian Ford <ford@vss.fsi.com>
5721
5722 * MAINTAINERS (Write After Approval): Add myself.
5723
8ee56bcf
AC
57242004-04-30 Andrew Cagney <cagney@redhat.com>
5725
5726 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5727 * gdbarch.h, gdbarch.c: Re-generate.
5728 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5729 code.
5730
ee27e1b6
AC
57312004-04-30 Andrew Cagney <cagney@redhat.com>
5732
5733 * gdb-events.sh (selected_thread_changed)
5734 (selected_frame_level_changed, target_changed): Delete.
5735 * gdb-events.h, gdb-events.c: Re-generate.
5736 * valops.c (value_assign): Update.
5737 * stack.c (select_frame_command, up_silently_base)
5738 (down_silently_base): Update.
5739
d5ac5a39
AC
57402004-04-29 Andrew Cagney <cagney@redhat.com>
5741
5742 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5743 registers correctly.
5744 (print_gp_register_row, mips32_heuristic_proc_desc)
5745 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5746 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5747 references to mips_isa_regsize.
5748
ceae6e75
AC
57492004-04-29 Andrew Cagney <cagney@redhat.com>
5750
5751 * mips-tdep.c (struct gdbarch_tdep): Delete
5752 mips_fp_register_double.
5753 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5754 mips_abi_regsize.
5755 (mips_gdbarch_init): Do not set mips_fp_register_double.
5756 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5757
a587af0b
AC
57582004-04-29 Joel Brobecker <brobecker@gnat.com>
5759
5760 Committed by Andrew Cagney.
5761 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5762 function calls.
5763
13326b4e
AC
57642004-04-29 Andrew Cagney <cagney@redhat.com>
5765
5766 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5767 gdbarch, use mips_abi, update callers.
5768 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5769 mips_abi_regsize, update callers.
5770 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5771 mips_default_abi_regsize.
5772 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5773 mips_default_abi_regsize.
5774
711cc5cd
AC
57752004-04-29 Andrew Cagney <cagney@redhat.com>
5776
1b13c4f6
AC
5777 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5778 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5779 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5780 mips_default_abi_regsize.
5781 (mips_isa_regsize): Rename mips_regisze.
5782 * mipsnbsd-tdep.c: Update.
5783 * mips-linux-tdep.c: Update.
5784 * irix5-nat.c: Update.
5785 * mips-tdep.h (mips_isa_regsize): Update.
5786
711cc5cd
AC
5787 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5788 Delete all disabled code.
5789 * gdb-events.h, gdb-events.c: Re-generate.
5790
e63bbc88
MK
57912004-04-19 Jerome Guitton <guitton@gnat.com>
5792 Mark Kettenis <kettenis@gnu.org>
5793
5794 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5795 the function begins with a branch instruction.
5796
fd35795f
MK
57972004-04-29 Mark Kettenis <kettenis@gnu.org>
5798
5799 * i386-tdep.c: Fix spelling mistakes.
5800
c960c18f
AC
58012004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5802 Andrew Cagney <cagney@redhat.com>
5803
5804 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5805 <sys/proc.h>.
5806 * acconfig.h: Provide default _KMEMUSER value.
5807 * config.in, configure: Re-generate.
5808 * NEWS: Mention fix.
5809
50306a9d
RC
58102004-04-24 Randolph Chung <tausq@debian.org>
5811
5812 * configure.host (hppa*-*-linux*): New target.
5813 * configure.tgt (hppa*-*-linux*): Likewise.
5814 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5815 gdbarch_init_osabi() call earlier so that osabi-specific frame
5816 unwinders can be registered first.
5817 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5818 hppa-linux-nat.c.
5819 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5820 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5821 * config/pa/linux.mh: New file.
5822 * config/pa/linux.mt: New file.
5823 * config/pa/nm-linux.h: New file.
5824 * config/pa/xm-linux.h: New file.
5825 * hppa-linux-nat.c: New file.
5826 * hppa-linux-tdep.c: New file.
5827
2a6228ef
RC
58282004-04-28 Randolph Chung <tausq@debian.org>
5829
5830 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5831 return values.
5832 (hppa32_push_dummy_call): Fix small struct and floating point argument
5833 passing, and make sure the stack frame is properly aligned.
5834
82c10df6
AC
58352004-04-28 Andrew Cagney <cagney@redhat.com>
5836
d762c46a
AC
5837 * stack.c (print_stack_frame): Fix description.
5838
82c10df6
AC
5839 * NEWS: Mention gdb/gdbserver/configure execute permission
5840 changed. PR server/519.
5841
0faf0076
AC
58422004-04-28 Andrew Cagney <cagney@redhat.com>
5843
5844 * stack.c (print_stack_frame_stub): Delete declaration.
5845 (struct print_stack_frame_args, print_stack_frame)
5846 (print_frame_info, print_frame): Replace "source" with print what.
5847 Replace "print" with "print_level". Replace "args" with
5848 "print_args".
5849 * frame.h (show_and_print_stack_frame, print_stack_frame)
5850 (print_frame_info): Update declarations.
5851 * stack.c (select_and_print_frame, frame_command)
5852 (current_frame_command, up_command, down_command): Update calls -
5853 use get_selected_frame, pass "enum print_what" for source, do not
5854 call frame_relative_level.
5855 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5856 * remote-rdp.c (remote_rdp_open): Ditto.
5857 * remote-mips.c (common_open): Ditto.
5858 * remote-e7000.c (e7000_start_remote): Ditto.
5859 * ocd.c (ocd_start_remote): Ditto.
5860 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5861 * infrun.c (normal_stop): Ditto.
5862 * inflow.c (kill_command): Ditto.
5863 * infcmd.c (finish_command): Ditto.
5864 * corelow.c (core_open): Ditto.
5865 * tracepoint.c (finish_tfind_command): Ditto.
5866 * thread.c (info_threads_command, info_threads_command)
5867 (restore_current_thread, do_captured_thread_select): Ditto.
5868 * ada-tasks.c (task_command): Ditto.
5869
f4c5303c
OF
58702004-04-26 Orjan Friberg <orjanf@axis.com>
5871
5872 * frame.c: Include "observer.h".
5873 (frame_observer_target_changed): New function.
5874 (_initialize_frame): Attach target_changed observer.
5875 * regcache.c: Include "observer.h".
5876 (regcache_observer_target_changed): New function.
5877 (_initialize_regcache): Attach target_changed observer.
5878 * valops.c: Include "observer.h".
5879 (value_assign): Notify target_changed event when modifying register.
5880 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5881
7270d8f2
OF
58822004-04-26 Orjan Friberg <orjanf@axis.com>
5883
5884 From Paul Koning <pkoning@equallogic.com>:
5885 * breakpoint.c (free_valchain): New function.
5886 (insert_bp_location, delete_breakpoint): Use free_valchain.
5887 (remove_breakpoint): Do not remove the valchain.
5888 (bpstat_stop_status): If not stopped by watchpoint, skip
5889 watchpoints when generating stop status list.
5890 * infrun.c (handle_inferior_event): Make
5891 stepped_after_stopped_by_watchpoint a global variable.
5892 * remote.c (remote_stopped_data_address): Return watch data
5893 address rather than zero if stepped_after_stopped_by_watchpoint is
5894 set.
5895
02d62932
MC
58962004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5897
5898 Fix PR gdb/1626.
5899 * configure.in: Check for curses after termcap.
5900 On osf5.*, do not check for ncurses.
5901 * configure: Regenerate.
5902
3e9a183c
MK
59032004-04-25 Mark Kettenis <kettenis@gnu.org>
5904
c79ac407
MK
5905 * ppcobsd-nat.c: Include "ppc-tdep.h".
5906 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5907
3e9a183c
MK
5908 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5909 Fixes PR tdep/1623 and PR tdep/1624.
5910
38cc9c28
MC
59112004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5912
5913 * xmodem.h, xmodem.c: Remove files.
5914 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5915
7f07c5b6
RC
59162004-04-23 Randolph Chung <tausq@debian.org>
5917
5918 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5919 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5920 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5921 for handling stackless frames.
5922 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5923
9f7194c3
RC
59242004-04-23 Randolph Chung <tausq@debian.org>
5925
5926 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5927 starts at a pc before the frame is created.
5928
dcff6009
JB
59292004-04-23 Joel Brobecker <brobecker@gnat.com>
5930
5931 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5932
40711ff1 59332004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5934
5935 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5936 use convert_typed_floating to get the appropriate format.
5937
abc485a1
RC
59382004-04-22 Randolph Chung <tausq@debian.org>
5939
5940 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5941 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5942 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5943 (hppa_sign_extend): Add prototype.
5944 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5945 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5946 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5947 hppa targets will also use these functions.
5948 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5949 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5950 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5951 (hppa_gdbarch_init): Remove gdbarch setting of
5952 skip_trampoline_code, in_solib_call_trampoline and
5953 in_solib_return_trampoline.
5954 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5955 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5956 hppa_in_solib_call_trampoline.
5957 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5958 Moved from hppa-tdep.c.
5959 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5960 in_solib_call_trampoline and in_solib_return_trampoline.
5961
369aa520
RC
59622004-04-22 Randolph Chung <tausq@debian.org>
5963
5964 * hppa-tdep.c (hppa_debug): New variable.
5965 (find_unwind_entry, hppa_frame_cache): Add debug output.
5966 (_initialize_hppa_tdep): Add command to set debug flag.
5967
476be15e
AC
59682004-04-22 Andrew Cagney <cagney@redhat.com>
5969
5970 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5971 "trad-frame.h".
5972 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5973 signal trampoline unwinder.
5974 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5975
d195bc9f
MK
59762004-04-22 Mark Kettenis <kettenis@gnu.org>
5977
5978 Add OpenBSD/powerpc support.
5979 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5980 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5981 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5982 (ppc_collect_fpregset): New prototypes.
5983 * ppcobsd-nat.c: New file.
5984 * ppcobsd-tdep.c: New file.
5985 * ppcobsd-tdep.h: New file.
5986 * rs6000-tdep.c: Include "regset.h".
5987 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5988 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5989 New functions.
5990 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5991 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5992 (rs6000-tdep.o): Update dependencies.
5993 * configure.host: Add powerpc-*-openbsd.
5994 * configure.tgt: Add powerpc-*-openbsd.
5995 * config/powerpc/obsd.mh: New file.
5996 * config/powerpc/nm-obsd.h: New file.
5997 * config/powerpc/obsd.mt: New file.
5998
6f14cc33
AC
59992004-04-22 Andrew Cagney <cagney@redhat.com>
6000
fcf29e5f
AC
6001 * frame.h (show_frame_info): Delete declaration.
6002
6f14cc33
AC
6003 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6004 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6005 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6006 * frv-tdep.c (frv_frame_this_id): Ditto.
6007 * avr-tdep.c (avr_frame_this_id): Ditto.
6008
e5786a5c
EZ
60092004-04-22 Elena Zannoni <ezannoni@redhat.com>
6010
6011 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6012
26e75e5c
JB
60132004-04-22 Jim Blandy <jimb@redhat.com>
6014
6015 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6016 register number zero.
6017
d8d65dd3
MS
60182004-04-21 Michael Snyder <msnyder@redhat.com>
6019
6020 * mips-tdep.c (heuristic_proc_start):
6021 Warning() already prefixes "Warning: ".
6022
9a4105ab
AC
60232004-04-21 Andrew Cagney <cagney@redhat.com>
6024
6025 * annotate.h (deprecated_annotate_starting_hook)
6026 (deprecated_annotate_stopped_hook)
6027 (deprecated_annotate_exited_hook)
6028 (deprecated_annotate_signal_hook)
6029 (deprecated_annotate_signalled_hook): Deprecate.
6030 * tracepoint.h (deprecated_create_tracepoint_hook)
6031 (deprecated_delete_tracepoint_hook)
6032 (deprecated_modify_tracepoint_hook)
6033 (deprecated_trace_find_hook)
6034 (deprecated_trace_start_stop_hook): Deprecate.
6035 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6036 * remote.h (deprecated_target_resume_hook)
6037 (deprecated_target_wait_loop_hook): Deprecate.
6038 * gdbcore.h (deprecated_exec_file_display_hook)
6039 (deprecated_file_changed_hook): Deprecate.
6040 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6041 * defs.h (deprecated_modify_breakpoint_hook)
6042 (deprecated_command_loop_hook, deprecated_show_load_progress)
6043 (deprecated_print_frame_info_listing_hook)
6044 (deprecated_query_hook, deprecated_warning_hook)
6045 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6046 (deprecated_delete_breakpoint_hook)
6047 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6048 (deprecated_readline_begin_hook, deprecated_readline_hook)
6049 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6050 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6051 (deprecated_context_hook, deprecated_target_wait_hook)
6052 (deprecated_attach_hook, deprecated_detach_hook)
6053 (deprecated_call_command_hook, deprecated_set_hook)
6054 (deprecated_error_hook, deprecated_error_begin_hook)
6055 (deprecated_ui_load_progress_hook): Deprecate.
6056 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6057 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6058 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6059 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6060 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6061 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6062 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6063 * annotate.c, aix-thread.c: Update.
6064
62cf13cc
AC
60652004-04-21 Andrew Cagney <cagney@redhat.com>
6066
b2e31a62
AC
6067 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6068 * vaxnbsd-tdep.c: Include "gdb_string.h".
6069
62cf13cc
AC
6070 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6071 (add_symbol_file_from_memory_command): #if 0 function body, call
6072 error instead.
6073
00e32a35
AC
60742004-04-21 Andrew Cagney <cagney@redhat.com>
6075
6076 * gdbcore.h: Update copyright.
6077 (deprecated_add_core_fns): Rename add_core_fns.
6078 * win32-nat.c (_initialize_core_win32): Update.
6079 * sun3-nat.c (_initialize_core_sun3): Update.
6080 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6081 * rs6000-nat.c (_initialize_core_rs6000): Update.
6082 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6083 * nto-tdep.c (_initialize_nto_tdep): Update.
6084 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6085 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6086 * mips-nat.c (_initialize_core_mips): Update.
6087 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6088 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6089 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6090 * lynx-nat.c (_initialize_core_lynx): Update.
6091 * irix5-nat.c (_initialize_core_irix5): Update.
6092 * i386-interix-nat.c (_initialize_core_interix): Update.
6093 * cris-tdep.c (_initialize_cris_tdep): Update.
6094 * corelow.c (deprecated_add_core_fns): Update.
6095 * core-regset.c (_initialize_core_regset): Update.
6096 * core-aout.c (_initialize_core_aout): Update.
6097 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6098 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6099 * alpha-nat.c (_initialize_core_alpha): Update.
6100
13c7b1ca
JB
61012004-04-21 Jim Blandy <jimb@redhat.com>
6102
6103 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6104
7b5a2f43
DJ
61052004-04-19 Daniel Jacobowitz <drow@mvista.com>
6106
6107 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6108 Delete.
6109 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6110 (read_attribute_value): Update calls to dwarf_alloc_block.
6111 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6112 dwarf2_tmp_obstack.
6113 (psymtab_to_symtab_1): Likewise. Clean up using
6114 free_stack_comp_unit.
6115 (add_to_cu_func_list): Use the comp_unit_obstack.
6116
05cf31d1
JB
61172004-04-19 Joel Brobecker <brobecker@gnat.com>
6118
6119 * dwarf2read.c (dwarf2_flag_true_p): New function.
6120 (die_is_declaration): Use the function above. Add some comments.
6121
adf93a2f
MK
61222004-04-19 Mark Kettenis <kettenis@gnu.org>
6123
6124 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6125 architecture when registering sparcnbsd_core_osabi_sniffer.
6126 Adjust comment.
6127
748894bf
MK
61282004-04-18 Mark Kettenis <kettenis@gnu.org>
6129
f622ad42
MK
6130 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6131 return value.
6132
c4fc7f1b
MK
6133 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6134 * i386-tdep.c: Correct register numbering scheme comments
6135 throughout.
6136 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6137 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6138 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6139 (i386_gdb_arch_init): Likewise.
6140
b4ead1bd
MK
6141 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6142 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6143 ppcnbsd-tdep.o.
6144
748894bf
MK
6145 * m68k-tdep.h: Tweak comments.
6146 * m68k-tdep.c: Tweak comment.
6147
fdd72f95
RC
61482004-04-17 Randolph Chung <tausq@debian.org>
6149
6150 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6151 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6152 (hppa_hpux_som_init_abi): Set is_elf to 0.
6153 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6154 * hppa-tdep.c (low_text_segment_address): Remove global.
6155 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6156 section offset to calculate segment address.
6157 (internalize_unwinds): Define low_text_segment_address as local and
6158 pass to record_text_segment_lowaddr for ELF targets.
6159 (hppa_gdbarch_init): Zero fill tdep structure.
6160 (hppa_dump_tdep): Print tdep structure.
6161 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6162
0f8d9d59
RC
61632004-04-17 Randolph Chung <tausq@debian.org>
6164
6165 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6166 (hppa_gdbarch_init): Set pseudo_register_read.
6167 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6168 * regcache.c (supply_register): Remove check for
6169 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6170
7c46b9fb
RC
61712004-04-17 Randolph Chung <tausq@debian.org>
6172
6173 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6174 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6175 (hpread_adjust_stack_address): Move to hpread.c.
6176 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6177 obj_private_struct): Move from tm-hppa.h.
6178 * hpread.c (hppa-tdep.h): Include.
6179 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6180 (hpread_read_function_type, hpread_read_doc_function_type)
6181 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6182 directly.
6183 * pa64solib.c (hppa-tdep.h): Include.
6184 * somsolib.c (hppa-tdep.h): Include.
6185 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6186 inferior_status): Remove unused forward declarations.
6187 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6188 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6189 obj_private_struct): Move to hppa-tdep.h.
6190 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6191
8d153463
RC
61922004-04-17 Randolph Chung <tausq@debian.org>
6193
6194 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6195 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6196 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6197 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6198 Remove forward declaration and make static.
6199 (hppa_reg_struct_has_addr): Remove.
6200
350c2e5b
JB
62012004-04-16 Joel Brobecker <brobecker@gnat.com>
6202
6203 * observer.sh: Move comments in sed command to first column.
6204
bbde78fa
JM
62052004-04-16 Jason Molenda (jmolenda@apple.com)
6206
6207 * frame.c: Minor typeo corrections in comments.
6208
e0270fd9
JB
62092004-04-16 Joel Brobecker <brobecker@gnat.com>
6210
6211 * observer.c (observer_test_first_notification_function): Update
6212 function profile.
6213 (observer_test_second_notification_function): Likewise.
6214 (observer_test_third_notification_function): Likewise.
6215
3d049254
MK
62162004-04-16 Mark Kettenis <kettenis@gnu.org>
6217
6218 From Brian Ford <ford@vss.fsi.com>:
6219 * i386-tdep.c (i386_coff_init_abi): New function.
6220 * i386-tdep.h (i386_coff_init_abi): New prototype.
6221 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6222 register number translation functions for DWARF and DWARF 2.
6223
7867684d
JB
62242004-04-16 Joel Brobecker <brobecker@gnat.com>
6225
6226 * dwarf2read.c: Back out my previous change, it was incorrect.
6227
72bf9492
DJ
62282004-04-16 Daniel Jacobowitz <drow@mvista.com>
6229
6230 * dwarf2read.c: Include "hashtab.h".
6231 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6232 has_namespace_info.
6233 (struct partial_die_info): Add comments. Use bitfields to reduce
6234 memory footprint. Add scope, scope_set, has_specification,
6235 spec_offset, die_parent, die_child, and die_sibling.
6236 (peek_die_abbrev): Add prototype.
6237 (partial_read_comp_unit_head): New function, broken out from
6238 dwarf2_build_psymtabs_hard.
6239 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6240 Use partial_read_comp_unit_head. Initialize the CU and
6241 comp_unit_obstack. Update calls to read_partial_die and
6242 scan_partial_symbols. Use free_stack_comp_unit and
6243 load_partial_dies.
6244 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6245 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6246 Update calls to helper functions. Remove NAMESPACE argument.
6247 Update comments.
6248 (partial_die_parent_scope, partial_die_full_name): New functions.
6249 (add_partial_symbol): Remove namespace argument. Update call to
6250 pdi_needs_namespace. Use partial_die_full_name. Handle
6251 DW_TAG_namespace. Check has_namespace_info flag.
6252 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6253 tag. Handle namespaces.
6254 (add_partial_namespace, add_partial_enumeration): Simplify.
6255 (guess_structure_name): New function, derived from
6256 add_partial_structure.
6257 (add_partial_structure): Remove.
6258 (determine_class_name): Update comment.
6259 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6260 (is_type_tag_for_partial, load_partial_dies): New functions.
6261 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6262 Record specifications instead of following them immediately.
6263 (find_partial_die_in_comp_unit, find_partial_die)
6264 (fixup_partial_die, free_stack_comp_unit)
6265 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6266 (partial_die_hash, partial_die_eq): New functions.
6267 * Makefile.in (hashtab_h): Define.
6268 (dwarf2read.o): Update dependencies.
6269 (observer_inc, observer_h): Move to the correct section.
6270
fdc860a3
JB
62712004-04-15 Joel Brobecker <brobecker@gnat.com>
6272
6273 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6274 (die_is_declaration): Use the function above. Add comment.
6275
dc718098
JB
62762004-04-15 Joel Brobecker <brobecker@gnat.com>
6277
6278 * dwarf2read.c (read_structure_scope): Identify stub types
6279 using die_is_declaration() only.
6280
8718a420
RM
62812004-04-15 Roland McGrath <roland@redhat.com>
6282
6283 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6284 argument instead of NAME.
6285 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6286 in call to symbol_file_add_with_addrs_or_offsets.
6287 (build_addr_info): New function, helper for ...
6288 (symbol_file_add_from_memory): New function.
6289 (add_symbol_file_from_memory_command): New function using that.
6290 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6291 (pre_add_symbol_hook): Add const to argument type.
6292 * symfile.h (symbol_file_add_from_memory): Declare it.
6293
8b910bab
MK
62942004-04-15 Mark Kettenis <kettenis@gnu.org>
6295
9f076e7a
MK
6296 * NEWS (New native configurations): Mention OpenBSD/vax.
6297 * configure.host: Add vax-*-openbsd*.
6298 * config/vax/obsd.mh: New file.
6299 * config/vax/nm-obsd.h: New file.
6300
8b910bab
MK
6301 * vax-tdep.c: Include "regset.h".
6302 (vax_supply_gregset): New function.
6303 (vax_gregset): New variable.
6304 (vax_regset_from_core_section): New function.
6305 (vax_gdbarch_init): Set regset_from_core_section.
6306 * Makefile.in (vax-tdep.o): Update dependencies.
6307
7a464420
AC
63082004-04-15 Andrew Cagney <cagney@redhat.com>
6309
6310 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6311 (observer_normal_stop_notification_stub)
6312 (observer_attach_normal_stop, observer_detach_normal_stop):
6313 Delete, replaced by #include "observer.inc".
6314 * infrun.c (normal_stop): Pass "stop_bpstat" to
6315 observer_notify_normal_stop.
6316 * Makefile.in (observer_inc): Define.
6317 (observer.o): Update dependencies.
6318 (observer.h, observer.inc): New rules.
6319 * observer.h: Delete file.
6320 * observer.sh: New file.
6321
e36ad527
MK
63222004-04-15 Mark Kettenis <kettenis@gnu.org>
6323
6324 * vax-tdep.c (vax_frame_cache): Fix typo.
6325
67b441e1
MK
63262004-04-14 Mark Kettenis <kettenis@gnu.org>
6327
6f606e1c
MK
6328 * NEWS (New native configurations): Mention NetBSD/vax.
6329 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6330 * config/vax/nbsdelf.mh: New file.
6331 * config/vax/nbsdaout.mh: New file.
6332 * config/vax/nm-nbsd.h: New file.
6333 * config/vax/nm-nbsdaout.h: New file.
6334
9c5519a5
MK
6335 * vaxnbsd-tdep.c: New file.
6336 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6337 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6338 * config/vax/nbsd.mt: New file.
6339 * config/vax/tm-nbsd.h: New file.
6340
4844a614
MK
6341 * Makefile.in (vaxbsd-nat.o): New dependency.
6342
67b441e1
MK
6343 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6344 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6345 struct_addr arguments. Don't push return value address.
6346 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6347 arguments to vax_store_arguments. Store return value address in
6348 R1.
6349 (vax_store_struct_return, vax_extract_return_value)
6350 (vax_store_return_value): Remove functions.
6351 (vax_return_value): New function.
6352 (vax_gdbarch_init): Set return value. Don't set
6353 deprecated_store_struct_return, deprecated_extract_struct_return
6354 and deprecated_store_return_value.
6355
6672f2ae
AS
63562004-04-14 Andreas Schwab <schwab@suse.de>
6357
6358 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6359 value buffer.
6360 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6361
7346c184
MK
63622004-04-14 Mark Kettenis <kettenis@gnu.org>
6363
6364 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6365 (vax_unwind_dummy_id): New functions.
6366 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6367 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6368 variables.
6369 (vax_fix_call_dummy): Remove function.
6370 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6371 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6372 call_dummy_location, deprecated_call_dummy_words,
6373 deprecated_sizeof_call_dummy_words,
6374 deprecated_call_dummy_breakpoint_offset,
6375 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6376 and deprecated_dummy_write_sp.
6377
58e23df4
DC
63782004-04-13 David Carlton <carlton@kealia.com>
6379
6380 * MAINTAINERS: Move myself to "paper trail" section.
6381
5e6b39ff
MK
63822004-04-12 Mark Kettenis <kettenis@gnu.org>
6383
7def7fef
MK
6384 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6385 "trad-frame.h".
6386 (vax_frame_init_saved_regs): Remove function.
6387 (vax_sigtramp_saved_pc): Remove function.
6388 (vax_frame_saved_pc): Remove function.
6389 (vax_frame_args_address): Remove function.
6390 (vax_frame_num_args): Rewrite.
6391 (vax_frame_chain): Remove function.
6392 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6393 VAX_FP_REGNUM.
6394 (vax_pop_frame): Likewise.
6395 (vax_saved_pc_after_call): Remove function.
6396 (struct vax_frame_cache): New structure.
6397 (vax_frame_cache): New function.
6398 (vax_frame_this_id): New function.
6399 (vax_frame_prev_register): New function.
6400 (vax_frame_unwind): New variable.
6401 (vax_frame_sniffer): New function.
6402 (vax_frame_base_address): New function.
6403 (vax_frame_args_address): New function.
6404 (vax_frame_base): New variable.
6405 (vax_unwind_pc): New function.
6406 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6407 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6408 deprecated_frame_chain, deprecated_frame_saved_pc,
6409 deprecated_frame_args_address and
6410 deprecated_frame_init_saved_regs.
6411 * Makefile.in (vax-tdep.o): Update dependencies.
6412
53284fc1
MK
6413 * vaxbsd-nat.c: New file.
6414
5e6b39ff
MK
6415 * vax-tdep.h: Update copyright year. Adjust comments.
6416 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6417 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6418 (vax_regnum): New enum. Replacing...
6419 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6420 (VAX_PS_REGNUM): ... these removed macros.
6421 * vax-tdep.c (vax_register_name): Remove prototype.
6422 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6423 (vax_register_byte, vax_register_raw_size,
6424 vax_register_virtual_size, vax_register_virtual_type): Remove
6425 functions.
6426 (vax_register_type): New function.
6427 (vax_breakpoint_from_pc): Reorganize.
6428 (vax_gdbarch_init): Set register_type. Don't set
6429 deprecated_register_size, deprecated_register_bytes,
6430 deprecated_register_byte, deprecated_register_raw_size,
6431 deprecated_max_register_raw_size,
6432 deprecated_register_virtual_size,
6433 deprecated_max_register_virtual_size and
6434 deprecated_register_virtual_type. Add comment on stack direction.
6435
e9c71e9f
MK
64362004-04-11 Mark Kettenis <kettenis@gnu.org>
6437
6438 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6439 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6440 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6441
d46f1176 64422004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6443
d46f1176
RC
6444 * MAINTAINERS (write after approval): Add myself.
6445
a2a84a72
RC
64462004-04-07 Randolph Chung <tausq@debian.org>
6447
6448 * hppa-tdep.c (hppa_inner_than): Remove.
6449 (is_pa_2): Remove unused static variable.
8718a420 6450 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6451
e85c3284
PH
64522004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6453
6454 * language.h (language_defn): Add new la_post_parser field.
6455 * parser-defs.h (null_post_parser): New declaration (default for
6456 la_post_parser).
8718a420 6457
e85c3284
PH
6458 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6459 insert call to that function.
6460 (parse_exp_in_context): New function, including code formerly in
8718a420 6461 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6462 prefixification.
6463 (parse_expression_in_context): New exported function.
6464 (null_post_parser): New definition.
6465 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6466
e85c3284
PH
6467 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6468 * c-lang.c (c_language_defn): Ditto.
6469 (cplus_language_defn): Ditto.
6470 (asm_language_defn): Ditto.
6471 (minimal_language_defn): Ditto.
6472 * f-lang.c (f_language_defn): Ditto.
6473 * jv-lang.c (java_language_defn): Ditto.
6474 * language.c (unknown_language_defn): Ditto.
6475 (auto_language_defn): Ditto.
6476 (local_language_defn): Ditto.
6477 * m2-lang.c (m2_language_defn): Ditto.
6478 * scm-lang.c (scm_language_defn): Ditto.
6479 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6480
d9f8c85b
MK
64812004-04-10 Mark Kettenis <kettenis@gnu.org>
6482
fa34704a
MK
6483 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6484 (amd64nbsd_mcontext_addr): New function.
6485 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6486 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6487 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6488
403e1656
MK
6489 * corelow.c (core_xfer_partial): Fix coding standards violation.
6490 Add support for TARGET_OBJECT_WCOOKIE.
6491
a57e5a95
MK
6492 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6493 deprecated_pc_in_sigtramp.
6494 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6495 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6496 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6497 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6498 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6499 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6500 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6501
377d9ebd
MK
6502 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6503 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6504 Fix typo.
6505
f0ef85a5
MK
6506 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6507 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6508 (amd64_collect_fxsave): Likewise.
6509
d9f8c85b
MK
6510 * i386-sol2-tdep.c: Include "gdb_string.h".
6511 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6512 name.
6513 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6514
75f501b5
MK
65152004-04-10 Mark Kettenis <kettenis@gnu.org>
6516
6517 * i386-sol2-tdep.c: Include "solib-svr4.h".
6518 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6519 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6520 * config/i386/tm-i386sol2.h: Include :solib.h".
6521 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6522 solib-svr4.o and solib-legacy.o.
6523 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6524 solib-svr4.o.
6525
b31bc724
MK
65262004-04-09 Mark Kettenis <kettenis@gnu.org>
6527
18bbbd9e
MK
6528 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6529 whether a register is supplied by PTRACE_GETFPREGS.
6530 (store_inferior_registers): Likewise.
6531 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6532 whether a register is supplied by PT_GETFPREGS.
6533 (store_inferior_registers): Likewise.
6534
3c30bf1b
MK
6535 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6536 * config/i386/linux64.mt (TDEPFILES): Likewise.
6537
a4194092
MK
6538 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6539
911bc6ee
MK
6540 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6541 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6542 the program counter is in the range specified by `struct
6543 gdbarch_tdep'.
6544 * amd64-linux-tdep.c: Include "symtab.h".
6545 (amd64_linux_pc_in_sigtramp): Remove function.
6546 (amd64_linux_sigtramp_p): New function.
6547 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6548 deprecated_pc_in_sigtramp.
6549 * amd64nbsd-tdep.c: Include "symtab.h".
6550 (amd64nbsd_sigtramp_p): New function.
6551 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6552 deprecated_pc_in_sigtramp.
6553 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6554 few comments.
6555 (amd64obsd_pc_in_sigtramp): Remove function.
6556 (amd64obsd_sigtramp_p): New function.
6557 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6558 deprecated_pc_in_sigtramp.
6559 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6560 (i386bsd_pc_ins_sigtramp): Remove prototype.
6561 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6562 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6563 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6564 the program counter is in the range specified by `struct
6565 gdbarch_tdep'.
6566 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6567 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6568 (i386_go32_pc_in_sigtramp): Remove function.
6569 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6570 Initialize TDEP->sigtramp_p.
6571 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6572 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6573 deprecated_pc_in_sigtramp.
6574 * i386-linux-tdep.c: Adjust comments.
6575 (i386_linux_pc_in_sigtramp): Remove function.
6576 (i386_linux_sigtramp_p): New function.
6577 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6578 deprecated_pc_in_sigtramp.
6579 * i386-nto-tdep.c: Update copyright year.
6580 (i386nto_pc_in_sigtramp): Remove function.
6581 (i386nto_sigtramp_p): New function.
6582 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6583 SP_REGNUM.
6584 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6585 deprecated_pc_in_sigtramp.
6586 * i386-sol2-tdep.c: Update copyright year.
6587 (i386_sol2_pc_in_sigtramp): Remove function.
6588 (i386_sol2_sigtramp_p): New function.
6589 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6590 deprecated_pc_in_sigtramp.
6591 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6592 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6593 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6594 deprecated_sigtramp_start and deprecated_sigtramp_end.
6595 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6596 (i386nbsd_pc_in_sigtramp): Remove function.
6597 (i386nbsd_sigtramp_p): New function.
6598 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6599 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6600 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6601 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6602 (i386obsd_pc_in_sigtramp): Remove function.
6603 (i386obsd_sigtramp_p): New function.
6604 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6605 functions.
6606 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6607 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6608 TDEP->sigtramp_p.
6609 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6610 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6611 dependencies.
6612
e083e6ec
MK
6613 * config/i386/i386aout.mt: Remove file.
6614
bd153b94
MK
6615 * configure.tgt: Remove i[34567]86-*-go32*,
6616 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6617 and i[34567]86-*-isc*. Set gdb_target to i386 for
6618 i[34567]86-*-netware* and i[34567]86-*-*.
6619 * config/i386/i386.mt: New file.
6620 * config/i386/embed.mt: Remove file.
6621 * config/i386/go32.mt: Remove file.
6622 * config/i386/i386nw.mt: Remove file.
6623 * config/i386/i386v.mt: Remove file.
6624 * config/i386/tm-go32.h: Remove file.
6625
4a1bcc8c
MK
6626 * tui/tui-hooks.c: Include "readline/readline.h" after
6627 "gdb_curses.h" instead of before.
6628 * tui/tui-io.c: Likewise.
6629
f9a79064
MK
6630 * tui/tui.c: Fix typo in comment.
6631
b31bc724
MK
6632 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6633
f83f82bc
AC
66342004-04-08 Andrew Cagney <cagney@redhat.com>
6635
6636 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6637 (deprecated_exception_support_initialized): Declare.
8718a420 6638 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6639 (initialize_hp_cxx_exception_support)
6640 (child_enable_exception_callback): Update.
6641 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6642 (deprecated_exception_support_initialized): Rename
6643 deprecated_exception_catchpoints_are_fragile and
6644 deprecated_exception_support_initialized.
6645 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6646
6647 * symtab.c (deprecated_hp_som_som_object_present): Rename
6648 hp_som_som_object_present.
6649 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6650 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6651 Update. Delete extern declaration.
6652 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6653 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6654 (parse_nested_classes_for_hpacc): Ditto.
6655 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6656 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6657 (initialize_hp_cxx_exception_support): Ditto.
6658 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6659 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6660 (cp_print_class_method): Ditto.
8718a420 6661 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6662 (c_type_print_base): Ditto.
6663 * c-exp.y (hp_som_som_object_present): Ditto.
6664
fb2be677
AC
66652004-04-08 Andrew Cagney <cagney@redhat.com>
6666
6667 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6668 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6669 (frame_unwind_find_by_frame): Re-implement the unwind code so
6670 that it can both prepend and append sniffers. Replace
6671 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6672 * tramp-frame.c (tramp_frame_append): Use
6673 frame_unwind_prepend_unwinder.
6674 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6675 frame_unwind_register_unwinder.
6676 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6677 tramp_frame_append.
6678 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6679 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6680 (mips_linux_init_abi): Update.
6681
67faf007
KB
66822004-04-08 Kevin Buettner <kevinb@redhat.com>
6683
6684 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6685 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6686 file support.
6687
8973ff21
KB
66882004-04-07 Kevin Buettner <kevinb@redhat.com>
6689
6690 * ia64-tdep.c (elf.h): Don't include.
6691 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6692
4a0e2f88
JM
66932004-04-07 Jason Molenda (jmolenda@apple.com)
6694
6695 * frame.h: Typeo corrections in comments.
6696
9872ad24
JB
66972004-04-07 Jim Blandy <jimb@redhat.com>
6698
6699 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6700 %esp and %ebp
6701
70b216c8
MK
67022004-04-07 Mark Kettenis <kettenis@gnu.org>
6703
11d5789c
MK
6704 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6705 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6706 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6707 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6708 and solib-legacy.o.
6709 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6710 solib-svr4.o.
6711 * config/sparc/tm-sol2.h: Update copyright year. Include
6712 "solib.h".
6713
70b216c8
MK
6714 * sparc-sol2-tdep.c: Update copyright year. Include
6715 "solib-svr4.h".
6716 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6717 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6718 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6719 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6720 dependencies.
6721
6339dc9e
AC
67222004-04-06 Andrew Cagney <cagney@redhat.com>
6723
6724 * infttrace.c: Include "infttrace.h".
6725 * infttrace.h: Include "target.h".
6726 * Makefile.in (infttrace_h): Update.
6727 (infttrace.o): Update.
8718a420 6728
93449403
AC
67292004-04-06 Andrew Cagney <cagney@redhat.com>
6730
6d518969
AC
6731 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6732 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6733 move extern declarations from here ...
6734 * infttrace.h: ... to here.
6735 * Makefile.in (hppah-nat.o): Update dependencies.
6736
85f4f2d8
AC
6737 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6738 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6739 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6740 (hppa_breakpoint_from_pc): Delete.
6741
93449403
AC
6742 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6743
71456ec6
AC
67442004-04-05 Andrew Cagney <cagney@redhat.com>
6745
6746 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6747 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6748 <sys/file.h>.
8718a420 6749
4c02c60c
AC
67502004-04-06 Randolph Chung <tausq@debian.org>
6751
6752 Committed by Andrew Cagney (mechanical change).
6753 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6754 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6755 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6756 child_enable_exception_callback, current_ex_event,
6757 null_symtab_and_line, child_get_current_exception_event,
6758 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6759 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6760 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6761 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6762 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6763 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6764 Move hpux-specific definitions ...
6765 * hppa-hpux-tdep.c: ... to here.
6766
3a515653
AC
67672004-04-05 Andrew Cagney <cagney@redhat.com>
6768
6769 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6770 skip_prologue_using_sal.
6771
c1730d02
AC
67722004-04-05 Andrew Cagney <cagney@redhat.com>
6773
6774 * config/i386/tm-i386.h: Delete file.
6775 * config/i386/tm-vxworks.h: Update copyright, do not include
6776 "tm-i386.h".
6777 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6778 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6779 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6780 * config/i386/ncr3000.mt (TM_FILE): Delete.
6781 * config/i386/interix.mt (TM_FILE): Delete.
6782 * config/i386/i386v.mt (TM_FILE): Delete.
6783 * config/i386/i386nw.mt (TM_FILE): Delete.
6784 * config/i386/i386gnu.mt (TM_FILE): Delete.
6785 * config/i386/i386aout.mt (TM_FILE): Delete.
6786 * config/i386/embed.mt (TM_FILE): Delete.
6787
8b67aa36
KB
67882004-04-05 Kevin Buettner <kevinb@redhat.com>
6789
6790 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6791 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6792 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6793 (accg7_regnum): New constants.
6794 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6795 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6796 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6797 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6798 for accg registers.
6799 (frv_register_sim_regno): Update spr_map[].
6800
3c7012f5
AC
68012004-04-04 Andrew Cagney <cagney@redhat.com>
6802
6803 * config/mips/xm-riscos.h: Delete.
6804 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6805 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6806 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6807 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6808 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6809 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6810 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6811 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6812 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6813 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6814 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6815 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6816 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6817 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6818 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6819 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6820 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6821 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6822 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6823 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6824 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6825 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6826 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6827 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6828 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6829 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6830
3c7012f5
AC
6831 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6832 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6833 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6834 * configure.host: Remove m680[01]0-sun-sunos3*,
6835 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6836 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6837 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6838 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6839 mips-*-riscos*.
6840 * NEWS: Mention removed systems.
6841
99d16a21
AC
68422004-04-04 Andrew Cagney <cagney@redhat.com>
6843
6844 GDB 6.1 release created from 6.1 branch.
6845
6cdf9d98
AC
68462004-04-04 Andrew Cagney <cagney@redhat.com>
6847
98d346c3
AC
6848 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6849 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6850 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6851
6cdf9d98
AC
6852 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6853 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6854 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6855
859a326d
JB
68562004-04-03 Jim Blandy <jimb@redhat.com>
6857
6858 * MAINTAINERS: Chris Faylor has changed employers; add him to
6859 "paper trail" section, and update his E-mail address.
6860
b87178c3
AC
68612004-04-03 Andrew Cagney <cagney@redhat.com>
6862
4ea2acf0
AC
6863 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6864 generic dummy frames.
6865 * dummy-frame.c: Update copyright.
6866 (dummy_frame_sniffer): Delete check for generic dummy frames.
6867
d0bd2d18 6868 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6869 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6870 (REG_PARM_STACK_SPACE): Delete.
6871 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6872 Inline reference to REG_PARM_STACK_SPACE.
6873
b87178c3
AC
6874 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6875 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6876 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6877 (FRAME_BASE_BEFORE_SIGTRAMP)
6878 (hppa32_hpux_frame_base_before_sigtramp)
6879 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6880 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6881 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6882 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6883 (FRAME_BASE_BEFORE_SIGTRAMP)
6884 (hppa64_hpux_frame_base_before_sigtramp)
6885 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6886
43e2e1a0
AC
68872004-04-03 Andrew Cagney <cagney@redhat.com>
6888
6889 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6890
ddc135a4
AC
68912004-04-02 Andrew Cagney <cagney@redhat.com>
6892
6893 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6894 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6895 * dummy-frame.h: Delete out-of-date comments.
6896 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6897 * gdbarch.h, gdbarch.c: Re-generate.
6898
d15bfd3a 68992004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6900
d15bfd3a
AC
6901 Committed by Andrew Cagney <cagney@redhat.com>.
6902 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6903 into account an instruction saving a register if we have already
6904 seen an earlier instruction saving that same register.
6905
f04ceafa
AC
69062004-04-02 Andrew Cagney <cagney@redhat.com>
6907
08be3abd
AC
6908 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6909 * gdbarch.h, gdbarch.c: Re-generate.
6910 * frame.c (legacy_get_prev_frame): Delete references to
6911 DEPRECATED_INIT_FRAME_PC_FIRST.
6912
f04ceafa
AC
6913 * infrun.c (pc_in_sigtramp): Delete function.
6914 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6915 get_frame_type.
6916
08e69816
AC
69172004-04-02 Andrew Cagney <cagney@redhat.com>
6918
6919 * infrun.c (handle_step_into_function): Delete code conditional on
6920 legacy_frame_p.
6921 (handle_inferior_event, step_over_function): Ditto.
6922
adb54772
AC
69232004-04-02 Andrew Cagney <cagney@redhat.com>
6924
6925 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6926 "previous frame inner to this frame" test.
6927
304396fb
AC
69282004-04-02 Andrew Cagney <cagney@redhat.com>
6929
6930 * frame.c (safe_frame_unwind_memory): New function.
6931 * frame.h (safe_frame_unwind_memory): Declare. Update description
6932 of /safe_/ methods.
6933 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6934 "next_frame". Use safe_frame_unwind_memory.
6935 (tramp_frame_sniffer): Update call to tramp_frame_start.
6936
6502dd73
DJ
69372004-04-01 Daniel Jacobowitz <drow@mvista.com>
6938
6939 * dwarf2read.c (dwarf2_objfile_data_key): New.
6940 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6941 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6942 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6943 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6944 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6945 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6946 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6947 Remove variables.
6948 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6949 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6950 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6951 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6952 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6953 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6954 Remove macros.
6955 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6956 data.
6957 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6958 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6959 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6960 (read_partial_die, read_full_die, read_indirect_string)
6961 (dwarf_decode_line_header, dwarf_decode_macros)
6962 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6963 Update uses of removed variables.
6964 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6965 of removed macros.
6966 (_initialize_dwarf2_read): New function.
6967 * symfile.h (dwarf2_has_info): Update prototype.
6968 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6969 * elfread.c (elf_symfile_read): Likewise.
6970
408752b0
JB
69712004-04-01 Jim Blandy <jimb@redhat.com>
6972
9f744501
JB
6973 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6974 function for register numbers on all the rs6000-derived targets.
6975 (rs6000_gdbarch_init): Don't register a separate
6976 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6977 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6978 variants.
6979
408752b0
JB
6980 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6981 numbering.
6982
2de41bce
PH
69832004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6984
6985 * valarith.c: Update copyright notice.
6986 (value_add): Handle range types.
6987 (value_sub): Ditto.
6988 (value_equal): Ditto.
6989 (value_less): Ditto.
6990 (value_neg): Ditto.
6991 (value_complement): Ditto.
8718a420 6992 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6993 eliminiating unnecessary COERCE_ENUMs.
8718a420 6994
5613d8d3
AC
69952004-03-31 Andrew Cagney <cagney@redhat.com>
6996
6997 * frame.h (frame_unwind_id): Declare.
6998 * frame.c (frame_unwind_id): New function.
6999 (get_prev_frame_1): New function.
7000 (frame_debug_got_null_frame): New function.
7001 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7002 code proper to prev_frame, update description.
7003 * infrun.c (step_over_function): Use frame_unwind_id.
7004
c4557624
JB
70052004-04-31 J. Brobecker <brobecker@gnat.com>
7006
7007 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7008 (hppa64_push_dummy_call): Likewise.
7009
3e6bb910
JB
70102004-03-30 Jim Blandy <jimb@redhat.com>
7011
7012 From Ulrich Weigand:
7013 * utils.c (query): Do not use a va_list variable multiple times.
7014
a2f23071
DJ
70152004-03-29 Daniel Jacobowitz <drow@mvista.com>
7016
7017 * Makefile.in (linux_nat_h): Update dependencies.
7018 * configure.in: Check for <gnu/libc-version.h>.
7019 * configure: Regenerate.
7020 * config.in: Regenerate.
7021 * linux-nat.h: Include "target.h". Add waitstatus field to
7022 struct lwp_info.
7023 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7024 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7025 to.
7026 (lin_lwp_handle_extended): New function. Handle clone events.
7027 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7028 thread exit events.
7029 (child_wait): Handle clone events.
7030 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7031 * linux-nat.c (linux_enable_event_reporting): Turn on
7032 PTRACE_O_TRACECLONE.
7033 (linux_handle_extended_wait): Handle clone events.
7034 * thread-db.c: Include <gnu/libc-version.h>.
7035 (struct private_thread_info): Add dying flag.
7036 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7037 higher.
7038 (attach_thread): Update comments. Handle dying threads.
7039 (detach_thread): Set the dying flag.
7040 (check_event): Always call attach_thread.
7041
8d5f9dcb
DJ
70422004-03-29 Daniel Jacobowitz <drow@mvista.com>
7043
7044 * mips-tdep.c (mips_pdr_data): New.
7045 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7046 (_initialize_mips_tdep): Initialize mips_pdr_data.
7047
66337bb1
CV
70482004-03-29 Corinna Vinschen <vinschen@redhat.com>
7049
7050 * minsyms.c (install_minimal_symbols): Move dropping leading
7051 char from linkage name from here...
7052 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7053 test for "__gnu_compiled*" symbols.
7054
e802b915
JB
70552004-03-28 Jim Blandy <jimb@redhat.com>
7056
7057 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7058 registers to temp register r0 and byte stores as prologue
7059 instructions.
7060
72b56458
AC
70612004-03-28 Andrew Cagney <cagney@redhat.com>
7062
7063 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7064 arm*-*-*.
7065
0bfbda3b
SC
70662004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7067
7068 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7069 and switch the layout to force a display of register window.
7070
5a7225ed
JB
70712004-02-26 J. Brobecker <brobecker@gnat.com>
7072
7073 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7074 of the INTEGER class.
7075
81a07a45
JB
70762004-03-26 Jim Blandy <jimb@redhat.com>
7077
7078 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7079 bytes long on PPC GNU/Linux.
7080
8c691c7a
DC
70812004-03-26 David Carlton <carlton@kealia.com>
7082
7083 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7084
103a0089
AC
70852004-03-25 Andrew Cagney <cagney@redhat.com>
7086
7087 * PROBLEMS: Add general section titles, remove references to
7088 specific releases.
7089
7a5ea0d4
DJ
70902004-03-25 Daniel Jacobowitz <drow@mvista.com>
7091
7092 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7093 INT_REGISTER_SIZE.
7094 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7095 FP_REGISTER_VIRTUAL_SIZE.
7096 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7097 of DEPRECATED_REGISTER_RAW_SIZE.
7098 (arm_register_type): Add gdbarch argument.
7099 (arm_register_raw_size, arm_register_virtual_size): Delete.
7100 (arm_register_byte, arm_extract_return_value)
7101 (arm_store_return_value, arm_get_longjmp_target): Update references
7102 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7103 (arm_gdbarch_init): Likewise. Don't set
7104 deprecated_register_raw_size, deprecated_register_virtual_size,
7105 deprecated_max_register_raw_size,
7106 deprecated_max_register_virtual_size, or
7107 deprecated_max_register_virtual_type. Do set register_type.
7108 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7109 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7110 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7111 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7112 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7113 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7114 INT_REGISTER_SIZE.
7115 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7116 (remote_rdp_store_register): Likewise.
7117
5792a79b
DJ
71182004-03-24 Daniel Jacobowitz <drow@mvista.com>
7119
7120 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7121 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7122 to after osabi initialization.
7123 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7124 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7125 functions.
7126 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7127 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7128 variables.
7129 (mips_linux_init_abi): Append signal trampoline unwinders.
7130
1196bfda
AC
71312004-03-24 Andrew Cagney <cagney@redhat.com>
7132
7133 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7134 * tramp-frame.c: Include "gdb_assert.h".
7135 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7136 correct sizeof.
7137 (tramp_frame_append): Validate the tramp frame's instructions.
7138 * Makefile.in (tramp-frame.o): Update dependencies.
7139
4be282b4
AC
71402004-03-23 Andrew Cagney <cagney@redhat.com>
7141
7142 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7143
69aec09b
AC
71442004-03-23 Andrew Cagney <cagney@redhat.com>
7145
7146 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7147 Nasser as past testsuite/lib/ (and other) maintainers.
7148
63ed89b4
DJ
71492004-03-23 Daniel Jacobowitz <drow@mvista.com>
7150
7151 * infcmd.c (attach_command): Reread symbols if we already have
7152 an exec file.
7153
f3b36427
AC
71542004-03-23 Andrew Cagney <cagney@redhat.com>
7155
7156 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7157
aa2a3f87
AC
71582004-03-23 Andrew Cagney <cagney@redhat.com>
7159
7160 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7161 * gdbarch.h, gdbarch.c: Re-generate.
7162 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7163 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7164 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 7165 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 7166 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 7167 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
7168 (DEPRECATED_SIGTRAMP_START): Update.
7169 * blockframe.c (find_pc_sect_partial_function): Update.
7170 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7171
00cac895
DJ
71722004-03-23 Daniel Jacobowitz <drow@mvista.com>
7173
7174 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7175 if necessary.
7176
f561f026
AC
71772004-03-23 Andrew Cagney <cagney@redhat.com>
7178
7179 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7180 predicate, deprecate.
7181 * gdbarch.h, gdbarch.c: Re-generate.
7182 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7183 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7184 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7185 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7186 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7187 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7188 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7189 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7190 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7191 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7192 * blockframe.c (find_pc_partial_function): Update.
7193 * breakpoint.c (bpstat_what): Update.
7194 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7195 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7196 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7197 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7198 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7199 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7200 * i386-nto-tdep.c (i386nto_init_abi): Update.
7201 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7202 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7203 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7204 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7205 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7206 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7207 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7208 * infrun.c (pc_in_sigtramp): Update.
7209 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7210 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7211 * mips-tdep.c (mips_gdbarch_init): Update.
7212 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7213 * ppc-linux-tdep.c: Update comment.
7214 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7215 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7216 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7217 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7218 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7219 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7220 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7221 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7222 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7223 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 7224
8050c72f
AC
72252004-03-23 Andrew Cagney <cagney@redhat.com>
7226
d2259dd3
AC
7227 * tramp-frame.h, tramp-frame.h: New files.
7228 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7229 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7230
8050c72f
AC
7231 * Makefile.in: Update all dependencies.
7232
0db9b4b7
AC
72332004-03-23 Andrew Cagney <cagney@redhat.com>
7234
7235 * Makefile.in (trad_frame_h): Add $(frame_h).
7236 * trad-frame.h: Update copyright. Include "frame.h".
7237 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7238 (trad_frame_set_id, trad_frame_get_id): Declare.
7239 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7240 * trad-frame.c: Update copyright.
7241 (struct trad_frame_cache): Define.
7242 (trad_frame_cache_zalloc): New function.
7243 (trad_frame_set_id, trad_frame_get_id): New functions.
7244 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 7245
8e645ae7
AC
72462004-03-22 Andrew Cagney <cagney@redhat.com>
7247
7248 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7249 s390_pltstub_unwind_cache.
7250 (s390_stub_frame_unwind_cache): Rename
7251 s390_pltstub_frame_unwind_cache.
7252 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7253 (s390_stub_frame_prev_register): Rename
7254 s390_pltstub_frame_prev_register.
7255 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7256 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7257
7258 From Ulrich Weigand:
7259 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7260 pointer calls like PLT calls.
7261
34fcf120
DJ
72622004-03-22 Daniel Jacobowitz <drow@mvista.com>
7263
7264 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7265 PC rather than the partial function start address. Use the start
7266 address to sanity check the found PDR.
7267
5b917078
DJ
72682004-03-22 Daniel Jacobowitz <drow@mvista.com>
7269
7270 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7271 linux_handle_extended_wait.
7272
8adf9e78
AC
72732004-03-22 Andrew Cagney <cagney@redhat.com>
7274
c3122434
AC
7275 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7276 function.
7277
8adf9e78
AC
7278 * frame.h (generic_pop_current_frame): Delete declaration.
7279 (deprecate_pop_dummy_frame): Deprecate
7280 generic_pop_dummy_frame.
7281 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7282 (generic_pop_current_frame): Delete function.
7283 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7284 generic_pop_current_frame.
7285 * v850-tdep.c (v850_pop_frame): Update.
7286 * mcore-tdep.c (mcore_pop_frame): Update.
7287 * sh64-tdep.c (sh64_pop_frame): Update.
7288 * h8300-tdep.c (h8300_pop_frame): Update.
7289
90ba813f
AC
72902004-03-22 Andrew Cagney <cagney@redhat.com>
7291
7292 * frame.h (deprecated_pc_in_call_dummy): Rename
7293 generic_pc_in_call_dummy.
7294 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7295 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7296 generic_pc_in_call_dummy.
7297 (pc_in_dummy_frame): Make static.
7298 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7299 * gdbarch.h, gdbarch.c: Re-generate.
7300 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7301 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7302 (legacy_get_prev_frame): Ditto.
7303 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7304 comment.
8718a420 7305
ca4bb888
AC
73062004-03-21 Andrew Cagney <cagney@redhat.com>
7307
244675f9
AC
7308 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7309 declaration and out-of-date comment.
7310 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7311 Delete function.
7312 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7313 deprecated_pc_in_call_dummy.
7314
ca4bb888
AC
7315 * infrun.c (handle_inferior_event): For non legacy frames, use the
7316 frame ID and frame type to identify a signal trampoline. Update
7317 comments.
7318
1777c7b4
NW
73192004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7320
7321 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7322 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7323
82417da5
AC
73242004-03-21 Andrew Cagney <cagney@redhat.com>
7325
7326 * frame-unwind.h: Update copyright.
7327 (struct frame_data): Add opaque declaration.
7328 (frame_sniffer_ftype): Declare.
7329 (struct frame_unwind): Add "unwind_data" and "sniffer".
7330 (frame_unwind_register_unwinder): Declare.
7331 (frame_unwind_find_by_frame): Add parameter "this_cache".
7332 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7333 (legacy_get_prev_frame, legacy_get_prev_frame)
7334 (get_frame_type): Pass the prologue_cache to
7335 frame_unwind_find_by_frame.
7336 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7337 "unwinder".
7338 (frame_unwind_register_unwinder): New function.
7339 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7340
b2ba182e
PH
73412004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7342
7343 * bcache.c (print_percentage): Use floating point to avoid
7344 incorrect results when portion*100 overflows.
7345
81332287
KB
73462004-03-19 Kevin Buettner <kevinb@redhat.com>
7347
7348 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7349 (ppc_linux_init_extra_frame_info)
7350 (ppc_linux_frameless_function_invocation)
7351 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7352 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7353 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7354 (rs6000_frame_chain): Delete declarations.
7355 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7356 (ppc_linux_init_extra_frame_info)
7357 (ppc_linux_frameless_function_invocation)
7358 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7359 (ppc_linux_init_abi): Remove registration of above deleted functions.
7360 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7361 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7362 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7363 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7364 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7365 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7366 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7367 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7368 frame management for all OSABIs.
7369
61a65099
KB
73702004-03-19 Andrew Cagney <cagney@redhat.com>
7371
7372 Committed by Kevin Buettner <kevinb@redhat.com>.
7373
7374 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7375 Update copyright.
7376 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7377 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7378 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7379 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7380 unwinders. #ifdef legacy frame code.
7381 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7382 "frame-base.h".
7383 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7384 (struct rs6000_frame_cache, rs6000_frame_cache)
7385 (rs6000_frame_this_id, rs6000_frame_prev_register)
7386 (rs6000_frame_sniffer, rs6000_frame_unwind)
7387 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7388 (rs6000_frame_base): Implement a traditional frame unwinder.
7389 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7390 frame unwinder.
7391
88f7da05
KB
73922004-03-19 Kevin Buettner <kevinb@redhat.com>
7393
7394 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7395 breakpoint address for watchpoints or the catch eventpoints.
7396 Add new paramter ``bptype''. Adjust all callers.
7397
f826dce1
AC
73982004-03-19 Andrew Cagney <cagney@redhat.com>
7399
33cb8b0f
AC
7400 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7401
f826dce1
AC
7402 * PROBLEMS: Delete note that ARM does not use frame code, problem
7403 fixed.
7404
43b1ab88
AC
74052004-03-18 Andrew Cagney <cagney@redhat.com>
7406
292ab034
AC
7407 * stack.c (return_command): Delete code wrapped in #ifdef
7408 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7409
43b1ab88
AC
7410 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7411
dbfe4626
AC
74122004-03-18 Andrew Cagney <cagney@redhat.com>
7413
7414 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7415 DEPRECATED_IN_SIGTRAMP.
7416 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7417 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7418 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7419 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7420 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7421 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7422 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7423 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7424 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7425 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7426
0cad6aec
AC
74272004-03-18 Andrew Cagney <cagney@redhat.com>
7428
7429 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7430 (struct frame_base_table_entry): Define.
7431 (struct frame_base_table): Re-implement as a linked list.
7432 (frame_base_init): Re-implement.
7433 (frame_base_table): Delete function.
7434 (append_predicate): Delete function.
7435 (frame_base_append_sniffer): Update.
7436 (frame_base_set_default): Update.
7437 (frame_base_find_by_frame): Update.
7438 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7439 * Makefile.in (frame-base.o): Update dependencies.
7440
9982c2e7
AC
74412004-03-17 Andrew Cagney <cagney@redhat.com>
7442
7443 * frame.c (legacy_get_prev_frame): Pass correct frame to
7444 frame_unwind_find_by_frame.
7445
8dfe8985
DC
74462004-03-17 David Carlton <carlton@kealia.com>
7447
7448 * NEWS: Mention C++ nested types and namespaces
7449
ed47347a
MC
74502004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7451
7452 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7453 and "Regressions since gdb 5.3.". Add known regressions since
7454 gdb 6.0.
7455
90aeadfc
DC
74562004-03-16 David Carlton <carlton@kealia.com>
7457
7458 * dwarf2read.c (process_structure_scope): Process children even
7459 when we're a declaration.
7460
73912b9b
AC
74612004-03-16 Andrew Cagney <cagney@redhat.com>
7462
7463 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7464 * blockframe.c (find_pc_partial_function)
7465 (find_pc_sect_partial_function): Merge into a single
7466 find_pc_partial_function.
7467
283accbc
MK
74682004-03-16 Mark Kettenis <kettenis@gnu.org>
7469
7470 * i386bsd-nat.c: s/regno/regnum/g.
7471 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7472 FP0_REGNUM.
7473 (store_inferior_registers): Likewise.
7474
f5b1afdf
MK
74752004-03-16 Mark Kettenis <kettenis@gnu.org>
7476
7477 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7478 of i387_fill_fsave.
7479 (store_inferior_registers): Call i387_collect_fsave and
7480 i387_collect_fxsave instead of i387_fill_fsave and
7481 i387_fill_fxsave.
7482
41fe5eb3
AC
74832004-03-15 Andrew Cagney <cagney@redhat.com>
7484
7485 * Makefile.in (frame-unwind.o): Update dependencies.
7486 * frame-unwind.c: Include "gdb_obstack.h".
7487 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7488 parameter.
7489 (append_predicate): Delete function.
7490 (struct frame_unwind_table_entry): New structure.
7491 (struct frame_unwind_table): Replace "sniffer" with "head" and
7492 "tail".
7493 (frame_unwind_append_sniffer): Update.
7494 (frame_unwind_find_by_frame): Update.
7495 (_initialize_frame_unwind): Registe frame_unwind_init using
7496 gdbarch_data_register_pre_init.
7497
3f63813d
MK
74982004-03-15 Mark Kettenis <kettenis@gnu.org>
7499
7500 * i386bsd-nat.c: Update copyright year.
7501 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7502 define unconditionally.
7503
3248c325 75042004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7505
7506 * i387-tdep.h (i387_collect_fsave): New prototype.
7507 * i387-tdep.c (i387_collect_fsave): New function containing most
7508 of the code from i387_fill_fsave.
3248c325 7509 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7510
871fbe6a
MK
75112004-03-15 Mark Kettenis <kettenis@gnu.org>
7512
7513 * i386-linux-tdep.c: Update copyright year.
7514 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7515 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7516 svr4_ilp32_link_map_offsets instead of
7517 i386_linux_svr4_fetch_link_map_offsets.
7518
8176b9b8
DC
75192004-03-15 David Carlton <carlton@kealia.com>
7520
7521 Fix for PR c++/1553:
7522 * dwarf2read.c (read_structure_type): Determine type name by
7523 calling determine_class_name.
7524 (determine_class_name): New.
7525 (determine_prefix): Look at TYPE_TAG_NAME and call
7526 determine_class_name when appropriate.
7527 (determine_prefix_aux, class_name): Delete.
9d58e29d 7528 (read_namespace): Set die->type.
8176b9b8 7529
fe8bf7d7
KB
75302004-03-15 Kevin Buettner <kevinb@redhat.com>
7531
7532 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7533 unused macro definition. The definition in target.h (or perhaps
7534 elsewhere) takes precedence.
7535
ed6edd9b
AC
75362004-03-15 Andrew Cagney <cagney@redhat.com>
7537
f9be684a
AC
7538 * ppc-tdep.h: Update copyright.
7539 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7540 function signatures to match "regsets.h".
7541 * ppc-linux-tdep.c: Include "regset.h".
7542 (ELF_GREGSET_SIZE): Delete.
7543 (right_supply_register): New function.
7544 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7545 using right_supply_register.
7546 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7547 functions.
7548 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7549 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7550 (_initialize_ppc_linux_tdep): Do not register
7551 ppc_linux_regset_core_fns.
7552 (ppc_linux_regset_from_core_section): Replace
7553 fetch_core_registers.
7554 (ppc_linux_regset_core_fns): Delete.
7555 * ppc-linux-nat.c: (right_fill_reg): New function.
7556 (supply_gregset): Update call to ppc_linux_supply_gregset.
7557 (fill_gregset): Clear the register set, use right_fill_reg.
7558 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7559 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7560
ed6edd9b
AC
7561 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7562 unsigned.
7563
030f20e1
AC
75642004-03-15 Andrew Cagney <cagney@redhat.com>
7565
7566 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7567 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7568 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7569 and register_gdbarch_data.
7570 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7571 (struct gdbarch_data): Replace "init" by "pre_init" and
7572 "post_init".
7573 * gdbarch.h, gdbarch.c: Re-generate.
7574 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7575 with"obstack", use OBSTACK_ZALLOC.
7576 (dwarf2_frame_ops): Delete.
7577 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7578 (dwarf2_frame_init_reg): Use gdbarch_data.
7579 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7580 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7581 (_initialize_svr4_solib): Update.
7582 * user-regs.c (_initialize_user_regs): Update.
7583 * reggroups.c (_initialize_reggroup): Update.
7584 * regcache.c (_initialize_regcache): Update.
7585 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7586 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7587 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7588 * frame-unwind.c (_initialize_frame_unwind): Update.
7589 * frame-base.c (_initialize_frame_base): Update.
7590 * user-regs.c (user_reg_add): Update.
7591 * reggroups.c (reggroup_add): Update.
7592 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7593 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7594 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7595 * frame-base.c (frame_base_table): Update.
7596 * remote.c (_initialize_remote): Update.
7597 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7598
3111a3fc
AC
75992004-03-15 Andrew Cagney <cagney@redhat.com>
7600
7601 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7602
5ecb7103
KB
76032004-03-15 Kevin Buettner <kevinb@redhat.com>
7604
7605 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7606 * frv-linux-tdep.c: New file.
7607 * frv-tdep.c (struct gdbarch_tdep): Add new field
7608 ``sigcontext_reg_addr''.
7609 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7610 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7611 (frv_sigramp_frame_sniffer): New functions.
7612 (frv_sigtramp_frame_unwind): New static global.
7613 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7614 sniffers.
7615 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7616 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7617
1ccda5e9
KB
76182004-03-15 Kevin Buettner <kevinb@redhat.com>
7619
7620 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7621 but not via a call to error(), when unable to read memory.
7622
b375a0a5
KB
76232004-03-15 Kevin Buettner <kevinb@redhat.com>
7624
7625 * frv-tdep.c (frv_call_dummy_words): Delete.
7626 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7627
4fdf6121
AC
76282004-03-15 Andrew Cagney <cagney@redhat.com>
7629
7630 * infrun.c (handle_step_into_function, step_over_function): Only
7631 update and use STEP_FRAME_ID when the system is using legacy
7632 frames. Update comments.
7633
34021503
MK
76342004-03-14 Mark Kettenis <kettenis@gnu.org>
7635
187e21d1
MK
7636 * amd64-linux-tdep.h: Remove file.
7637 * amd64-linux-tdep.c: Don't include "inferior.h" and
7638 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7639 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7640 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7641 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7642 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7643 macros.
7644 (user_to_gdb_regmap): Remove variable.
7645 (amd64_linux_gregset_reg_offset): New variable.
7646 (amd64_core_fns): Remove variable.
7647 (fetch_core_registers): Remove function.
7648 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7649 functions.
7650 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7651 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7652 * Makefile.in (amd64_linux_tdep_h): Remove.
7653 (amd64-linux-nat.o): Update dependencies.
7654 (amd64-linux-tdep.o): Update dependencies.
7655
99679982
MK
7656 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7657 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7658 functions.
7659 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7660
34021503
MK
7661 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7662 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7663
134d01f1
DJ
76642004-03-14 Daniel Jacobowitz <drow@mvista.com>
7665
7666 * dwarf2read.c (read_structure_type): Rename from
8718a420 7667 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7668 Return immediately if die->type is set. Call read_type_die before
7669 dwarf2_add_member_fn.
7670 (process_structure_scope): New function.
7671 (read_enumeration_type, process_enumeration_scope): New functions,
7672 broken out from read_enumeration. Don't create the enumeration
7673 type if it has already been created.
7674 (read_enumeration): Removed.
7675 (process_die): Call read_structure_type, process_structure_scope,
7676 read_enumeration_type, and process_enumeration_scope. Just call
7677 new_symbol for base and subrange types. Add a comment about other
7678 type dies.
7679 (read_type_die): Call read_enumeration_type.
7680 (add_partial_structure, new_symbol): Update comments.
7681
65760afb
SC
76822004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7683
7684 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7685
10f59415
SC
76862004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7687
7688 * tui/tui-win.h (tui_get_cmd_list): Declare.
7689 * tui/tui-win.c (tui_command): New function.
7690 (tui_get_cmd_list): New function.
7691 (_initialize_tui_win): Moved initialization of tui command in
7692 tui_get_cmd_list.
7693
7694 * tui/tui-data.c (init_content_element): Setup new data members.
7695 (init_win_info): Likewise.
7696 (free_content_elements): Free it.
7697 * tui/tui-data.h (struct tui_data_element): Store the register
7698 content to print.
7699 (struct tui_data_info): Keep the current register group.
7700
7701 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7702
7703 * tui/tui-regs.h (tui_show_registers): Update prototype.
7704 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7705 (tui_resize_all): No need to calculate anything for register window.
7706 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7707 (tui_set_register_element, tui_set_general_regs_content): Remove.
7708 (tui_set_special_regs_content): Remove.
7709 (tui_set_general_and_special_regs_content): Remove.
7710 (tui_set_float_regs_content): Remove.
7711 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7712 (tui_set_regs_content): Remove.
7713 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7714 (tui_v_show_registers_command_support): Remove.
7715 (tui_show_registers): Use a reggroup to specify the registers to show.
7716 (tui_show_register_group): New function.
7717 (tui_display_registers_from): Compute the layout of register window
7718 and refresh with new API; be sure to delete old register windows.
7719 (tui_check_register_values): Update to use tui_get_register and
7720 tui_display_data.
7721 (tui_display_register): Just refresh the register window part.
7722 (tui_register_format): Format registers and save in tui_data_element.
7723 (tui_get_register): New to combine tui_reg_value_has_changed and
7724 tui_get_register_raw_value; fix to use the new gdb API.
7725 (tui_show_float_command): Renamed tui_reg_float_command.
7726 (tui_show_general_command): Renamed tui_reg_general_command.
7727 (tui_show_special_command): Renamed tui_reg_system_command.
7728 (_initialize_tui_regs): Remove unused commands.
7729
c3364ea4
MK
77302004-03-13 Mark Kettenis <kettenis@gnu.org>
7731
27d1e716
MK
7732 * NEWS (New native configurations): Mention OpenBSD/amd64.
7733
c3364ea4
MK
7734 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7735 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7736 Remove defines.
7737 * config/i386/nm-fbsd64.h: Likewise.
7738 * config/i386/nm-obsd.h: Likewise.
7739 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7740 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7741
b2d6d697
KB
77422004-03-12 Kevin Buettner <kevinb@redhat.com>
7743
7744 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7745 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7746 New constants.
7747
76e43199
KB
7748 From Richard Sandiford <rsandifo@redhat.com>:
7749 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7750
34ce532e
KB
77512004-03-12 Kevin Buettner <kevinb@redhat.com>
7752
7753 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7754 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7755 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7756 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7757 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7758 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7759 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7760 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7761 definitions from frv-tdep.c to frv-tdep.h.
7762
c4d10515
KB
77632004-03-12 Kevin Buettner <kevinb@redhat.com>
7764
7765 Add shared library support for FR-V FDPIC ABI:
7766 * Makefile.in (solib-frv.o): Add dependencies.
7767 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7768 New functions.
7769 (frv_push_dummy_call): Add support for FDPIC ABI.
7770 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7771 for FDPIC ABI.
7772 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7773 (frv_fdpic_find_canonical_descriptor): Declare.
7774 * solib-frv.c: New file.
7775 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7776 * config/frv/tm-frv.h (solib.h): Include.
7777
ed1bd989
KB
77782004-03-12 Kevin Buettner <kevinb@redhat.com>
7779
7780 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7781 (frv-tdep.o): Update dependencies.
7782 * frv-tdep.h: New file.
7783 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7784 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7785 constants.
7786 (struct gdbarch_tdep): Add new member ``frv_abi''.
7787 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7788 functions.
7789 (new_variant): Set ``frv_abi'' field.
7790 (gdb_arch_init): Detect FDPIC executables.
7791
82b38f72
MK
77922004-03-12 Mark Kettenis <kettenis@gnu.org>
7793
7794 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7795 wrapper.
7796
db1ea9ba
AC
77972004-03-11 Andrew Cagney <cagney@redhat.com>
7798
7799 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7800
f8766ec1
KB
78012004-03-11 Kevin Buettner <kevinb@redhat.com>
7802
7803 * solist.h (master_so_list): New function.
7804 * solib.c (master_so_list): Likewise.
7805 * solib-svr4.c (enable_break): Iterate over so_list entries
7806 obtained from master list instead of entries obtained directly
7807 via svr4_current_sos().
7808
523f6a27
BE
78092004-03-10 Ben Elliston <bje@gnu.org>
7810
7811 * MAINTAINERS: Update my mail address.
7812
37814c18
KI
78132004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7814
7815 * remote-m32r-sdi.c: Support hardware watchpoint.
7816
8b9740d8
DJ
78172004-03-09 Daniel Jacobowitz <drow@mvista.com>
7818
7819 * user-regs.c: Update copyright years.
7820 (struct user_regs): Rename to gdb_user_regs.
7821 (append_user_reg, builtin_user_regs, user_regs_init)
7822 (user_reg_add, user_reg_map_name_to_regnum)
7823 (usernum_to_user_reg): Update.
7824
4bb7a0a7
DJ
78252004-03-09 Daniel Jacobowitz <drow@mvista.com>
7826
7827 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7828 (skip_children): New functions.
7829 (locate_pdi_sibling): Call skip_children.
7830
44e1a9eb
DJ
78312004-03-09 Daniel Jacobowitz <drow@mvista.com>
7832
7833 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7834 * gdbtypes.c (check_typedef): Update comments.
7835
f3dd6933
DJ
78362004-03-09 Daniel Jacobowitz <drow@mvista.com>
7837
7838 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7839 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7840 pointer. Update comment about comp_unit_head.
7841 (struct abbrev_info): Shorten two int flags.
7842 (dwarf_alloc_abbrev): Take a CU argument.
7843 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7844 each time through the loop. Update cleanup argument.
7845 (psymtab_to_symtab_1): Update cleanup call.
7846 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7847 abbrev_obstack.
7848 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7849 Just call obstack_free and clear the pointer.
7850
b40c7d58
DJ
78512004-03-09 Daniel Jacobowitz <drow@mvista.com>
7852
7853 * infrun.c (handle_inferior_event): Remove short-circuit code for
7854 events in a different thread.
7855
333dabeb
DJ
78562004-03-09 Daniel Jacobowitz <drow@mvista.com>
7857
7858 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7859 print the whole transfer.
7860 (initialize_targets): Update description of "set debug target".
7861
aa17d93e
DJ
78622004-03-09 Daniel Jacobowitz <drow@mvista.com>
7863
7864 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7865
0b71f08f
NW
78662004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7867
7868 * MAINTAINERS (write after approval): Add myself.
7869
3930f270
CV
78702004-03-08 Corinna Vinschen <vinschen@redhat.com>
7871
7872 * sh-tdep.c (sh_print_registers_info): Use for loop.
7873 Don't skip multiple registers when a float register is encountered.
7874
a2b4a96c
CV
78752004-03-08 Corinna Vinschen <vinschen@redhat.com>
7876
7877 Fix PR tdep/1291.
7878 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7879 to official SH documentation.
7880
f15a4bc0
AC
78812004-03-07 Andrew Cagney <cagney@redhat.com>
7882
7883 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7884 unused function.
7885
9498281f
DJ
78862004-03-07 Daniel Jacobowitz <drow@mvista.com>
7887
7888 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7889 (arm_get_next_pc): Handle BX and BLX.
7890
449e1137
AC
78912004-03-07 Andrew Cagney <cagney@redhat.com>
7892
eded0a31
AC
7893 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7894 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7895 HPPA_SP_REGNUM.
7896 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7897 (hppa_target_read_fp): Delete.
7898 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7899 register_virtual_size, max_register_raw_size,
7900 max_register_virtual_size, register_byte, register_size,
7901 target_read_fp, fp_regnum, and register_bytes. Set register_type
7902 instead of register_virtual_type.
7903 (hppa32_register_type, hppa64_register_type): Replace
7904 hppa32_register_virtual_type and hppa64_register_virtual_type.
7905 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7906 (HPPA_FP_REGNUM): Define.
7907
f5f907e2
AC
7908 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7909
69b4bbe4
AC
7910 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7911 (pa_do_registers_info): Delete.
7912 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7913 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7914 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7915
78161e48
AC
7916 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7917 GDB_TARGET_IS_HPPA code.
7918 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7919 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7920 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7921 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7922 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7923 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7924 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7925 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7926 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7927 (hppa_frameless_function_invocation, hppa64_store_return_value)
7928 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7929 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7930 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7931 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7932 (find_proc_framesize, deposit_21, restore_pc_queue)
7933 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7934 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7935
782eae8b
AC
7936 Unconditionally enable 64-bit frame and ABI code.
7937 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7938 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7939 push_dummy_frame, fix_call_dummy, push_arguments,
7940 call_dummy_location, extract_return_value, use_struct_convention,
7941 store_return_value, store_struct_return, saved_pc_after_call,
7942 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7943 frame_chain, frame_chain_valid, frameless_function_invocation,
7944 frame_saved_pc, and pop_frame.
78161e48 7945
449e1137
AC
7946 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7947 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7948 (hppa_gdbarch_init): Do not set PC_REGNUM.
7949
12507572
MK
79502004-03-06 Mark Kettenis <kettenis@gnu.org>
7951
7952 * config/alpha/tm-fbsd.h: Remove file.
7953 * config/alpha/fbsd.mt: Tweak comment.
7954 (TM_FILE): Set to tm-alpha.h.
7955
c107cc1b
AC
79562004-03-05 Andrew Cagney <cagney@redhat.com>
7957
7958 * infrun.c (step_over_function): When non-legacy code, and no
7959 step_frame_id, use the unwinder to get the caller's frame ID.
7960
f2e7c15d
MK
79612004-03-05 Mark Kettenis <kettenis@gnu.org>
7962
8b0c3633
MK
7963 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7964 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7965 bfd_arch_unknown. Adjust comment.
7966
f2e7c15d
MK
7967 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7968 * i386obsd-tdep.c: Correct spelling in comment.
7969 * i386nbsd-tdep.c: Correct spelling in comment.
7970 * sparc-tdep.c: Correct spelling in comments.
7971
1198ecbe
DC
79722004-03-05 David Carlton <carlton@kealia.com>
7973
7974 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7975 bug.
7976
9eb42ed1
MK
79772004-03-05 Mark Kettenis <kettenis@gnu.org>
7978
7979 * sparc-tdep.c: Fix typo in comment.
7980
52b5e991
JB
79812004-03-04 J. Brobecker <brobecker@gnat.com>
7982
7983 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7984
d8151005
DJ
79852004-03-04 Daniel Jacobowitz <drow@mvista.com>
7986
7987 * dwarf2read.c: Add comment describing memory lifetimes.
7988 (struct dwarf2_pinfo): Update comment.
7989 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7990 (read_enumeration, new_symbol): Don't use obsavestring.
7991
cbeae229
MK
79922004-03-04 Mark Kettenis <kettenis@gnu.org>
7993
722d18c2
MK
7994 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7995 instead of amd64_fill_fxsave.
7996 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7997 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7998
cbeae229
MK
7999 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8000 Reorganize code a bit.
8001
b4206d25
OF
80022004-03-04 Orjan Friberg <orjanf@axis.com>
8003
8004 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
8005 when the frame pointer is pushed. Don't set the frame pointer's
8006 address on the stack unless it's actually located there.
b4206d25
OF
8007 Set the SRP's address on the stack correctly when the PC is still in
8008 the prologue.
8009 (cris_return_value): New function.
8010 (cris_gdbarch_init): Clear deprecated store_return_value,
8011 extract_return_value.
8012
49b0b195
JB
80132004-03-02 Jim Blandy <jimb@redhat.com>
8014
8015 * stabsread.c (reg_value_complaint): The maximum register number
8016 is one less than the number of registers.
8017
e9ff708b
AC
80182004-03-02 Andrew Cagney <cagney@redhat.com>
8019
8020 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8021 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8022 trailing comma and redundant assignment of I386_ST0_REGNUM.
8023 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8024 32-bit segment registers.
8025
d4715e41
AC
80262004-03-01 Andrew Cagney <cagney@redhat.com>
8027
8028 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8029 use frame_relative_level and get_next_frame.
8030
3ce2bf18
AC
80312004-02-29 Andrew Cagney <cagney@redhat.com>
8032
8033 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8034 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8035 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8036 Delete macro.
8037
2da6aac3
DJ
80382004-02-29 Daniel Jacobowitz <drow@mvista.com>
8039
8040 * inflow.c (terminal_inferior): Don't give up the terminal if we
8041 previously couldn't get the inferior's terminal state.
8042
6ba34a8d
DJ
80432004-02-29 Daniel Jacobowitz <drow@mvista.com>
8044
8045 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8046 PC_REGNUM.
8047
faae5abe
AC
80482004-02-28 Andrew Cagney <cagney@redhat.com>
8049
8050 * NEWS: Refer to GDB 6.1.
8051 * README: Refer to GDB 6.1.
8052 * PROBLEMS: Refer to GDB 6.1.
8053
2227a3c5
DJ
80542004-02-28 Daniel Jacobowitz <drow@mvista.com>
8055
8056 * thread-db.c (disable_thread_signals): Remove unused function.
8057
80571bff
MK
80582004-02-28 Mark Kettenis <kettenis@gnu.org>
8059
041bd74b
MK
8060 * amd64-nat.c: Include "gdb_string.h".
8061 (amd64_collect_native_gregset): Zero-extend the 32-bit
8062 general-purpose registers and %eip.
8063
3c017e40
MK
8064 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8065 * amd64-tdep.c (amd64_collect_fxsave): New function.
8066 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8067
80571bff
MK
8068 * i387-tdep.h: Update copyright year.
8069 (i387_collect_fxsave): New prototype.
8070 * i387-tdep.c: Update copyright year.
8071 (i387_collect_fxsave): New function containing most of the code
8072 from i387_fill_fxsave.
8073 (i387_fill_fxsave): Call i387_collect_fxsave.
8074
50d71875
AC
80752004-02-28 Andrew Cagney <cagney@redhat.com>
8076
8077 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8078 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8079
4a28816e
MK
80802004-02-28 Mark Kettenis <kettenis@gnu.org>
8081
8082 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8083
dbda9972
AC
80842004-02-28 Andrew Cagney <cagney@redhat.com>
8085
8086 * utils.c: Use "", instead of <>, to include readline.
8087 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8088 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8089 * source.c, solib.c, exec.c, event-top.c: Ditto.
8090 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8091 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8092 * Makefile.in: Update all dependencies.
8093 (readline_tilde_h, readline_history_h): Define.
8094 (readline_headers): Delete.
8095
83277a99
MK
80962004-02-28 Mark Kettenis <kettenis@gnu.org>
8097
91ae4303
MK
8098 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8099 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8100 "config/i386/tm-lx64.h".
8101
83277a99
MK
8102 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8103 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8104 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8105
6e1d7d6c
AC
81062004-02-28 Andrew Cagney <cagney@redhat.com>
8107
ecc9ac84
AC
8108 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8109
6e1d7d6c
AC
8110 * breakpoint.c (_initialize_breakpoint): Use
8111 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8112 Add help to show command.
8113
9671aeef
MK
81142004-02-28 Mark Kettenis <kettenis@gnu.org>
8115
7fa2737c
MK
8116 * i386-nat.c: Reformat to be closer to coding standards.
8117 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8118 `retval'. Make variables `align' and `size' local to while-loop.
8119 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8120 (_initialize_i386_nat): New prototype.
8121
9671aeef
MK
8122 * tui/tui.c: Include <readline/readline.h> instead of
8123 "readline/readline.h". Include it after <term.h> and
8124 "gdb_curses.h".
8125
fca7aa43
AC
81262004-02-27 Andrew Cagney <cagney@redhat.com>
8127
412275d5
AC
8128 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8129 the new frame unwind code.
8130 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8131 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8132 PCOQ_HEAD_REGNUM.
8133
fca7aa43
AC
8134 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8135 "return_value" and "push_dummy_call".
8136 (hppa32_use_struct_convention): Delete unused function.
8137 (hppa32_store_return_value): Delete unused function.
8138 (hppa32_extract_return_value): Delete unused function.
8139 (hppa32_stack_align): Delete function.
8140
e6a8a7d2
EZ
81412004-02-27 Eli Zaretskii <eliz@elta.co.il>
8142
8143 * coffread.c (enter_linenos): Don't let rawptr reference memory
8144 outside linetab[]'s limits.
8145
1797a8f6
AC
81462004-02-27 Andrew Cagney <cagney@redhat.com>
8147
8148 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8149 inferior stack space - the stack needs to grow upwards.
8150 (hppa32_frame_align): New function.
8151 (hppa64_frame_align): Replace hppa_frame_align.
8152 (hppa_gdbarch_init): Update.
8153
2e4b5889
OF
81542004-02-26 Orjan Friberg <orjanf@axis.com>
8155
8156 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8157 (dwarf2-frame.h): Include.
8158 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8159 Remove static variables related to ABI setting.
8160 (struct gdbarch_tdep): Remove cris_abi member.
8161 (struct frame_extra_info): Remove.
8162 (cris_unwind_cache, stack_item): New structs.
8163 (cris_frame_unwind, cris_frame_base): New variables.
8164 (push_stack_item, pop_stack_item)
8165 (cris_frame_unwind_cache, cris_frame_this_id)
8166 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8167 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8168 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8169 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8170 (cris_reg_struct_has_addr): New functions.
8171 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 8172 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
8173 (cris_store_struct_return, cris_frameless_function_invocation)
8174 (cris_pop_frame, cris_skip_prologue_main)
8175 (cris_abi_original_store_return_value)
8176 (cris_abi_v2_store_return_value)
8177 (cris_abi_original_extract_return_value)
8178 (cris_abi_v2_extract_return_value)
8179 (cris_abi_original_reg_struct_has_addr)
8180 (cris_abi_v2_reg_struct_has_addr)
8181 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8182 (cris_push_return_address, cris_abi_update): Remove.
8183 (_initialize_cris_tdep): Remove ABI command.
8184 (cris_dump_tdep): Ditto.
8718a420 8185 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
8186 Set store_return_value, extract_return_value, push_dummy_code,
8187 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8188 frame_unwind_append_sniffer, frame_base_set_default.
8189 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8190 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8191 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 8192 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
8193 init_extra_frame_info, frameless_function_invocation, frame_chain,
8194 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8195 dummy_write_sp.
8718a420 8196
6b9acc27
JJ
81972004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8198
8199 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8200 * valprint.c (print_hex_chars): Change from static to external.
8201 (print_char_chars): New function.
8202 * printcmd.c (print_scalar_formatted): For integer and enum types
8203 that are longer than LONGEST, perform processing via appropriate
8204 print_*_chars routines.
8205
a431654a
AC
82062004-02-26 Andrew Cagney <cagney@redhat.com>
8207
8208 * Makefile.in: Update dependencies.
8209 Changes from Ulrich Weigand,
8210 * s390-tdep.c: Include "dwarf2-frame.h".
8211 (s390_dwarf2_frame_init_reg): New function.
8212 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8213 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8214
fa8d40ab
JJ
82152004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8216
8217 * breakpoint.c (pending_break_support): New setting variable.
8218 (break_command_1): Account for pending_break_support setting
8219 when creating pending breakpoints.
8220 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8221 (_initialize_breakpoint): Add "set breakpoint pending" and
8222 "show breakpoint pending" commands.
8223
0dcd613f
AC
82242004-02-26 Andrew Cagney <cagney@redhat.com>
8225
8226 Fix PR i18n/1570.
8227 * charset.c (backslashable, backslashed, represented): Remove 'e'
8228 from list of escaped characters, not part of ISO-C.
8229
479272a3
JB
82302004-02-25 J. Brobecker <brobecker@gnat.com>
8231
8232 From Peter Schauer <schauer@pdf.de>:
8233 * tui/tui.c: Move system header includes after local includes.
8234 Fixes a build failure on solaris systems.
8235
7613d933
JB
82362004-02-25 J. Brobecker <brobecker@gnat.com>
8237
8238 * configure.in: Refine the previous change.
8239 * configure: Regenerate.
8240
9c1488cb
MK
82412004-02-25 Mark Kettenis <kettenis@gnu.org>
8242
8243 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8244 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8245 "amd64-tdep.h" instead of "x86-64-tdep.h".
8246 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8247 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8248 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8249 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8250 and "x86-64-tdep.c".
8251 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8252 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8253 and "x86-64-tdep.c".
8254 * amd64bsd-nat.c: Update copyright year.
8255 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8256 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8257 "x86-64-tdep.h".
8258 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8259 "x86-64-tdep.h".
8260 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8261 "x86-64-tdep.h".
8262 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8263 "x86-64-tdep.h".
8264 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8265 "x86-64-tdep.h".
8266 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8267 "x86-64-tdep.h".
8718a420 8268 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8269 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8270 * Makefile.in (amd64_linux_tdep_h): Renamed from
8271 x86_64_linux_tdep_h.
8272 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8273 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8274 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8275 (amd64obsd-tdep.o): Update dependencies.
8276 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8277 dependencies.
8278 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8279 dependencies.
8280 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8281 amd64-linux-nat.c amd64-linux-tdep.c.
8282 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8283 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8284 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8285 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8286 amd64-tdep.o and amd64-linux-tdep.o.
8287 (TM_FILE): Set to tm-linux64.h.
8288 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8289 (NAT_FILE): Set to nm-linux64.h.
8290 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8291 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8292 amd64-tdep.o.
8293 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8294 amd64-tdep.o.
8295 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8296 amd64-tdep.o.
8297
4b8dad4a
RM
82982004-02-25 Roland McGrath <roland@redhat.com>
8299
8300 * remote.c (remote_protocol_qPart_auxv): New variable.
8301 (init_all_packet_configs): Initialize it.
8302 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8303 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8304 (show_remote_cmd): Call it.
8305 (_initialize_remote): Initialize commands.
8306 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8307 service TARGET_OBJECT_AUXV requests.
8308
66745969
JB
83092004-02-25 J. Brobecker <brobecker@gnat.com>
8310
8311 * configure.in: Make sure that the wborder function is available.
8312 Otherwise, search for it in the cur_colr library.
8313 * configure: Regenerate.
8314
79508e1e
AC
83152004-02-25 Andrew Cagney <cagney@redhat.com>
8316
8317 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8318
571ee600
MK
83192004-02-25 Mark Kettenis <kettenis@gnu.org>
8320
8321 * config/i386/tm-x86-64linux.h: Tweak comments.
8322
2b1b322f 83232004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8324
8325 * MAINTAINERS: Add self to write-after-approval list.
8326
4d2acc65
AC
83272004-02-25 Andrew Cagney <cagney@redhat.com>
8328
4b8dad4a 8329 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8330 * cli/cli-script.c (execute_control_command): Unconditionally
8331 install a cleanup. Default "ret" to "invalid_control". Use
8332 "break" instead of "return" to escape from the switch.
8333
4cfcaf21
JB
83342004-02-24 J. Brobecker <brobecker@gnat.com>
8335
8336 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8337 with the lines macro defined in term.h on AiX.
8338 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8339 a collision with the label_width macro defined in term.h on AiX.
8340
54a5c8d8
KB
83412004-02-23 David Mosberger <davidm@hpl.hp.com>
8342
8343 Committed by Kevin Buettner <kevinb@redhat.com>.
8344
8345 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8346 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8347 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8348 instead of ia64_write_pc().
8349 * ia64-linux-tdep.c (regcache.h): Include.
8350 (ia64_linux_write_pc): New function.
4b8dad4a 8351
8a1dac83
RM
83522004-02-23 Roland McGrath <roland@redhat.com>
8353
8354 * auxv.c (info_auxv_command): Fix typos in error messages.
8355
90f90721
MK
83562004-02-23 Mark Kettenis <kettenis@gnu.org>
8357
8a1dac83 8358 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8359 (enum amd64_regnum): New.
8360 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8361 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8362 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8363 (X86_64_XMM1_REGNUM): Removed.
8364 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8365 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8366 prototypes for renamed functions.
8367 * x86-64-tdep.c: Fix typo.
8368 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8369 register numbers.
8370 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8371 Use constants from `enum amd64_regnum' for register numbers.
8372 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8373 (amd64_analyze_prologue, amd64_frame_cache,
8374 amd64_sigtramp_frame_cache): Use constants from `enum
8375 amd64_regnum' for register numbers.
8376 (amd64_supply_fpregset): Adjust for renamed functions.
8377 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8378 `enum amd64_regnum' for register numbers.
8379 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8380 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8381 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8382 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8383 (amd64_linux_fill_gregset): Adjust for renamed macros.
8384 (fetch_core_registers): Adjust for renamed functions.
8385 (amd64_linux_init_abi): Adjust for renamed functions.
8386 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8387 renamed functions.
8388 * amd64-nat.c: Adjust for renamed macros.
8389 * amd64bsd-nat.c (fetch_inferior_registers)
8390 (store_inferior_registers): Use constants from `enum amd64_regnum'
8391 for register numbers. Adjust for renamed variables.
8392 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8393 renamed variables.
8394 (_initialize_amd64fbsd_nat): Use constants from `enum
8395 amd64_regnum' for register numbers.
8396 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8397 `enum amd64_regnum' for register numbers.
8398 (amd64fbsd_init_abi): Adjust for renamed functions.
8399 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8400 `enum amd64_regnum' for register numbers.
8401 (amd64nbsd_init_abi): Adjust for renamed functions.
8402 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8403 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8404 `enum amd64_regnum' for register numbers.
8405 (amd64obsd_init_abi): Adjust for renamed functions.
8406 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8407
d5479188
JJ
84082004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8409
8410 * breakpoint.c (print_one_breakpoint): Do not output spaces
8411 after printing <PENDING> for a pending breakpoint.
8412
81cb7cc9
JJ
84132004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8414
8415 * printcmd.c (print_scalar_formatted): Initialize val_long
8416 to remove compiler warning message.
8417
cbdeadca
JJ
84182004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8419
8420 * defs.h (nquery, yquery): New prototypes.
8421 * breakpoint.c (break_command_1): Use new nquery interface.
8422 * utils.c (defaulted_query, nquery, yquery): New functions.
8423
da6bab63
AC
84242004-02-23 Andrew Cagney <cagney@redhat.com>
8425
2f690297
AC
8426 * hppa-tdep.c (hppa_frame_align): New function.
8427 (hppa32_push_dummy_call): New function.
8428 (hppa64_push_dummy_call): New function.
8429 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8430 disabled.
8a1dac83 8431
da6bab63
AC
8432 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8433 FIX_CALL_DUMMY when push_dummy_call is available.
8434 (call_function_by_hand, push_dummy_code): Ditto.
8435
abf9b42d
AC
84362004-02-22 Andrew Cagney <cagney@redhat.com>
8437
8438 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8439 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8440 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8441 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8442 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8443 call_dummy_location to ON_STACK.
8444
10fc94a4
MK
84452004-02-22 Mark Kettenis <kettenis@gnu.org>
8446
51433e4b
MK
8447 * x86-64-linux-tdep.c: Tweak comment.
8448 (amd64_linux_supply_gregset): Renamed from
8449 x86_64_linux_supply_gresget.
8450 (amd64_linux_fill_gregset): Renamed from
8451 x86_64_linux_fill_gregset.
8452 (fetch_core_registers): Adjust for renamed functions.
8453 (amd64_core_fns): Renamed from x86_64_core_fns.
8454 (amd64_linux_sigtramp_start): Renamed from
8455 x86_64_linux_sigtramp_start.
8456 (amd64_linux_pc_in_sigtramp): Renamed from
8457 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8458 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8459 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8460 (amd64_linux_sigcontext_addr): Renamed from
8461 x86_64_linux_sigcontext_addr.
8462 (amd64_linux_sc_reg_offset): Renamed from
8463 x86_64_linux_sc_reg_offset.
8464 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8465 Adjust for renamed functions and variables.
8466 (_initialize_amd64_linux_tdep): Renamed from
8467 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8468 variables.
8469 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8470 Adjust for renamed functions.
8471
430eaf2e
MK
8472 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8473 from x86_64_linux_gregset64_reg_offset.
8474 (amd64_linux_gregset32_reg_offset): Rename from
8475 x86_64_linux_gregset64_reg_offset.
8476 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8477 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8478 (amd64_linux_dr_set_control): Renamed from
8479 x86_64_linux_dr_set_control. Adjust for renamed functions.
8480 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8481 Adjust for renamed functions.
8482 (amd64_linux_dr_reset_addr): Renamed from
8483 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8484 (amd64_linux_dr_get_status): Renamed from
8485 x86_64_linux_dr_get_status. Adjust for renamed functions.
8486 (_initialize_amd64_linux_nat): Renamed from
8487 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8488 functions.
8489 * config/i386/nm-x86-64linux.h: Update copyright year.
8490 Adjust for renamed functions.
8491
10fc94a4
MK
8492 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8493 amd64fbsd_sigtramp_start.
8494 (amd64fbsd_sigtramp_end_addr): Renamed from
8495 amd64fbsd_sigtramp_end.
8496 (amd64fbsd_init_abi): Adjust for renamed variables.
8497 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8498 variables.
8499 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8500 amd64fbsd_sigtramp_start.
8501 (amd64fbsd_sigtramp_end_addr): Renamed from
8502 amd64fbsd_sigtramp_end.
8503
343af405
AC
85042004-02-22 Andrew Cagney <cagney@redhat.com>
8505
537987fc
AC
8506 * hppa-tdep.c (hppa32_return_value): New function.
8507 (hppa64_return_value): New function.
8508 (hppa_gdbarch_init): Set return_value; keep disabled.
8509
fad850b2
AC
8510 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8511 struct-return and inferior function call methods.
8512
26d08f08
AC
8513 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8514 "frame-base.h".
8515 (struct hppa_frame_cache): Define.
8516 (hppa_frame_cache, hppa_frame_this_id): New functions.
8517 (hppa_frame_prev_register): New function.
8518 (hppa_frame_unwind, hppa_frame_base): New variables.
8519 (hppa_frame_unwind_sniffer): New function.
8520 (hppa_frame_base_address, hppa_unwind_pc): New function.
8521 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8522 sniffer, and frame base sniffer; keep disabled.
8523 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8524 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8525
e7d7bd65
AC
8526 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8527 to predicates for "seriously old code".
8528
e963316f
AC
8529 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8530 runtime if(0).
8531
56132691
AC
8532 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8533 unsigned.
8534 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8535
343af405
AC
8536 * config/pa/tm-hppa.h: Update copyright.
8537 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8538 (deprecated_init_frame_pc_default): Delete declaration.
8539 (hppa_frame_init_saved_regs): Delete declaration.
8540 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8541 * hppa-tdep.c: Include "arch-utils.h".
8542 (hppa_gdbarch_init): Set deprecated init_frame_pc
8543 and deprecated frame_init_saved_regs.
8544 (hppa_frame_init_saved_regs): Make static.
8545
f5859b4d
MK
85462004-02-22 Mark Kettenis <kettenis@gnu.org>
8547
86f6f8e7 8548 Remove old 386BSD support.
cf7c5c23 8549 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8550 * configure.host: Remove i[34567]86-*-bsd*.
8551 * configure.tgt: Remove i[34567]86-*-bsd*.
8552 * i386b-nat.c: Removed.
8553 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8554 (i386b-nat.o): Remove dependencies.
8555
86f6f8e7
MK
8556 * config/i386/i386bsd.mh: Removed.
8557 * config/i386/i386bsd.mt: Removed.
8558 * config/i386/nm-i386bsd.h: Removed.
8559 * config/i386/tm-i386bsd.h: Removed.
8560 * config/i386/xm-i386bsd.h: Removed.
8561
971218cd
MK
8562 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8563
7e654c37
MK
8564 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8565 (amd64fbsd_init_abi): Set link map offsets.
8566 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8567 (amd64nbsd_init_abi): Set link map offsets.
8568 * amd64obsd-tdep.c: Include "solib-svr4.h".
8569 (amd64obsd_init_abi): Set link map offsets.
8570 * i386fbsd-tdep.c: Include "solib-svr4.h".
8571 (i386fbsd_init_abi): Set link map offsets.
8572 * i386nbsd-tdep.c: Include "solib-svr4.h".
8573 (i386nbsdelf_init_abi): Set link map offsets.
8574 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8575 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8576 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8577 solib-legacy.o and core-aout.o. Reformat.
8578 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8579 solib-svr4.o, solib-legacy.o. Reformat.
8580 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8581 * config/i386/nbsdelf.mh: Reformat.
8582 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8583 solib-svr4.o, solib-legacy.o and corelow.o.
8584 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8585 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8586 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8587 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8588 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8589 (TM_FILE): Set to tm-fbsd.h.
8590 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8591 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8592 solib-svr4.o.
8593 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8594 solib-svr4.o.
8595 (TM_FILE): Set to nm-nbsd.h.
8596 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8597 Simplify shared library support. Don't include "elf/common.h".
8598 (SVR4_SHARED_LIBS): Don't define.
8599 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8600 "solib.h".
8601 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8602 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8603 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8604 Don't include "i386/tm-i386.h". Include "solib.h".
8605 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8606 Don't include "i386/tm-i386.h".
8607 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8608 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8609 Include "i386/xm-i386.h".
8610 (HOST_LONG_DOUBLE_FORMAT): Remove.
8611
5d93ae8c
MK
8612 Fix OpenBSD/i386 sigtramp recognition.
8613 * i386-tdep.h: Update copyright year.
8614 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8615 (i386bsd_sigtramp_end): New prototypes.
8616 (i386fbsd_sigtramp_start_addr): Renamed from
8617 i386fbsd_sigtramp_start.
8618 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8619 (i386obsd_sigtramp_start_addr): Renamed from
8620 i386obsd_sigtramp_start.
8621 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8622 * i386bsd-tdep.c: Update copyright year.
8623 (i386bsd_pc_in_sigtramp): Make public.
8624 * i386fbsd-nat.c: Update copyright year.
8625 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8626 * i386fbsd-tdep.c: Update copyright year.
8627 (i386fbsd_sigtramp_start_addr): Renamed from
8628 i386fbsd_sigtramp_start.
8629 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8630 (i386fbsdaout_init_abi): Adjust for renamed variables.
8631 * i386obsd-nat.c: Update copyright year.
8632 (_initialize_i386obsd_nat): Adjust for renamed variables.
8633 * i386obsd-tdep.c: Include "target.h".
8634 (i386obsd_page_size): New variable.
8635 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8636 (i386obsd_sigtramp_end): New functions.
8637 (i386obsd_sigtramp_start_addr): Renamed from
8638 i386obsd_sigtramp_start.
8639 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8640 (i386obsd_init_abi): Adjust for renamed variables. Set
8641 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8642 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8643
84d04465
MK
8644 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8645 trampoline change in OpenBSD kernel.
8646
b053aceb
MK
8647 * amd64-nat.c: Update copyright year.
8648 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8649 architecture from REGCACHE.
8650
f5859b4d
MK
8651 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8652 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8653
e4bbbda8
MK
86542004-02-21 Mark Kettenis <kettenis@gnu.org>
8655
ba361932
MK
8656 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8657 i[34567]86-*-openbsd3.[0-3].
8658 * config/i386/obsdaout.mh: New file.
8659
d3e48264
MK
8660 * config/i386/obsd.mh (MH_FLAGS): Remove.
8661
60a6eeb6
MK
8662 Fix PR build/1549.
8663 * i386obsd-tdep.c: Update copyright years. Include
8664 "solib-svr4.h".
8665 (i386obsd_init_abi): Don't set regset_from_core_section here.
8666 (i386obsd_aout_init_abi): New function. Set
8667 regset_from_core_section here.
8668 (i386obsd_elf_init_abi): New function.
8669 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8670 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8671 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8672 (TM_FILE): Set to tm-nbsd.h.
8673
8674 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8675 solib-sunos.o.
8676
e4bbbda8
MK
8677 * solib-svr4.h: Update copyright year.
8678 (svr4_ilp32_fetch_link_map_offsets)
8679 (svr4_lp64_fetch_link_map_offsets): New prototype.
8680 * solib-svr4.c: Update copyright year.
8681 (svr4_ilp32_fetch_link_map_offsets)
8682 (svr4_lp64_fetch_link_map_offsets): New function.
8683
f6fe98ef
DJ
86842004-02-20 Daniel Jacobowitz <drow@mvista.com>
8685
8686 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8687 to the partial symbol table.
8688
589ca796
JB
86892004-02-20 J. brobecker <brobecker@gnat.com>
8690
8691 * PROBLEMS: Add description of problem documented under gdb/1560.
8692
2031c21a
MK
86932004-02-20 Mark Kettenis <kettenis@gnu.org>
8694
30b344b1
MK
8695 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8696 comments.
8697 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8698 functions.
8699 (amd64obsd_init_abi): Reorder initializations. Use
8700 amd64obsd_r_reg_offset to initialize the general-purpose register
8701 set details. Set regset_from_core_section.
8702 (_initialize_amd64obsd_tdep): Rename from
8703 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8704 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8705 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8706
2031c21a
MK
8707 * NEWS (New native configurations): Mention OpenBSD/alpha.
8708 * configure.tgt: Add alpha*-*-openbsd*.
8709 * configure.host: Add alpha*-*-openbsd*.
8710 * alphanbsd-tdep.c: Update copyright year.
8711 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8712
42471775
AC
87132004-02-20 Andrew Cagney <cagney@redhat.com>
8714
8715 Fix PR tdep/1372.
8716 * configure.tgt: Delete target "none-*-*".
8717 * configure.host: Delete host "none-*-*".
8718 * config/none/none.mh: Delete file.
8719 * config/none/none.mt: Delete file.
8720 * config/none/xm-none.h: Delete file.
8721 * config/none/tm-none.h: Delete file.
8722 * config/none/nm-none.h: Delete file.
8723
960ccd7d
FF
87242004-02-19 Fred Fish <fnf@redhat.com>
8725
8726 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8727 cache->uses_fp prior to setting it.
8728
5f883edd
FF
87292004-02-19 Fred Fish <fnf@redhat.com>
8730
8731 Fix for PR breakpoint/1558.
8732 * sh-tdep.c (IS_JSR): New macro.
8733 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8734
f98c22d5
JB
87352004-02-19 Jim Blandy <jimb@redhat.com>
8736
8737 * findvar.c (value_from_register): Doc fix.
8738
95051d27
JJ
87392004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8740
8741 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8742 type being greater than sizeof of host's LONGEST. Always use
8743 unpack_long() unless format 'f' chosen.
8744
ccefbec3
EZ
87452004-02-19 Joel Brobecker <brobecker@gnat.com>
8746
8747 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8748
ccefbec3
EZ
8749 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8750 contains a symbol wich is the best, non-exact match for the given
8751 pc. Update comments.
8752
87532004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8754
2ede629f
EZ
8755 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8756 macro, which was part of the now removed Mach 3 port.
8757 * utils.c (request_quit): Ditto.
8758
567ee972
MK
87592004-02-18 Mark Kettenis <kettenis@gnu.org>
8760
8761 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8762 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8763
50cca7bb
MK
87642004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8765
8766 Committed by Mark Kettenis <kettenis@gnu.org>.
8767
8768 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8769 Define.
8770
226361c4
AC
87712004-02-18 Andrew Cagney <cagney@redhat.com>
8772
8773 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8774 CONFIG_INSTALL and CONFIG_UNINSTALL.
8775 * configure: Re-generate.
8776 * interps.h (INTERP_TUI): Define.
8777 * Makefile.in: Update dependencies.
8778 (TUI): New macro.
8779 (tui-main.o): Specify dependencies.
8780 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8781 * tui/tui-main.c: New file.
8782
49cfa46f
MK
87832004-02-18 Mark Kettenis <kettenis@gnu.org>
8784
e2879ccb
MK
8785 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8786 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8787 dependencies.
8788 * configure.host: Add x86_64-*-openbsd*.
8789 * configure.tgt: Add x86_64-*-openbsd*.
8790 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8791
c43f4bec
MK
8792 * tui/tui.c: Don't include <malloc.h>.
8793
09ae75b6
MK
8794 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8795 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8796 amd64nbsd-tdep.c.
8797
49cfa46f 8798 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8799 static. Remove extraneous whitespace.
49cfa46f
MK
8800 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8801 static.
8802
05957fdb
JB
88032004-02-17 Jim Blandy <jimb@redhat.com>
8804
8805 * findvar.c (value_from_register): Doc fix.
8806
d0f54f9d
JB
88072004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8808
8809 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8810
8a1dac83 8811 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8812 CORE_ADDR as type for selectors. Correct types for GNU run time
8813 message lookup function to use double indirection.
8814 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8815 * objc-lang.h (lookup_child_selector): Adapt prototype.
8816
9cbd5950
JB
8817 * s390-nat.c (SUBOFF): New macro.
8818 (supply_gregset, fill_gregset): Use it to handle debugging
8819 of 32-bit exectuables running under a 64-bit kernel.
8820 * s390-tdep.c: Include "solib-svr4.h".
8821 (s390_svr4_fetch_link_map_offset): New function.
8822 (s390x_svr_fetch_link_map_offset): Likewise.
8823 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8824 * Makefile.in (s390-tdep.o): Update dependencies.
8825
a8c99f38
JB
8826 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8827 "frame-unwind.h".
8828 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8829 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8830 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8831 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8832 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8833 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8834 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8835 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8836 (struct frame_extra_info): Remove.
8837 (s390_memset_extra_info): Remove.
f73b1eff
JB
8838 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8839 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8840 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8841 (is_rse): Renamed to ...
8842 (is_rsy): ... this. Support long displacements.
8843 (is_rxe): Renamed to ...
8844 (is_rxy): ... this. Support long displacements.
8845 (compute_x_addr): Support long displacements.
8846 (struct s390_prologue_data): New data type.
8847 (s390_on_stack): Change API to use struct s390_prologue_data.
8848 (s390_store): Reimplement.
8849 (s390_load): New function.
8850 (s390_get_signal_frame_info): Remove.
8851 (s390_get_frame_info): Remove, replace by ...
8852 (s390_analyze_prolog): ... this new function.
8853 (s390_check_function_end): Remove.
8854 (s390_function_start): Remove.
8855 (s390_frameless_function_invokation): Remove.
8856 (s390_is_sigreturn): Remove.
8857 (s390_init_frame_pc_first): Remove.
8858 (s390_init_frame_extra_info): Remove.
8859 (s390_frame_init_saved_regs): Remove.
8860 (s390_frame_saved_pc_nofix): Remove.
8861 (s390_frame_saved_pc): Remove.
8862 (s390_frame_chain): Remove.
8863 (s390_fp_regnum, s390_read_fp): Remove.
8864 (s390_pop_frame_regular, s390_pop_frame): Remove.
8865 (s390_saved_pc_after_call): Remove.
8866 (s390_skip_prologue): Reimplement.
8867 (s390_in_function_epilogue_p): Support long displacements.
8868 (struct s390_unwind_cache): New data structure.
8869 (s390_frame_unwind_cache): New function.
8870 (s390_prologue_frame_unwind_cache): Likewise.
8871 (s390_backchain_frame_unwind_cache): Likewise.
8872 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8873 (s390_frame_unwind): Define.
8874 (s390_frame_sniffer): New function.
8875 (struct s390_pltstub_unwind_cache): New data structure.
8876 (s390_pltstub_frame_unwind_cache): New function.
8877 (s390_pltstub_frame_this_id): Likewise.
8878 (s390_pltstub_frame_prev_register): Likewise.
8879 (s390_pltstub_frame_unwind): Define.
8880 (s390_pltstub_frame_sniffer): New function.
8881 (struct s390_sigtramp_unwind_cache): New data structure.
8882 (s390_sigtramp_frame_unwind_cache): New function.
8883 (s390_sigtramp_frame_this_id): Likewise.
8884 (s390_sigtramp_frame_prev_register): Likewise.
8885 (s390_sigtramp_frame_unwind): Define.
8886 (s390_sigtramp_frame_sniffer): New function.
8887 (s390_frame_base_address, s390_local_base_address): New functions.
8888 (s390_frame_base): Define.
8889 (s390_unwind_pc, s390_unwind_sp): New function.
8890 (s390_push_dummy_call): Use new frame base location.
8891 (s390_unwind_dummy_id): Likewise.
8892 (s390_gdbarch_init): Remove calls to:
8893 set_gdbarch_frameless_function_invocation,
8894 set_gdbarch_deprecated_init_frame_pc,
8895 set_gdbarch_deprecated_frame_chain,
8896 set_gdbarch_deprecated_frame_init_saved_regs,
8897 set_gdbarch_deprecated_pop_frame,
8898 set_gdbarch_deprecated_init_extra_frame_info,
8899 set_gdbarch_deprecated_init_frame_pc_first,
8900 set_gdbarch_deprecated_target_read_fp,
8901 set_gdbarch_deprecated_frame_saved_pc,
8902 set_gdbarch_deprecated_saved_pc_after_call,
8903 set_gdbarch_deprecated_fp_regnum.
8904 Add calls to:
8905 set_gdbarch_in_solib_call_trampoline,
8906 frame_unwind_append_sniffer,
8907 frame_base_set_default,
8908 set_gdbarch_unwind_pc,
8909 set_gdbarch_unwind_sp.
8910 * Makefile.in (s390-tdep.o): Update dependencies.
8911
b0cf273e
JB
8912 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8913 (S390_STACK_FRAME_OVERHEAD): Remove.
8914 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8915 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8916 (s390_promote_integer_argument): Remove.
8917 (s390_cannot_extract_struct_value_address): Remove.
8918 (s390_use_struct_convention, s390_store_struct_return): Remove.
8919 (s390_extract_return_value, s390_store_return_value): Remove.
8920 (s390_return_value_convention, s390_return_value): New functions.
8921 (is_float_singleton): Handle typedefs.
8a1dac83 8922 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8923 Remove, replace by ...
8924 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8925 s390_function_arg_integer): ... these new functions.
8926 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8927 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8928 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8929 Fill in tdep->abi.
8930 Remove calls to:
8931 set_gdbarch_deprecated_store_struct_return,
8932 set_gdbarch_deprecated_extract_return_value,
8933 set_gdbarch_deprecated_store_return_value,
8934 set_gdbarch_use_struct_convention,
8935 set_gdbarch_extract_struct_value_address,
8936 set_gdbarch_deprecated_pc_in_call_dummy,
8937 set_gdbarch_deprecated_push_arguments,
8938 set_gdbarch_deprecated_save_dummy_frame_tos,
8939 set_gdbarch_deprecated_push_return_address,
8940 set_gdbarch_deprecated_sizeof_call_dummy_words,
8941 set_gdbarch_deprecated_call_dummy_words,
8942 set_gdbarch_deprecated_dummy_write_sp.
8943 Add calls to:
8944 set_gdbarch_push_dummy_call,
8945 set_gdbarch_unwind_dummy_id,
8946 set_gdbarch_return_value.
8a1dac83 8947
e1457d83
JB
8948 * config/s390/nm-linux.h: Update comments.
8949 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8950 (STOPPED_BY_WATCHPOINT): Redefine.
8951 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8952 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8953 (s390_stopped_by_watchpoint): Likewise.
8954 (watch_area_cnt): Remove.
8955 * s390-nat.c: Update comments.
8956 (watch_area): Remove typedef.
8957 Global replace watch_area by struct watch_area.
8958 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8959 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8960 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8961 (s390_fix_watch_points): Remove pid argument,
8962 use s390_inferior_tid. Recompute area spanned by watchpoints.
8963 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8964 argument. Reimplement.
8965
d0f54f9d
JB
8966 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8967 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8968 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8969 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8970 core-regset.o.
8971 * config/s390/s390x.mt: Remove.
8972 * config/s390/tm-s390.h: Remove.
8973 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8974 (TARGET_ELF64): Remove.
8975 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8976 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8977 s390*-*-* case; always set gdb_target to s390.
8978 * regformats/reg-s390.dat: Remove control registers.
8979 * regformats/reg-s390x.dat: Likewise.
8980 * s390-tdep.h: New file.
8a1dac83 8981 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8982 Include "inferior.h" and "s390-tdep.h".
8983 Remove private definition of offsetof.
8984 (s390_register_u_addr): Remove.
8985 (regmap_gregset, regmap_fpregset): Define.
8986 (supply_gregset, fill_gregset): Reimplement.
8987 (supply_fpregset, fill_fpregset): Likewise.
8988 (s390_inferior_tid): New function.
8989 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8990 (fetch_inferior_registers, store_inferior_registers): Likewise.
8991 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8992 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8993 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8994 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8995 (struct gdbarch_tdep): Define.
8996 (struct s390_register_info): Define.
8997 (s390_register_info): New variable.
8998 (s390_register_name): Reimplement.
8999 (s390_register_type): New function.
9000 (s390_register_raw_size, s390x_register_raw_size): Remove.
9001 (s390_cannot_fetch_register): Remove.
9002 (s390_register_byte): Remove.
9003 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9004 (s390_dwarf_regmap): New variable.
9005 (s390_dwarf_reg_to_regnum): New function.
9006 (s390_stab_reg_to_regnum): Remove.
9007 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9008 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9009 (s390_convert_register_p): Likewise.
9010 (s390_register_to_value, s390_value_to_register): Likewise.
9011 (s390_register_reggroup_p): Likewise.
9012 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9013 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9014 (s390_supply_regset, s390_regset_from_core_section): New functions.
9015 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9016 (S390_FPR_SIZE): Likewise.
9017 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9018 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9019 (S390_NUM_GPRS): Move here from tm-s390.h.
9020 (S390_NUM_FPRS): Likewise.
9021 (s390_in_function_epilogue_p): New function.
9022 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9023 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9024 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9025 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9026 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9027 Remove calls to:
9028 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
9029 set_gdbarch_deprecated_max_register_virtual_size,
9030 set_gdbarch_deprecated_register_byte,
d0f54f9d 9031 set_gdbarch_cannot_fetch_register,
8a1dac83 9032 set_gdbarch_cannot_store_register,
d0f54f9d
JB
9033 set_gdbarch_deprecated_register_size,
9034 set_gdbarch_deprecated_register_raw_size,
9035 set_gdbarch_deprecated_register_virtual_size,
9036 set_gdbarch_deprecated_register_virtual_type,
9037 set_gdbarch_deprecated_register_bytes.
9038 Add calls to:
9039 set_gdbarch_num_pseudo_regs,
9040 set_gdbarch_register_type,
9041 set_gdbarch_convert_register_p,
9042 set_gdbarch_register_to_value,
9043 set_gdbarch_value_to_register,
9044 set_gdbarch_register_reggroup_p,
9045 set_gdbarch_regset_from_core_section,
9046 set_gdbarch_pseudo_register_read,
9047 set_gdbarch_pseudo_register_write,
9048 set_gdbarch_in_function_epilogue_p.
9049 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9050 (s390_tdep_h): New variable.
9051
8cfe231d
JB
90522004-02-17 Jim Blandy <jimb@redhat.com>
9053
4589a601
JB
9054 * findvar.c (value_from_register): If the type has no length, just
9055 return an acceptable value --- don't report an internal error.
9056
8cfe231d
JB
9057 * stabsread.c (read_type): If we find any type numbers that are
9058 forward references, complain if the references aren't resolved by
9059 the time we're finished reading.
9060 (cleanup_undefined_types): Make error message more appropriate for
9061 a complaint.
9062
5bf0017e
EZ
90632004-02-17 Elena Zannoni <ezannoni@redhat.com>
9064
9d62932d
EZ
9065 * Makefile.in (defs_h): Remove dependency on progress_h.
9066 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9067 progress.h.
9068 * main.c (captured_main): Delete use of START_PROGRESS and
9069 END_PROGRESS.
9070
90712004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9072
5bf0017e
EZ
9073 * objfiles.c (terminate_minimal_symbol_table): Add back
9074 initialization of MSYMBOL_TYPE.
9075
9fc9f5e2
AC
90762004-02-17 David Mosberger <davidm@hpl.hp.com>
9077
9078 Committed by Andrew Cagney.
9079 * Makefile.in (ia64_tdep_h): New macro.
9080 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9081 (ia64-tdep.o): Likewise.
9082 * ia64-tdep.h: New file.
9083 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9084 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9085 (ia64_aix_sigcontext_register_address): Likewise.
9086 (ia64_linux_getunwind_table): Delete declaration.
9087 * ia64-linux-tdep.c: Likewise.
9088
76cd2bd9
CV
90892004-02-17 Corinna Vinschen <vinschen@redhat.com>
9090
9091 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9092 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9093 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9094
634aa483
AC
90952004-02-17 Andrew Cagney <cagney@redhat.com>
9096
9097 * symtab.c (skip_prologue_using_sal): New function.
9098 * symtab.h (skip_prologue_using_sal): Declare.
9099 * frv-tdep.c: Include "symtab.h".
9100 (skip_prologue_using_sal): Delete function.
9101 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9102 * rs6000-tdep.c (refine_prologue_limit): Mention
9103 skip_prologue_using_sal.
9104 * ia64-tdep.c (refine_prologue_limit): Ditto.
9105 * Makefile.in: Update dependencies.
9106
91072004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 9108
39ce7b3f
AC
9109 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9110 START_INFERIOR_TRAPS_EXPECTED.
9111 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9112 START_INFERIOR_TRAPS_EXPECTED.
9113 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9114 Delete macro.
9115 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9116 macro, moved to "nm-osf.h". Update copyright.
9117 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9118 update copyright.
9119
19772a2c
AC
9120 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9121 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9122 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9123 frameless_look_for_prologue.
9124 * frame.h (legacy_frameless_look_for_prologue): Rename
9125 frameless_look_for_prologue.
9126 * gdbarch.h, gdbarch.c: Re-generate.
9127 * sh64-tdep.c (sh64_gdbarch_init): Update.
9128 * sh-tdep.c (sh_gdbarch_init): Update.
9129 * s390-tdep.c (s390_gdbarch_init): Update.
9130 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9131 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9132 * m68k-tdep.c (m68k_gdbarch_init): Update.
9133 (delta68_frame_args_address): Update.
9134 * m32r-tdep.c (m32r_gdbarch_init): Update.
9135 * hppa-tdep.c (hppa_gdbarch_init): Update.
9136 * h8300-tdep.c (h8300_gdbarch_init): Update.
9137 * frv-tdep.c (frv_gdbarch_init): Update.
9138 (frv_frameless_function_invocation): Update.
9139 * cris-tdep.c (cris_gdbarch_init): Update.
9140 (cris_frameless_function_invocation): Update.
9141 * avr-tdep.c (avr_gdbarch_init): Update.
9142 * arm-tdep.c (arm_gdbarch_init): Update.
9143 * stack.c (frame_info): Update, call predicate.
9144 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9145 * frame.c (legacy_get_prev_frame): Update, call predicate..
9146 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9147 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9148 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9149 invocation.
9150 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9151 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9152 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
9153
9154 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9155 function.
9156
7dcaac91
DJ
91572004-02-16 Daniel Jacobowitz <drow@mvista.com>
9158
9159 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9160 initializations.
9161
88289b6e
AC
91622004-02-16 Andrew Cagney <cagney@redhat.com>
9163
9164 * tui/tui-windata.c: Include "gdb_string.h".
9165 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9166 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9167 * Makefile.in: Update dependencies.
9168
9f976b41
DJ
91692004-02-16 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9172 * infrun.c: Include "gdb_assert.h".
9173 (singlestep_ptid, saved_singlestep_ptid)
9174 (stepping_past_singlestep_breakpoint): New variables.
9175 (resume): Set singlestep_ptid. Check for singlestep thread
9176 hop.
9177 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9178 (handle_inferior_event): Handle singlestep thread hop.
9179
c324d747
AC
91802004-02-16 Andrew Cagney <cagney@redhat.com>
9181
f090b9b1
AC
9182 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9183 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9184 (dwarf2_frame_init_reg): Ditto.
9185
fd33e6cb
AC
9186 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9187 suggested by Joshua Neuheisel
9188
c324d747
AC
9189 * configure.in: Always check for curses, including pdcurses.
9190 Warn, instead of error, when no curses are found. Enable TUI when
9191 curses is available.
9192 * configure: Re-generate.
9193
b66ba949
CV
91942004-02-16 Corinna Vinschen <vinschen@redhat.com>
9195
9196 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9197 sh_sh4_register_convert_to_virtual.
9198 (sh_register_convert_to_raw): Rename from
9199 sh_sh4_register_convert_to_raw.
9200 (sh_pseudo_register_read): Accomodate above name change.
9201 (sh_pseudo_register_write): Ditto.
9202
b58cbbf2
CV
92032004-02-16 Corinna Vinschen <vinschen@redhat.com>
9204
9205 * sh-tdep.c (sh_generic_register_name): Remove.
9206 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9207
5929a910
AC
92082004-02-15 Andrew Cagney <cagney@redhat.com>
9209
4566dfcf
AC
9210 * configure.in (build_warnings): Add -Wunused-function.
9211 * configure: Re-generate.
9212
db11ed55
AC
9213 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9214 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9215
46ac7a5d
AC
9216 * procfs.c (procfs_init_inferior): Assume that
9217 START_INFERIOR_TRAPS_EXPECTED is defined.
9218 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9219 * config/ns32k/tm-nbsd.h: Delete file,
9220 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9221
ba801595
AC
9222 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9223 * config/vax/tm-vax.h: Delete file.
9224
5929a910
AC
9225 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9226 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9227 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9228 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9229 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9230 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9231 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9232
8f22cb90
MK
92332004-02-15 Mark Kettenis <kettenis@gnu.org>
9234
9235 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9236 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9237 (struct dwarf2_frame_ops): New.
9238 (dwarf2_frame_default_init_reg): New function, based on
9239 dwarf2_frame_init_reg.
9240 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9241 (dwarf2_frame_init_reg): Call architecture-specific function.
9242 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9243 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9244 instead of dwarf2_frame_data.
9245 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9246 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9247
8132723e
AC
92482004-02-15 Andrew Cagney <cagney@redhat.com>
9249
046a4708
AC
9250 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9251 register_gdbarch_swap.
9252 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9253 * f-lang.c (_initialize_f_language): Update, use
9254 DEPRECATED_REGISTER_GDBARCH_SWAP.
9255 * remote.c (_initialize_remote): Ditto.
9256 * regcache.c (_initialize_regcache): Ditto.
9257 * parse.c (_initialize_parse): Ditto.
9258 * infrun.c (_initialize_infrun): Ditto.
9259 * mi/mi-main.c (_initialize_mi_main): Ditto.
9260 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 9261
549c1eea
AC
9262 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9263 poking .cacheable directly.
9264 * symfile.c (symfile_bfd_open): Ditto.
9265
0c0b39de
AC
9266 * Makefile.in: Update all dependencies.
9267
8132723e
AC
9268 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9269 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9270 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9271 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9272 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9273
b9d26eb9
AC
92742004-02-14 Andrew Cagney <cagney@redhat.com>
9275
8e1f669a
AC
9276 * arch-utils.c (legacy_convert_register_p): Check
9277 DEPRECATED_REGISTER_CONVERTIBLE_P.
9278 * findvar.c (value_of_register): Ditto.
9279
cd0bfa36
AC
9280 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9281 * gdbarch.h, gdbarch.c: Re-generate.
9282 * arch-utils.c (deprecated_register_convertible_not): Delete.
9283 * arch-utils.h (deprecated_register_convertible_not): Delete.
9284 * mi/mi-main.c (get_register): Update. Update copyright.
9285 * infcmd.c (default_print_registers_info): Update.
9286
b9d26eb9
AC
9287 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9288 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9289 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9290 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9291 * frame.c (deprecated_get_next_frame_hack): Delete function.
9292 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9293 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9294 Update.
9295 * infcall.c (call_function_by_hand): Update.
9296
9ab9195f
EZ
92972004-02-14 Elena Zannoni <ezannoni@redhat.com>
9298
9299 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9300 from here...
9ab9195f
EZ
9301 * objfiles.c (init_entry_point_info, entry_point_address):..to
9302 here.
9303 * symfile.h (init_entry_point_info, entry_point_address): Remove
9304 prototypes.
9305 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9306 prototypes.
9ab9195f
EZ
9307 * cris-tdep.c: Remove include of symfile.h. Add include of
9308 objfiles.h.
9309 * infcall.c: Ditto.
9310 * mcore-tdep.c: Ditto.
9311 * mn10300-tdep.c: Ditto.
9312 * sh64-tdep.c: Ditto.
9313 * v850-tdep.c: Ditto.
9314 * arm-tdep.c: Remove include of symfile.h.
9315 * blockframe.c: Ditto.
9316 * coffread.c: Ditto.
9317 * dbxread.c: Ditto.
9318 * dwarf2read.c: Ditto.
9319 * dwarfread.c: Ditto.
8a1dac83 9320 * frv-tdep.c: Ditto.
9ab9195f
EZ
9321 * ia64-tdep.c: Ditto.
9322 * mdebugread.c: Ditto.
9323 * mipsread.c: Ditto.
8a1dac83 9324 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9325 * s390-tdep.c: Ditto.
9326 * sh-tdep.c: Ditto.
8a1dac83 9327 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9328 * gdbarch.sh: Remove include of symfile.h.
9329 * gdbarch.c: Regenerate.
9330 * solib-irix.c (enable_break): Use entry_point_address().
9331 Add comment about include file.
9332 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9333 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9334 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9335 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9336 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9337 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9338
c4c5b7ba
AC
93392004-02-13 Andrew Cagney <cagney@redhat.com>
9340
9341 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9342 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9343 copyright.
9344 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9345
3e7879de
FF
93462004-02-12 Fred Fish <fnf@redhat.com>
9347
9348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9349 set_gdbarch_store_return_value.
9350
6a7760b6
AC
93512004-02-12 Andrew Cagney <cagney@redhat.com>
9352
9353 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9354 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9355 (interrupt_query): Ditto.
9356 (ofunc): Delete unused variable.
9357 * cris-tdep.c (cris_abi): Delete unused function.
9358 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9359 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9360 (cris_get_asr_quick_shift_steps): Ditto.
9361 (cris_skip_prologue_frameless_p): Ditto.
9362 * arm-tdep.c (arm_push_return_address): Delete unused function.
9363 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9364 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9365 * s390-tdep.c (s390_function_start): Delete unused function.
9366
31687c3c
AC
93672004-02-12 Andrew Cagney <cagney@redhat.com>
9368
9369 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9370 gdbarch.h, gdbarch.c: Re-generate.
9371 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9372 to generic_prologue_frameless_p.
9373 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9374 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9375
6de918a6
DJ
93762004-02-11 Daniel Jacobowitz <drow@mvista.com>
9377
9378 * mips-linux-tdep.c: Include "frame.h".
9379 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9380 (mips_linux_skip_resolver): New functions.
9381 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9382 and set_gdbarch_in_solib_call_trampoline.
9383 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9384 to after set_gdbarch_in_solib_return_trampoline. Only set the
9385 solib hooks to mips16 functions if the OS ABI is unknown.
9386 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9387 including "config/tm-linux.h".
9388 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9389 * Makefile.in (mips-linux-tdep.o): Update.
9390
87b3ede8
DC
93912004-02-11 David Carlton <carlton@kealia.com>
9392
9393 * linespec.c (decode_compound): Only look for a class symbol when
9394 considering all but the rightmost component.
9395
5979bc46
AC
93962004-02-11 Andrew Cagney <cagney@redhat.com>
9397
9398 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9399 abi code are are separatly grouped.
9400
5867a2fb
AC
94012004-02-11 Andrew Cagney <cagney@redhat.com>
9402
9403 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9404 * gdbarch.h, gdbarch.c: Re-generate.
9405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9406 * v850-tdep.c (v850_gdbarch_init): Update.
9407 * sh64-tdep.c (sh64_gdbarch_init): Update.
9408 * sh-tdep.c (sh_gdbarch_init): Update.
9409 * s390-tdep.c (s390_gdbarch_init): Update.
9410 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9411 * mips-tdep.c (mips_gdbarch_init): Update.
9412 * mcore-tdep.c (mcore_gdbarch_init): Update.
9413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9414 * m32r-tdep.c (m32r_gdbarch_init): Update.
9415 * ia64-tdep.c (ia64_gdbarch_init): Update.
9416 * hppa-tdep.c (hppa_gdbarch_init): Update.
9417 * h8300-tdep.c (h8300_gdbarch_init): Update.
9418 * frv-tdep.c (frv_gdbarch_init): Update.
9419 * d10v-tdep.c (d10v_gdbarch_init): Update.
9420 * cris-tdep.c (cris_gdbarch_init): Update.
9421 * avr-tdep.c (avr_gdbarch_init): Update.
9422 * arm-tdep.c (arm_gdbarch_init): Update.
9423 * alpha-tdep.c (alpha_gdbarch_init): Update.
9424
026a72f8
CV
94252004-02-11 Corinna Vinschen <vinschen@redhat.com>
9426
9427 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9428 comma.
9429 (sh_sh4al_dsp_register_name): Ditto.
9430
3903d437
AC
94312004-02-10 Andrew Cagney <cagney@redhat.com>
9432
9433 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9434 (mips_init_frame_pc_first): Delete function.
9435 (mips_frame_saved_pc): Delete function.
9436 (mips_frame_chain): Delete function.
9437 (mips_init_extra_frame_info): Delete function.
9438 (mips_xfer_register): Delete unused variable "reg".
9439 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9440 (mips_n32n64_return_value): Delete unused variable "reg".
9441 (mips_n32n64_return_value): Delete unused variable "pos".
9442 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9443 (mips_o32_return_value): Delete unused variable "pos".
9444 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9445 (mips_print_fp_register): Delete unused variable "namelen"
9446 (mips_print_fp_register): Delete unused variable "flt2"
9447 (get_frame_pointer): Delete function.
9448 (cached_proc_desc): Delete static variable.
9449 (mips_pop_frame): Delete function.
9450 (mips_find_saved_regs): Delete function.
9451 (mips_get_saved_register): Delete function.
9452 (mips_saved_pc_after_call): Delete function.
9453 (SIGFRAME_BASE): Delete macro.
9454 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9455 (SIGFRAME_PC_OFF): Delete macro.
9456 (SIGFRAME_REGSAVE_OFF): Delete macro.
9457 (mips_dump_tdep): Do not print deleted macro definitions.
9458
b9fb98bd
AC
94592004-02-10 Andrew Cagney <cagney@redhat.com>
9460
9461 * Makefile.in (SFILES): Remove explictly listed tui files.
9462 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9463
78ced177 94642004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9465
78ced177
JJ
9466 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9467 to use paddr functions to format ia64 addresses and long values.
9468 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9469 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9470 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9471 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9472 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9473
6a83354a
AC
94742004-02-10 Andrew Cagney <cagney@redhat.com>
9475
9476 * defs.h: Do not include "tui.h".
9477 * gdb_curses.h: New file.
9478 * tui/tui-hooks.h: New file.
9479 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9480 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9481 (tui_initialize_io): Delete declaration.
9482 (tui_initialize_readline: Delete redundant declaration.
9483 (struct tui_point): Delete definition.
9484 * tui/tui-data.h (struct tui_point): Define.
9485 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9486 * utils.c: Include "tui/tui.h".
9487 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9488 * printcmd.c [TUI]: Include "tui/tui.h".
9489 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9490 * tui/tui-command.c: Include "gdb_curses.h".
9491 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9492 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9493 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9494 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9495 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9496 * Makefile.in: Update all dependencies.
9497 (tui_hooks_h, gdb_curses_h): Define.
9498 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9499
997470ef
EZ
95002004-02-10 Elena Zannoni <ezannoni@redhat.com>
9501
9502 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9503 auxf2. Add comments about some other rarely used fields.
9504
4ff2cc4d
AC
95052004-02-10 Andrew Cagney <cagney@redhat.com>
9506
9507 * Makefile.in (init.c): Fix script removing duplicates. Problem
9508 reported by Peter Schauer.
9509
1ab21617
EZ
95102004-02-09 Elena Zannoni <ezannoni@redhat.com>
9511
9512 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9513 obstack_specify_allocation.
9514 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9515 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9516 (allocate_rt_common_objfile): Ditto.
9517 * symfile.c (reread_symbols): Ditto.
9518 * gdb_obstack.h: Add comment.
9519
17763fd9
EZ
95202004-02-09 Elena Zannoni <ezannoni@redhat.com>
9521
9522 * linespec.c (decode_line_1, locate_first_half)
9523 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9524 commented out code.
9525
ec5cdd75
DJ
95262004-02-09 Daniel Jacobowitz <drow@mvista.com>
9527
9528 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9529 obstack_free.
9530
43b54b88
AC
95312004-02-09 Andrew Cagney <cagney@redhat.com>
9532
9533 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9534 fails, try find_pc_section. Fix PR c++/1267.
9535 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9536 instead of find_pc_mapped_section.
9537 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9538 not default to the section containing PC. Fix PR symtab/1519.
9539
edfae063
AC
95402004-02-09 Andrew Cagney <cagney@redhat.com>
9541
9542 * Makefile.in (mips-tdep.o): Update dependencies.
9543 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9544 "trad-frame.h".
9545 (mips_unwind_pc): Return the pseudo PC register.
9546 (mips_unwind_dummy_id): New function.
9547 (mips16_fetch_instruction): New function.
9548 (mips32_fetch_instruction): New function.
9549 (struct mips_frame_cache): Define.
9550 (mips_mdebug_frame_cache): New function.
9551 (mips_mdebug_frame_this_id): New function.
9552 (mips_mdebug_frame_prev_register): New function.
9553 (mips_mdebug_frame_unwind): Define.
9554 (mips_mdebug_frame_sniffer): New function.
9555 (mips_mdebug_frame_base_address): New function.
9556 (mips_mdebug_frame_base): Define.
9557 (mips_mdebug_frame_base_sniffer): New function.
9558 (mips_gdbarch_init): Append unwind and base sniffers. Set
9559 unwind_dummy_id.
9560
defc864c
AC
95612004-02-08 Andrew Cagney <cagney@redhat.com>
9562
6764ddad
AC
9563 * frame.c: Print both the register number and name.
9564
defc864c
AC
9565 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9566 and a sed into a single sed. Make .c and .o patterns more robust.
9567 (OBS): Delete.
9568 (INIT_FILES): Replace OBS with COMMON_OBS.
9569 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9570
645d6d10
MK
95712004-02-08 Mark Kettenis <kettenis@gnu.org>
9572
9573 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9574 the PT_WCOOKIE request.
9575
23e3c3fc
AC
95762004-02-08 Andrew Cagney <cagney@redhat.com>
9577
58dfe9ff
AC
9578 * mips-tdep.c (mips_unwind_pc): New function.
9579 (mips_gdbarch_init): Set mips_unwind_pc.
9580
1152e35e
AC
9581 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9582 (get_frame_id): Allow the UNKNOWN_FRAME.
9583 (frame_register_unwind, get_frame_type): Ditto.
9584
31b75dbf
AC
9585 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9586 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9587 unwind_dummy_id indicates a legacy frame.
9588
3483b318
AC
9589 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9590 * configure: Re-generate.
9591
23e3c3fc
AC
9592 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9593 methods.
9594
33f8ca73
AC
95952004-02-08 Andrew Cagney <cagney@redhat.com>
9596
9597 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9598 makefile macro.
9599 * configure: Re-generate.
9600 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9601 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9602 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9603 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9604 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9605 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9606 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9607 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9608 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9609 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9610
6ba8e26f 96112004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9612
20d286a5
AC
9613 * Makefile.in: Update all dependencies.
9614
d836ee13
AC
9615 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9616 * configure: Re-generate.
9617 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9618 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9619 (COMMON_OBS): Add "main.o" and "annotate.o".
9620 (ANNOTATE_OBS): Delete.
9621 (OBS): Remove ANNOTATE_OBS.
9622 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9623 CONFIG_INITS.
9624 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9625 against CONFIG_OBS and "main.o".
9626 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9627 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9628
d02c80cd
AC
9629 * tui/tui-command.c: Include "gdb_string.h", delete register
9630 attribute, use ISO-C function signatures.
9631 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9632 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9633 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9634 * tui/tui.c: Ditto.
6ba8e26f
AC
9635
9636 * tui/tui-command.c: Change variable and function names to lower
9637 case.
9638 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9639 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9640 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9641 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9642 * tui/tui-winsource.c, tui/tui.c: Ditto.
9643
4a146b47
EZ
96442004-02-07 Elena Zannoni <ezannoni@redhat.com>
9645
9646 * buildsym.c (free_pending_blocks, finish_block)
9647 (record_pending_block, make_blockvector, end_symtab): Replace
9648 symbol_obstack with objfile_obstack.
8a1dac83 9649 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9650 (coff_read_enum_type): Ditto.
8a1dac83 9651 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9652 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9653 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9654 (dwarf2_symbol_mark_computed): Ditto.
9655 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9656 * elfread.c (elf_symtab_read): Ditto.
9657 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9658 (hpread_read_enum_type, hpread_read_function_type)
9659 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9660 Ditto.
8a1dac83 9661 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9662 (java_link_class_type): Ditto.
8a1dac83 9663 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9664 (new_symbol): Ditto.
9665 * minsyms.c (install_minimal_symbols): Ditto.
9666 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9667 (terminate_minimal_symbol_table): Replace symbol_obstack with
9668 objfile_obstack.
9669 (free_objfile): Remove freeing of symbol_obstack.
9670 * objfiles.h: Remove symbol_obstack field.
9671 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9672 objfile_obstack.
9673 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9674 symbol_obstack.
9675 (solib_add_common_symbols): Replace symbol_obstack with
9676 objfile_obstack.
9677 * somsolib.c (som_solib_add): Ditto.
9678 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9679 (common_block_start, common_block_end): Ditto.
9680 * symfile.c (reread_symbols): Remove freeing and init of
9681 symbol_obstack.
9682 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9683 * symfile.h: Update comment.
9684 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9685 stats printing.
9686 * symtab.c (symbol_set_names): Replace symbol_obstack with
9687 objfile_obstack.
9688 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9689 Update comments.
9690 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9691 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9692 objfile_obstack.
9693
6d012f14
AC
96942004-02-07 Andrew Cagney <cagney@redhat.com>
9695
9696 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9697 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9698 fields and variables.
9699 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9700 (m_beInvisible): Delete macro.
9701 * tui/tui-data.h: Fix case case fields and variables.
9702 (m_genWinPtrIsNull): Delete macro.
9703 (tui_win_list): Rename winList.
9704 (TUI_SRC_WIN): Rename srcWin.
9705 (TUI_DISASM_WIN): Rename disassemWin.
9706 (TUI_DATA_WIN): Rename dataWin.
9707 (TUI_CMD_WIN): Rename cmdWin.
9708 (m_genWinPtrNotNull): Delete macro.
9709 (m_winPtrIsNull): Delete macro.
9710 (m_winPtrNotNull): Delete macro.
9711 (tui_win_is_source_type): Replace m_winIsSourceType
9712 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9713 (tui_win_has_locator): Replace m_hasLocator.
9714 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9715 m_setWinHighlightOff.
9716 * tui/tui-data.c: Update references.
9717 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9718 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9719 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9720 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9721 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9722 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9723 * tui/tui-winsource.c, tui/tui.c: Ditto.
9724
7d34766b
MK
97252004-02-07 Mark Kettenis <kettenis@gnu.org>
9726
1c800673
MK
9727 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9728 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9729 StackGhost.
9730
7d34766b
MK
9731 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9732 variable `i6' to `i7'.
9733 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9734
22940a24
AC
97352004-02-07 Andrew Cagney <cagney@redhat.com>
9736
9737 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9738 (TuiPoint, TuiPointPtr): Ditto.
9739 (TuiStatus, TuiStatusPtr): Ditto.
9740 (TuiWinType, TuiWinTypePtr): Ditto.
9741 (struct tui_point): Rename _TuiPoint.
9742 (tui_get_low_disassembly_address): Rename
9743 tuiGetLowDisassemblyAddress.
9744 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9745 (tuiFree): Delete declaration.
9746 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9747 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9748 * tui/tui.c (tuiFree): Delete function.
9749 * cli/cli-cmds.c (disassemble_command): Update references.
9750 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9751 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9752 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9753 * tui/tui-winsource.c: Ditto.
9754
8b92e4d5
EZ
97552004-02-07 Elena Zannoni <ezannoni@redhat.com>
9756
9757 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9758 coffstab_build_psymtabs, elfstab_build_psymtabs)
9759 (stabsect_build_psymtabs): Replace psymbol_obstack with
9760 objfile_obstack.
9761 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9762 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9763 Ditto.
9764 * dwarfread.c (scan_compilation_units): Ditto.
9765 * elfread.c (elfstab_offset_sections): Ditto.
9766 * hppa-tdep.c (read_unwind_info): Ditto.
9767 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9768 (hpread_end_psymtab): Ditto.
9769 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9770 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9771 Ditto.
9772 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9773 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9774 (build_objfile_section_table): Ditto.
9775 (allocate_objfile): Remove init of psymbol_obstack.
9776 (free_objfile): Remove freeing of psymbol_obstack.
9777 * objfiles.h (struct objfile): Remove field
9778 psymbol_obstack. Update comments.
9779 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9780 psymbol_obstack with objfile_obstack.
9781 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9782 psymbol_obstack.
9783 * somread.c (som_symfile_offsets, init_import_symbols)
9784 (init_export_symbols): Replace psymbol_obstack with
9785 objfile_obstack.
9786 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9787 * symfile.c (default_symfile_offsets, syms_from_objfile)
9788 (reread_symbols): Remove freeing and init of psymbol_obstack.
9789 (cashier_psymtab): Update comment.
9790 * symmisc.c (print_objfile_statistics): Don't report stats for
9791 psymbol obstack.
9792 * symtab.h (struct general_symbol_info, struct partial_symtab):
9793 Update comments.
9794 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9795 (xcoff_symfile_offsets): Replace psymbol_obstack with
9796 objfile_obstack.
9797
b99607ea
EZ
97982004-02-07 Elena Zannoni <ezannoni@redhat.com>
9799
9800 * objfiles.h (struct objfile): Add objfile_obstack field.
9801 Remove type_obstack field.
9802
9803 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9804 read_structure_scope read_enumeration, new_symbol): Replace
9805 type_obstack with objfile_obstack.
9806 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9807 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9808 (lookup_fundamental_type): Ditto.
9809 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9810 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9811 (hpread_read_doc_function_type, hpread_read_struct_type)
9812 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9813 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9814 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9815 (java_link_class_type): Ditto.
9816 * mdebugread.c (parse_type): Ditto.
9817 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9818 * solib-sunos.c (solib_add_common_symbols): Ditto.
9819 * stabsread.c (define_symbol, read_type, read_member_functions,
9820 read_cpp_abbrev, read_one_struct_field): Ditto.
9821 * symfile.c (reread_symbols): Ditto.
9822 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9823
2a8854a7
AC
98242004-02-07 Andrew Cagney <cagney@redhat.com>
9825
9826 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9827 (tui_exec_info_content): Rename TuiExecInfoContent.
9828 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9829 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9830 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9831 (TuiList, TuiListPtr): Ditto.
9832 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9833 (TuiDataType, TuiDataTypePtr): Ditto.
9834 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9835 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9836 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9837 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9838 (TuiDataElement, TuiDataElementPtr): Ditto.
9839 (TuiWinElement, TuiWinElementPtr): Ditto.
9840 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9841 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9842 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9843 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9844 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9845 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9846 * tui/tui-command.c, tui/tui-data.c: Update references.
9847 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9848 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9849 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9850 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9851
05cbe71a
MK
98522004-02-07 Mark Kettenis <kettenis@gnu.org>
9853
9854 * dwarf2-frame.h: Update copyright.
9855 (enum dwarf2_frame_reg_rule): New.
9856 (struct dwarf2_frame_state_reg): New.
9857 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9858 * dwarf2-frame.c: Update copyright.
9859 (enum dwarf2_reg_rule): Remove.
9860 (struct dwarf2_frame_state): Remove defenition of `struct
9861 dwarf2_frame_state_reg'.
9862 (read_reg): Call get_frame_arch to get the architecture instead of
9863 using CURRENT_GDBARCH.
9864 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9865 DWARF2_FRAME_.
9866 (dwarf2_frame_init_reg): New function.
9867 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9868 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9869 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9870 tags with DWARF2_FRAME_.
9871 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9872 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9873 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9874
ec7d9e56
AC
98752004-02-06 Andrew Cagney <cagney@redhat.com>
9876
dd1abb8c
AC
9877 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9878 (enum tui_data_type): Rename _TuiDataType.
9879 (struct tui_layout_def): Rename _TuiLayoutDef.
9880 (struct tui_source_element): Rename _TuiSourceElement.
9881 (struct tui_data_element): Rename _TuiDataElement.
9882 (struct tui_command_element): Rename _TuiCommandElement.
9883 (struct tui_locator_element): Rename _TuiLocatorElement.
9884 (union tui_which_element): Define.
9885 (struct tui_win_element): Rename _TuiWinElement.
9886 (struct tui_data_info): Rename _TuiDataInfo.
9887 (struct tui_source_info): Rename _TuiSourceInfo.
9888 (struct tui_command_info): Rename _TuiCommandInfo.
9889 (tui_initialize_static_data): Rename initializeStaticData.
9890 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9891 (tui_alloc_win_info): Rename allocWinInfo.
9892 (tui_init_generic_part): Rename initGenericPart.
9893 (tui_init_win_info): Rename initWinInfo.
9894 (tui_alloc_content): Rename allocContent.
9895 (tui_add_content_elements): Rename addContentElements.
9896 (tui_init_content_element): Rename initContentElement.
9897 (tui_free_window): Rename freeWindow.
9898 (tui_free_win_content): Rename freeWinContent.
9899 (tui_free_data_content): Rename freeDataContent.
9900 (tui_free_all_source_wins_content): Rename
9901 freeAllSourceWinsContent.
9902 (tui_del_window): Rename tuiDelWindow.
9903 (tui_del_data_windows): Rename tuiDelDataWindows.
9904 (tui_partial_win_by_name): Rename partialWinByName.
9905 (tui_win_name): Rename winName.
9906 (tui_current_layout): Rename currentLayout.
9907 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9908 (tui_term_height): Rename termHeight.
9909 (tui_set_term_height_to): Rename setTermHeightTo.
9910 (tui_term_width): Rename termWidth.
9911 (tui_set_term_width_to): Rename setTermWidthTo.
9912 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9913 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9914 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9915 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9916 (tui_source_windows): Rename sourceWindows.
9917 (tui_clear_source_windows): Rename clearSourceWindows.
9918 (tui_clear_source_windows_detail): Rename
9919 clearSourceWindowsDetail.
9920 (tui_clear_win_detail): Rename clearWinDetail.
9921 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9922 (tui_default_tab_len): Rename tuiDefaultTabLen.
9923 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9924 (tui_win_with_focus): Rename tuiWinWithFocus.
9925 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9926 (tui_layout_def): Rename tuiLayoutDef.
9927 (tui_win_resized): Rename tuiWinResized.
9928 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9929 (tui_next_win): Rename tuiNextWin.
9930 (tui_prev_win): Rename tuiPrevWin.
9931 (tui_add_to_source_windows): Rename addToSourceWindows.
9932 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9933 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9934 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9935 * tui/tui.c, tui/tui-data.c: Ditto.
9936 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9937 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9938
a358af15
AC
9939 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9940 (struct symtab): Declare.
9941 (tui_set_source_content): Rename tuiSetSourceContent.
9942 (tui_show_symtab_source): Rename tuiShowSource.
9943 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9944 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9945 * tui/tui-source.c: Update copyright. Update references.
9946 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9947 * tui/tui-stack.c: Update references.
9948
a21fcd8f
AC
9949 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9950 (struct tui_win_info): Declare.
9951 (tui_scroll_forward): Rename tuiScrollForward.
9952 (tui_scroll_backward): Rename tuiScrollBackward.
9953 (tui_scroll_left): Rename tuiScrollLeft.
9954 (tui_scroll_right): Rename tuiScrollRight.
9955 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9956 (tui_resize_all): Rename tuiResizeAll.
9957 (tui_refresh_all_win): Rename tuiRefreshAll.
9958 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9959 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9960 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9961 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9962
edae1ccf
AC
9963 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9964 (tui_erase_data_content): Rename tuiEraseDataContent.
9965 (tui_display_all_data): Rename tuiDisplayAllData.
9966 (tui_check_data_values): Rename tuiCheckDataValues.
9967 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9968 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9969 (tui_first_data_element_no_in_line): Rename
9970 tuiFirstDataElementNoInLine.
9971 (tui_delete_data_content_windows): Rename
9972 tuiDeleteDataContentWindows.
9973 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9974 (tui_display_data_from): Rename tuiDisplayDataFrom.
9975 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9976 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9977 * tui/tui-win.c, tui/tui-regs.c: Update references.
9978 * tui/tui-layout.c, tui/tui.c: Update references.
9979
ec7d9e56
AC
9980 * tui/tui-wingeneral.h: Update copyright.
9981 (m_allBeVisible): Delete macro.
8a1dac83 9982 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9983 (struct tui_gen_win_info): Declare.
9984 (struct tui_win_info): Declare.
9985 (tui_unhighlight_win): Rename unhighlightWin.
9986 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9987 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9988 (tui_make_window): Rename makeWindow.
9989 (tui_copy_win): Rename copyWin.
9990 (tui_box_win): Rename boxWin.
9991 (tui_highlight_win): Rename highlightWin.
9992 (tui_check_and_display_highlight_if_needed): Rename
9993 checkAndDisplayHighlightIfNeeded.
9994 (tui_refresh_all): Rename refreshAll.
9995 (tui_delete_win): Rename tuiDelwin.
9996 (tui_refresh_win): Rename tuiRefreshWin.
9997 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9998 (tui_make_visible, tui_make_invisible): New functions.
9999 (tui_make_all_visible, tui_make_all_invisible): New functions.
10000 (make_all_visible): Rename makeAllVisible.
10001 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10002 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10003 * tui/tui-windata.c, tui/tui-win.c: Update references.
10004 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10005 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10006
1e52e2eb
MK
100072004-02-06 Mark Kettenis <kettenis@gnu.org>
10008
10009 * proc-api.c (write_with_trace): Initialize local variable to
10010 silence compiler warning.
10011
f80bda8e
AC
100122004-02-06 Andrew Cagney <cagney@redhat.com>
10013
10014 * tui/tui-source.h: Do not include "defs.h".
10015 (struct tui_win_info): Declare.
10016 (tui_set_source_content_nil): Declare.
10017 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10018 (union tui_line_or_address): Rename _TuiLineOrAddress.
10019 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10020 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10021 (tui_update_source_window_as_is): Rename
10022 tuiUpdateSourceWindowAsIs.
10023 (tui_update_source_windows_with_addr): Rename
10024 tuiUpdateSourceWindowsWithAddr.
10025 (tui_update_source_windows_with_line): Rename
10026 tuiUpdateSourceWindowsWithLine.
10027 (tui_clear_source_content): Rename tuiClearSourceContent.
10028 (tui_erase_source_content): Rename tuiEraseSourceContent.
10029 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10030 (tui_show_source_content): Rename tuiShowSourceContent.
10031 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10032 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10033 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10034 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10035 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10036 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10037 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10038 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10039 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10040 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10041 (struct tui_win_info): Declare.
10042 * tui/tui-stack.c: Update references.
10043 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10044 * tui/tui-win.c, tui/tui-source.c: Ditto.
10045 * tui/tui.c, tui/tui-disasm.c: Ditto.
10046
9fbfb822
MK
100472004-02-06 Mark Kettenis <kettenis@gnu.org>
10048
10049 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10050 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10051
03cebad2
MK
100522004-02-05 Mark Kettenis <kettenis@gnu.org>
10053
10054 * infrun.c (handle_inferior_event): Allow for breakpoint
10055 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10056 and SIGEMT. Update comments.
10057 * NEWS (Revised SPARC target): Mention support for non-executable
10058 stack.
10059
290281b1
MK
100602004-02-04 Mark Kettenis <kettenis@gnu.org>
10061
10062 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10063 * inftarg.c: Update copyright year.
10064 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10065 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10066 (sparc_xfer_wcookie): New function.
10067 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10068 * Makefile.in (sparc-nat.o): Update dependencies.
10069 * config/sparc/nm-nbsd.h: Include "target.h".
10070 (NATIVE_XFER_WCOOKIE): New define.
10071 (sparc_xfer_wcookie): New prototype.
10072
212161df
AC
100732004-02-04 Andrew Cagney <cagney@redhat.com>
10074
10075 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10076 SYSCALL_TRAP function.
10077 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10078
6e4c6c91
DJ
100792004-02-04 Andrew Cagney <cagney@redhat.com>
10080 Daniel Jacobowitz <drow@mvista.com>
10081
10082 * objfiles.h: Delete comments refering to inside_entry_func and
10083 DEPRECATED_FRAME_CHAIN_VALID.
10084 * defs.h (inside_entry_func): Update prototype..
10085 * blockframe.c (inside_entry_func): Rename to
10086 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10087 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10088
cae688ec
JJ
100892004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10090
10091 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10092 outside of #ifdef SOLIB_ADD region.
10093 (do_restore_lang_radix_cleanup): Ditto.
10094 (resolve_pending_breakpoint): Ditto.
10095
19217676
AC
100962004-02-03 Andrew Cagney <cagney@redhat.com>
10097
10098 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10099 (process_note_abi_tag_sections): Delete unused function.
10100 (ia64_read_fp): Delete unused function.
10101 (gdbarch_extract_struct_value_address): Delete declaration.
10102
876753be
AC
101032004-02-02 Andrew Cagney <cagney@redhat.com>
10104
10105 * vax-tdep.c (vax_frame_chain): Delete call to
10106 deprecated_inside_entry_file.
10107 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10108
d4f10bf2
MK
101092004-02-02 Mark Kettenis <kettenis@gnu.org>
10110
10111 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10112 column that's "empty" or "same value" when eliminating REG_RA
10113 rules.
10114
cae688ec
JJ
101152004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10116
10117 * NEWS: Add information about new pending breakpoint support.
10118
0101ce28
JJ
101192004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10120
10121 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10122 and pending fields for pending breakpoint support.
10123 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10124 (condition_command): Only parse condition if not a pending
10125 breakpoint.
10126 (print_one_breakpoint): Add support for pending breakpoints.
10127 (describe_other_breakpoints): Add checks to verify we are not
10128 dealing with pending breakpoints.
10129 (check_duplicates): Don't check pending breakpoints.
10130 (set_raw_breakpoint): Initialize pending flag.
10131 (do_restore_lang_radix_cleanup): New cleanup routine.
10132 (resolve_pending_breakpoint): New function.
10133 (re_enable_breakpoints_in_shlibs): Try and resolve any
10134 pending breakpoints via resolve_pending_breakpoint.
10135 (mention): Add pending breakpoint support.
10136 (parse_breakpoint_sals): Add new parameter to pass to
10137 decode_line_1 to indicate silent errors when files or functions
10138 are not found. Change all callers.
10139 (do_captured_parse_breakpoint): New function.
10140 (break_command_1): Change prototype to return an rc value and to
10141 take an optional pending breakpoint pointer. Support creating
10142 a pending breakpoint if a "not found" form of error occurs when
10143 parsing the breakpoint. Also support resolving an existing pending
10144 breakpoint and be silent if the resolution fails.
10145 (create_breakpoints): Change prototype to take pending breakpoint
10146 pointer. When resolving a pending breakpoint, use the new pointer
10147 to provide a conditional or commands added by the end-user.
10148 (delete_breakpoint): Add appropriate check for pending.
10149 (breakpoint_re_set_one): Ditto.
10150 (do_enable_breakpoint): Ditto.
10151
8d577d32
DC
101522004-02-02 David Carlton <carlton@kealia.com>
10153
10154 * valops.c (enum oload_classification): New.
10155 (find_overload_match): Break implementation into separate
10156 functions; delete #if 0'd code; look for symbols within
10157 namespaces.
10158 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10159 (find_oload_champ,oload_method_static,classify_oload_match): New.
10160 * cp-support.h: Add declaration for cp_func_name; update
10161 declaration for make_symbol_overload_list.
10162 * cp-support.c (cp_func_name): New.
10163 (overload_list_add_symbol): Fix comment, use
10164 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10165 (make_symbol_overload_list): Take a function name and a namespace
10166 instead of a symbol; change implementation.
10167 (make_symbol_overload_list_using): New.
10168 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10169
22e8e3c7
FF
101702004-02-02 Fred Fish <fnf@redhat.com>
10171
10172 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 10173 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
10174 * remote-sim.c (gdb_os_write_stderr): Write output to
10175 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10176 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 10177 gdb_stderr stream and update copyright years.
22e8e3c7 10178
6b753f60
DJ
101792004-02-01 Daniel Jacobowitz <drow@mvista.com>
10180
10181 * Makefile.in (mips-linux-nat.o): Update dependencies.
10182 * mips-linux-nat.c: Include mips-tdep.h.
10183
101842004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
10185
10186 * sol-thread.c (sol_thread_xfer_partial): New function.
10187 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10188 (init_sol_core_ops): Likewise.
10189
10190 * procfs.c (procfs_xfer_partial): New function.
10191 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10192 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10193
10194 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10195 procfs_xfer_auxv function.
10196
10197 * procfs.c (procfs_make_note_section): If we can read
10198 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10199 * linux-proc.c (linux_make_note_section): Likewise.
10200
10201 * auxv.h: New file.
10202 * auxv.c: New file.
10203 * Makefile.in (auxv_h): New variable.
10204 (COMMON_OBS): Add auxv.o here.
10205 (auxv.o): New target.
10206
10207 * corelow.c (core_xfer_partial): New function.
10208 (init_core_ops): Use it for core_ops.to_xfer_partial.
10209
10210 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10211 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10212 macro if that is defined.
10213
fa5281d0
DJ
102142004-02-01 Daniel Jacobowitz <drow@mvista.com>
10215
10216 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10217 and check the specified thread for each breakpoint.
10218 * breakpoint.h (bpstat_stop_status): Update prototype.
10219 * infrun.c (handle_inferior_event): Update calls to
10220 bpstat_stop_status.
10221
26ee262d
DJ
102222004-02-01 Daniel Jacobowitz <drow@mvista.com>
10223
10224 * Makefile.in (cli-cmds.o): Add $(readline_h).
10225
d9b52655
DJ
102262004-02-01 Daniel Jacobowitz <drow@mvista.com>
10227
10228 * cli/cli-cmds.c: Include readline.h.
10229 (complete_command): Pass the start of the last word to
10230 complete_line.
10231
9709f61c
DJ
102322004-01-31 Daniel Jacobowitz <drow@mvista.com>
10233
10234 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10235 argument, and change first argument to a CORE_ADDR.
10236 * breakpoint.h (bpstat_stop_status): Update prototype.
10237 * infrun.c (adjust_pc_after_break): Add a new comment.
10238 (handle_inferior_event): Update calls to bpstat_stop_status.
10239
4f1280bb
DJ
102402004-01-31 Daniel Jacobowitz <drow@mvista.com>
10241
10242 * breakpoint.h: Update copyright years.
10243
4fa8626c
DJ
102442004-01-31 Daniel Jacobowitz <drow@mvista.com>
10245
10246 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10247 (bpstat_stop_status): Don't decrement PC.
10248 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10249 prototype.
10250 * infrun.c (adjust_pc_after_break): New function.
10251 (handle_inferior_event): Call it, early. Remove later references
10252 to DECR_PC_AFTER_BREAK.
10253 (normal_stop): Add commentary.
10254
fad0733a
DJ
102552004-01-31 Daniel Jacobowitz <drow@mvista.com>
10256
10257 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10258 2004-01-27 double-free fix.
10259
42cdca6c
MK
102602004-01-31 Mark Kettenis <kettenis@gnu.org>
10261
10262 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10263 (sparc32_frame_prev_register): Handle StackGhost.
10264 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10265
932d5416
RM
102662004-01-29 Roland McGrath <roland@redhat.com>
10267
10268 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10269 * configure: Regenerated.
10270
10271 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10272 * Makefile.in (procfs.o): Add dep.
10273
47d3492a
AC
102742004-01-28 Andrew Cagney <cagney@redhat.com>
10275
10276 * tui/tui-stack.h: Update copyright.
10277 (struct frame_info): Add opaque declaration.
10278 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10279 (tui_show_locator_content): Rename tuiShowLocatorContent.
10280 (tui_show_frame_info): Rename tuiShowFrameInfo.
10281 * tui/tui-stack.c: Update copyright. Update references.
10282 * tui/tui-winsource.c: Update references.
10283 * tui/tui-win.c: Update references.
10284 * tui/tui-layout.c: Update references.
10285 * tui/tui-hooks.c: Update copyright, update references.
10286 * tui/tui.c: Update copyright, update references.
10287 * tui/tui-disasm.c: Update references.
10288
5d51ca54
DC
102892004-01-28 David Carlton <carlton@kealia.com>
10290
10291 * dwarf2read.c (add_partial_structure): Use demangled name if
10292 namespace equals "".
10293
086ed43d
JB
102942004-01-27 Jim Blandy <jimb@redhat.com>
10295
10296 Clean up misapplied patch:
10297 * dwarf2read.c (determine_prefix): Change one of the two forward
10298 declarations for 'determine_prefix_aux' to a declaration for this.
10299 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10300 argument to 'die_specification'.
10301
2a35147e
JB
10302 * dwarf2read.c (read_func_scope): Re-indent comment.
10303
a355c7de 103042004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10305
a355c7de
AC
10306 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10307 b->exp to NULL after freeing so that error during re-parsing or
10308 evaluation of expressions associated with breakpoint don't
10309 eventually lead to re-freeing of storage.
10310 Committed by Andrew Cagney.
10311
63ff5125
AC
103122004-01-27 Andrew Cagney <cagney@redhat.com>
10313
10314 * source.c (ambiguous_line_spec): Delete undefined declaration.
10315 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10316 (m32r_set_server_address, m32r_set_download_path): Ditto.
10317 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10318
e142c38c
DJ
103192004-01-27 Daniel Jacobowitz <drow@mvista.com>
10320
10321 * dwarf2read.c: Update calls to changed and renamed functions, and
10322 references to moved variables.
10323
10324 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10325 language, language_defn, list_in_scope, and ftypes members.
10326 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10327 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10328 (baseaddr): Remove globals.
10329
10330 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10331 (set_cu_language, die_is_declaration, die_specification)
10332 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10333 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10334 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10335 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10336
10337 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10338 cu.list_in_scope. Don't initialize cu_header_offset.
10339 (add_partial_symbol): Add local baseaddr.
10340 (psymtab_to_symtab_1): Add local baseaddr. Use
10341 objfile->section_offsets for consistency. Don't initialize
10342 cu_header_offset; do initialize cu.header.offset and
10343 cu.list_in_scope.
10344 (read_file_scope, read_func_scope, read_lexical_block_scope)
10345 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10346
c6e06ede
MC
103472004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10348
fb328ecc 10349 * PROBLEMS: Add gdb/1516.
c6e06ede 10350
48184fd4
AC
103512003-12-29 Robert Millan <robertmh@gnu.org>
10352
10353 Patch committed by Andrw Cagney.
10354 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10355 * configure.tgt: Match knetbsd*-gnu.
10356
c1321b30
AC
103572004-01-26 Andrew Cagney <cagney@redhat.com>
10358
f3699be3
AC
10359 * breakpoint.c (catch_command_1): Delete #ifdef code.
10360 (catch_fork_command_1): Delete #ifdef wrapper.
10361 (catch_exec_command_1): Ditto.
10362 (catch_load_command_1): Ditto.
10363 (catch_unload_command_1): Ditto.
10364
c1321b30
AC
10365 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10366 (catch_breakpoint): Delete #if0ed function.
10367 (disable_catch_breakpoint): Ditto.
10368 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10369 (disable_catch, enable_catch, delete_catch): Ditto.
10370
b4501125
AC
103712004-01-26 Andrew Cagney <cagney@redhat.com>
10372
10373 * remote.c (echo_check, quit_flag): Delete variables.
10374 (cisco_kernel_mode): Delete variable.
10375 (minitelnet_return, tty_input, escape_count): Delete variables.
10376 (remote_cisco_mode): Delete variable.
10377 (remote_cisco_open, remote_cisco_close): Delete function.
10378 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10379 (init_remote_cisco_ops): Delete function.
10380 (_initialize_remote): Do not install "remote cisco" code.
10381 (read_frame): Delete cisco specific code.
10382 (remote_info_process): Delete function.
10383 (remote_wait): Delete cisco specific code.
10384 (remote_cisco_section_offsets): Delete function.
10385 (remote_cisco_objfile_relocate): Delete function.
10386 (remote_async_wait): Delete cisco specific code.
10387 (minitelnet, readtty, readsocket): Delete function.
10388
74055713
AC
103892004-01-26 Andrew Cagney <cagney@redhat.com>
10390
10391 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10392 comments mentioning extract_returned_value_address.
10393 * infcmd.c (print_return_value): Update. Add comments on
10394 extract_returned_value_address.
10395 * stack.c (return_command): Add comments on
10396 extract_returned_value_address.
10397 * values.c: Update comment.
10398 * m32r-tdep.c: Update comment.
10399 * sparc-tdep.c: Update comment.
10400 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10402 * sh64-tdep.c (sh64_gdbarch_init): Update.
10403 * sh-tdep.c (sh_gdbarch_init): Update.
10404 * s390-tdep.c (s390_gdbarch_init): Update.
10405 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10406 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10407 * m68k-tdep.c (m68k_gdbarch_init): Update.
10408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10409 * m32r-tdep.c (m32r_gdbarch_init): Update.
10410 * ia64-tdep.c (ia64_gdbarch_init): Update.
10411 * h8300-tdep.c (h8300_gdbarch_init): Update.
10412 * frv-tdep.c (frv_gdbarch_init): Update.
10413 * arm-tdep.c (arm_gdbarch_init): Update.
10414 * alpha-tdep.c (alpha_gdbarch_init): Update.
10415
a67af2b9
AC
104162004-01-26 Andrew Cagney <cagney@redhat.com>
10417
10418 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10419 SYMBOL_LOCATION_FUNCS
10420 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10421 "struct symbol_ops".
10422 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10423 type to "struct symbol_ops".
10424 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10425 (struct symbol): Replace ".aux_value.loc.funcs" and
10426 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10427 (SYMBOL_OBJFILE): Delete macro.
10428 (SYMBOL_LOCATION_FUNCS): Delete macro.
10429 (SYMBOL_LOCATION_BATON): Update.
10430 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10431 intead of SYMBOL_LOCATION_FUNCS.
10432 * ax-gdb.c (gen_var_ref): Ditto.
10433 * printcmd.c (address_info): Ditto.
10434 * findvar.c (read_var_value): Ditto.
10435 (symbol_read_needs_frame): Ditto.
10436
c034e007
AC
104372004-01-26 Andrew Cagney <cagney@redhat.com>
10438
10439 * dwarf2read.c (read_func_scope): Document frame-base hack.
10440
bb472c1e
MK
104412004-01-25 Mark Kettenis <kettenis@gnu.org>
10442
10443 * infcmd.c (print_return_value): Plug memory leak; delete
10444 ui_stream object. Rename argument `structure_return' to
10445 `struct_return'.
10446
c8e737d5
MK
104472004-01-25 Mark Kettenis <kettenis@gnu.org>
10448
f941662f
MK
10449 * infcmd.c (print_return_value): Wrap long lines.
10450 (finish_command_continuation, finish_command): Remove unused
10451 variable `funcaddr'. Fix some coding-standards problems.
10452
c558d81a 10453 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10454 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10455 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10456 TDEP->fpregset to zero.
10457
bf1e5861 10458 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10459 floating-point registers for traditional NetBSD core files.
10460 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10461 TDEP->sizeof_fpregset here.
10462
4c72d57a
MK
104632004-01-25 Mark Kettenis <kettenis@gnu.org>
10464
566626fa
MK
10465 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10466 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10467 function with code split out from
10468 sparc32nbsd_sigcontext_frame_cache.
10469 (sparc32nbsd_sigcontext_frame_cache): Use
10470 sparc32nbsd_sigcontext_saved_regs.
10471 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10472 OpenBSD.
10473 * sparcobsd-tdep.c: New file.
10474 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10475 (sparcobsd-tdep.o): New dependency.
10476 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10477 * config/sparc/obsd.mt: New file.
10478
4c72d57a
MK
10479 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10480 TDEP->fpregset to be initialized to enable core file register
10481 sets.
10482
7e5e9f88
MK
104832004-01-24 Mark Kettenis <kettenis@gnu.org>
10484
f0f207fd 10485 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10486 Add opaque declarations.
10487 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10488 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10489 function with code split out from
10490 sparc64nbsd_sigcontext_frame_cache.
10491 (sparc64nbsd_sigcontext_frame_cache): Use
10492 sparc64nbsd_sigcontext_saved_regs.
10493 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10494 OpenBSD.
10495 * sparc64obsd-tdep.c: New file.
10496 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10497 (sparc64obsd-tdep.o): New dependency.
10498 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10499 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10500 * config/sparc/obsd64.mt: New file.
10501
690668cc
MK
10502 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10503 read the instruction at PC.
10504
7e5e9f88
MK
10505 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10506 value of GDB_OSABI_DEFAULT.
10507 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10508 instead of GDB_OSABI_NETBSD_AOUT.
10509
68b6dce9
NR
105102004-01-24 Nick Roberts <nick@nick.uklinux.net>
10511
10512 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10513 copyright.
10514
080ce8c0
AC
105152004-01-23 Andrew Cagney <cagney@redhat.com>
10516
10517 * printcmd.c (display_command): Replace tui_set_display call with
10518 tui_set_layout_for_display_command.
10519 * tui/tui.h (enum tui_win_type): Define.
10520 (tui_set_layout): Delete declaration.
10521 (tui_set_layout_for_display_command): Rename set_tui_layout.
10522 * tui/tui-data.h (enum tui_layout_type): Define.
10523 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10524 "tui.h".
10525 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10526 (tui_default_win_height): Rename tuiDefaultWinHeight.
10527 (tui_default_win_viewport_height): Rename
10528 tuiDefaultWinViewportHeight.
10529 (tui_set_layout): RenametuiSetLayout.
10530 * tui/tui-layout.c: Update references.
10531 * tui/tui.c: Update references.
10532 * tui/tui-disasm.c: Update references.
10533
b368761e
DC
105342004-01-23 David Carlton <carlton@kealia.com>
10535
10536 Partial workaround for PR c++/1511:
10537 * cp-namespace.c: Include frame.h.
10538 (cp_lookup_transparent_type): New
10539 (cp_lookup_transparent_type_loop): New.
10540 * cp-support.h: Declare cp_lookup_transparent_type.
10541 * symtab.c (basic_lookup_transparent_type): Renamed from
10542 lookup_transparent_type.
10543 (lookup_transparent_type): Replace old body by a call to
10544 current_language->la_lookup_transparent_type.
10545 * symtab.h: Update copyright. Declare
10546 basic_lookup_transparent_type.
10547 * language.h: Update copyright.
10548 (struct language_defn): Add la_lookup_transparent_type.
10549 * language.c: Update copyright.
10550 (unknown_language_defn): Add basic_lookup_transparent_type.
10551 (auto_language_defn): Add basic_lookup_transparent_type.
10552 (local_language_defn): Add basic_lookup_transparent_type.
10553 * ada-lang.c: Update copyright.
10554 (ada_language_defn): Add basic_lookup_transparent_type.
10555 * c-lang.c: Update copyright.
10556 (c_language_defn): Add basic_lookup_transparent_type.
10557 (cplus_language_defn): Add basic_lookup_transparent_type.
10558 (asm_language_defn): Add basic_lookup_transparent_type.
10559 (minimal_language_defn): Add basic_lookup_transparent_type.
10560 * f-lang.c: Update copyright.
10561 (f_language_defn): Add basic_lookup_transparent_type.
10562 * jv-lang.c: Update copyright.
10563 (java_language_defn): Add basic_lookup_transparent_type.
10564 * m2-lang.c: Update copyright.
10565 (m2_language_defn): Add basic_lookup_transparent_type.
10566 * objc-lang.c: Update copyright.
10567 (objc_language_defn): Add basic_lookup_transparent_type.
10568 * p-lang.c: Update copyright.
10569 (p_language_defn): Add basic_lookup_transparent_type.
10570 * scm-lang.c: Update copyright.
10571 (scm_language_defn): Add basic_lookup_transparent_type.
10572 * Makefile.in (cp-namespace.o): Depend on frame.h.
10573
fdde2d81
DC
105742004-01-23 David Carlton <carlton@kealia.com>
10575
10576 Patch for PR c++/1520:
10577 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10578 properly if we have a specification die.
10579 (determine_prefix_aux): Rename from determine_prefix.
10580 (determine_prefix): Like the old determine_prefix, but never
10581 returns NULL.
10582
5b828b6b
TR
105832004-01-23 Theodore A. Roth <troth@openavr.org>
10584
10585 * avr-tdep.c: Update copyright.
10586 (avr_iaddr_p): Delete unused function.
10587 (avr_saddr_p): Delete unused function.
10588
a1b8c067
DC
105892004-01-23 David Carlton <carlton@kealia.com>
10590
10591 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10592 Fix for PR symtab/1534.
10593
f2cab569
MK
105942004-01-23 Mark Kettenis <kettenis@gnu.org>
10595
10596 * NEWS (New native configurations): Mention OpenBSD/sparc and
10597 OpenBSD/sparc64.
10598 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10599 * configure.host: Likewise.
10600 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10601 handler for OpenBSD.
10602 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10603
642d8300
MK
106042004-01-22 Mark Kettenis <kettenis@gnu.org>
10605
89aac506
MK
10606 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10607 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10608
36662fde
MK
10609 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10610 * cli/cli-cmds.c (shell_escape): Likewise.
10611
642d8300
MK
10612 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10613 OpenBSD .note.openbsd.ident sections.
10614
fae299cd
DC
106152004-01-22 David Carlton <carlton@kealia.com>
10616
10617 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10618 get_scope_pc_bounds.
10619 (read_file_scope): Ditto.
10620 (get_scope_pc_bounds): New function, produced by extracting code
10621 from the above two functions, consolidating it, and adding support
10622 for DW_TAG_namespace.
10623
a49d618c
MK
106242004-01-22 Mark Kettenis <kettenis@gnu.org>
10625
10626 * osabi.c (MAX_NOTESZ): New define.
10627 (check_note): New function.
10628 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10629 check_note.
10630
fe61caab
RM
106312004-01-21 Roland McGrath <roland@redhat.com>
10632
10633 * MAINTAINERS (write after approval): Add myself.
10634
ec145965
EZ
106352004-01-21 Eli Zaretskii <eliz@gnu.org>
10636
10637 * utils.c (init_page_info): Move declarations of `rows' and
10638 `cols' before the __GO32__-specific code. Move the closing brace
10639 outside the #ifdef __GO32__..#endif block.
10640 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10641
877522db
PB
106422004-01-21 Paul Brook <paul@codesourcery.com>
10643
10644 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10645 BPSTAT_WHAT_CHECK_SHLIBS.
10646
dbf5be1c
PB
106472004-01-21 Paul Brook <paul@codesourcery.com>
10648
10649 * MAINTAINERS: Add myself to write-after-approval.
10650
81f08b92
AC
106512004-01-20 Andrew Cagney <cagney@redhat.com>
10652
5a1efed7
AC
10653 * ax-gdb.c (print_axs_value): Delete unused function.
10654 * jv-lang.c (java_lookup_type): Delete unused function.
10655 * cli/cli-dump.c (dump_filetype): Delete unused function.
10656 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10657 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10658 (mips_getstring): Delete unused function.
10659 (pmon_insert_breakpoint): Delete #if0ed function.
10660 (PMON_MAX_BP): Delete #if0ed MACRO.
10661 (mips_pmon_bp_info): Delete #if0ed variable.
10662 (pmon_remove_breakpoint): Delete #if0ed function.
10663 * monitor.c (monitor_write_even_block): Delete unused function.
10664 (monitor_write_memory_block): Delete #if0ed code.
10665 * dink32-rom.c (dink32_load): Delete unused function.
10666 (_initialize_dink32_rom): Delete #if0ed code.
10667 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10668
b0a30fce
AC
10669 * tui/tui-command.c: Update references.
10670 * tui/tui-io.c: Update references.
10671 * tui/tui-command.h: Update copyright.
10672 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10673
81f08b92
AC
10674 * source.c (ambiguous_line_spec): Delete never-defined function.
10675 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10676 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10677 * cli/cli-cmds.c (validate_comname): Ditto.
10678
65f05602
AC
10679 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10680 "tui-data.h".
10681 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10682 (tui_show_disassem): Rename tuiShowDisassem.
10683 (tui_show_disassem_and_update_source): Rename
10684 tuiVerticalDisassemScroll.
10685 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10686 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10687 * tui/tui.h: Update copyright.
10688 (enum tui_status): Define.
10689 * tui/tui-data.h (enum tui_scroll_direction): Define.
10690 * tui/tui-disasm.c: Update copyright. Update references.
10691 * tui/tui-winsource.c: Update copyright. Update references.
10692 * tui/tui-win.c: Update references.
10693 * tui/tui-layout.c: Update references.
10694
6bb0384f
AC
106952004-01-20 Andrew Cagney <cagney@redhat.com>
10696
10697 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10698 sym2 to start of block.
10699
9175c9a3
MC
107002004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10701
10702 * MAINTAINERS: Delete mmalloc.
10703 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10704 * NEWS: Mention removal of --with-malloc.
10705 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10706 * config.in: Regenerate.
10707 * configure: Regenerate.
6bb0384f
AC
10708 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10709 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10710 * gdbinit.in: Remove mmalloc.
10711 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10712 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10713 * config/i386/go32.mh: Likewise.
10714 * config/i386/interix.mh: Likewise.
10715 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10716
4fcef00a
JJ
107172004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10718
10719 * linespec.c (decode_variable, symtab_from_filename): Call
10720 error_silent with error message instead of throwing an exception
10721 directly.
10722 * defs.h (error_silent, error_output_message): Add prototypes.
10723 (catch_exceptions_with_msg): Ditto.
10724 * utils.c (error_silent, error_output_message): New functions.
10725 * top.c (catch_exceptions_with_msg): New function.
10726
8e94b928
NR
107272004-01-20 Nick Roberts <nick@nick.uklinux.net>
10728
10729 * mi/mi-cmds.h (enum print_values): Add definition.
10730
10731 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10732 type and value for simple data types and just the name and type
10733 for complex ones, if required.
10734
10735 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10736 children, if required.
10737
a02d6af8
KB
107382004-01-19 Kevin Buettner <kevinb@redhat.com>
10739
10740 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10741 unused declarations.
10742
78a4a9b9
AC
107432004-01-19 Andrew Cagney <cagney@redhat.com>
10744
10745 * top.h (mapped_symbol_files): Delete declaration.
10746 * main.c (captured_main): Delete option "m" and "mapped".
10747 * objfiles.c (mapped_symbol_files): Delete variable.
10748 * symfile.c (symbol_file_command): Delete mmap code.
10749 (symbol_file_add_with_addrs_or_offsets): Ditto.
10750 (add_symbol_file_command, reread_separate_symbols): Ditto.
10751 * objfiles.h (OBJF_MAPPED): Delete.
10752 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10753 (free_objfile) [USE_MMALLOC]: Ditto.
10754 (open_existing_mapped_file): Delete function.
10755 (open_mapped_file): Delete function.
10756 (map_to_file): Delete function.
10757
2dbd5e30
KB
107582004-01-19 Kevin Buettner <kevinb@redhat.com>
10759
10760 * infrun.c (step_into_function): Account for possible breakpoint
10761 adjustment when computing ``stop_func_start''.
10762
437b434f
KB
107632004-01-19 Kevin Buettner <kevinb@redhat.com>
10764
10765 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10766 the region size against the size of a pointer, not the size of
10767 a register as given by DEPRECATED_REGISTER_SIZE.
10768
55fb0713
AC
107692004-01-19 Andrew Cagney <cagney@redhat.com>
10770
10771 * tui/tui-regs.h: Include "tui-data.h".
10772 (tuiFirstRegElementNoInLine): Delete declaration.
10773 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10774 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10775 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10776 (tui_calculate_regs_column_count): Rename
10777 tuiCalculateRegsColumnCount.
10778 (tui_check_register_values): Rename tuiCheckRegisterValues.
10779 (tui_show_registers): Rename tuiShowRegisters.
10780 (tui_display_registers_from_line): Rename
10781 tuiDisplayRegistersFromLine.
10782 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10783 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10784 (tui_first_reg_element_no_inline): Rename
10785 tuiFirstRegElementNoInLine.
10786 * tui/tui-data.h: Update copyright.
10787 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10788 * tui/tui-windata.c: Update copyright, update references.
10789 * tui/tui-regs.c: Update copyright, update references.
10790 * tui/tui-win.c: Update copyright, update references.
10791 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10792
cebe9500
AC
107932004-01-18 Andrew Cagney <cagney@redhat.com>
10794
bcdf1568
AC
10795 * tui/tui-io.c: Update copyright.
10796 (key_is_end_sequence, key_is_backspace): New functions.
10797 (key_is_command_char, key_is_start_sequence): New function.
10798 (tui_getc): Update references.
10799 * tui/tui-io.h: Update copyright.
10800 (m_tuiStartNewLine): Delete macro.
10801 (m_isBackspace, m_isDeleteChar): Delete macros.
10802 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10803 (m_isNextPage, m_isPrevPage): Delete macros.
10804 (m_isLeftArrow, m_isRightArrow): Delete macros.
10805 (m_isXdbStyleCommandChar): Delete macro.
10806 (key_is_start_sequence): Declare, replace m_isStartSequence.
10807 (key_is_end_sequence): Declare, replace m_isEndSequence.
10808 (key_is_backspace): Declare ,replace m_isBackspace.
10809 (key_is_command_char): Declare, replace m_isCommandChar.
10810 * tui/tui-command.c: Update copyright.
10811 (tuiDispatchCtrlChar): Update references.
10812
130d87e6
AC
10813 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10814 tuiSourceWin.h.
10815
d7b2e967
AC
10816 * tui/tui-command.c: Rename tui/tuiCommand.c.
10817 * tui/tui-command.h: Rename tui/tuiCommand.h.
10818 * tui/tui-data.c: Rename tui/tuiData.c.
10819 * tui/tui-data.h: Rename tui/tuiData.h.
10820 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10821 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10822 * tui/tui-io.c: Rename tui/tuiIO.c.
10823 * tui/tui-io.h: Rename tui/tuiIO.h.
10824 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10825 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10826 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10827 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10828 * tui/tui-source.c: Rename tui/tuiSource.c.
10829 * tui/tui-source.h: Rename tui/tuiSource.h.
10830 * tui/tui-stack.c: Rename tui/tuiStack.c.
10831 * tui/tui-stack.h: Rename tui/tuiStack.h.
10832 * tui/tui-win.c: Rename tui/tuiWin.c.
10833 * tui/tui-win.h: Rename tui/tuiWin.h.
10834 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10835 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10836 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10837 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10838 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10839 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10840 * tui/tui-file.c: Update includes.
10841 * tui/tui-hooks.c: Update includes.
10842 * tui/tui-interp.c: Update includes.
10843 * tui/tui.c: Update includes.
10844 * Makefile.in: Update all tui/ dependencies.
10845 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10846
b2100910
AC
10847 * Makefile.in: Update copyright. Update dependencies.
10848
cebe9500
AC
10849 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10850 problem.
10851
c6f0559b
AC
108522004-01-18 Andrew Cagney <cagney@redhat.com>
10853
43e9390b
AC
10854 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10855 instead of register_gdbarch_init.
10856
c6f0559b
AC
10857 * remote-sds.c (tohex): Delete unused function. Update copyright.
10858 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10859 * v850-tdep.c (v850_register_virtual_size): Ditto.
10860 * target.c (normal_target_post_startup_inferior): Ditto.
10861 * source.c (ambiguous_line_spec): Ditto.
10862 * remote.c (adapt_remote_get_threadinfo): Ditto.
10863 * mi/mi-out.c (out_field_fmt): Ditto.
10864 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10865 (output_control_change_notification): Ditto.
10866 * m68k-tdep.c (m68k_register_byte): Ditto.
10867 (m68k_remote_breakpoint_from_pc): Ditto.
10868 * ui-out.c (init_ui_out_state): Delete unused declaration.
10869 * stabsread.c (search_value): Ditto.
10870 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10871 * maint.c (print_section_table): Ditto.
10872 * infrun.c (set_follow_fork_mode_command): Ditto.
10873
a8504492
MK
108742004-01-18 Mark Kettenis <kettenis@gnu.org>
10875
10876 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10877 DW_CFA_def_cfa_exporession. Add support for
10878 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10879 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10880
0bd8997e
AC
108812004-01-18 Andrew Cagney <cagney@redhat.com>
10882
10883 * ocd.c: Update copyright.
10884 (bdm_read_register_command): Delete unused function.
10885 (_initialize_remote_ocd): Delete commented out reference.
10886 (get_quoted_char, reset_packet): Delete #if0ed function.
10887 (output_packet, put_quoted_char): Delete #if0ed function.
10888 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10889 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10890 (BDM_BREAKPOINT): Delete #if0ed macro.
10891 (remote_timeout): Delete #if0ed variable.
10892
31bb40e4
MK
108932004-01-18 Mark Kettenis <kettenis@gnu.org>
10894
10895 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10896 (core-sol2.o): Remove dependency.
10897 * core-sol2.c: Remove file.
10898
887432a5
AC
108992004-01-17 Andrew Cagney <cagney@redhat.com>
10900
10901 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10902 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10903 enums.
10904
29182b13
DJ
109052004-01-17 Daniel Jacobowitz <drow@mvista.com>
10906
10907 * remote.c: Update copyright years.
10908
2963ee1d
DJ
109092004-01-17 Daniel Jacobowitz <drow@mvista.com>
10910
10911 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10912
79d45cd4
AC
109132004-01-17 Andrew Cagney <cagney@redhat.com>
10914
ee300cd4
AC
10915 * mdebugread.c: Update copyright.
10916 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10917 (parse_type, parse_procedure): Ditto.
10918 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10919
fcacc9c2
AC
10920 * cris-tdep.c (cris_store_struct_return): Put back accidently
10921 deleted function.
10922
79d45cd4
AC
10923 * gdbarch.sh: Update copyright year.
10924 * gdbarch.h, gdbarch.c: Re-generate.
10925
b263358a
DJ
109262004-01-17 Daniel Jacobowitz <drow@mvista.com>
10927
10928 Suggested by George Anzinger.
10929 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10930 correct stack offset. Include unknown opcode numbers in the error
10931 message.
10932
931aecf5
AC
109332004-01-17 Andrew Cagney <cagney@redhat.com>
10934
10935 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10936 extract_struct_value_address, i386 does not set it.
10937 * sparc64-tdep.c (sparc64_init_abi): Do not set
10938 extract_struct_value_address, never called.
10939 (sparc64_extract_struct_value_address): Delete function.
10940 * m68hc11-tdep.c: Update copyright.
10941 (m68hc11_gdbarch_init): Delete redundant assignment of
10942 extract_struct_value_address.
10943 * i386-tdep.c: Update copyright.
10944 (i386_gdbarch_init): Do not set extract_struct_value_address,
10945 never called.
10946 (i386_extract_struct_value_address): Delete function.
10947 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10948 extract_struct_value_address, never called.
10949 (sparc32_extract_struct_value_address): #if 0 function. Add
10950 comments explaining its future.
10951
756fe439
DJ
109522004-01-17 Daniel Jacobowitz <drow@mvista.com>
10953
10954 * arm-tdep.c (arm_write_pc): New function.
10955 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10956
e74f0f02
DJ
109572004-01-17 Daniel Jacobowitz <drow@mvista.com>
10958
10959 * breakpoint.c (must_shift_inst_regs): Delete.
10960 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10961 and SHIFT_INST_REGS.
10962 * infcmd.c (step_1, step_1_continuation): Delete references to
10963 SHIFT_INST_REGS.
10964 * infrun.c (keep_going): Likewise.
10965 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10966 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10967
b6cb9035
AC
109682004-01-17 Andrew Cagney <cagney@redhat.com>
10969
444a1e2e
AC
10970 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10971 * gdbarch.h, gdbarch.c: Re-generate.
10972 * infcmd.c (print_return_value): Delete reference to
10973 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10974
def7e6ed
AC
10975 * cris-tdep.c (cris_gdbarch_init): Do not set
10976 deprecated_extract_struct_value_address.
10977
07be497a
AC
10978 * xstormy16-tdep.c: Update copyright.
10979 (xstormy16_extract_struct_value_address): Update to current
10980 extract struct value address interface.
10981 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10982 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10983 current extract struct value address interface.
10984 (sh64_gdbarch_init): Set extract_struct_value_address.
10985
6b4d5c91
AC
10986 * cris-tdep.c: Update copyright.
10987 (cris_extract_struct_value_address): Delete function.
10988 (struct_return_address): Delete variable.
10989 (cris_store_struct_return): Do not set struct_return_address.
10990
464e0365
AC
10991 * mcore-tdep.c: Update copyright.
10992 (mcore_extract_struct_value_address): Delete function. Update
10993 comments.
10994 (mcore_gdbarch_init): Update.
10995 * mn10300-tdep.c: Update copyright.
10996 (mn10300_extract_struct_value_address): Delete function.
10997 (mn10300_gdbarch_init): Update.
10998 * v850-tdep.c: Update copyright.
10999 (v850_extract_struct_value_address): Delete.
11000 (v850_gdbarch_init): Update.
11001 * ns32k-tdep.c: Update copyright.
11002 (ns32k_extract_struct_value_address): Delete.
11003 (ns32k_gdbarch_init): Update.
11004 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11005 (hppa_gdbarch_init): Update.
11006 * vax-tdep.c: Update copyright.
11007 (vax_extract_struct_value_address): Delete.
11008 (vax_gdbarch_init): Update.
11009
afb18d0f
AC
11010 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11011 * gdbarch.h, gdbarch.c: Re-generate.
11012 * procfs.c (procfs_fetch_registers): Delete reference to
11013 DEPRECATED_NPC_REGNUM.
11014 (procfs_store_registers): Ditto.
11015 * regcache.c (generic_target_write_pc): Simplify.
11016 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11017
a698f53e
AC
11018 * core-sol2.c (fetch_core_registers): Replace
11019 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11020
adc11376
AC
11021 * hppa-tdep.c: Update copyright year.
11022 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11023 NPC_REGNUM.
11024 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11025
b6cb9035
AC
11026 * mips-tdep.c (mips_write_pc): New function.
11027 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11028 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11029 (mips_find_saved_regs, mips_software_single_step: Ditto.
11030 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11031 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11032
6d82d43b
AC
110332004-01-17 Andrew Cagney <cagney@redhat.com>
11034
11035 * mips-tdep.c: Re-indent. Group functions by ABI.
11036
71bd6bd4
AC
110372004-01-17 Andrew Cagney <cagney@redhat.com>
11038
11039 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11040 * gdbarch.c: Re-generate.
11041 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11042 DECR_PC_AFTER_BREAK to zero.
11043 * vax-tdep.c (vax_gdbarch_init): Ditto.
11044 * v850-tdep.c (v850_gdbarch_init): Ditto.
11045 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11046 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11047 * sh-tdep.c (sh_gdbarch_init): Ditto.
11048 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11049 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11050 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11051 * mips-tdep.c (mips_gdbarch_init): Ditto.
11052 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11054 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11055 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11056 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11057 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11058 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11059 * frv-tdep.c (frv_gdbarch_init): Ditto.
11060 * cris-tdep.c (cris_gdbarch_init): Ditto.
11061 * avr-tdep.c (avr_gdbarch_init): Ditto.
11062 * arm-tdep.c (arm_gdbarch_init): Ditto.
11063 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11064
a02abb62
JB
110652004-01-17 J. Brobecker <brobecker@gnat.com>
11066
11067 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11068 Delete, no longer used.
11069 (read_subrange_type): New function, mostly extracted from
11070 read_array_type().
11071 (read_array_type): Replace extracted code by call to
11072 read_subrange_type().
11073 (dwarf2_get_attr_constant_value): New function.
11074 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11075 (add_partial_symbol): Likewise.
11076 (process_die): Likewise.
11077 (new_symbol): Likewise.
11078 (read_type_die): Likewise.
11079
cf5b2f1b
AC
110802004-01-16 Andrew Cagney <cagney@redhat.com>
11081
11082 * symfile.c: Update copyright year.
11083 (compare_symbols): Delete unused function.
11084 * stabsread.c: Update copyright year.
11085 (lrs_general_complaint): Delete unused function.
11086 (ref_search_value): Ditto.
11087 (get_substring): Delete declaration.
11088 * sh64-tdep.c: Update copyright year.
11089 (sh64_get_gdb_regnum): Delete unused function.
11090 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11091 Delete unused function.
11092
d33b9831
MK
110932004-01-17 Mark Kettenis <kettenis@gnu.org>
11094
11095 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11096 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11097
7aea86e6
AC
110982004-01-16 Andrew Cagney <cagney@redhat.com>
11099
11100 Changes from Peter Schauer.
11101 * rs6000-tdep.c: Update copyright year.
11102 (rs6000_push_dummy_call): Update the stack pointer before
11103 accessing the corresponding stack region.
11104 * rs6000-nat.c: Update copyright year.
11105 (set_host_arch): Set "info.abfd" to "exec_bfd".
11106
26b0da32
MK
111072004-01-15 Mark Kettenis <kettenis@gnu.org>
11108
11109 * blockframe.c: Update copyright year.
11110 (inside_entry_func): Don't treat a zero PC specially.
11111
86fbe6cc
EZ
111122004-01-14 Elena Zannoni <ezannoni@redhat.com>
11113
11114 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11115 variable.
11116 (gcore_create_callback): Ditto. Skip any memory segment that has
11117 no permissions set.
11118
63d06c5c
DC
111192004-01-14 David Carlton <carlton@kealia.com>
11120
11121 Change symbols for C++ nested types to contain the fully qualified
11122 name, if possible. (At least in the DWARF-2 case.) Partial fix
11123 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11124 c++/895.
11125 * c-exp.y (qualified_type): Handle types nested within classes.
11126 * cp-namespace.c: Update comments.
11127 (cp_set_block_scope): Delete #if 0.
11128 (cp_lookup_nested_type): Handle types nested within classes.
11129 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11130 when appropriate.
11131 (add_partial_symbol): Add the name of the enclosing namespace to
11132 types.
11133 (pdi_needs_namespace): New.
11134 (add_partial_namespace): Tweak comment.
11135 (add_partial_structure): New.
11136 (psymtab_to_symtab_1): Initialize processing_current_prefix
11137 here...
11138 (process_die): instead of here.
11139 (read_structure_scope): Try to figure out the name of the class or
11140 namespace that the structure might be defined within.
11141 (read_enumeration): Generate fully-qualified names, if possible.
11142 (read_namespace): Don't set name to NULL.
11143 (die_specification): New.
11144 (new_symbol): Generate fully-qualified names for types.
11145 (read_type_die): Determine appropriate prefix.
11146 (determine_prefix): New.
11147 (typename_concat): New.
11148 (class_name): New.
11149 * valops.c (value_aggregate_elt): Pass NOSIDE to
11150 value_struct_elt_for_reference.
11151 (value_struct_elt_for_reference): Make static, add NOSIDE
11152 parameter, call value_maybe_namespace_elt as a last resort.
11153 (value_namespace_elt): Break out code into
11154 value_maybe_namespace_elt.
11155 (value_maybe_namespace_elt): New.
11156
87783b8b
AC
111572004-01-12 Andrew Cagney <cagney@redhat.com>
11158
11159 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11160 cooked floating-point registers.
11161 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11162 and value_to_register.
11163
6503b91e
AC
111642004-01-13 Andrew Cagney <cagney@redhat.com>
11165
11166 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11167 * gdbarch.c: Re-generate.
11168 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11169 FUNCTION_START_OFFSET.
11170 * v850-tdep.c (v850_gdbarch_init): Ditto.
11171 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11172 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11173 * sh-tdep.c (sh_gdbarch_init): Ditto.
11174 * s390-tdep.c (s390_gdbarch_init): Ditto.
11175 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11176 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11177 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11178 * mips-tdep.c (mips_gdbarch_init): Ditto.
11179 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11180 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11182 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11183 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11184 * i386-tdep.c (i386_gdbarch_init): Ditto.
11185 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11186 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11187 * frv-tdep.c (frv_gdbarch_init): Ditto.
11188 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11189 * cris-tdep.c (cris_gdbarch_init): Ditto.
11190 * avr-tdep.c (avr_gdbarch_init): Ditto.
11191 * arm-tdep.c (arm_gdbarch_init): Ditto.
11192 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11193
ea1dd7bc
DJ
111942004-01-13 Daniel Jacobowitz <drow@mvista.com>
11195
11196 * infrun.c (follow_fork_mode_ask): Remove.
11197 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11198 (follow_fork): Simplify and remove internal error for
11199 follow_fork_mode_ask.
11200 (_initialize_infrun): Update "set follow-fork-mode" help text.
11201
0f0cffd2
AC
112022004-01-13 Andrew Cagney <cagney@redhat.com>
11203
11204 * configure.in: Update copyright year.
11205 (build_warnings): Add -Wunused-label.
11206 * configure: Re-generate.
11207
de38af99
AC
112082004-01-12 Andrew Cagney <cagney@redhat.com>
11209
954a7fba
AC
11210 * exec.h (exec_ops): Make "extern".
11211
de38af99
AC
11212 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11213 the function is void.
11214 (mips_pseudo_register_write): Ditto.
11215
1a111ce3
AC
112162004-01-12 Andrew Cagney <cagney@redhat.com>
11217
11218 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11219 call. Never defined.
11220 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11221 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11222 (struct sparc_gregset, struct regcache): Ditto.
11223 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11224
48efe704
AC
112252004-01-12 Andrew Cagney <cagney@redhat.com>
11226
11227 * mi/ChangeLog: Delete file. Renamed to ...
11228 * mi/ChangeLog-1999-2003: New file.
11229 * tui/ChangeLog: Delete file. Renamed to ...
11230 * tui/ChangeLog-1998-2003: New file.
fe61caab 11231
a54124c5
MK
112322004-01-11 Mark Kettenis <kettenis@gnu.org>
11233
2ca62865
MK
11234 * sparc64nbsd-tdep.c: Include "regset.h".
11235 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11236 Remove variables.
11237 (fetch_core_registers): Remove function.
11238 (sparc64nbsd_core_fns): Remove variable.
11239 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11240 functions.
11241 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11242 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11243 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11244
ca9d58e9
MK
11245 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11246 sparc_extract_struct_value_address.
11247 (sparc32_gdbarch_init): Set extract_struct_value_address.
11248 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11249 function.
11250 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11251 return_value_on_stack.
11252
3cc87ec0
MK
11253 * NEWS: Mention that %cs and %ss have been added to the AMD64
11254 configurations
11255
5bf00f29
MK
11256 * frame.c: Update copyright year.
11257 (get_prev_frame): Improve comment.
11258
4f7ec84e
MK
11259 * sparc64fbsd-tdep.c: Include "regset.h".
11260 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11261 Remove variables.
11262 (fetch_core_registers): Remove function.
11263 (sparc64fbsd_core_fns): Remove variable.
11264 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11265 functions.
11266 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11267 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 11268 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11269
4e7b0cd3
MK
11270 * sparcnbsd-tdep.c: Include "regset.h".
11271 (fetch_core_registers): Remove function.
11272 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11273 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11274 functions.
11275 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11276 TDEP->fpregset.
46b58ce9 11277 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11278
a54124c5
MK
11279 * sparc-tdep.h (struct regset): Provide opaque declaration.
11280 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11281 fpregset and sizeof_fpregset members.
11282 * sparc-tdep.c (struct regset): Provide opaque declaration.
11283 (sparc_regset_from_core_section): New function.
11284 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11285 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11286 Set regset_from_core_section when appropriate.
11287
29ff87c5
MK
112882004-01-10 Mark Kettenis <kettenis@gnu.org>
11289
79b1ab3d
MK
11290 * x86-64-tdep.c (amd64_non_pod_p): New function.
11291 (amd64_classify_aggregate): Return class memory for non-POD
11292 C++ structure types.
11293
6470d250
MK
11294 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11295 argument. Use it to reserve a register if necessary.
11296 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11297 amd64_push_arguments.
11298
562c50c2
MK
11299 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11300
af233647
MK
11301 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11302 register numbers in comments.
11303 * x86-64-tdep.h: Update copyright year.
11304 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11305 Adjust for addition of %cs and %ss.
11306 * amd64fbsd-nat.c: Update copyright year.
11307 (reg_offset): Add register offsets for %cs and %ss.
11308 * amd64fbsd-tdep.c: Update copyright year.
11309 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11310 (amd64fbsd_sc_reg_offset): Likewise.
11311 * x86-64-linux-nat.c: Update copyright year.
11312 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11313 and %ss.
11314 * amd64nbsd-nat.c: Update copyright year.
11315 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11316 * amd64nbsd-tdep.c: Update copyright year.
11317 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11318 * x86-64-linux-tdep.c: Update copyright year.
11319 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11320 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11321 * regformats/reg-x86-64.dat: Add %cs and %ss.
11322
29ff87c5
MK
11323 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11324 variables to prevent long lines. Update comments to reflect
11325 reality.
11326
38d518c9
EZ
113272004-01-09 David Carlton <carlton@kealia.com>
11328
11329 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11330 * dwarf2read.c (read_namespace): Pull out name-generating code
11331 into namespace_name. Rename previous_namespace to previous_prefix
11332 and processing_current_namespace to processing_current_prefix..
11333 (namespace_name): New function.
11334 (add_partial_symbol): Substitute uses of pdi->name with
11335 actual_name.
11336 * cp-support.h: Rename processing_current_namespace to
11337 processing_current_prefix.
11338 Update copyright year.
11339 * cp-namespace.c: Rename processing_current_namespace to
11340 processing_current_prefix.
11341 Update copyright year.
fe61caab 11342
1e4728e7
AC
113432004-01-09 Andrew Cagney <cagney@redhat.com>
11344
11345 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11346
c77c642a
MK
113472004-01-09 Mark Kettenis <kettenis@gnu.org>
11348
11349 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11350 complaining.
11351 (process_one_symbol): Deal with N_PATCH stabs.
11352
b44e9041
EZ
113532004-01-09 Elena Zannoni <ezannoni@redhat.com>
11354
11355 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11356 ifdeffed code.
11357 Update copyright year.
38d518c9 11358
eccfb640
MC
113592004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11360
11361 * config/pa/tm-hppa.h: Update extern declarations for
11362 hppa32_hpux_frame_saved_pc_in_sigtramp,
11363 hppa32_hpux_frame_base_before_sigtramp, and
11364 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11365
848c5feb
MC
113662004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11367
11368 * config/pa/tm-hppah.h: Update copyright years.
11369
3cc5d663
AC
113702004-01-08 Andrew Cagney <cagney@redhat.com>
11371
11372 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11373 (mips_o32_reg_struct_has_addr): Delete function.
11374 (mips_gdbarch_init): Update.
11375 (mips_extract_struct_value_address): Delete function.
11376
bfec0b41
JJ
113772004-01-08 David Mosberger <davidm@hpl.hp.com>
11378
11379 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11380 reality.
11381
16e109ca
AC
113822004-01-07 Andrew Cagney <cagney@redhat.com>
11383
6214a8a1
AC
11384 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11385 architecture's elf flags (when available).
11386
8d5838b5
AC
11387 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11388 FPU to the start, check the MIPS FPU when looking for an old
11389 architecture.
11390 (set_mipsfpu_single_command): Update the architecture.
11391 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11392
480d3dd2
AC
11393 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11394 (mips_mask_address_p): Add "tdep" parameter.
11395 (show_mask_address, mips_addr_bits_remove): Update.
11396 (mips_dump_tdep): Update.
11397 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11398 (MIPS_STACK_ARGSIZE): Delete macro.
11399 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11400 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11401 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11402 (mips_dump_tdep): Update.
11403 (MIPS_SAVED_REGSIZE): Delete macro.
11404 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11405 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11406 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11407 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11408 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11409 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11410 (mips_pop_frame, return_value_location): Update.
11411 (mips_n32n64_return_value, mips_dump_tdep): Update.
11412
ec03c1ac
AC
11413 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11414 MIPS ABI.
11415
16e109ca
AC
11416 * mips-tdep.c: Update copyright.
11417 (mips_gdbarch_init): Merge two code blocks handling the register
11418 name and number layout.
11419
15255275
MS
114202004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11421
11422 * tracepoint.c (validate_actionline): Fix segv at EOF
11423
9f9057da
MC
114242004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11425
11426 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11427 properly for static fields.
11428
0127c0d3 114292004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11430 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11431
11432 * disasm.c: Update copyright to include 2004.
11433 (do_mixed_source_and_assembly): For uiout asm list
11434 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11435 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11436 the tuple/list. Move check for whether to close off the
fe61caab 11437 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11438 on each loop iteration.
11439
5269965e
AC
114402004-01-05 Andrew Cagney <cagney@redhat.com>
11441
54f1137d
AC
11442 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11443 should be a switch case and not a label.
11444 * mips-tdep.c (mips32_next_pc): Delete unused labels
11445 "greater_equal_branch" and "less_zero_branch".
11446 * jv-valprint.c (java_print_value_fields): Delete unused label
11447 "flush_it".
11448
5269965e
AC
11449 * target.c (unpush_target): Only close a target that is in the
11450 target stack.
11451
dbc22fa1
MK
114522004-01-05 Mark Kettenis <kettenis@gnu.org>
11453
9515395e
MK
11454 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11455 address from [sp + 64] instead of %o2.
11456
dbc22fa1
MK
11457 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11458 fixes PR backtrace/1476.
11459
5439edaa
AC
114602004-01-05 Andrew Cagney <cagney@redhat.com>
11461
11462 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11463 move to start of file.
11464 * i386-tdep.h (struct regcache): Add opaque declaration.
11465 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11466 declaration.
11467 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11468 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11469 * win32-nat.c (fake_create_process): Use ISO C style definition.
11470 * stabsread.c (define_symbol): Delete #ifndef
11471 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11472 stabs_argument_has_addr call, macro never defined.
11473
19061abe
MC
114742004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11475
11476 * op50-rom.c: Delete.
11477 * w89k-rom.c: Delete.
11478 * Makefile.in: Remove references.
11479
e53bef9f
MK
114802004-01-04 Mark Kettenis <kettenis@gnu.org>
11481
11482 * x86-64-tdep.c: Update copyright year.
11483 (struct amd64_register_info): Rename from x86_64_register_info.
11484 (amd64_register_info): Rename from x86_64_register_info.
11485 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11486 (amd64_register_name): Rename from x86_64_register_name.
11487 (amd64_register_type): Rename from x86_64_register_type.
11488 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11489 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11490 (amd64_dwarf_reg_to_regnum): Rename from
11491 x86_64_dwarf_reg_to_regnum.
11492 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11493 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11494 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11495 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11496 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11497 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11498 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11499 (amd64_frame_cache): Rename from x86_64_frame_cache.
11500 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11501 (amd64_frame_prev_register): Rename from
11502 x86_64_frame_prev_register.
11503 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11504 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11505 (amd64_sigtramp_frame_cache): Rename from
11506 x86_64_sigtramp_frame_cache.
11507 (amd64_sigtramp_frame_prev_register): Rename from
11508 x86_64_sigtramp_frame_prev_register.
11509 (amd64_sigtramp_frame_unwind): Rename from
11510 x86_64_sigtramp_frame_unwind.
11511 (amd64_sigtramp_frame_sniffer): Rename from
11512 x86_64_sigtramp_frame_sniffer.
11513 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11514 (amd64_frame_base): Rename from x86_64_frame_base.
11515 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11516 (amd64_frame_align): Rename from x86_64_frame_align.
11517 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11518 (amd64_regset_from_core_section): Rename from
11519 x86_64_regset_from_core_section.
11520 (x86_64_init_abi): Update comments.
11521
fca6aa58
NR
115222004-01-04 Nick Roberts <nick@nick.uklinux.net>
11523
11524 * MAINTAINERS (write after approval): Add myself.
11525
8ada74e3
MK
115262004-01-04 Mark Kettenis <kettenis@gnu.org>
11527
11528 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11529 `float' arguments.
11530
5154b0cd
MK
115312004-01-04 Mark Kettenis <kettenis@gnu.org>
11532
11533 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11534 such that it mentions a specific version of GCC that exhibits this
11535 bug.
11536
fb316966
MK
115372004-01-03 Mark Kettenis <kettenis@gnu.org>
11538
200cc553
MK
11539 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11540 structure that has a single `float' member, store it in %f1 in
11541 addition to %f0.
11542
e226a4a0
MK
11543 * sparc-sol2-nat.c: Add missing '\'.
11544
b9d4c5ed
MK
11545 * sparc-tdep.c (sparc32_return_value): New function.
11546 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11547 Remove functions.
11548 (sparc32_gdbarch_init): Set return_value, don't set
11549 extract_return_value, store_return_value, use_struct_convention
11550 and return_value_on_stack.
11551
fb316966
MK
11552 * sparc-sol2-nat.c: Add missing ')'.
11553
1af510a8
JB
115542004-01-03 J. Brobecker <brobecker@gnat.com>
11555
11556 * infrun.c (handle_step_into_function): New function.
11557 (handle_inferior_event): Extract out some code into the new
11558 function above.
11559
5cf4d23a
JB
115602004-01-03 J. Brobecker <brobecker@gnat.com>
11561
11562 * infrun.c (handle_inferior_event): Move the declaration of
11563 real_stop_pc inside the if blocks where it is used.
11564
60af1db2
MK
115652004-01-03 Mark Kettenis <kettenis@gnu.org>
11566
11567 * sparc64-tdep.c (sparc64_16_byte_align_p)
11568 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11569 Use check_typedef to get subtypes of structures and unions.
11570 (sparc64_store_return_value): Fix calculation of the appropriate
11571 offset into VALBUF when storing a structure or union.
11572 (sparc64_return_value): New function.
11573 (sparc64_use_struct_convention): Remove function.
11574 (sparc64_init_abi): Set return_value, don't set
11575 extract_return_value, store_return_value and
11576 use_struct_convention.
11577
1a901d3f
EZ
115782004-01-03 Eli Zaretskii <eliz@elta.co.il>
11579
11580 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11581 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11582 gdb/config/alpha/xm-alphaosf.h,
11583 gdb/config/powerpc/tm-ppcle-eabi.h,
11584 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11585 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11586 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11587 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11588 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11589 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11590 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11591 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11592 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11593 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11594 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11595 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11596 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11597 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11598 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11599 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11600 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11601 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11602 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11603 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11604 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11605 Remove lines for .cvsignore files.
11606
ef52e463
JB
116072004-01-03 J. Brobecker <brobecker@gnat.com>
11608
11609 * infrun.c: Back out the previous change.
11610
cb1bf9dc
MK
116112004-01-03 Mark Kettenis <kettenis@gnu.org>
11612
f0424ef6
MK
11613 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11614 sparc-*-sunos4* to the list of REMOVED configurations.
11615
cb1bf9dc
MK
11616 * configure.tgt: Add back sparc-*-vxworks*.
11617 * remote-vxsparc.c: Remove all includes except for "defs.h",
11618 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11619 Include "sparc-tdep.h".
11620 (SPARC_R_G1): New define.
11621 (vxsparc_gregset): New variable.
11622 (ext_format_sparc): Remove extern declaration.
11623 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11624 sparc32_supply_fpregset.
11625 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11626 sparc_collect_rwindow and sparc32_collect_fpregset.
11627 * config/sparc/tm-vxworks.h: New file, based on recently removed
11628 tm-vxsparc.h.
11629 * config/sparc/vxworks.mt: New file, based on recently removed
11630 vxworks.mt.
fe61caab 11631
5e938f9f
JB
116322004-01-03 J. Brobecker <brobecker@gnat.com>
11633
11634 * infrun.c (handle_step_into_function): New function.
11635 (handle_inferior_event): Extract out some code into the new
11636 function above.
11637
386c036b
MK
116382004-01-02 Mark Kettenis <kettenis@gnu.org>
11639
11640 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11641 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11642 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11643 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11644 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11645 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11646 (sparc_nat_h): New variable.
11647 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11648 (tm-sun4os4.h): Remove dependency.
11649 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11650 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11651 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11652 sparc-tdep.o): Update dependencies.
11653 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11654 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11655 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11656 dependencies.
11657 * configure.host: Remove existing sparc-*-lynxos*,
11658 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11659 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11660 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11661 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11662 triplets.
11663 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11664 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11665 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11666 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11667 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11668 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11669 sparc64-*-solaris2* and sparc64-*-* triplets.
11670 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11671 "symtab.h" and "objfiles.h".
11672 (BIAS): Remove define.
11673 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11674 (X_DISP19): Remove macros.
11675 (sparc_fetch_instruction): Remove function.
11676 (struct gdbarch_tdep): Remove definition.
11677 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11678 (sparc_breakpoint_from_pc): Remove function.
11679 (struct sparc64_frame_cache): Remove definition.
11680 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11681 sparc64_unwind_pc): Remove functions.
11682 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11683 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11684 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11685 (sparc64_frame_cache): Change return type to `struct
11686 sparc_frame_cache *'. Simply call sparc_frame_cache.
11687 (sparc64_frame_this_id, sparc64_frame_prev_register,
11688 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11689 instead of `struct sparc64_frame_cache.
11690 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11691 sparc_analyze_control_transfer, sparc_software_single_step,
11692 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11693 _initialize_sparc64_tdep): Remove functions.
11694 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11695 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11696 macros.
11697 (sparc64_supply_gregset, sparc64_collect_gregset,
11698 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11699 (sparc64_init_abi): New function.
11700 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11701 inclusion guard. Include "sparc-tdep.h".
11702 (BIAS): Define.
11703 (r_tstate_offset, r_fprs_offset): New defines.
11704 (enum sparc_regnum): Remove defenition.
11705 (enum sparc64_regnum): Reformat.
11706 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11707 (sparc64_init_abi, sparc64_supply_gregset,
11708 sparc64_collect_gregset, sparc64_supply_fpregset,
11709 sparc64_collect_fpregset): New prototypes.
11710 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11711 Add extern declarations.
11712 (sparc64_sol2_init_abi): New prototype.
11713 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11714 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11715 prototypes.
11716 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11717 "sparnbsd-nat.h".
11718 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11719 functions.
11720 (_initialize_sparc64fbsd_nat): Remove initialization of
11721 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11722 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11723 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11724 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11725 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11726 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11727 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11728 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11729 (sparc64fbsd_r_y_offset): Remove variables.
11730 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11731 Make static and const.
11732 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11733 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11734 functions.
11735 (sparc64fbsd_gregset): New variable.
11736 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11737 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11738 and sparc64_supply_fpregset.
11739 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11740 (sparc64fbsd_sigtramp_frame_this_id)
11741 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11742 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11743 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11744 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11745 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11746 * sparcnbsd-tdep.c: Update copyright year. Include
11747 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11748 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11749 "value.h" and "sparcnbsd-tdep.h".
11750 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11751 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11752 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11753 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11754 defines.
11755 (sparcnbsd_gregset): New variable.
11756 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11757 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11758 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11759 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11760 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11761 variables.
11762 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11763 (sparc32nbsd_sigcontext_frame_this_id)
11764 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11765 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11766 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11767 (sparcnbsd_get_longjmp_target_32,
11768 sparcnbsd_get_longjmp_target_64): Remove functions.
11769 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11770 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11771 sparcnbsd_init_elf): Remove.
11772 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11773 (sparcnbsd_elf_init_abi): New functions.
11774 (_initialize_sparcnbsd_tdep): New prototype.
11775 (_initialize_sparnbsd_tdep): Update.
11776 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11777 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11778 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11779 * config/sparc/linux.mh: Update comment.
11780 (XM_FILE, HOST_IPC): Remove variables.
11781 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11782 sparc-linux-nat.o.
11783 * config/sparc/linux.mt: Update comment.
11784 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11785 * config/sparc/nbsd.mt: Reformat.
11786 * config/sparc/nbsd64.mh: Update comment.
11787 (NATDEPFILES): Add sparc-nat.o.
11788 * config/sparc/nbsd64.mt: Update comment.
11789 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11790 (TM_FILE): Set to tm-nbsd.h.
11791 * config/sparc/nbsdelf.mh: Update comment.
11792 (NATDEPFILES): Add sparc-nat.o.
11793 (XM_FILE): Delete.
11794 * config/sparc/nbsdaout.mh: Update comment.
11795 (NATDEPFILES): Add sparc-nat.o
11796 (XM_FILE): Delete.
11797 * config/sparc/nm-linux.h: Update copyright year. Don't include
11798 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11799 inclusion.
11800 (KERNEL_U_SIZE): Remove define.
11801 (kernel_u_size): Remove prototype.
11802 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11803 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11804 "regcache.h".
11805 (CHILD_PREPARE_TO_STORE): Remove define.
11806 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11807 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11808 sparcnbsd-nat.c: Rewrite files.
11809 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11810 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11811 sparcnbsd-tdep.h: Remove files.
11812 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11813 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11814 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11815 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11816 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11817 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11818 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11819 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11820 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11821 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11822 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11823 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11824 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11825 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11826 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11827 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11828 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11829 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11830 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11831
ee84457a
AC
118322004-01-02 Andrew Cagney <cagney@redhat.com>
11833
11834 From 2003-12-18 Kazuhiro Inaoka:
11835 * configure.host: Add m32r-linux target.
11836
0bc2134e
MC
118372004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11838
11839 * top.c (print_gdb_version): Update year to 2004.
11840
89a72f9c
MM
118412004-01-02 Mark Mitchell <mark@codesourcery.com>
11842
11843 * MAINTAINERS: Add myself to the write-after-approval category.
11844
86b013ed
DJ
118452004-01-02 Daniel Jacobowitz <drow@mvista.com>
11846
11847 From Bernardo Innocenti <bernie@develer.com>:
11848 * configure.tgt: Add uClinux target.
11849
e42c9534
AC
118502004-01-02 Andrew Cagney <cagney@redhat.com>
11851
11852 * utils.c (do_my_cleanups): Make static, add forward declaration.
11853 * defs.h (do_my_cleanups): Delete declaration.
11854
162467d3
EZ
118552004-01-02 Eli Zaretskii <eliz@elta.co.il>
11856
11857 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11858 bfd/ChangeLog-0203.
11859
78434e59
MK
118602004-01-02 Mark Kettenis <kettenis@gnu.org>
11861
11862 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11863 in <machine/reg.h>.
11864 * configure, config.in: Regenerate.
11865
48efe704
AC
11866For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11867tui/ChangeLog-1998-2003.
c906108c
SS
11868\f
11869Local Variables:
11870mode: change-log
11871left-margin: 8
11872fill-column: 74
11873version-control: never
11874End:
This page took 1.13292 seconds and 4 git commands to generate.