config/tc-crx.c (handle_LoadStor): New function. Handle load/stor unique instructions...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d092d1a2
DJ
12004-09-19 Daniel Jacobowitz <dan@debian.org>
2
3 * symtab.c (output_source_filename): Mark first argument as const.
4 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
5 for "info sources" output.
6
86d9e1d7
MK
72004-09-20 Mark Kettenis <kettenis@gnu.org>
8
9 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
10 <machine/vmparam.h>.
11 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
12 (register_u_addr): Remove prototype.
13
9a6c8ef4
MK
142004-09-19 Mark Kettenis <kettenis@gnu.org>
15
9692934b
MK
16 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
17 (i386bsd_fetch_inferior_registers): Rename from
18 fetch_inferior_registers. Make static.
19 (i386bsd_store_inferior_registers): Rename from
20 store_inferior_registers. Make static.
21 (i386bsd_target): New function.
22 * i386bsd-nat.h: New file.
23 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
24 "i386bsd-nat.h".
25 (i386fbsd_resume): Rename from child_resume. Make static.
26 (_initialize_i386fbsd_nat): Construct and add target vector.
27 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
28 (_initialize_i386nbsd_nat): Construct and add target vector.
29 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
30 Remove defines.
31 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
32 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
33 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
34 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
35 (LOADLIBES): New variable.
36 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
37 inf-ptrace.o. Remove inftarg.o.
38 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
39 inf-ptrace.o. Remove inftarg.o.
40 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
41 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
42 (LOADLIBES): New variable.
43 * Makefile.in (i386bsd_nat_h): New variable.
44 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
45 dependencies.
46
3510d1f2
MK
47 * sparc64nbsd-tdep.c: Include "objfiles.h".
48 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
49 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
50 svr4_lp64_fetch_link_map_offsets.
51 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
52 "nbsd-tdep.h".
53 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
54 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
55 svr4_lp64_fetch_link_map_offsets.
56 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
57 dependencies.
58
578c1c03
MK
59 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
60 * fbsd-nat.h: New file.
61 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
62 (fbsd_nat_h): New variable.
63 (fbsd-nat.o): New dependency.
64
7a7b73b7
MK
65 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
66 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
67
9a6c8ef4
MK
68 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
69 comment.
70
72d5681a
PH
712004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
72
73 * ada-exp.y (type_int): New function to add layer of abstraction
74 around references to expression types.
75 (type_long): Ditto.
76 (type_long_long): Ditto.
77 (type_float): Ditto.
78 (type_double): Ditto.
79 (type_long_double): Ditto.
80 (type_char): Ditto.
81 (type_system_address): Ditto.
82 (simple_exp): Use type_* functions in place of builtin_*
83 variables.
84 (exp): Ditto.
85 (write_var_from_name): Ditto.
86 (write_object_renaming): Ditto.
87 * ada-lang.c (ada_create_fundamental_type): Remove redundant
88 declaration.
89 (build_ada_types): Remove, replacing with...
90 (ada_language_arch_info): New function to initialize primitive
91 type vector in language_arch_info.
92 (ada_array_length): Remove use of builtin_type_ada_int.
93 (value_pos_atr): Ditto.
94 (ada_evaluate_subexp): Ditto.
95 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
96 builtin_type_ada_long_long, builtin_type_ada_char,
97 builtin_type_ada_float, builtin_type_ada_double,
98 builtin_type_ada_long_double, builtin_type_ada_natural,
99 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
100 (ada_builtin_types): Remove.
101 (ada_language_defn): Remove entries for la_builtin_type_vector and
102 string_char_type and use ada_language_arch_info.
103 (_initialize_ada_language): Do type-vector initialization along
104 the lines of c-lang.c.
105 (ada_create_fundamental_type): Break up line.
106 (ada_dump_symtab): Remove unused function.
107 (enum ada_primitive_types): Define.
108 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
109 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
110 builtin_type_ada_float, builtin_type_ada_double,
111 builtin_type_ada_long_double, builtin_type_ada_natural,
112 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
113 * ada-lex.l: Use type_* functions in place of builtin_* variables.
114 (processInt): Ditto.
115 (processReal): Ditto.
116 (name_lookup): Ditto.
117 * ada-typeprint.c (print_range): Use builtin_type_int, not
118 builtin_type_ada_int.
119
4f0be353
MK
1202004-09-18 Mark Kettenis <kettenis@gnu.org>
121
30b0e2d8
MK
122 * i386-tdep.c (i386_register_name): Rename regno to regnum.
123
4f0be353
MK
124 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
125 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
126 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
127 * configure.in: Improve checks for curses library by checking for
128 mvwaddstr instead of initscr. Drop HP curses in favour of
129 standard curses on HP-UX.
130 * configure: Regenerated.
131
72d5681a 1322004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
133
134 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
135 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
136 Minor formatting changes.
137 (empty_array): Slight rewrite for formatting.
138 (emit_char,parse,ada_language_defn,build_ada_types,
139 ada_is_exception_sym, _initialize_ada_language): Move
140 definitions around.
141 (ada_dump_symtab): Remove unused definition.
142 (ada_maybe_exception_partial_symbol): Remove unused definition.
143
1c8c7407
AC
1442004-09-16 Andrew Cagney <cagney@gnu.org>
145
7681f339
AC
146 * inf-child.c: Include "gdb_string.h".
147 (inf_child_core_file_to_sym_file): Delete.
148 (inf_child_target): Set to_fetch_registers and to_store_registers.
149 * inf-ptrace.c: Include "gdb_string.h".
150 * Makefile.in: Update all dependencies.
151
1c8c7407
AC
152 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
153 problem.
154
65596487
JB
1552004-09-14 Joel Brobecker <brobecker@gnat.com>
156
157 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
158 call to heuristic_proc_desc. Remove code that became redundant
159 as a consequence.
160 (read_next_frame_reg): Remove special case for SP_REGNUM.
161 (set_reg_offset): Fix small typo.
162 (reset_saved_regs): New procedure.
163 (mips32_heuristic_proc_desc): No longer compute a fake
164 procedure descriptor. Compute the full frame cache instead.
165 Some minor comment reformatting.
166
95575b2e
AC
1672004-09-14 Andrew Cagney <cagney@gnu.org>
168
f200c492
AC
169 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
170 maintainer.
171
95575b2e
AC
172 * thread-db.c (thread_db_new_objfile): Assume that there is a
173 child process.
174
69657671
JB
1752004-09-13 Jim Blandy <jimb@redhat.com>
176
177 * valops.c (value_assign): Move 'buffer' to the enclosing block,
178 so that its storage isn't referenced after its lifetime ends.
179
6c4182dd
JB
180 * valops.c (value_assign): 'use_buffer' is initialized to zero,
181 and never assigned to. Delete it, and the 'if (use_buffer)'
182 clauses. Delete 'raw_buffer', since it is now unused.
183
ee31a58d
AC
1842004-09-13 Andrew Cagney <cagney@gnu.org>
185
2c0fc042
AC
186 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
187 * configure: Re-generate.
188 * nlm/Makefile.in (TAGS): Update.
189 * Makefile.in (TAGS): Update.
190 * config/vax/nbsd.mt (TM_FILE): Update.
191 * config/sparc/vxworks.mt (TM_FILE): Update.
192 * config/sparc/sol2.mt (TM_FILE): Update.
193 * config/sparc/sol2-64.mt (TM_FILE): Update.
194 * config/sparc/obsd64.mt (TM_FILE): Update.
195 * config/sparc/obsd.mt (TM_FILE): Update.
196 * config/sparc/nbsd64.mt (TM_FILE): Update.
197 * config/sparc/nbsd.mt (TM_FILE): Update.
198 * config/sparc/linux64.mt (TM_FILE): Update.
199 * config/sparc/linux.mt (TM_FILE): Update.
200 * config/sparc/fbsd.mt (TM_FILE): Update.
201 * config/sh/wince.mt (TM_FILE): Update.
202 * config/sh/nbsd.mt (TM_FILE): Update.
203 * config/sh/linux.mt (TM_FILE): Update.
204 * config/sh/embed.mt (TM_FILE): Update.
205 * config/s390/s390.mt (TM_FILE): Update.
206 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
207 * config/rs6000/rs6000.mt (TM_FILE): Update.
208 * config/rs6000/aix4.mt (TM_FILE): Update.
209 * config/powerpc/vxworks.mt (TM_FILE): Update.
210 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
211 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
212 * config/powerpc/obsd.mt (TM_FILE): Update.
213 * config/powerpc/nbsd.mt (TM_FILE): Update.
214 * config/powerpc/linux.mt (TM_FILE): Update.
215 * config/powerpc/aix.mt (TM_FILE): Update.
216 * config/pa/obsd.mt (TM_FILE): Update.
217 * config/pa/linux.mt (TM_FILE): Update.
218 * config/pa/hppahpux.mt (TM_FILE): Update.
219 * config/pa/hppa64.mt (TM_FILE): Update.
220 * config/pa/hppa.mt (TM_FILE): Update.
221 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
222 * config/mips/wince.mt (TM_FILE): Update.
223 * config/mips/vxmips.mt (TM_FILE): Update.
224 * config/mips/nbsd.mt (TM_FILE): Update.
225 * config/mips/linux.mt (TM_FILE): Update.
226 * config/mips/irix6.mt (TM_FILE): Update.
227 * config/mips/irix5.mt (TM_FILE): Update.
228 * config/mips/embed.mt (TM_FILE): Update.
229 * config/m68k/vxworks68.mt (TM_FILE): Update.
230 * config/m68k/st2000.mt (TM_FILE): Update.
231 * config/m68k/os68k.mt (TM_FILE): Update.
232 * config/m68k/obsd.mt (TM_FILE): Update.
233 * config/m68k/nbsd.mt (TM_FILE): Update.
234 * config/m68k/monitor.mt (TM_FILE): Update.
235 * config/m68k/linux.mt (TM_FILE): Update.
236 * config/m68k/cisco.mt (TM_FILE): Update.
237 * config/ia64/linux.mt (TM_FILE): Update.
238 * config/ia64/aix.mt (TM_FILE): Update.
239 * config/ia64/ia64.mt (TM_FILE): Update.
240 * config/i386/vxworks.mt (TM_FILE): Update.
241 * config/i386/obsd64.mt (TM_FILE): Update.
242 * config/i386/obsd.mt (TM_FILE): Update.
243 * config/i386/nto.mt (TM_FILE): Update.
244 * config/i386/nbsd64.mt (TM_FILE): Update.
245 * config/i386/nbsd.mt (TM_FILE): Update.
246 * config/i386/linux64.mt (TM_FILE): Update.
247 * config/i386/linux.mt (TM_FILE): Update.
248 * config/i386/i386sol2.mt (TM_FILE): Update.
249 * config/i386/i386lynx.mt (TM_FILE): Update.
250 * config/i386/fbsd64.mt (TM_FILE): Update.
251 * config/i386/fbsd.mt (TM_FILE): Update.
252 * config/i386/cygwin.mt (TM_FILE): Update.
253 * config/h8300/h8300.mt (TM_FILE): Update.
254 * config/frv/frv.mt (TM_FILE): Update.
255 * config/cris/cris.mt (TM_FILE): Update.
256 * config/arm/wince.mt (TM_FILE): Update.
257 * config/arm/nbsd.mt (TM_FILE): Update.
258 * config/arm/linux.mt (TM_FILE): Update.
259 * config/arm/embed.mt (TM_FILE): Update.
260 * config/alpha/nbsd.mt (TM_FILE): Update.
261 * config/alpha/fbsd.mt (TM_FILE): Update.
262 * config/alpha/alpha.mt (TM_FILE): Update.
263 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
264 * config/alpha/alpha-linux.mt (TM_FILE): Update.
265
362646f5
AC
266 Eliminate event_loop_p, always has the value 1.
267 * defs.h (event_loop_p): Delete macro.
268 * breakpoint.c (until_break_command): Simplify.
269 * utils.c (prompt_for_continue): Simplify.
270 * tracepoint.c (read_actions): Simplify.
271 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
272 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
273 (set_prompt, init_main): Simplify.
274 (init_signals, disconnect): Delete, unused.
275 * remote.c (remote_async_resume)
276 (extended_remote_async_create_inferior): Simplify.
277 * mi/mi-interp.c (mi_input): Delete, unused.
278 (mi_interpreter_resume, mi_command_loop): Simplify.
279 * interps.c (current_interp_command_loop): Simplify.
280 * infrun.c (proceed): Simplify.
281 * infcmd.c (run_command, continue_command, step_1, jump_command)
282 (until_command, advance_command, finish_command)
283 (interrupt_target_command): Simplify.
284 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
285
ee31a58d
AC
286 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
287 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
288 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
289 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
290 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
291 * mips-tdep.c (mips_dump_tdep): Do not print same.
292
b7ffc4a8
AC
2932004-09-12 Andrew Cagney <cagney@gnu.org>
294
2bfb72ee
AC
295 * valprint.c (print_longest): Use fputs_filtered. Make "val"
296 const.
297 * Makefile.in (valprint.o): Delete explict rule.
298
4f17c3c1
AC
299 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
300 reported by Dave Anderson.
301
f810308b
AC
302 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
303
b7ffc4a8
AC
304 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
305
28b41c52
AC
3062004-09-12 Salvador E. Tropea <set@users.sf.net>
307 Andrew Cagney <cagney@gnu.org>
308
309 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
310 (mi_cmd_data_list_register_values)
311 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
312 the register number computation.
313
5bf970f9
AC
3142004-09-12 Andrew Cagney <cagney@gnu.org>
315
316 * ppcnbsd-nat.c: Include "inf-ptrace.h".
317 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
318 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
319 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
320 target.
321 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
322 inf-ptrace.o and inf-child.o.
323 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
324 * Makefile.in: Update dependencies.
325
0759e0bf
AC
3262004-09-11 Andrew Cagney <cagney@gnu.org>
327
328 * language.c (hex_string, hex_string_custom): Move from here ...
329 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
330 (CELLSIZE): Increase to 50.
331 * language.h (hex_string, hex_string_custom): Move from here ...
332 * defs.h: ... to here.
333 * Makefile.in: Update all dependencies.
334
bb599908
PH
3352004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
336
337 * language.c (local_hex_format_custom): Remove.
338 (local_hex_string): Rename to hex_string, use C format, and move to
339 utils.c
340 (local_hex_string_custom): Rename to hex_string_custom and change
341 interface. Now uses C format. Move to utils.c
342 (local_octal_format_custom): Remove.
343 (local_decimal_format_custom): Remove.
344 (unknown_language_defn): Remove language-specific number
345 formatting entries.
346 (auto_language_defn): Ditto.
347 (local_language_defn): Ditto.
348 * language.h (struct language_format_info): Delete declaration.
349 (struct language_defn): Remove language_format_info fields
350 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
351 (local_binary_format): Remove macro.
352 (local_binary_format_prefix): Remove macro.
353 (local_binary_format_specifier): Remove macro.
354 (local_binary_format_suffix): Remove macro.
355 (local_octal_format): Remove macro.
356 (local_octal_format_prefix): Remove macro.
357 (local_octal_format_specifier): Remove macro.
358 (local_octal_format_suffix): Remove macro.
359 (local_decimal_format): Remove macro.
360 (local_decimal_format_prefix): Remove macro.
361 (local_decimal_format_specifier): Remove macro.
362 (local_decimal_format_suffix): Remove macro.
363 (local_hex_format): Remove macro.
364 (local_hex_format_prefix): Remove macro.
365 (local_hex_format_specifier): Remove macro.
366 (local_hex_format_suffix): Remove macro.
367 (local_decimal_format_custom): Remove.
368 (local_octal_format_custom): Remove.
369 (local_hex_format_custom): Remove.
370 (local_hex_string): Rename to hex_string and move to defs.h.
371 (local_hex_string_custom): Rename to hex_string_custom, change
372 interface, and move to defs.h.
373 * utils.c: (int_string): New function.
374 (hex_string): New function (from language.c).
375 (hex_string_custom): New function (from language.c).
376 (octal2str): New function.
377 (decimal2str): Add width parameter.
378 (paddr_u): Use new decimal2str interface.
379 (paddr_d): Ditto.
380 * defs.h (hex_string): Declare.
381 (hex_string_custom): Declare.
382 (int_string): Declare.
383 * printcmd.c (print_scalar_formatted): Remove localized binary
384 formatting.
385 * valprint.c (print_longest): Use int_string.
386 (print_floating): Use C hex format.
387 (print_hex_chars): Ditto.
388 (print_binary_chars): Remove language-specific formatting.
389 (print_octal_chars): Use C octal format.
390 (print_decimal_chars): Delocalize format.
391 (print_decimal): Remove.
392 * ada-lang.c (ada_language_defn): Remove language-specific number
393 formatting entries.
394 * p-lang.c (pascal_language_defn): Ditto.
395 * c-lang.c (c_language_defn): Ditto.
396 (cplus_language_defn): Ditto.
397 (asm_language_defn): Ditto.
398 (minimal_language_defn): Ditto.
399 * f-lang.c (f_language_defn): Ditto.
400 * jv-lang.c (java_language_defn): Ditto.
401 * m2-lang.c (m2_language_defn): Ditto.
402 * scm-lang.c (scm_language_defn): Ditto.
403 * objc-lang.c (objc_language_defn): Ditto.
404 * memattr.c (mem_info_command): Use renamed hex_string_custom with
405 new interface.
406 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
407 * ui-out.c (ui_out_field_core_addr): Ditto.
408 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
409 * exec.c (print_section_info): Ditto.
410 * i387-tdep.c (print_i387_status_word): Ditto.
411 (print_i387_control_word): Ditto.
412 (i387_print_float_info): Ditto.
413 * maint.c (maint_print_section_info): Ditto.
414 * solib.c (info_sharedlibrary_command): Ditto.
415 * somsolib.c (som_sharedlibrary_info_command): Ditto.
416 * symtab.c (print_msymbol_info): Ditto.
417 * tracepoint.c (tracepoints_info): Ditto.
418 * solib-frv.c (lm_base): Ditto.
419 (frv_current_sos): Ditto.
420 (enable_break2): Ditto.
421 (enable_break): Ditto.
422 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
423 (process_one_symbol): Ditto.
424 * infcmd.c (program_info): Ditto.
425 * mdebugread.c (parse_partial_symbols): Ditto.
426 * symfile.c (add_symbol_file_command): Ditto.
427 * cli/cli-cmds.c (edit_command): Ditto.
428 (list_command): Ditto.
429 * infcall.c (call_function_by_hand): Ditto.
430 * remote-vx.c (vx_run_files_info): Ditto.
431 (vx_wait): Ditto.
432 (vx_attach): Ditto.
433 (vx_detach): Ditto.
434 (vx_kill): Ditto.
435 * aix-thread.c (pdc_symbol_addrs): Ditto.
436 (pdc_read_regs): Ditto.
437 (pdc_write_regs): Ditto.
438 (pdc_read_data): Ditto.
439 (pdc_write_data): Ditto.
440 * d10v-tdep.c (display_trace): Ditto.
441 * rs6000-nat.c (find_toc_address): Ditto.
442 * aix-thread.c: Don't include language.h.
443 * buildsym.c: Ditto.
444 * dbxread.c: Ditto.
445 * mdebugread.c: Ditto.
446 * rs6000-nat.c: Ditto.
447 * buildsym.c (make_blockvector): Use renamed hex_string.
448
33f2d567
JM
4492004-09-10 Jason Molenda (jmolenda@apple.com)
450
451 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
452 chars after 'if' or 'while' commands in user-defined commands.
453
7b90c3f9
JB
4542004-09-08 Jim Blandy <jimb@redhat.com>
455
456 Fix bug reported and analyzed by Olivier Crete:
457 * symfile.c (copy_section_addr_info): New function.
458 (symbol_file_add_with_addrs_or_offsets): Use it to save the
459 original set of address arguments, instead of handwritten code
460 that uses one length to allocate and a different length to
461 initialize. Use make_cleanup_free_section_addr_info.
462 * symfile.h (copy_section_addr_info): New declaration.
463 * utils.c: #include "symfile.h".
464 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
465 New functions.
466 * defs.h (make_cleanup_free_section_addr_info): New declaration.
467 * Makefile.in (utils.o): Update dependencies.
468
b26a6851
AC
4692004-09-08 Andrew Cagney <cagney@gnu.org>
470
471 * thread-db.c (keep_thread_db): Delete.
472 (thread_db_new_objfile, thread_db_create_inferior)
473 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
474
be24b061
MK
4752004-09-08 Mark Kettenis <kettenis@gnu.org>
476
f6792ef4
MK
477 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
478 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
479 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
480 (i386_frameless_signal_p): Remove prototype.
481 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
482 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
483 I386_SSE_NUM_REGS.
484 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
485 instead of FP0_REGNUM.
486 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
487 of FP0_REGNUM and FPC_REGNUM.
488
eeefdaa7
MK
489 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
490 (sunos_solib_create_inferior_hook): Don't call
491 sunos_relocate_main_executable.
492
be24b061
MK
493 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
494 solib_svr4_fetch_link_map_offsets to
495 svr4_ilp32_fetch_link_map_offsets.
496 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
497 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
498 svr4_ilp32_fetch_link_map_offsets.
499 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
500
7c679d16
JB
5012004-09-07 Jim Blandy <jimb@redhat.com>
502
503 * frame.h (frame_register): Doc fix.
504
1f04aa62
AC
5052004-09-07 Andrew Cagney <cagney@gnu.org>
506
507 * vx-share/wait.h: Delete #ifdef USG.
508 * utils.c (request_quit): Ditto.
509 * tui/tui.c (tui_reset): Ditto.
510 * remote.c: Ditto.
511 * remote-sds.c: Ditto.
512 * remote-rdi.c: Ditto.
513 * mdebugread.c: Ditto.
514 * m68klinux-nat.c: Ditto.
515 * infttrace.c: Ditto.
516 * infptrace.c: Ditto.
517 * i386v-nat.c: Ditto.
518 * exec.c: Ditto.
519 * dbxread.c: Ditto.
520 * core-aout.c: Ditto.
521
90edbfbc
JB
5222004-09-05 Joel Brobecker <brobecker@gnat.com>
523
524 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
525 heuristic_proc_desc.
526 (mips_insn32_frame_cache): Likewise.
527
01f4bf2b
JB
5282004-09-04 Joel Brobecker <brobecker@gnat.com>
529
530 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
531 left behind by error.
532
8511a048
JB
5332004-09-04 Joel Brobecker <brobecker@gnat.com>
534
535 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
536 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
537
649dfe9f
JB
5382004-09-04 Joel Brobecker <brobecker@gnat.com>
539
540 * config/rs6000/xm-aix4.h: Remove this file.
541 * config/rs6000/aix4.mh (XM_FILE): Delete.
542
6e50f889
JB
5432004-09-04 Joel Brobecker <brobecker@gnat.com>
544
545 * config/rs6000/xm-rs6000.h: Remove this file.
546 * config/rs6000/rs6000.mh (XM_FILE): Remove.
547
b8c4aece
AC
5482004-09-03 Andrew Cagney <cagney@gnu.org>
549
fb603883
AC
550 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
551 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
552 only use.
553
c9343fd1
AC
554 * mips-tdep.c (temp_saved_regs): Delete.
555 (set_reg_offset): Replace saved_regs parameter with this_cache.
556 (heuristic_proc_desc, mips16_heuristic_proc_desc)
557 (mips32_heuristic_proc_desc): Add this_cache parameter.
558 (mips_insn32_frame_cache, mips_insn16_frame_cache)
559 (after_prologue): Pass a NULL this_cache.
560
9733cfe1
AC
561 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
562 non-kernel trap prologues.
563
0d5febcc
AC
564 * mips-tdep.c (find_proc_desc): Delete function.
565 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
566 simplify.
567 (mips_insn16_frame_cache): Replace find_proc_desc with code from
568 mips_insn32_frame_cache.
569
9733cfe1 570 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
571 Simplify as NEXT_FRAME is NULL.
572 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
573
177f84a3
AC
574 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
575 local variable.
576 (mips_skip_prologue): Update.
577
465f7520
AC
578 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
579 "cur_frame" parameter.
177f84a3
AC
580 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
581 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 582
e38b8658
AC
583 * config/vax/nm-obsd.h: Delete file.
584 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
585 * config/vax/nm-nbsd.h: Delete file.
586 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
587 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
588 * config/sh/nm-nbsd.h: Delete file.
589 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
590 * config/rs6000/nm-rs6000ly.h: Delete file.
591 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
592 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
593 * config/powerpc/nm-obsd.h: Delete file.
594 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
595 * config/powerpc/nm-nbsd.h: Delete file.
596 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
597 * config/pa/nm-obsd.h: Delete file.
598 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
599 * config/mips/nm-nbsd.h: Delete file.
600 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
601 * config/m88k/nm-obsd.h: Delete file.
602 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
603 * config/m68k/nm-nbsd.h: Delete file.
604 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
605 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
606 * config/i386/nm-nbsd.h: Delete file.
607 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
608 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
609 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
610 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
611 * config/i386/nm-i386lynx.h: Delete file.
612 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
613 * config/arm/nm-nbsd.h: Delete file.
614 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
615 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
616
be1ed680
AC
617 * config/i386/tm-fbsd.h: Delete file.
618 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
619 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
620
4b392b26
AC
621 * config/rs6000/tm-rs6000-aix4.h: Delete file.
622 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
623 * config/rs6000/aix4.mt (TM_FILE): Set to
624 config/rs6000/tm-rs6000.h.
625 * config/powerpc/tm-ppc-aix.h: Delete file.
626 * config/powerpc/aix.mt (TM_FILE): Set to
627 config/rs6000/tm-rs6000.h.
628 * config/m68k/tm-linux.h: Delete file.
629 * config/m68k/linux.mt (TM_FILE): Set to solib.h
630 * config/i386/tm-linux64.h: Delete file.
631 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
632 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
633
f3219c75
AC
634 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
635 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
636 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
637 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
638 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
639 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
640 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
641 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
642 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
643
b8c4aece
AC
644 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
645 gdb_host_cpu.
646
8ac2e020
JB
6472004-09-02 Joel Brobecker <brobecker@gnat.com>
648
649 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
650 Minor reformatting. Some code factoring.
651
c185a355
AC
6522004-09-02 Andrew Cagney <cagney@gnu.org>
653
63f22f0d
AC
654 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
655 * config/vax/tm-nbsd.h: Delete file.
656 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
657 * config/sparc/tm-vxworks.h: Delete file.
658 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
659 * config/sparc/tm-nbsd.h: Delete file.
660 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
661 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
662 * config/sparc/tm-linux.h: Delete file.
663 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
664 * config/s390/tm-linux.h: Delete file.
665 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
666 * config/pa/tm-bsd.h: Delete file.
667 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
668 * config/m68k/tm-obsd.h: Delete file.
669 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
670 * config/m68k/tm-nbsd.h: Delete file.
671 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
672 * config/i386/tm-vxworks.h: Delete file.
673 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
674 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
675 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
676 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
677 * config/i386/tm-nbsd.h: Delete file.
678 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
679 * config/i386/tm-i386lynx.h: Delete file.
680 * config/cris/cris.mt (TM_FILE): Set to solib.h.
681 * config/cris/tm-cris.h: Delete file.
682
0f475e27
AC
683 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
684 * configure: Re-generate.
685 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
686 * config/arm/tm-nbsd.h: Delete file.
687
458ed000
AC
688 * config/powerpc/tm-ppcle-sim.h: Delete.
689 * config/powerpc/tm-ppcle-eabi.h: Delete.
690 * config/powerpc/tm-nbsd.h: Delete.
691 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
692 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
693 tm-ppcle-eabi.h.
694
f14375f3
AC
695 * config/i386/nto.mh (NAT_FILE): Delete.
696 * config/i386/nm-nto.h: Delete.
697
c34d127c
AC
698 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
699 * config/m68k/tm-os68k.h: Ditto.
700 * config/m68k/tm-monitor.h: Ditto.
701 * config/m68k/tm-cisco.h: Ditto.
702 * config/m68k/st2000.mt (TM_FILE): Delete.
703 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
704 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
705 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
706 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
707
f7f0fe03
AC
708 * config/m68k/tm-st2000.h: Delete.
709 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
710 * config/sparc/fbsd.mt (TM_FILE): Delete.
711 * config/sparc/tm-fbsd.h: Delete.
712
a2558533
AC
713 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
714 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
715 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
716
b78960be
AC
717 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
718 GDB_TM_FILE and GDB_XM_FILE.
719 * gdbarch.c: Re-generate.
720 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
721 quotes in macro definition.
722 * configure.in: Re-generate.
723
4d60522e
AC
724 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
725 validating architecture methods.
726 * gdbarch.c: Re-generate.
727
5010d38b
AC
728 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
729 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
730 GDB_MULTI_ARCH_PARTIAL.
731 * gdbarch.h: Re-generate.
732
c185a355
AC
733 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
734 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
735 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
736 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
737 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
738 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
739 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
740 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
741 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
742 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
743 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
744 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
745
14aaa6ab
AC
7462004-09-01 Andrew Cagney <cagney@gnu.org>
747
748 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
749 and main_func_highpc.
750 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
751 * objfiles.c (init_entry_point_info, objfile_relocate): Update
752 * nlmread.c (nlm_symfile_read): Update.
753
a343eb3c
JB
7542004-09-01 Joel Brobecker <brobecker@gnat.com>
755
756 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
757 (mips_insn32_frame_cache): Inline call to find_proc_desc.
758 (find_proc_desc): Remove dead code.
759
4fbbbd07
JB
7602004-09-01 Joel Brobecker <brobecker@gnat.com>
761
762 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
763
84acb35a
JJ
7642004-09-01 Jeff Johnston <jjohnstn@redhat.com>
765
766 * observer.sh: Add struct so_list declaration.
767 * Makefile.in: Add dependencies on observer.h for solib.c and
768 breakpoint.c.
769 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
770 function.
771 (_initialize_breakpoint): Register
772 disable_breakpoints_in_unloaded_shlib as an observer of the
773 "solib unloaded" observation event.
774 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
775 call decode_line_1 so unfound breakpoint errors are silent.
776 * solib.c (update_solib_list): When a solib is discovered to have
777 been unloaded by the program, notify all observers of the
778 "solib unloaded" observation event.
779
c8cd9f6c
AC
7802004-09-01 Andrew Cagney <cagney@gnu.org>
781
782 * frame.c: Include "objfiles.h".
783 (inside_main_func): New function.
784 (get_prev_frame): Use new inside_main_func.
785 * Makefile.in (frame.o): Update dependencies.
786 * defs.h (inside_main_func): Delete declaration.
787 * blockframe.c (inside_main_func): Delete function.
788
1168df01
JB
7892004-08-31 Jim Blandy <jimb@redhat.com>
790
791 * dwarf2read.c (is_vtable_name): New function, based on logic from
792 read_structure_type, but passing the correct length to strncmp,
793 and using 'sizeof' instead of 'strlen'.
794 (read_structure_type): Call it.
795
f14f9744
JB
7962004-08-31 Joel Brobecker <brobecker@gnat.com>
797
798 * config/powerpc/aix.mh: Add comment.
799
386d4518
PG
8002004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
801
802 * MAINTAINERS: Add self to Write-After-Approval.
803
7d97d5e2
MI
8042004-08-30 Manoj Iyer <manjo@austin.ibm.com>
805
806 * MAINTAINERS: Add self to Write-After-Approval.
807
68f53502
AC
8082004-08-30 Andrew Cagney <cagney@gnu.org>
809
810 Fix PR breakpoints/1757.
811 * infrun.c (struct execution_control_state): Replace
812 remove_breakpoints_on_following_step with
813 step_after_step_resume_breakpoint.
814 (init_execution_control_state): Update.
815 (handle_inferior_event): For signals, when stepping off a
816 breakpoint, set step_after_step_resume_breakpoint. When
817 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
818 (keep_going): Delete code handling
819 remove_breakpoints_on_following_step.
820
7ca2d3a3
DL
8212004-08-29 David Lecomber <david@streamline-computing.com>
822
823 Fix PR gdb/648
824 * language.h (enum array_ordering): New enum.
825 * language.h (struct language_defn): New la_array_ordering
826 attribute.
827 * language.c (unknown_language_defn, auto_language_defn)
828 (local_language_defn): Ditto.
829 * ada-lang.c (ada_language_defn): Ditto.
830 * c-lang.c (c_language_defn, cplus_language_defn)
831 (asm_language_defn, minimal_language_defn): Ditto.
832 * f-lang.c (f_language_defn): Ditto.
833 * jv-lang.c (java_language_defn): Ditto.
834 * m2-lang.c (f_language_defn): Ditto.
835 * objc-lang.c (objc_language_defn): Ditto.
836 * p-lang.c (pascal_language_defn): Ditto.
837 * scm-lang.c (scm_language_defn): Ditto.
838 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
839 oriented large to small in type structure.
840 * dwarf2read.c (read_array_order): New function.
841 (read_array_type): Use read_array_order to check row/column
842 major ordering.
843
e354df01
NW
8442004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
845
846 * target.c (target_resize_to_sections): Check
847 current_target.to_sections for an old value when updating.
848
9185ddce
JB
8492004-08-27 Joel Brobecker <brobecker@gnat.com>
850
851 * procfs.c (dbx_link_bpt_addr): New static global variable.
852 (dbx_link_shadow_contents): New static global variable.
853 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
854 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
855 if we just hit it.
856 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
857 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
858 from run to run.
859 (procfs_create_inferior): Remove syssgi syscall-exit notifications
860 after the inferior has been forked.
861 (remove_dbx_link_breakpoint): New function.
862 (dbx_link_addr): New function.
863 (insert_dbx_link_bpt_in_file): New function.
864 (insert_dbx_link_bpt_in_region): New function.
865 (insert_dbx_link_breakpoint): New function.
866 (proc_trace_syscalls_1): New function, extracted from
867 proc_trace_syscalls.
868 (proc_trace_syscalls): Replace extract code by call to
869 proc_trace_syscalls_1.
870 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
871 is no longer valid.
872
e6742ace
JB
8732004-08-25 Jim Blandy <jimb@redhat.com>
874
875 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
876
8fb3e588
AC
8772004-08-25 Andrew Cagney <cagney@gnu.org>
878
629a41ee
AC
879 * infrun.c (struct execution_control_state): Delete field
880 "stepping_through_sigtramp".
881 (init_execution_control_state): Do not set same.
882 (context_switch): Do not pass same to save_infrun_state and
883 load_infrun_state.
884 * gdbthread.h (struct thread_info): Delete field
885 stepping_through_sigtramp.
886 (save_infrun_state, load_infrun_state): Delete parameter
887 stepping_through_sigtramp.
888 * thread.c (load_infrun_state, save_infrun_state): Update.
889
8fb3e588
AC
890 * infrun.c: Re-indent. Move expression operators to the beginning
891 of the line. Remove long disabled #if 0 code.
892
49c54768
AC
8932004-08-24 Andrew Cagney <cagney@gnu.org>
894
895 * doublest.h (floatformat_ieee_quad): Rename
896 floatformat_ia64_quad.
897 * doublest.c (floatformat_ieee_quad): Rename
898 floatformat_ia64_quad.
899 (_initialize_doublest): Update.
900
5ca2e327
JB
9012004-08-24 Jim Blandy <jimb@redhat.com>
902
87808bd6
JB
903 * dwarf2expr.h (struct dwarf_expr_context): New members
904 'num_pieces' and 'pieces', for returning the result of an
905 expression that uses DW_OP_piece.
906 (struct dwarf_expr_piece): New struct type.
907 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
908 pieces.
909 (free_dwarf_expr_context): Free pieces, if any.
910 (add_piece): New function.
911 (execute_stack_op): Implement DW_OP_piece.
912 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
913 expression is a list of pieces, print an error message.
914 (dwarf2_loc_desc_needs_frame): If the expression yields
915 pieces, and any piece is in a register, then we need a frame.
916
5ca2e327
JB
917 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
918 the stack until we've decided what sort of result the evaluation
919 has produced. Use separate variables, with more specific names.
920
2afeb6b8
RE
9212004-08-23 Richard Earnshaw <rearnsha@arm.com>
922
923 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
924 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
925 (arm_netbsd_init_abi_common): Register them.
926
5885ab49
MK
9272004-08-22 Mark Kettenis <kettenis@gnu.org>
928
fda820a6
MK
929 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
930
1c5bf419
MK
931 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
932 safe_frame_unwind_memory instead of target_read_memory.
933
8cbba7c8
MK
934 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
935 Reorder includes.
936 (fetch_register, store_register): Remove prototypes.
937 (child_resume): Reorganize code and comments such that it is
938 grouped a bit more logically.
939 (attach): Explicitly compare errno against 0.
940 (detach): Likewise. Use perror_with_name instead of
941 print_sys_errmsg.
942 * Makefile.in (infptrace.o): Update dependencies.
943
c5fa4245
MK
944 * ia64-linux-nat.c: Update copyright year.
945 (fetch_debug_register, store_debug_register)
946 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
947 PTRACE_TYPE_ARG3.
948 * config/ia64/nm-linux.h: Update copyright year.
949 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
950
387c058c
MK
951 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
952 from CORE_ADDR to struct frame_info *. Use
953 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
954 (amd64_linux_sigtramp_p): Adjust for changed signature of
955 and64_linux_sigtramp_start
956
277215a6
MK
957 * gdb_ptrace.h: GNU/Linux.
958
25f6178e
MK
959 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
960 Remove defines.
961
652fc137
MK
962 * infptrace.c: Include "gdb_assert.h".
963 (PTRACE_XFER_TYPE): Remove define.
964 (offsetof): Only define if U_REGS_OFFSET isn't defined.
965 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
966 Tweak comment.
967 (fetch_inferior_registers, store_inferior_registers): Remove
968 redundant culry braces. Tweak comment. s/regno/regnum.
969 * Makefile.in (infptrace.o): Update dependencies.
970
5885ab49
MK
971 * configure.in: Change test for return type of ptrace to default
972 to `long' instead of `int'.
973 * configure: Regenerate.
974
11003ae3
MK
9752004-08-21 Mark Kettenis <kettenis@gnu.org>
976
6b95110c
MK
977 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
978
bcb3dc3d
MK
979 * configure.in: Check for ttrace function.
980 * configure, config.in: Regenerate.
981
11003ae3
MK
982 * gdb_ptrace.h: New file.
983 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
984 <sys/ptrace.h>.
985 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
986 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
987 (attach): Don't define PT_ATTACH.
988 (detach): Don't define PT_DETACH.
989 * Makefile.in (gdb_ptrace_h): New variable.
990 (infptrace.o): Update dependencies.
991
f8707cac
MK
9922004-08-16 Mark Kettenis <kettenis@gnu.org>
993
994 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
995 instead of `int' if not already defined.
996 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
997 PTRACE_TYPE_ARG3.
998 * infptrace.c (call_ptrace): Revert change that replaced
999 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1000
655c5466
MK
10012004-08-15 Mark Kettenis <kettenis@gnu.org>
1002
156e5ba7
MK
1003 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1004 Remove defines.
1005
de9a9e51
MK
1006 * linux-nat.c (kill_inferior): Add missing third and fourth
1007 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1008
88800403
MK
1009 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1010 PTRACE_TYPE_RET.
1011
849a1d7c
MK
1012 * proc-why.c (proc_prettyfprint_why): Fix format string.
1013
61ad16d1
MK
1014 * solib-osf.c (osf_current_sos): Remove unsused label.
1015
a6ed5501
MK
1016 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1017 curses headers.
1018 * configure, config.in: Regenerate.
1019 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1020 <ncurses/ncurses.h>.
1021
016ddeca
MK
1022 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1023 * config/nm-nbsd.h: Update copyright year.
1024 (PTRACE_ARG3_TYPE): Remove define.
1025
49ec097f
MK
1026 * sparc-nat.c (fetch_inferior_registers)
1027 (store_inferior_registers, sparc_xfer_wcookie):
1028 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1029
9f8e0089
MK
1030 * alphabsd-nat.c (fetch_inferior_registers):
1031 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1032 PTRACE_TYPE_ARG3.
1033 * amd64bsd-nat.c (fetch_inferior_registers)
1034 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1035 PTRACE_TYPE_ARG3.
1036 * armnbsd-nat.c: Update copyright year.
1037 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1038 (store_register, store_regs, store_fp_register, store_fp_regs):
1039 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1040 * hppabsd-nat.c (fetch_inferior_registers)
1041 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1042 PTRACE_TYPE_ARG3.
1043 * i386bsd-nat.c (fetch_inferior_registers)
1044 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1045 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1046 * m68kbsd-nat.c (fetch_inferior_registers)
1047 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1048 PTRACE_TYPE_ARG3.
1049 * m88kbsd-nat.c (fetch_inferior_registers)
1050 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1051 PTRACE_TYPE_ARG3.
1052 * mipsnbsd-nat.c: Update copyright year.
1053 (fetch_inferior_registers, store_inferior_registers):
1054 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1055 * ns32knbsd-nat.c: Update copyright year.
1056 (fetch_inferior_registers, store_inferior_registers):
1057 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1058 * ppcnbsd-nat.c (fetch_inferior_registers):
1059 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1060 PTRACE_TYPE_ARG3.
1061 * ppcobsd-nat.c (fetch_inferior_registers):
1062 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1063 PTRACE_TYPE_ARG3.
1064 * shnbsd-nat.c: Update copyright year.
1065 (fetch_inferior_registers, store_inferior_registers):
1066 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1067 * vaxbsd-nat.c (fetch_inferior_registers)
1068 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1069 PTRACE_TYPE_ARG3.
1070
655c5466
MK
1071 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1072 PTRACE_TYPE_ARG3.
1073 * infptrace.c (call_ptrace, child_resume, attach, detach)
1074 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1075 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1076 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1077 PTRACE_TYPE_ARG3.
1078
c40d0d10
MK
10792004-08-14 Mark Kettenis <kettenis@gnu.org>
1080
5cb0ff31
MK
1081 * defs.h: Remove out-of-date comment.
1082 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1083 [!GETENV_PROVIDED] (getenv): Remove prototype.
1084
5f0f34cb
MK
1085 * standalone.c: Remove file.
1086 * Makefile.in (standalone.o): Remove dependency.
1087
7532965f
MK
1088 * i386-linux-nat.c (dummy_sse_values): Remove function and
1089 prototype.
1090 (i386_linux_dr_get): Fix typo in comment.
1091 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1092
1bdc6c53
MK
1093 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1094
c40d0d10
MK
1095 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1096 from declaration.
1097 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1098 from definition.
1099
64218d3e
MK
11002004-08-13 Mark Kettenis <kettenis@gnu.org>
1101
1102 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1103 parenthesis in definition.
1104 * configure: Regenerated.
1105
926c94e7
MC
11062004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1107
1108 * PROBLEMS: Mention build/1411.
1109
69489883
NN
11102004-08-09 Robert Millan <robertmh@gnu.org>
1111
1112 Committed by Nathanael Nerode.
1113 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1114 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1115
ebb7c577
AC
11162004-08-12 Andrew Cagney <cagney@gnu.org>
1117
1118 * NEWS: Mention fixes in GDB 6.2.1.
1119 * PROBLEMS: Remove mention of mips-irix.
1120
232d697c
JB
11212004-08-11 Joel Brobecker <brobecker@gnat.com>
1122
1123 * config/powerpc/xm-aix.h: Delete.
1124 * config/powerpc/aix.mh (MH_FILE): Remove.
1125 * config/powerpc/aix432.mh (MH_FILE): Remove.
1126
72f4e82b
JB
11272004-08-11 Joel Brobecker <brobecker@gnat.com>
1128
1129 * config/powerpc/aix.mh: Remove obsolete comment.
1130 * config/powerpc/aix432.mh: Likewise.
1131
0687ccb2
JB
11322004-08-11 Joel Brobecker <brobecker@gnat.com>
1133
1134 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1135
dbf3ada7
JB
11362004-08-11 Joel Brobecker <brobecker@gnat.com>
1137
e08e1886
JB
1138 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1139 this file is now empty.
1140 * config/xm-aix4.h: Remove, this file is no longer included
1141 anywhere.
1142
11432004-08-11 Joel Brobecker <brobecker@gnat.com>
1144
1145 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1146 that file is now empty.
dbf3ada7
JB
1147 (termdef): Remove prototype, function no longer used.
1148
4c525ef6
JB
11492004-08-11 Joel Brobecker <brobecker@gnat.com>
1150
1151 * doc/gdbint.texinfo (Host Definition): Remove documentation
1152 for USE_O_NOCTTY, no longer used.
1153 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1154 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1155
82e0b968
JB
11562004-08-11 Joel Brobecker <brobecker@gnat.com>
1157
1158 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1159 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1160 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1161
f2acbe1c
MK
11622004-08-11 Mark Kettenis <kettenis@gnu.org>
1163
daa98270
MK
1164 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1165 instead of FIVE_ARG_PTRACE.
1166
f2acbe1c
MK
1167 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1168 (new_tty): Use O_NOCTTY unconditionally.
1169
cc377e6b
MK
11702004-08-10 Mark Kettenis <kettenis@gnu.org>
1171
1172 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1173 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1174 fflush on stdout.
1175
3bcc18fa
JB
11762004-08-10 Joel Brobecker <brobecker@gnat.com>
1177
1178 * xcoff_symfile_finish: Replace last call to xmfree by call
1179 to xfree.
1180
7936743b
AC
11812004-08-10 Andrew Cagney <cagney@gnu.org>
1182
cc503c8a
AC
1183 * main.c (captured_main): Delete call to init_malloc.
1184 * defs.h (init_malloc): Delete declaration.
1185 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1186 (init_malloc): Delete functions.
1187
2dc74dc1
AC
1188 * defs.h (xmfree): Delete.
1189 * utils.c (xmfree): Delete function.
1190 (xfree): Inline calls to xmfree and mfree.
1191 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1192 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1193 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1194 * somread.c (som_symfile_finish): Ditto.
1195 * objfiles.c (allocate_objfile, free_objfile):
1196 * nlmread.c (nlm_symfile_finish): Ditto.
1197 * hpread.c (hpread_symfile_finish): Ditto.
1198 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1199 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1200 * coffread.c (coff_symfile_finish): Ditto.
1201
aa2ee5f6
AC
1202 * defs.h (xmcalloc): Delete declaration.
1203 * utils.c (xmcalloc): Delete.
1204 (xcalloc): Inline calls to xmcalloc and mcalloc.
1205 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1206 xcalloc and xfree.
1207 * symtab.c (create_demangled_names_hash): Ditto.
1208
0efffb96
AC
1209 * defs.h (xmrealloc): Delete.
1210 * utils.c (xmrealloc): Delete.
1211 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1212 * symmisc.c (extend_psymbol_list): Use xrealloc.
1213 * source.c (find_source_lines): Ditto.
1214 * hpread.c (hpread_lookup_type): Ditto.
1215 * dbxread.c (add_bincl_to_list): Ditto.
1216
7936743b
AC
1217 * utils.c (xmmalloc): Delete.
1218 (xmalloc): Inline xmmalloc and mmalloc calls.
1219 (msavestring): Use xmalloc.
1220 * defs.h (xmmalloc): Delete declaration.
1221 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1222 xmmalloc.
1223 * symmisc.c (extend_psymbol_list): Ditto.
1224 * symfile.c (init_psymbol_list): Ditto.
1225 * source.c (find_source_lines): Ditto.
1226 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1227 * elfread.c (elf_symtab_read): Ditto.
1228 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1229 * coffread.c (coff_symfile_init): Ditto.
1230
252ab814
DC
12312004-08-10 David Carlton <carlton@bactrian.org>
1232
1233 * MAINTAINERS: Remove David Carlton from c++ testsuite
1234 maintainers.
1235
8f5ba92b
JG
12362004-08-10 Jerome Guitton <guitton@gnat.com>
1237
1238 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1239 print a line feed before the prompt.
1240
21749010
MK
12412004-08-10 Mark Kettenis <kettenis@gnu.org>
1242
1243 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1244
1f011ce2
JB
12452004-08-09 Joel Brobecker <brobecker@gnat.com>
1246
1247 General cleanup of the AIX xm include file:
1248 * config/xm-aix4.h (fd_set): Remove undefine.
1249 Remove include of <sys/select.h>.
1250 (HAVE_TERMIO): Remove define.
1251 (USG): Likewise.
1252 (NULL): Remove redefine.
1253 (alloca): Remove #pragma.
1254 (vfork): Remove define.
1255 (termdef): Remove.
1256 (SIGWINCH_HANDLER): Remove.
1257 (SIGWINCH_HANDLER_BODY): Remove.
1258
cf4e7692
MK
12592004-08-09 Mark Kettenis <kettenis@gnu.org>
1260
1261 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1262 GDB_OSABI_OPENBSD_ELF.
1263
ac5754fa
MK
12642004-08-07 Robert Millan <robertmh@gnu.org>
1265
1266 * bsd-kvm.c: Check for nlist.h before including it.
1267
086ec9eb
MK
12682004-08-09 Mark Kettenis <kettenis@gnu.org>
1269
bbe06c74
MK
1270 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1271 sigcontext' offset consistency checks for ancient BSD.
1272
3aa7b3b3
MK
1273 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1274
086ec9eb
MK
1275 * configure.in: Check for <sys/types.h>. Check return and
1276 argument types of ptrace.
1277 * configure, config.in: Regenerate.
1278
09991fa0
JB
12792004-08-09 Jim Blandy <jimb@redhat.com>
1280
1281 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1282 rs6000_register_sim_regno): Doc fixes.
1283
fed7ba43
JB
12842004-08-08 Joel Brobecker <brobecker@gnat.com>
1285
1286 * mips-tdep.c: Include "floatformat.h".
1287 (n32n64_floatformat_always_valid): New function.
1288 (floatformat_n32n64_long_double_big): New constant.
1289 (mips_gdbarch_init): Set size and format of long double
1290 for N32 and N64 ABIs.
1291 * Makefile.in (mips-tdep.o): Update dependencies.
1292
456fcf94
AC
12932004-08-08 Andrew Cagney <cagney@gnu.org>
1294
2f9b146e
AC
1295 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1296 print. Improve script's error messages.
1297 * gdbarch.h: Re-generate.
1298
456fcf94
AC
1299 * gdbarch.sh (pformat): New function.
1300 (float_format, double_format, long_double_format): List with bit
1301 members. Use pformat when printing.
1302 * gdbarch.c, gdbarch.h: Re-generate.
1303
69e9e646
NW
13042004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1305
1306 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1307 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1308 (ppcnbsd_supply_pcb): New function.
1309 (_initialize_ppcnbsd_nat): New prototype and function.
1310 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1311 (LOADLIBES): New variable.
1312 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1313
5ef2d0aa
AC
13142004-08-08 Andrew Cagney <cagney@gnu.org>
1315
1316 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1317 (builtin_type_ieee_double, builtin_type_ia64_quad)
1318 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1319 BE/LE floating-point types.
1320 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1321 (builtin_type_ieee_double, builtin_type_ia64_quad)
1322 (builtin_type_ia64_spill): Declare.
1323 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1324 (floatformat_ieee_double, floatformat_arm_ext)
1325 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1326 of LE/BE floatformats.
1327 * doublest.h: (struct floatformat, floatformat_ieee_single)
1328 (floatformat_ieee_double, floatformat_arm_ext)
1329 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1330
5c7f2947
MK
13312004-08-08 Mark Kettenis <kettenis@gnu.org>
1332
ecac404d
MK
1333 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1334
9b8607ce
MK
1335 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1336 instead of regcache_raw_supply when storing the registers.
1337
f6052080
MK
1338 * i386gnu-nat.c: Update copyright year.
1339 (gnu_store_registers): Don't use deprecated_registers and
1340 deprecated_registers_valid. Use regcache_valid_p and
1341 regcache_raw_supply instead.
1342
17777823
MK
1343 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1344 frame_pc_unwind.
1345
5240ceac
MK
1346 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1347 variables. Incapitalized "process".
1348
5c7f2947
MK
1349 * configure.in: Add cursesX to the list of possible curses libs.
1350 Add cursesX.h to the list of possible curses headers.
1351 * configure, config.in: Regenerate.
1352
da7d81e3
NW
13532004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1354
1355 * configure.in: Test for struct lwp in <sys/lwp.h>.
1356 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1357 the offset of l_addr in struct lwp.
1358
7f245d65
NW
13592004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1360
1361 * bsd-kvm.c: Include "gdbcore.h"
1362 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1363
47b3f456
AC
13642004-08-07 Andrew Cagney <cagney@gnu.org>
1365
70bd8e24
AC
1366 * gdbtypes.c (build_flt, build_complex): New functions.
1367 (gdbtypes_post_init): Use.
1368
9b0dea39
AC
1369 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1370
5cf7abac
AC
1371 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1372 through to builtin_type_uint128.
1373
64d2b26d
AC
1374 * c-exp.y: Use builtin_type function to obtain builtin types.
1375
7ad6570d
AC
1376 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1377 builtin_uint128.
1378 * gdbtypes.c (gdbtypes_post_init): Update.
1379 (build_gdbtypes): Move initialization of builtin_type_int0
1380 through to builtin_type_uint128 from here ...
1381 (_initialize_gdbtypes): ... to here.
1382 * d10v-tdep.c (d10v_register_type): Update.
1383
47b3f456
AC
1384 * doublest.c: Update copyright.
1385 (floatformat_from_length): Call error when floatformat is NULL.
1386 (extract_floating_by_length): Remove NULL fmt check.
1387 (store_floating_by_length): Ditto.
1388
0a8146bf
AC
13892004-08-07 Andrew Cagney <cagney@gnu.org>
1390
1391 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1392 that the register is valid.
1393
c0ccb908
MK
13942004-08-05 Mark Kettenis <kettenis@chello.nl>
1395
8e6bed05
MK
1396 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1397 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1398 struct frame_info *. Use safe_frame_unwind_memory instead of
1399 deprecated_read_memory_nobpt.
1400 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1401 changed signature of i386_linux_sigtramp_start and
1402 i386_linux_rt_sigtramp_start.
1403
24f9f5e3
MK
1404 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1405 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1406 instead of deprecated_read_memory_nobpt.
1407 (i386nbsd_sigtramp_p): Adjust for changed signature of
1408 i386nbsd_sigtramp_offset.
1409
c822af0c
MK
1410 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1411 safe_frame_unwind_memory instead of target_read_memory.
1412
c0ccb908
MK
1413 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1414 !NO_SYS_FILE.
1415 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1416 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1417 (_initialize_kernel_u_addr): Remove prototype and function.
1418 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1419 !NO_SYS_FILE.
1420 * xcoffread.c: Likewise.
1421
b9e1c0d6
MK
14222004-08-06 Mark Kettenis <kettenis@gnu.org>
1423
1424 * vax-nat.c: New file.
1425 * vaxbsd-nat.c: Tweak comment.
1426 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1427 vaxnbsd-tdep.c.
1428 (vax-nat.o): New dependency.
1429 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1430 (vax-*-ultrix2*): Remove.
1431 * config/vax/vax.mh: New file.
1432 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1433 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1434 (vax_register_u_addr): New prototype.
1435 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1436 * config/vax/vaxult2.mh: Remove file.
1437 * config/vax/vaxult.mh: Remove file.
1438 * config/vax/vaxbsd.mh: Remove file.
1439 * config/vax/vax.mt (TM_FILE): Remove.
1440 * config/vax/tm-vaxbsd.h: Remove file.
1441
9ad7bec7
JB
14422004-08-06 Joel Brobecker <brobecker@gnat.com>
1443
1444 * aix-thread.c (get_signaled_thread): New function.
1445 (iter_trap): Delete, no longer used.
1446 (iter_tid): New function.
1447 (pd_update): Find the thread that received the SIGTRAP signal
1448 by first locating the kernel thread, and then finding its
1449 associated thread.
1450
bf0d233d
UW
14512004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1452
1453 * lin-lwp.c (child_wait): Continue inferior after processing
1454 PTRACE_EVENT_CLONE event.
1455
d0f853e1
NN
14562004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1457
1458 * MAINTAINERS: Add self to Write-After-Approval.
1459
ab14aeb0
JJ
14602004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1461
1462 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1463 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1464
9c8dbfa9
AC
14652004-08-05 Andrew Cagney <cagney@gnu.org>
1466
c8f3ca46
AC
1467 * config/xm-sysv4.h: Delete file.
1468 * config/mips/xm-irix5.h: Delete file.
1469 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1470 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1471 * config/ia64/xm-aix.h: Delete file.
1472 * config/ia64/aix.mh (XM_FILE): Delete.
1473 * config/pa/xm-hppah.h: Delete file.
1474 * config/pa/hpux11w.mh (XM_FILE): Delete.
1475 * config/pa/hpux11.mh (XM_FILE): Delete.
1476 * config/pa/hpux1020.mh (XM_FILE): Delete.
1477 * config/pa/hppahpux.mh (XM_FILE): Delete.
1478
5f7daaff
AC
1479 * config/alpha/xm-alphalinux.h: Delete file.
1480 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1481 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1482 * config/alpha/xm-alphaosf.h: Delete file.
1483 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1484 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1485 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1486 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1487
69babf95
AC
1488 * config/i386/xm-i386v.h: Delete file.
1489 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1490 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1491 * config/i386/xm-i386sco.h: Delete file.
1492 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1493 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1494 * config/i386/xm-i386v4.h: Delete file.
1495 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1496 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1497 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1498 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1499
6f009c8a
AC
1500 * config/vax/xm-vax.h: Delete file.
1501 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1502 * config/vax/xm-vaxult2.h: Delete file.
1503 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1504 * config/vax/vaxult2.mh (XM_FILE): Delete.
1505 * config/vax/xm-vaxult.h: Delete file.
1506 * config/vax/vaxult.mh (XM_FILE): Delete.
1507 * config/vax/xm-vaxbsd.h: Delete file.
1508 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1509
9c8dbfa9
AC
1510 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1511 * gdbarch.h, gdbarch.c: Re-generate.
1512 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1513 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1514 * frame.h: Delete deprecated_read_fp from comments.
1515 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1516 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1517
84367a3e
MK
15182004-08-04 Mark Kettenis <kettenis@gnu.org>
1519
9c8e3411
MK
1520 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1521 trampoline in OpenBSD 3.5-current.
1522
b87bc0d8
MK
1523 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1524 SSE registers.
1525
84367a3e
MK
1526 * Makefile.in: Remove embedded page breaks.
1527
a44bddec
JB
15282004-08-04 Jim Blandy <jimb@redhat.com>
1529
7ab3286f
JB
1530 * regcache.c (regcache_raw_read): Assert that, after calling
1531 target_fetch_registers, the register we're reading is cached.
1532
a44bddec
JB
1533 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1534 a call to 'internal_error', with a more helpful error message.
1535 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 1536 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 1537
35124113
AC
15382004-08-04 Andrew Cagney <cagney@gnu.org>
1539
1540 * Makefile.in: Update dependencies.
1541
9f643768
JB
15422004-08-04 Jim Blandy <jimb@redhat.com>
1543
6ced10dd
JB
1544 Change the layout of the PowerPC E500 raw register cache to allow
1545 the lower 32-bit halves of the GPRS to be their own raw registers,
1546 not pseudoregisters.
1547 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1548 add ppc_ev0_upper_regnum flag.
1549 * rs6000-tdep.c: #include "reggroups.h".
1550 (spe_register_p): Recognize the ev upper half registers as SPE
1551 registers.
1552 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1553 registers.
1554 (e500_move_ev_register): New function.
1555 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1556 vector registers are the pseudo-registers now, formed by splicing
1557 together the gprs and the upper-half registers.
1558 (e500_register_reggroup_p): New function.
1559 (P): Macro deleted.
1560 (P8, A4): New macro.
1561 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1562 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1563 macros.
1564 (registers_e500): Rearrange register set so that the raw register
1565 set contains 32-bit GPRs and upper-half registers, and the SPE
1566 vector registers become pseudo-registers.
1567 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1568 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1569 register numbers are now the same for the E500 as they are for
1570 other PowerPC variants. Register e500_register_reggroup_p as the
1571 register group function for the E500.
1572 * Makefile.in (rs6000-tdep.o): Update dependencies.
1573
1574 Adapt PPC E500 native support to the new raw regcache layout.
1575 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1576 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1577 (fetch_spe_register, store_spe_register): Handle fetching/storing
1578 all the SPE registers at once, if regno == -1. These now take
1579 over the job of fetch_spe_registers and store_spe_registers.
1580 (fetch_spe_registers, store_spe_registers): Deleted.
1581 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1582 unconditionally; they're always raw. Fetch/store SPE upper half
1583 registers, if present, instead of ev registers.
1584 (fetch_register, store_register): Remove sanity checks: gprs are
1585 never pseudo-registers now, so we never need to even mention any
1586 registers that are ever pseudoregisters.
1587
9f643768
JB
1588 Use a fixed register numbering when communicating with the PowerPC
1589 simulator.
1590 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1591 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1592 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1593 New functions.
1594 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1595 init_sim_regno_table.
1596 * Makefile.in (gdb_sim_ppc_h): New variable.
1597 (rs6000-tdep.o): Update dependencies.
1598
1e2279c8
AC
15992004-08-02 Andrew Cagney <cagney@gnu.org>
1600
1d94326f
AC
1601 * cris-tdep.c (cris_register_size): Restore function, still used
1602 locally.
1603
331ae7ed
AC
1604 * gdbarch.sh (deprecated_target_read_fp)
1605 (deprecated_frame_locals_address, deprecated_frame_args_address)
1606 (deprecated_frame_chain_valid, deprecated_frame_chain)
1607 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1608 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1609 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1610 * gdbarch.h, gdbarch.c: Re-generate.
1611 * regcache.c (deprecated_read_fp): Do not call
1612 DEPRECATED_TARGET_READ_FP_P.
1613 * infcmd.c (default_print_registers_info): Do not call
1614 DEPRECATED_DO_REGISTERS_INFO.
1615 * frame-base.c (default_frame_locals_address): Do not call
1616 DEPRECATED_FRAME_LOCALS_ADDRESS.
1617 (default_frame_args_address): Do not call
1618 DEPRECATED_FRAME_ARGS_ADDRESS.
1619
1e2279c8
AC
1620 * gdbarch.sh (deprecated_register_raw_size)
1621 (deprecated_register_virtual_size:int): Delete.
1622 * gdbarch.h, gdbarch.c: Re-generate.
1623 * cris-tdep.c (cris_register_size): Delete.
1624 (cris_gdbarch_init): Update.
1625 * alpha-tdep.c (alpha_register_raw_size)
1626 (alpha_register_virtual_size): Delete.
1627 (alpha_gdbarch_init): Update.
1628
a90c06b4
AC
1629 * gdbarch.sh (deprecated_register_virtual_type)
1630 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1631 (deprecated_dummy_write_sp): Delete.
1632 * gdbarch.h, gdbarch.c: Re-generate.
1633
f42accbe
AC
1634 * gdbarch.sh (deprecated_register_bytes): Delete.
1635 * gdbarch.h, gdbarch.c: Re-generate.
1636 * regcache.c (deprecated_register_bytes): New function.
1637 * regcache.h (deprecated_register_bytes): Declare.
1638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1639 * v850-tdep.c (v850_gdbarch_init): Update.
1640 * sh64-tdep.c (sh64_gdbarch_init): Update.
1641 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1642 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1643 * mcore-tdep.c (mcore_gdbarch_init): Update.
1644 * cris-tdep.c (cris_gdbarch_init): Update.
1645 * arm-tdep.c (arm_gdbarch_init): Update.
1646 * remote.c (init_remote_state): Update.
1647 * remote-vx.c (vx_prepare_to_store): Update.
1648 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1649 * irix5-nat.c (fetch_core_registers): Update.
1650 * cris-tdep.c (cris_register_bytes_ok): Update.
1651 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1652
45c9dd44
AC
1653 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1654 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1655 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1656 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1657 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1658 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1659 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1660 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1661 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1662 with mips_insn16 and mips_insn32.
1663
3acba339
AC
1664 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1665 * rs6000-tdep.c (rs6000_push_dummy_call)
1666 (rs6000_extract_return_value): Use register_size.
1667 * xstormy16-tdep.c (xstormy16_get_saved_register)
1668 (xstormy16_extract_return_value): Ditto.
1669 * valops.c (value_assign): Ditto.
1670 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1671 * v850-tdep.c (v850_extract_return_value): Ditto.
1672 * tracepoint.c (collect_symbol): Ditto.
1673 * target.c (debug_print_register): Ditto.
1674 * stack.c (frame_info): Ditto.
1675 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1676 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1677 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1678 (store_register_using_P): Ditto.
1679 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1680 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1681 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1682 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1683 * regcache.c (deprecated_read_register_bytes)
1684 (deprecated_write_register_bytes, read_register)
1685 (write_register): Ditto.
1686 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1687 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1688 * monitor.c (monitor_supply_register, monitor_fetch_register)
1689 (monitor_store_register): Ditto.
1690 * mn10300-tdep.c (mn10300_pop_frame_regular)
1691 (mn10300_print_register): Ditto.
1692 * mipsv4-nat.c (fill_fpregset): Ditto.
1693 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1694 (mips64_fill_fpregset): Ditto.
1695 * mi/mi-main.c (register_changed_p, get_register)
1696 (mi_cmd_data_write_register_values): Ditto.
1697 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1698 * irix5-nat.c (fill_gregset, fetch_core_registers):
1699 * infrun.c (write_inferior_status_register): Ditto.
1700 * infptrace.c (fetch_register, store_register): Ditto.
1701 * infcmd.c (default_print_registers_info): Ditto.
1702 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1703 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1704 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1705 * hpux-thread.c (hpux_thread_fetch_registers)
1706 (hpux_thread_store_registers): Ditto.
1707 * hppah-nat.c (store_inferior_registers, fetch_register):
1708 * findvar.c (value_from_register): Ditto.
1709 * dve3900-rom.c (fetch_bitmapped_register):
1710 * cris-tdep.c (cris_gdbarch_init): Ditto.
1711 * alpha-tdep.h: Ditto.
1712 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1713
01e1877c
AC
1714 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1715 DEPRECATED_REGISTER_RAW_SIZE from comments.
1716 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1717 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1718 DEPRECATED_REGISTER_RAW_SIZE.
1719 * findvar.c (value_of_register): Simplify by assuming that the
1720 registers raw and virtual sizes are identical.
1721 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1722 comment.
1723 * arch-utils.c (generic_register_size): Simplify by assuming
1724 register_type.
1725
73f458fb
AC
1726 * regcache.c (legacy_read_register_gen, real_register)
1727 (legacy_write_register_gen): Delete, not used.
1728
336a3131
AC
1729 * regcache.c (struct regcache_descr): Delete legacy_p.
1730 (init_legacy_regcache_descr): Delete function.
1731 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1732 Do not use deprecated register functions.
1733 (regcache_raw_read, deprecated_write_register_gen):
1734 (deprecated_read_register_gen, regcache_raw_write): Delete code
1735 predicated on legacy_p.
1736 (register_size): Delete check against register raw size.
1737
c1d546cd
AC
1738 * cris-tdep.c (cris_register_type): Replace
1739 cris_register_virtual_type.
1740 (cris_gdbarch_init): Update, set register_type.
1741
48c2c0a6
AC
1742 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1743 * gdbarch.h, gdbarch.c: Re-generate.
1744 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1745 (arm_gdbarch_init) Do not set frameless function invocation.
1746 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1747 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1748 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1749 (frv_gdbarch_init): Do not set frameless function invocation.
1750 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1751 * sh-tdep.c (sh_gdbarch_init): Ditto.
1752 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1753 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1754 * avr-tdep.c (avr_gdbarch_init): Ditto.
1755
474093a6
AC
1756 * blockframe.c (legacy_frame_chain_valid): Delete function.
1757
3c109c8b
AC
1758 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1759 and pc. Update comments.
1760 (pc_in_dummy_frame): Delete function.
1761 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1762 use the "id".
1763 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1764 call_hi, top and pc, use the id.
1765 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1766
96860204
AC
1767 * dummy-frame.c: Include "gdb_string.h".
1768 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1769 (generic_save_dummy_frame_tos): Delete.
1770 (dummy_frame_push): New function, replaces above.
1771 * dummy-frame.h: Update copyright.
1772 (dummy_frame_push): Declare.
1773 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1774 (generic_save_call_dummy_addr): Delete declarations.
1775 * infcall.c: Include "dummy-frame.h".
1776 (call_function_by_hand): Add locals caller_regcache,
1777 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1778 with call to frame_save_as_regcache plus cleanup. Delete calls to
1779 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1780 Move clear_proceed_status to just before the resume, add call to
1781 dummy_frame_push (discard cleanup).
1782 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1783 (dummy-frame.o): Add $(gdb_string_h).
1784
d67ec5db
AC
17852004-08-01 Andrew Cagney <cagney@gnu.org>
1786
1787 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1788 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1789 * dummy-frame.c (find_dummy_frame): Delete.
1790 (struct dummy_frame_cache, dummy_frame_sniffer)
1791 (dummy_frame_prev_register, dummy_frame_this_id)
1792 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1793 frame unwinder using a dummy_frame_cache.
1794
a81dcb05
AC
17952004-08-01 Andrew Cagney <cagney@gnu.org>
1796
1797 * frame.h (frame_save_as_regcache): Declare.
1798 * frame.c (frame_save_as_regcache): New function.
1799 (do_frame_read_register): Replace do_frame_unwind_register.
1800 (frame_pop): Use frame_save_as_regcache.
1801 * dummy-frame.c (generic_push_dummy_frame): Use
1802 frame_save_as_regcache.
1803
aa495d11
JB
18042004-08-01 Joel Brobecker <brobecker@gnat.com>
1805
1806 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1807 file as included until we record the first line in the linetable.
1808
ff65ac78
AC
18092004-08-01 Andrew Cagney <cagney@gnu.org>
1810
1811 * frame.h (deprecated_pop_dummy_frame)
1812 (deprecated_read_register_dummy)
1813 (deprecated_generic_find_dummy_frame): Delete.
1814 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1815 (deprecated_read_register_dummy)
1816 (deprecated_find_dummy_frame_regcache)
1817 (discard_innermost_dummy)
1818 (deprecated_pop_dummy_frame): Delete.
1819 (dummy_frame_this_id): Simplify.
1820 (struct dummy_frame): Delete "fp" and "sp".
1821 (find_dummy_frame): Simplify.
1822 (generic_push_dummy_frame): Do not set "fp" or "sp".
1823 (fprint_dummy_frames): Do not print "fp" and "sp"
1824
37bdc87e
MK
18252004-08-01 Mark Kettenis <kettenis@gnu.org>
1826
1827 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1828 (struct i386_insn): New structure.
1829 (i386_match_insn): New function.
1830 (i386_frame_setup_skip_insns): New variable.
1831 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1832 array i386_frame_setup_insns of instructions that should be
1833 skipped inside the frame setup sequence.
1834
8241eaa6
AC
18352004-08-01 Andrew Cagney <cagney@gnu.org>
1836
5bc602c7
AC
1837 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1838 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1839 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1840 * stack.c (frame_info): Delete references to
1841 DEPRECATED_FRAME_INIT_SAVED_REGS and
1842 deprecated_get_frame_saved_regs.
1843 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1844 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1845 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1846 (frame_unwind_register_signed)
1847 (frame_unwind_register_unsigned)
1848 (frame_unwind_unsigned_register): Use register_size.
1849 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1850 (deprecated_frame_xmalloc_with_cleanup)
1851 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1852 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1853
03d363a1
AC
1854 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1855 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1856 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1857 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1858
8241eaa6
AC
1859 * infcall.c (call_function_by_hand): Do not use
1860 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1861 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1862 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1863 DEPRECATED_STACK_ALIGN.
1864
f00df8b7
AC
18652004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1866
1867 Committed by Andrew Cagney.
1868 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1869
eec63939
AC
18702004-08-01 Andrew Cagney <cagney@gnu.org>
1871
1872 * mips-tdep.c (mips16_frame_cache)
1873 (mips16_frame_this_id, mips16_frame_prev_register)
1874 (mips16_frame_unwind, mips16_frame_sniffer)
1875 (mips16_frame_base_address, mips16_frame_base)
1876 (mips16_frame_base_sniffer, mips32_frame_cache)
1877 (mips32_frame_this_id, mips32_frame_prev_register)
1878 (mips32_frame_unwind, mips32_frame_sniffer)
1879 (mips32_frame_base_address, mips32_frame_base)
1880 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1881 separate heuristic mips16 and mips32 unwinders.
1882 (mips_stub_frame_cache, mips_stub_frame_this_id)
1883 (mips_stub_frame_prev_register)
1884 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1885 (mips_stub_frame_base_address, mips_stub_frame_base)
1886 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1887 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1888 match true mdebug frames.
1889 (non_heuristic_proc_desc): Add forward declaration.
1890
e66299b3
AC
18912004-08-01 Andrew Cagney <cagney@gnu.org>
1892
83cbbf3e
AC
1893 * config/mips/tm-irix6.h: Delete file.
1894 * config/mips/tm-irix5.h: Delete file.
1895 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1896 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1897
22d41b37
AC
1898 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1899 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1900 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1901 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1902 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1903 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1904 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1905 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1906 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1907 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1908 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1909 (TARGET_SIGNAL_RAW_VALUES): Delete.
1910 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1911 Delete.
1912 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1913 (TARGET_HW_WATCH_LIMIT): Delete.
1914 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1915 * minimon.h: Delete file.
1916
e66299b3
AC
1917 * trad-frame.c (trad_frame_get_this_base)
1918 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1919 functions.
1920 * trad-frame.h (trad_frame_set_this_base)
1921 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1922
1f67027d
AC
19232004-07-31 Andrew Cagney <cagney@gnu.org>
1924
1925 * trad-frame.c (trad_frame_get_prev_register): Rename
1926 trad_frame_get_prev_register.
1927 * vax-tdep.c (vax_frame_prev_register): Update.
1928 * trad-frame.h: Update.
1929 * trad-frame.c (trad_frame_get_register): Update.
1930 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1931 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1932 Update.
1933 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1934 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1935 Update.
1936 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1937 Update.
1938 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1939 Update.
1940 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1941 Update.
1942 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1943 Update.
1944 * s390-tdep.c (s390_frame_prev_register)
1945 (s390_stub_frame_prev_register)
1946 (s390_sigtramp_frame_prev_register): Update.
1947 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1948 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1949 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1950 * m88k-tdep.c (m88k_frame_prev_register)
1951 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1952 * m32r-tdep.c (m32r_frame_prev_register): Update.
1953 * hppa-tdep.c (hppa_frame_prev_register_helper)
1954 * frv-tdep.c (frv_frame_prev_register): Update.
1955 * d10v-tdep.c (d10v_frame_prev_register): Update.
1956 * cris-tdep.c (cris_frame_prev_register): Update.
1957 * avr-tdep.c (avr_frame_prev_register): Update.
1958 * arm-tdep.c (arm_prologue_prev_register)
1959 (arm_sigtramp_prev_register): Update.
1960
c1bf6f65
AC
19612004-07-31 Andrew Cagney <cagney@gnu.org>
1962
1963 * frame.h (legacy_saved_regs_unwind)
1964 (legacy_frame_chain_valid, legacy_frame_p)
1965 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1966 * dummy-frame.c (dummy_frame_this_id): Simplify.
1967 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1968 * frame.c (struct frame_info): Delete the field "type".
1969 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1970 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1971 (legacy_saved_regs_unwind, legacy_frame_p)
1972 (frame_type_from_pc): Delete.
1973 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1974 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1975
dc856692
MK
19762004-07-31 Mark Kettenis <kettenis@gnu.org>
1977
5a5effe1
MK
1978 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1979 indentation.
1980
d4fd50a6
MK
1981 * mips-nat.c: Remove file.
1982 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1983 (mips-nat.o): Remove dependency.
1984
2689df5a
MK
1985 * infptrace.c: Update copyright year.
1986 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1987 explicitly setting the buffer to all zeroes.
1988
dc856692
MK
1989 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1990 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1991
763910e0
AC
19922004-07-30 Andrew Cagney <cagney@gnu.org>
1993
1994 * GDB 6.2 released from gdb_6_2-branch.
1995
0b66e38c
EZ
19962004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1997
1998 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1999
2000 * exec.c (exec_file_attach):
2001 * nto-tdep.c (nto_find_and_open_solib):
2002 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2003 * solib.c (solib_open):
2004 * somsolib.c (som_solib_sizeof_symbol_table):
2005 * source.c (is_regular_file, openp, open_source_file):
2006 * symfile.c (symfile_bfd_open):
2007 * wince.c (upload_to_device): Differentiate between the search for
2008 binary and source files.
2009
be7d7357
AC
20102004-07-30 Andrew Cagney <cagney@gnu.org>
2011
2012 * complaints.c (_initialize_complaints): Pass NULL to
2013 add_setshow_zinteger_cmd for help_doc.
2014 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2015
ddc9cd0f
AC
20162004-07-30 Andrew Cagney <cagney@gnu.org>
2017
2018 Fix PR i18n/761.
2019 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2020 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2021 $(PACKAGE).pot and update-po.
2022 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2023 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2024 (update-po): New rules.
2025 (localedir): Define using autoconf.
2026 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2027 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2028 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2029 * configure.in: Generate CATALOGS and LINGUAS from contents of
2030 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2031 * configure: Re-generate.
2032 * po/gdbtext: New file
2033
e92f3704
JG
20342004-07-30 Jerome Guitton <guitton@gnat.com>
2035
2036 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2037 order.
2038
b0f35d58
DL
20392004-07-30 David Lecomber <dsl@sources.redhat.com>
2040
2041 * dwarf2read.c (read_file_scope): Set producer if attribute
2042 present.
2043 (struct dwarf2_cu): Added new member producer.
2044
ce7d4522
JG
20452004-07-30 Jerome Guitton <guitton@gnat.com>
2046
2047 * inflow.c (kill_command): release file handles in BFD.
2048 * exec.c (exec_file_attach): Ditto.
2049 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2050
05ee07c7
AC
20512004-07-29 Andrew Cagney <cagney@gnu.org>
2052
2053 * PROBLEMS (mips-irix): Note that it is broken.
2054
62eceb47
AC
20552004-07-29 Andrew Cagney <cagney@gnu.org>
2056
e57b8d41
AC
2057 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2058 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2059
d334389b
AC
2060 * config/xm-nbsd.h: Delete file.
2061 * config/arm/xm-nbsd.h: Delete file.
2062 * config/i386/xm-nbsd.h: Delete file.
2063 * config/ns32k/xm-nbsd.h: Delete file.
2064 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2065 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2066 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2067 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2068 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2069
e910f676
AC
2070 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2071 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2072 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2073 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2074 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2075 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2076
6fa856b9
AC
2077 * config/powerpc/xm-linux.h: Delete empty file.
2078 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2079 * config/powerpc/linux.mh (XM_FILE): Delete.
2080 * config/m68k/xm-linux.h: Delete empty file.
2081 * config/m68k/linux.mh (XM_FILE): Delete.
2082 * config/ia64/xm-linux.h: Delete empty file.
2083 * config/ia64/linux.mh (XM_FILE): Delete.
2084 * config/arm/xm-linux.h: Delete empty file.
2085 * config/arm/linux.mh (XM_FILE): Delete.
2086
471ae5ae
AC
2087 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2088 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2089 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2090 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2091 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2092 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2093 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2094 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2095
62eceb47
AC
2096 * config/m68k/xm-m68k.h: Delete file.
2097 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2098 copyright.
2099 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2100 * config/pa/xm-linux.h: Delete empty file.
2101 * config/pa/linux.mh (XM_FILE): Delete.
2102 * config/i386/xm-i386.h: Delete empty file.
2103 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2104 "i386/xm-i386.h".
2105 * config/i386/obsdaout.mh (XM_FILE): Delete.
2106 * config/i386/obsd64.mh (XM_FILE): Delete.
2107 * config/i386/fbsd64.mh (XM_FILE): Delete.
2108 * config/i386/nto.mh (XM_FILE): Delete.
2109 * config/i386/obsd.mh (XM_FILE): Delete.
2110 * config/i386/linux64.mh (XM_FILE): Delete.
2111 * config/i386/linux.mh (XM_FILE): Delete.
2112 * config/i386/i386sol2.mh (XM_FILE): Delete.
2113 * config/i386/i386gnu.mh (XM_FILE): Delete.
2114 * config/i386/fbsd.mh (XM_FILE): Delete.
2115 * config/i386/nbsd64.mh (XM_FILE): Delete.
2116
c35f4ffc
AC
21172004-07-29 Andrew Cagney <cagney@gnu.org>
2118
2119 * config/pa/xm-linux.h: Do not include "floatformat.h".
2120 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2121 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2122 * config/i386/xm-i386.h: Do not include "floatformat.h".
2123 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2124 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2125 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2126 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2127 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2128 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2129 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2130 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2131 * configure, config.in: Regenerate.
2132 * configure.host (gdb_host_float_format, gdb_host_double_format)
2133 (gdb_host_long_double_format): Set according to the host.
2134
624a44a3
AC
21352004-07-29 Andrew Cagney <cagney@gnu.org>
2136
2137 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2138
0dea2468
AC
21392004-07-28 Andrew Cagney <cagney@gnu.org>
2140
2141 * PROBLEMS: Mention threads/1650.
2142 * NEWS: Mention the NPTL fix.
2143
b3f42336
AC
21442004-07-28 Andrew Cagney <cagney@gnu.org>
2145
2146 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2147 (add_setshow_cmd_full): Make static.
2148 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2149 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2150 * cli/cli-decode.c (add_setshow_filename_cmd)
2151 (add_setshow_string_cmd): New functions.
2152 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2153 * mips-tdep.c (_initialize_mips_tdep): Update.
2154 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2155 * cli/cli-logging.c (_initialize_cli_logging): Update.
2156 * complaints.c (_initialize_complaints): Update.
2157 * remote.c (_initialize_remote): Update.
2158
3b64bf98
AC
21592004-07-28 Andrew Cagney <cagney@gnu.org>
2160
2161 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2162 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2163 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2164 print parameters. Make string parameters constant.
2165 * command.h: Update. Update copyright.
2166 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2167 * observer.c (_initialize_observer): Ditto.
2168 * frame.c (_initialize_frame): Ditto.
2169 * complaints.c (_initialize_complaints): Ditto.
2170 * maint.c (_initialize_maint_cmds): Ditto.
2171 * target.c (initialize_targets): Ditto.
2172 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2173 * infcall.c (_initialize_infcall): Ditto.
2174 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2175 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2176 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2177 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2178 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2179
e9667a65
AC
21802004-07-28 Andrew Cagney <cagney@gnu.org>
2181
54a5b07d
AC
2182 * gdbtypes.c (lookup_primitive_typename): Delete function.
2183 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2184 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2185 * gdbtypes.c (lookup_typename): Ditto.
2186 * f-exp.y (yylex): Ditto.
2187 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2188
e9667a65
AC
2189 * scm-lang.c (c_builtin_types): Delete extern declaration.
2190 (scm_language_defn): Replace
2191 string_char_type and primitive_type_vector with
2192 la_language_arch_info.
2193 * jv-lang.c (java_language_defn): Replace
2194 string_char_type and primitive_type_vector with
2195 la_language_arch_info.
2196 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2197 c_builtin_types in comment.
2198 * c-lang.h (struct language_arch_info): Declare opaque.
2199 (c_language_arch_info): Declare.
2200 (c_builtin_types): Delete declaration.
2201 * c-lang.c (c_language_arch_info): Set string_char_type to
2202 builtin_char, not builtin_true_char. Make global.
2203 (c_builtin_types): Delete array.
2204 (asm_language_defn, minimal_language_defn): Replace
2205 string_char_type and primitive_type_vector with
2206 la_language_arch_info.
2207
685419e2
AC
22082004-07-28 Andrew Cagney <cagney@gnu.org>
2209
2210 * gdbtypes.h (struct builtin_type): Rename true_char to
2211 builtin_true_char.
2212 * gdbtypes.c (gdbtypes_post_init): Update.
2213 * c-lang.c (arch_info): New function.
2214 (enum c_primitive_types): New enum.
2215 (c_language_defn): Instead of string_char_type and
2216 primitive_type_vector set la_language_arch_info.
2217
5a44ea29
AC
22182004-07-28 Andrew Cagney <cagney@gnu.org>
2219
2220 * language.h (struct language_arch_info): Fix typo
2221 s/primative/primitive/.
2222 * gdbtypes.c (lookup_primitive_typename): Ditto.
2223 * language.c (language_lookup_primitive_type_by_name)
2224 (unknown_language_arch_info): Ditto.
2225
f290d38e
AC
22262004-07-27 Andrew Cagney <cagney@gnu.org>
2227
2228 * defs.h (enum language): Add nr_languages.
2229 * language.h (struct language_arch_info): Define.
2230 (struct language_defn): Add la_language_arch_info.
2231 (language_lookup_primative_type_by_name): Declare.
2232 (language_string_char_type): Declare.
2233 * language.c (_initialize_language, language_gdbarch_post_init)
2234 (struct language_gdbarch, language_gdbarch_data): Implement
2235 per-architecture language information.
2236 (unknown_language_arch_info, language_string_char_type)
2237 (language_lookup_primative_type_by_name): New functions.
2238 (unknown_language_defn, auto_language_defn)
2239 (local_language_defn): Set la_language_arch_info to
2240 unknown_language_arch_info.
2241 (unknown_builtin_types): Delete.
2242 * gdbtypes.c (lookup_primitive_typename): Use
2243 language_lookup_primative_type_by_name.
2244 (create_string_type): Use language_string_char_type.
2245 * values.c (value_from_string): Use language_string_char_type.
2246 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2247 * p-lang.c (pascal_language_defn): Ditto.
2248 * m2-lang.c (m2_language_defn): Ditto.
2249 * jv-lang.c (java_language_defn): Ditto.
2250 * objc-lang.c (objc_language_defn): Ditto.
2251 * f-lang.c (f_language_defn): Ditto.
2252 * c-lang.c (c_language_defn, cplus_language_defn)
2253 (asm_language_defn, minimal_language_defn): Ditto.
2254
000177f0
AC
22552004-07-27 Andrew Cagney <cagney@gnu.org>
2256
2257 * gdbtypes.h (struct builtin_type): Declare.
2258 (builtin_type): Declare.
2259 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2260 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2261 (gdbtypes_post_init): New function.
2262 (builtin_type): New function.
2263
e22f895c
KI
22642004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2265
2266 * remote-m32r-sdi.c: Fix breakpoint bug.
2267 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2268 recv_char_data, recv_long_data): New functions to replace communication
2269 sequences.
2270
536517dd
MC
22712004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2272
2273 Document PR threads/1650.
2274 * PROBLEMS (Threads): Document problem with many threads
2275
a0a44d18
AC
22762004-07-26 Andrew Cagney <cagney@gnu.org>
2277
2278 * gdb-mi.el: Move from here ...
2279 * mi/gdb-mi.el: ... to here.
2280
7ac4ac06
AC
22812004-07-26 Andrew Cagney <cagney@gnu.org>
2282
2283 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2284 * main.c (captured_main): When in batch mode always detach.
2285
a1b461bf
AC
22862004-07-26 Andrew Cagney <cagney@gnu.org>
2287
2288 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2289 and h8300 as broken.
2290 * NEWS: END-OF-LIFE frame compatibility module.
2291 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2292 specific comments.
2293
cb1a6d5f
AC
22942004-07-26 Andrew Cagney <cagney@gnu.org>
2295
2296 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2297 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2298 * wince.c (_initialize_wince): Update.
2299 * win32-nat.c (_initialize_win32_nat): Update.
2300 * varobj.c (_initialize_varobj): Update.
2301 * valops.c (_initialize_valops): Update.
2302 * utils.c (initialize_utils, initialize_utils): Update.
2303 * tui/tui-win.c (_initialize_tui_win): Update.
2304 * top.c (init_main): Update.
2305 * symfile.c (_initialize_symfile): Update.
2306 * source.c (_initialize_source): Update.
2307 * somsolib.c (_initialize_som_solib): Update.
2308 * solib.c (_initialize_solib): Update.
2309 * solib-frv.c (_initialize_frv_solib): Update.
2310 * serial.c (_initialize_serial): Update.
2311 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2312 * remote.c (_initialize_remote, _initialize_remote): Update.
2313 * remote-vx.c (_initialize_vx): Update.
2314 * remote-utils.c (_initialize_sr_support): Update.
2315 * remote-sds.c (_initialize_remote_sds): Update.
2316 * remote-mips.c (_initialize_remote_mips): Update.
2317 * remote-e7000.c (_initialize_remote_e7000): Update.
2318 * proc-api.c (_initialize_proc_api): Update.
2319 * printcmd.c: Update.
2320 * parse.c (_initialize_parse): Update.
2321 * pa64solib.c (_initialize_pa64_solib): Update.
2322 * p-valprint.c (_initialize_pascal_valprint): Update.
2323 * monitor.c (_initialize_remote_monitors): Update.
2324 * mips-tdep.c (_initialize_mips_tdep): Update.
2325 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2326 * maint.c (_initialize_maint_cmds): Update.
2327 * lin-lwp.c (_initialize_lin_lwp): Update.
2328 * language.c (_initialize_language): Update.
2329 * kod.c (_initialize_kod): Update.
2330 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2331 * i386-tdep.c (_initialize_i386_tdep): Update.
2332 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2333 * gdbarch.sh: Update.
2334 * gdbarch.c: Re-generate.
2335 * gdb-events.sh: Update.
2336 * gdb-events.c: Re-generate.
2337 * frame.c (_initialize_frame): Update.
2338 * exec.c: Update.
2339 * demangle.c (_initialize_demangler): Update.
2340 * dcache.c (_initialize_dcache): Update.
2341 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2342 * cp-valprint.c (_initialize_cp_valprint): Update.
2343 * corefile.c (_initialize_core): Update.
2344 * command.h: Update.
2345 * cli/cli-decode.h: Update.
2346 * cli/cli-cmds.c (init_cli_cmds): Update.
2347 * charset.c (_initialize_charset): Update.
2348 * breakpoint.c (_initialize_breakpoint): Update.
2349 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2350 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2351 * aix-thread.c (_initialize_aix_thread): Update.
2352
b4632131
MK
23532004-07-24 Mark Kettenis <kettenis@gnu.org>
2354
2355 Partial fix for PR backtrace/1718.
2356 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2357 that GCC migrates into the prolugue. Don't handle any
2358 instructions that clobber %ebx.
2359
822c9732
AC
23602004-07-23 Andrew Cagney <cagney@gnu.org>
2361
2362 Use regcache_raw_collect instead of regcache_collect.
2363 * regcache.h (regcache_collect): Delete declaration.
2364 * regcache.c (regcache_colect): Delete function.
2365 * win32-nat.c (do_child_store_inferior_registers): Update.
2366 * sol-thread.c (sol_thread_store_registers): Update.
2367 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2368 * rs6000-nat.c (store_register): Update.
2369 * remote.c (store_register_using_P, remote_store_registers): Update.
2370 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2371 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2372 (fill_vrregset, store_spe_registers, fill_gregset)
2373 (fill_gregset): Update.
2374 * nto-procfs.c (procfs_store_registers): Update.
2375 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2376 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2377 * m68klinux-nat.c (store_register, fill_gregset): Update.
2378 * m68k-tdep.c (fill_gregset): Update.
2379 * infptrace.c (store_register): Update.
2380 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2381 * i386-linux-nat.c (store_register, fill_gregset): Update.
2382 * hppa-linux-nat.c (fill_gregset): Update.
2383 * go32-nat.c (store_register): Update.
2384 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2385 (store_fp_regs): Update.
2386 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2387 (store_nwfpe_extended, store_fpregister, store_fpregs)
2388 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2389 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2390 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2391 (store_regs_user_thread, store_regs_kernel_thread): Update.
2392
32b05c07
MK
23932004-07-24 Mark Kettenis <kettenis@gnu.org>
2394
2395 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2396 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2397 encoding.
2398 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2399 member of `struct comp_unit'.
2400
8567c30f
AC
24012004-07-23 Andrew Cagney <cagney@gnu.org>
2402
2403 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2404 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2405
f6da8dd8
MH
24062004-07-23 Martin Hunt <hunt@redhat.com>
2407 Kevin Buettner <kevinb@redhat.com>
2408
2409 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2410 alignment was being added to the offset instead of multiplied.
2411
bd921882
MK
24122004-07-23 Mark Kettenis <kettenis@gnu.org>
2413
24f033e8
MK
2414 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2415 changed signal trampoline in OpenBSD 3.5-current.
2416
90f3cecd
MK
2417 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2418 <machine/pcb.h> and "bsd-kvm.h".
2419 (sparc64nbsd_supply_pcb): New function.
2420 (_initialize_sparc64nbsd_nat): Renamed from
2421 _initialize_sparcnbsd_nat. Enable libkvm interface.
2422 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2423 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2424 (LOADLIBES): New variable.
2425
a4954a62
MK
2426 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2427
bd921882
MK
2428 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2429
23a6d369
AC
24302004-07-21 Andrew Cagney <cagney@gnu.org>
2431
2432 Use regcache_raw_supply instead of supply_register.
2433 * regcache.h (supply_register): Delete declaration.
2434 * regcache.c (supply_register): Delete function.
2435 * wince.c (do_child_fetch_inferior_registers): Update.
2436 * win32-nat.c (do_child_fetch_inferior_registers)
2437 (fetch_elf_core_registers): Update.
2438 * v850ice.c (v850ice_fetch_registers): Update.
2439 * thread-db.c (thread_db_store_registers): Update.
2440 * sol-thread.c (sol_thread_store_registers): Update.
2441 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2442 * rs6000-nat.c (fetch_register): Update.
2443 * rom68k-rom.c (rom68k_supply_one_register): Update.
2444 * remote.c (remote_wait, remote_async_wait): Update.
2445 * remote-st.c (get_hex_regs): Update.
2446 * remote-sim.c (gdbsim_fetch_register): Update.
2447 * remote-sds.c (sds_fetch_registers): Update.
2448 * remote-rdp.c (remote_rdp_fetch_register): Update.
2449 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2450 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2451 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2452 * remote-hms.c (init_hms_cmds): Update.
2453 * remote-est.c (init_est_cmds): Update.
2454 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2455 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2456 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2457 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2458 (fetch_register, supply_vrregset, supply_vrregset)
2459 (fetch_spe_registers): Update.
2460 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2461 * monitor.c (monitor_supply_register): Update.
2462 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2463 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2464 (mipsnbsd_supply_fpreg): Update.
2465 * mips-nat.c (fetch_inferior_registers)
2466 (fetch_core_registers): Update.
2467 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2468 (supply_fpregset, mips64_supply_gregset)
2469 (mips64_supply_fpregset): Update.
2470 * m68klinux-nat.c (fetch_register, supply_gregset)
2471 (supply_fpregset): Update.
2472 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2473 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2474 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2475 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2476 * infptrace.c (fetch_register): Update.
2477 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2478 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2479 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2480 (gnu_fetch_registers, gnu_store_registers): Update.
2481 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2482 * i386-linux-nat.c (fetch_register, supply_gregset)
2483 (dummy_sse_values): Update.
2484 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2485 * hppah-nat.c (fetch_register): Update.
2486 * hppa-linux-nat.c (fetch_register, supply_gregset)
2487 (supply_fpregset): Update.
2488 * go32-nat.c (fetch_register): Update.
2489 * dve3900-rom.c (fetch_bitmapped_register)
2490 (_initialize_r3900_rom): Update.
2491 * cris-tdep.c (supply_gregset): Update.
2492 * abug-rom.c (init_abug_cmds): Update.
2493 * core-aout.c (fetch_core_registers): Update.
2494 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2495 (fetch_register, fetch_fp_register): Update.
2496 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2497 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2498 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2499 * alphanbsd-tdep.c (fetch_core_registers): Update.
2500 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2501 * alpha-nat.c (fetch_osf_core_registers)
2502 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2503 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2504 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2505
73cc75f3
AC
25062004-07-21 Andrew Cagney <cagney@gnu.org>
2507
2508 * PROBLEMS: Mention breakpoints/1702.
2509 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2510 that is known to work.
2511
a53c66de
AC
25122004-07-21 Andrew Cagney <cagney@gnu.org>
2513
2514 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2515 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2516 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2517 (handle_inferior_event): Wrap call to deprecated
2518 IGNORE_HELPER_CALL in #ifdef.
2519 * config/mips/tm-nbsd.h: Update.
2520
708ff411
JB
25212004-07-20 Jim Blandy <jimb@redhat.com>
2522
412b3060
JB
2523 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2524 bfd_mach_ppc has no segment registers.
2525
13ac140c
JB
2526 Include PowerPC SPR numbers for special-purpose registers.
2527 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2528 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2529 new member in initializer.
2530 (S, S4, SN4, S64): New macros for defining special-purpose
2531 registers.
2532 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2533 registers_403, registers_403GC, registers_505, registers_860,
2534 registers_601, registers_602, registers_603, registers_604,
2535 registers_750, registers_e500): Use them.
2536
708ff411
JB
2537 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2538 replace references with expression used to initialize variable.
2539
1f602b35
AC
25402004-07-20 Andrew Cagney <cagney@gnu.org>
2541
2542 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2543 read_memory_nobpt.
2544 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2545 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2546 (s390_sigtramp_frame_sniffer): Update.
2547 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2548 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2549 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2550 (mips32_fetch_instruction): Update.
2551 * mcore-tdep.c (get_insn): Update.
2552 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2553 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2554 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2555 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2556 (i386_linux_rt_sigtramp_start): Update.
2557 * i386-linux-nat.c (child_resume): Update.
2558 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2559 * hppa-linux-tdep.c (insns_match_pattern): Update.
2560 * gdbcore.h: Update.
2561 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2562 * frame.c (safe_frame_unwind_memory): Update.
2563 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2564 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2565 * alpha-tdep.c (alpha_read_insn): Update.
2566
2cd8546d
AC
25672004-07-20 Andrew Cagney <cagney@gnu.org>
2568
2569 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2570 containing both bytes and mask. Add "frame_type".
2571 * tramp-frame.c (tramp_frame_start): Update.
2572 (tramp_frame_prepend_unwinder): Update.
2573 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2574 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2575 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2576 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2577
f928dd62
EZ
25782004-07-19 Eli Zaretskii <eliz@gnu.org>
2579
2580 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2581 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2582 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2583 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2584
d5c560f7
AC
25852004-07-17 Andrew Cagney <cagney@gnu.org>
2586
860660cb
AC
2587 * NEWS, PROBLEMS: Update for 6.2.
2588
8c266f54
AC
2589 * README: Update to 6.2.
2590
a552edd9
AC
2591 * utils.c (xvasprintf): Call xstrvprintf.
2592
c4a172b5
AC
2593 * parse.c: Update copyright.
2594 (null_post_parser): Eliminate ARGSUSED.
2595
da745b36
AC
2596 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2597 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2598 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2599
9cbc6ef0
AC
2600 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2601 * ppc-linux-nat.c: Use "Linux kernel".
2602 * hppa-linux-tdep.c: Use GNU/Linux.
2603 * hppa-linux-nat.c: Use GNU/Linux.
2604 * dwarfread.c: Add [sic] to use of Linux.
2605
1b89295f
AC
2606 * hppa-linux-nat.c: Do not include <string.h>.
2607 (supply_fpregset): Remove "register" attribute.
2608
d5c560f7
AC
2609 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2610
7ddd7709
MK
26112004-07-17 Mark Kettenis <kettenis@gnu.org>
2612
b1d19a62
MK
2613 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2614 * configure, config.in: Regenerated.
2615
7ddd7709
MK
2616 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2617 "bsd-kvm.h".
2618 (vaxbsd_supply_pcb): New function.
2619 (_initialize_vaxbsd_nat): New prototype and function.
2620 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2621 solib-sunos.o.
2622 (LOADLIBES): New variable.
2623 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2624 (LOADLIBES): New variable.
2625 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2626 (LOADLIBES): New variable.
2627 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2628
2c07db7a
AC
26292004-07-16 Andrew Cagney <cagney@gnu.org>
2630
2631 * defs.h (event_loop_p): Replace variable declaration with macro,
2632 always 1.
2633 * main.c (captured_main): Delete options "-async" and "-noasync".
2634 (event_loop_p): Delete variable.
2635 * NEWS: Mention that "-async" and "-noasync" were removed.
2636
717eb1cf
AC
26372004-07-16 Andrew Cagney <cagney@gnu.org>
2638
2639 * remote-m32r-sdi.c: Re-indent.
2640
c101bc14
JB
26412004-07-16 Jim Blandy <jimb@redhat.com>
2642
5109a438
JB
2643 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2644 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2645 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2646 missing MPC823 SPRs.
2647 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2648 incorrect. (This was corrected in GDB's register name tables on
2649 2004-07-14.)
2650
c101bc14
JB
2651 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2652 should be "esasrr" ("ESA Save and Restore Register").
2653
7ce450bd
AC
26542004-07-16 Andrew Cagney <cagney@gnu.org>
2655
2656 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2657 calls, no longer applicable. Update comments and rename parameter
2658 "step_frame" to "return_frame".
2659
ca73dd9d
AC
26602004-07-16 Andrew Cagney <cagney@gnu.org>
2661
2662 * frame.c (fprint_field): New function.
2663 (fprint_frame_id): Use fprint_field.
2664
31941f6d
JB
26652004-07-15 Joel Brobecker <brobecker@gnat.com>
2666
2667 * ada-lang.c (ada_language_defn): Remove commented out code.
2668
f86a7158
JB
26692004-07-15 Jim Blandy <jimb@redhat.com>
2670
2671 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2672 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2673
c24791ec
JB
26742004-07-14 Jim Blandy <jimb@redhat.com>
2675
29bb1356
JB
2676 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2677
cc98b5cc
JB
2678 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2679
8f088af7
JB
2680 * ppc-tdep.h (ppc_num_srs): New enum constant.
2681
0ea0ec5f
JB
2682 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2683 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2684 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2685 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2686 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2687 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2688 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2689 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2690 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2691 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2692 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2693 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2694 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2695 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2696 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2697 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2698 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2699 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2700 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2701 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2702 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2703 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2704 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2705 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2706 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2707 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2708 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2709 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2710 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2711 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2712 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2713 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2714 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2715 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2716 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2717 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2718 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2719 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2720 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2721 special-purpose register numbers.
2722
c24791ec
JB
2723 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2724 manual mentions 'md_twb', but many mention 'm_twb', and at that
2725 point in the register list.)
2726
d833db3b
AC
27272004-07-14 Andrew Cagney <cagney@gnu.org>
2728
2729 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2730 instead of "internal-error".
2731
080228b2
JB
27322004-07-10 Joel Brobecker <brobecker@gnat.com>
2733
2734 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2735 that was inserted inside a comment.
2736
c268433a
RC
27372004-07-10 Randolph Chung <tausq@debian.org>
2738
2739 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2740 function.
2741 (hppa_hpux_push_dummy_code): New function.
2742 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2743 Set find_global_pointer method.
2744
71009278
MK
27452004-07-10 Mark Kettenis <kettenis@gnu.org>
2746
2747 * NEWS: Mention BSD libkvm interface.
2748
b2fa5097
MS
27492004-07-10 Michael Snyder <msnyder@redhat.com>
2750
2751 * symfile.c (generic_load): Comment typo.
2752 * stack.c (get_selected_block): Ditto.
2753 * regcache.c (regcache_cooked_read): Ditto.
2754 * monitor.c (monitor_debug): Ditto.
2755 * mips-tdep.c (mips_read_pc): Ditto.
2756 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2757 * gdb_mbuild.sh: Ditto.
2758 * gdbarch.sh: Ditto.
2759 * gdbarch.h: Ditto.
2760
c3e5cd34
PH
27612004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2762
8a2225b2
PH
2763 * ada-tasks.c: Remove file.
2764
c3e5cd34
PH
2765 Remove ARI problems:
2766
2767 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2768 beginning of line.
2769
2770 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2771 Add comment.
2772 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2773 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2774 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2775 (UMIN_OF_SIZE): Remove.
2776 (max_of_type): New function to replace orphan macro in gdbtypes.h
2777 (min_of_type): Ditto.
2778 (discrete_type_high_bound): Use max_of_type.
2779 (discrete_type_low_bound): Use min_of_type.
2780 (possible_user_operator_p): Move operator to beginning of line.
2781 (ada_is_variant_part): Ditto.
2782 (ensure_lval): Rewrite to avoid deprecated operations.
2783 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2784 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2785 (ada_enum_name): Remove assignments in 'if' statements.
2786 (build_ada_types): Add gdbarch parameter.
2787 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2788 with gdbarch_data_register_post_init.
2789 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2790 add_show_from_set.
2791
2792 * ada-valprint.c (inspect_it): Remove declaration.
2793 (repeat_count_threshold): Remove declaration.
2794 (ada_print_floating): Remove assignments in 'if' statements.
2795 (print_str): Move operator to beginning of line.
2796
61ce229a
JB
27972004-07-08 Jim Blandy <jimb@redhat.com>
2798
2799 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2800
09bcec80
BR
28012004-07-08 Bob Rossi <bob@brasko.net>
2802
2803 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2804
31c27f77
JJ
28052004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2806
2807 * language.h (struct_language_defn): Add new function pointer:
2808 la_class_name_from_physname. Also add new prototype for
2809 language_class_name_from_physname.
2810 * language.c (language_class_name_from_physname): New function.
2811 (unk_lang_class_name): Ditto.
2812 (unknown_language_defn, auto_language_defn): Change
2813 to add unk_lang_class_name function pointer for
2814 la_class_name_from_physname.
2815 (local_language_defn): Ditto.
2816 * dwarf2read.c (guess_structure_name): Change to call
2817 language_class_name_from_physname.
2818 (determine_class_name): Ditto.
2819 * cp-support.c (class_name_from_physname): Renamed.
2820 (cp_class_name_from_physname): New name of function.
2821 * cp-support.h: Ditto.
2822 * c-lang.c (c_language_defn): Change to add NULL
2823 for class_name_from_physname function pointer.
2824 (cplus_language_defn): Change to add cp_class_name_from_physname.
2825 * jv-lang.c (java_class_name_physname): New function.
2826 (java_find_last_component): New static routine.
2827 (java_language_defn): Add java_class_name_from_physname pointer.
2828 * ada-lang.c (ada_language_defn): Change to add NULL
2829 for class_name_from_physname function pointer.
2830 * f-lang.c (f_language_defn): Ditto.
2831 * m2-lang.c (m2_language_defn): Ditto.
2832 * objc-lang.c (objc_language_defn): Ditto.
2833 * p-lang.c (pascal_language_defn): Ditto.
2834 * scm-lang.c (scm_language_defn): Ditto.
2835
ee28ca0f
AC
28362004-07-06 Andrew Cagney <cagney@gnu.org>
2837
2838 Patch from Bart Robinson.
2839 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2840 (O_LARGEFILE): Define to 0, if not defined.
2841
fdb1bf9d
MK
28422004-07-03 Mark Kettenis <kettenis@gnu.org>
2843
cb162ff6
MK
2844 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2845 <machine/pcb.h> and "bsd-kvm.h".
2846 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2847 (m68kbsd_supply_pcb): New function.
2848 (_initialize_m68kbsd_nat): New prototype and function.
2849 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2850 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2851 (LOADLIBES): New variable.
2852 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2853 (LOADLIBES): New variable.
2854
fdb1bf9d
MK
2855 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2856
963c4174
MK
28572004-07-03 Mark Kettenis <kettenis@gnu.org>
2858
2859 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2860 <sys/proc.h>.
2861 (bsd_kvm_cmdlist): New variable.
2862 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2863 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2864 command and "kvm proc" command.
2865 * Makefile.in (bsd-kvm.o): Update dependencies.
2866
533f1d8f
MK
28672004-07-02 Mark Kettenis <kettenis@gnu.org>
2868
2869 * osabi.c: Update copyright year.
2870 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2871 notes if EI_OSABI is set to ELFOSABI_HPUX.
2872
6780dcde
MS
28732004-07-01 Michael Snyder <msnyder@redhat.com>
2874
2875 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2876 that seems to have gotten whacked out of line.
2877
67bebe79
MK
28782004-07-01 Mark Kettenis <kettenis@gnu.org>
2879
2880 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2881 code.
2882
0b5d8877
PH
28832004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2884
2885 * ada-lang.c (decode_packed_array): Minor change to comment.
2886 (ada_value_slice_ptr): New function.
2887 (ada_value_slice): New function.
2888 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2889 test. Don't know why it is there.
2890 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2891 to avoid dereferencing huge arrays from which one is slicing.
2892 (empty_array): Correct to return an array rather than
2893 a subrange value.
2894 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2895 on empty arrays (let'em use 'FIRST instead).
2896
19c1ef65
PH
28972004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2898
2899 Address complaints from gdb_ari.sh:
2900
2901 * ada-exp.y: Include gdb_string.h rather than string.h.
2902 (convert_char_literal): Reformat declaration.
2903 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2904 * ada-lex.l: Change use of free to xfree (the macro would do so
2905 anyway, but this is harmless).
2906 Include gdb_string.h rather than string.h.
2907 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2908
2909 * ada-lang.c (parse): Remove K&Rism in parameter list.
2910 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2911
d81cbc94
MK
29122004-06-30 Mark Kettenis <kettenis@gnu.org>
2913
2914 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2915 dead code.
2916
07681759
MK
29172004-06-30 Mark Kettenis <kettenis@gnu.org>
2918
2919 * alphabsd-nat.c: Update copyright year.
2920 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2921
f7948b5f
JB
29222004-06-29 Joel Brobecker <brobecker@gnat.com>
2923
6e0cdd28 2924 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2925 (i386_cygwin_in_solib_call_trampoline): New function.
2926 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2927 and skip_trampoline_code gdbarch methods.
2928
8f113c9a
JB
29292004-06-29 Jim Blandy <jimb@redhat.com>
2930
2931 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2932 name actually used in the dependency lists.
2933
97dc871c
RC
29342004-06-29 Randolph Chung <tausq@debian.org>
2935
2936 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2937
47216e51
CV
29382004-06-29 Corinna Vinschen <vinschen@redhat.com>
2939
2940 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2941 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2942 functionality.
2943
e623b504
AC
29442004-06-28 Andrew Cagney <cagney@gnu.org>
2945
2946 * defs.h (xstrvprintf): Declare.
2947 * utils.c (xstrvprintf): New function.
2948 (internal_vproblem, xstrprintf, xasprintf)
2949 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2950 * serial.c (serial_printf): Ditto.
2951 * complaints.c (vcomplaint): Ditto.
2952
79acc9b3
CV
29532004-06-29 Corinna Vinschen <vinschen@redhat.com>
2954
2955 * infcmd.c (attach_command): Move call to target_terminal_inferior
2956 behind loading symbol table.
2957
1daf35d9
AC
29582004-06-28 Andrew Cagney <cagney@gnu.org>
2959
2960 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2961 change - add back extern deprecated_ui_loop_hook declaration.
2962
b435e160
AC
29632004-06-28 Andrew Cagney <cagney@gnu.org>
2964
2965 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2966 xstrprintf.
2967 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2968 (c_value_of_variable): Ditto.
2969 * utils.c (internal_vproblem): Ditto.
2970 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2971 * remote.c (add_packet_config_cmd): Ditto.
2972 * remote-rdp.c (rdp_set_command_line): Ditto.
2973 * regcache.c (regcache_dump): Ditto.
2974 * frv-tdep.c (new_variant, new_variant): Ditto.
2975 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2976 (fbsd_find_memory_regions): Ditto.
2977 * breakpoint.c (create_thread_event_breakpoint)
2978 (create_breakpoints): Ditto.
2979 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2980 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2981
06d5cf63
JB
29822004-06-28 Joel Brobecker <brobecker@gnat.com>
2983
2984 * ada-lang.c: Re-indent file, with some massaging to help indent
2985 a bit when the result is otherwise really too ugly.
2986
35809fad
UW
29872004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2988
2989 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2990 code_addr_p and special_addr_p to 'unsigned int'.
2991
40e20472
MK
29922004-06-27 Mark Kettenis <kettenis@gnu.org>
2993
2994 * i386v4-nat.c: Update copyright year and tweak comment.
2995 (regmap): Remove trailing comma.
2996 (supply_gregset): Rename local variable i to regnum. Call
2997 regcache_raw_supply instead of supply_register.
2998 (fill_gregset): Rename argument regno to regnum. Call
2999 regcache_raw_collect instead of regcache_collect.
3000
12b0b6de
UW
30012004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3002
3003 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3004 and special_addr_p.
3005 (frame_id_build, frame_id_build_special): Update comments.
3006 (frame_id_build_wild): New prototype.
3007 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3008 struct frame_id fields.
3009 (frame_id_build_wild): New function.
3010 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3011
47b42a3e
MK
30122004-06-27 Mark Kettenis <kettenis@gnu.org>
3013
3014 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3015 hppabsd-tdep.c.
3016
1265e4aa
JB
30172004-06-27 Joel Brobecker <brobecker@gnat.com>
3018
3019 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3020
76a01679
JB
30212004-06-27 Joel Brobecker <brobecker@gnat.com>
3022
3023 * ada-lang.c: Re-indent file.
3024
7aca490a
JB
30252004-06-27 Joel Brobecker <brobecker@gnat.com>
3026
3027 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3028 (no_symtab_msg): Likewise.
3029
5e987968
AS
30302004-06-27 Andreas Schwab <schwab@suse.de>
3031
3032 * source.c: Fix whitespace.
3033
315c4276
MK
30342004-06-27 Mark Kettenis <kettenis@gnu.org>
3035
d15be926
MK
3036 * configure.in: Include <sys/param.h> for td_pcb test.
3037 * configure: Regenerated.
3038
9062529b
MK
3039 * i386nbsd-nat.c: New file.
3040 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3041 i386obsd-nat.c and i386obsd-tdep.c.
3042 (i386nbsd-nat.o): New dependency.
3043 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3044 bsd-kvm.o.
3045 (LOADLIBES): New variable.
3046 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3047 bsd-kvm.o.
3048 (LOADLIBES): New variable.
3049
8010310e
MK
3050 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3051 (LOADLIBES): New variable.
3052
efe1d7b9
MK
3053 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3054 fetching from BSD_KVM_PADDR. Correctly lookup address for
3055 "_thread0".
3056
315c4276
MK
3057 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3058 "bsd-kvm.h".
3059 (amd64fbsd_supply_pcb): New funcion.
3060 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3061
399cfac6
DL
30622004-06-27 <david@streamline-computing.com>
3063
3064 Partial fix for PR cli/1056.
3065 * valarith.c: Check for zero in division and remainder
3066 evaluation.
3067
6235f9c8
MK
30682004-06-27 Mark Kettenis <kettenis@gnu.org>
3069
3070 * i387-tdep.c: Remove excessive whitespace.
3071
2726dafc
AC
30722004-06-26 Andrew Cagney <cagney@gnu.org>
3073
3074 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3075 * gdb-events.h, gdb-events.c: Re-generate.
3076 * tui/tui-hooks.c (tui_install_hooks): Update.
3077 (tui_remove_hooks): Update.
3078 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3079
0e56aeaf
MK
30802004-06-26 Mark Kettenis <kettenis@gnu.org>
3081
cb461069
MK
3082 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3083 (gregset_t, fpregset_t): Remove typedefs.
3084 (REG_OFFSET): Rename argument.
3085 (amd64bsd_r_reg_offset): Rename from reg_offset.
3086 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3087 Remove functions.
3088 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3089 of reg_offset.
3090 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3091
ecba89de
MK
3092 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3093
4cd80476
MK
3094 * vax-tdep.c: Tweak comment.
3095
0e56aeaf
MK
3096 Add OpenBSD/hppa support.
3097 * NEWS (New native configurations): Mention OpenBSD/hppa.
3098 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3099 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3100 files.
3101 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3102 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3103 * configure.host: Add hppa*-*-openbsd*.
3104 * configure.tgt: Add hppa*-*-openbsd*.
3105
98bbd631
AC
31062004-06-25 Andrew Cagney <cagney@gnu.org>
3107
3108 * defs.h (deprecated_ui_loop_hook): Deprecated.
3109 * wince.c (child_wait): Update.
3110 * win32-nat.c (child_wait): Update.
3111 * v850ice.c (v850ice_wait): Update.
3112 * top.c (deprecated_ui_loop_hook): Update.
3113 * serial.h: Update.
3114 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3115 (do_unix_readchar): Update.
3116 * ser-tcp.c (net_open): Update.
3117 * remote-sim.c (gdb_os_poll_quit): Update.
3118 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3119
769d7dc4
AC
31202004-06-24 Andrew Cagney <cagney@gnu.org>
3121
3122 * defs.h (deprecated_pre_add_symbol_hook)
3123 (deprecated_post_add_symbol_hook): Deprecated.
3124 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3125 (symbol_file_add_with_addrs_or_offsets): Update references.
3126
11c949aa
AC
31272004-06-24 Andrew Cagney <cagney@gnu.org>
3128
3129 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3130 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3131 * wince.c (ui_loop_hook): Delete extern declaration.
3132 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3133 * v850ice.c (ui_loop_hook): Delete extern declaration..
3134 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3135 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3136 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3137 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3138 ui_loop_hook declaration.
3139
eedc19af
AC
31402004-06-24 Andrew Cagney <cagney@gnu.org>
3141
3142 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3143 entry_func_highpc fields.
3144 * objfiles.c (init_entry_point_info): Do not clear
3145 entry_func_lowpc and entry_func_highpc.
3146 (objfile_relocate): Do not relocate entry_func_lowpc and
3147 entry_func_highpc.
3148 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3149 entry_func_highpc.
3150 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3151 entry_func_highpc.
3152 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3153 entry_func_lowpc and entry_func_highpc with call to
3154 inside_entry_func.
3155
d47079be
MK
31562004-06-24 Mark Kettenis <kettenis@gnu.org>
3157
3158 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3159 quad-precision floating point arguments in registers.
3160
2107e348
MK
31612004-06-24 Mark Kettenis <kettenis@gnu.org>
3162
3163 From Michael Mueller <m.mueller99@kay-mueller.de>:
3164 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3165 account.
3166
46587c42
JJ
31672004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3168
3169 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3170 to -1.
3171 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3172 untriggered watchpoints to a separate if clause. Update function
3173 comment regarding STOPPED_BY_WATCHPOINT argument.
3174
226f5cf4
JB
31752004-06-22 Jim Blandy <jimb@redhat.com>
3176
3177 * gdbarch.sh: Doc fix.
3178
f10683bb
MH
31792004-06-21 Martin Hunt <hunt@redhat.com>
3180 Kevin Buettner <kevinb@redhat.com>
3181
3182 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3183 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3184 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3185 to set_gdbarch_sp_regnum(). Use cooked register number.
3186 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3187
412d5987
AC
31882004-06-21 Andrew Cagney <cagney@gnu.org>
3189
3190 * gdbarch.sh: When the macro field is empty, do not generate a
3191 macro definition. When the macro field is "=", generate the macro
3192 name from the upper-case function name.
3193 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3194 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3195 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3196 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3197 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3198 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3199 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3200 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3201 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3202 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3203 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3204 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3205 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3206 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3207 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3208 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3209 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3210 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3211 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3212 (DEPRECATED_USE_STRUCT_CONVENTION)
3213 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3214 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3215 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3216 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3217 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3218 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3219 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3220 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3221 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3222 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3223 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3224 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3225 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3226 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3227 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3228 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3229 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3230 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3231
68908a3e
AC
32322004-06-21 Andrew Cagney <cagney@gnu.org>
3233
48f7351b
AC
3234 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3235 macro name, and the function rather than macro value. Only wrap
3236 macro print statements in #ifdef. Move format logic to where it
3237 is needed.
3238 * gdbarch.c: Re-generate.
3239
283354d8
AC
3240 * gdbarch.sh (read): Delete "print_p" and "description", add
3241 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3242 Delete references to print_p.
3243 (TARGET_ARCHITECTURE): Delete print predicate.
3244 * gdbarch.c: Re-generate.
3245
68908a3e
AC
3246 * gdbarch.sh: Check that multi-arch methods do not provide a
3247 macro.
3248 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3249 (print_registers_info, print_float_info, print_vector_info)
3250 (adjust_breakpoint_address, remote_translate_xfer_address)
3251 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3252 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3253 name from the multi-arch definition.
3254
a2428dbe
AC
32552004-06-20 Andrew Cagney <cagney@gnu.org>
3256
3257 * gdbarch.sh: Sort by the function, instead of macro name.
3258 * gdbarch.c: Re-generate.
3259
750eb019
AC
32602004-06-20 Andrew Cagney <cagney@gnu.org>
3261
66d659b1
AC
3262 * gdbarch.sh: Use the function, instead of macro name in
3263 errors and the log file.
3264 (return_value): Remove stray ":" in spec.
3265
750eb019
AC
3266 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3267 * gdbarch.h, gdbarch.c: Re-generate.
3268 * Makefile.in (arch-utils.o): Update dependencies.
3269 * values.c (using_struct_return): Move code calling
3270 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3271 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3272 to legacy_return_value, simplify.
3273 * infcmd.c (print_return_value): Move code calling
3274 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3275 to legacy_return_value, simplify.
3276 * infcall.c (call_function_by_hand): Move code calling
3277 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3278 * arch-utils.c: Update copyright. Include "gdbcore.h".
3279 (legacy_return_value): New function.
3280 * arch-utils.h: Update copyright.
3281 (legacy_return_value): Declare.
3282
b5622e8d
AC
32832004-06-20 Andrew Cagney <cagney@gnu.org>
3284
3285 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3286 * gdbarch.h, gdbarch.c: Re-generate.
3287 * values.c (using_struct_return): Update call.
3288 * mcore-tdep.c: Update comment.
3289 * infcall.c (call_function_by_hand): Update comment.
3290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3291 * arch-utils.h (always_use_struct_convention): Update.
3292 * v850-tdep.c (v850_gdbarch_init): Update.
3293 * sh64-tdep.c (sh64_gdbarch_init): Update.
3294 * sh-tdep.c (sh_gdbarch_init): Update.
3295 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3296 * mips-tdep.c (mips_gdbarch_init): Update.
3297 * mcore-tdep.c (mcore_gdbarch_init): Update.
3298 * m32r-tdep.c (m32r_gdbarch_init): Update.
3299 * ia64-tdep.c (ia64_gdbarch_init): Update.
3300 * h8300-tdep.c (h8300_gdbarch_init): Update.
3301 * frv-tdep.c (frv_gdbarch_init): Update.
3302 * cris-tdep.c (cris_gdbarch_init): Update.
3303 * arm-tdep.c (arm_gdbarch_init): Update.
3304 * alpha-tdep.c (alpha_gdbarch_init): Update.
3305
5191de37
MC
33062004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3307
3308 * PROBLEMS: Add more specific information, and a work-around,
3309 for PR gdb/1458.
3310
782263ab
AC
33112004-06-18 Andrew Cagney <cagney@gnu.org>
3312
3313 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3314 * gdbarch.h, gdbarch.c: Re-generate.
3315 * ada-lang.c (ada_finish_decode_line_1): Update.
3316 * infrun.c (handle_inferior_event): Update.
3317 * infcall.c (find_function_addr): Update.
3318 * linespec.c (minsym_found): Update.
3319 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3320 Update.
3321 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3322 * cli/cli-cmds.c (disassemble_command): Update.
3323 * vax-tdep.c (vax_gdbarch_init): Update.
3324
2f305df1
MK
33252004-06-18 Mark Kettenis <kettenis@gnu.org>
3326
3327 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3328
e5fe55f7
AC
33292004-06-17 Andrew Cagney <cagney@gnu.org>
3330
3331 GDB 6.1.1 released from the GDB 6.1 branch.
3332 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3333 * PROBLEMS: Ditto.
3334
473b7be6
DJ
33352004-06-16 Daniel Jacobowitz <dan@debian.org>
3336
3337 PR gdb/1658
3338 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3339 operation as a uleb128. Found by Michael Coulter.
3340
96d887e8
PH
33412004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3342
3343 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3344 make it non-static.
3345 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3346 to ada-lang.h; this is needed to be able to implement the kill command
3347 in multi-task mode.
3348 (task_ptid): Ditto.
3349 (task_entry): Ditto.
3350 (task_list): Ditto.
3351 (ada_build_task_list): Ditto.
3352
3353 * ada-lang.c: Conditionalize routines and data structures related
3354 to breakpoints, exceptions, completion, and symbol caching on
3355 GNAT_GDB, since these are not yet used in the submitted public sources.
3356 (ada_main_name): Editorial: Move definition out of exception-related
3357 code.
3358
31eef181
AC
33592004-06-15 Andrew Cagney <cagney@gnu.org>
3360
3361 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3362 deprecated_pc_in_call_dummy.
3363
2c500098
AM
33642004-06-15 Alan Modra <amodra@bigpond.net.au>
3365
3366 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3367 bfd_get_section_size_before_reloc or _raw_size.
3368 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3369 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3370 (dwarf2_read_section): Likewise.
3371 * elfread.c (elf_locate_sections): Likewise.
3372 * gcore.c (derive_heap_segment): Likewise.
3373 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3374 * remote-e7000.c (e7000_load): Likewise.
3375 * remote-m32r-sdi.c (m32r_load): Likewise.
3376 * remote-mips.c (mips_load_srec): Likewise.
3377 (pmon_load_fast): Likewise.
3378 * remote.c (compare_sections_command): Likewise.
3379 * symfile.c (add_section_size_callback): Likewise.
3380 (load_section_callback): Likewise.
3381 (pc_in_unmapped_range): Likewise.
3382 (pc_in_mapped_range): Likewise.
3383 (sections_overlap): Likewise.
3384 (list_overlays_command): Likewise.
3385 (simple_overlay_update_1): Likewise.
3386 (simple_overlay_update): Likewise.
3387 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3388 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3389
90f943f1
RC
33902004-06-14 Randolph Chung <tausq@debian.org>
3391
3392 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3393 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3394 static.
3395 (hppa_hpux_inferior_created): New function.
3396 (hppa_hpux_init_abi): Register observer.
3397 * symfile.c (hp_cxx_exception_support_initialized)
3398 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3399 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3400
700c15aa
RC
34012004-06-14 Randolph Chung <tausq@debian.org>
3402
3973a7d3
AC
3403 * MAINTAINERS (Write After Approval): Alphabetize my entry
3404 correctly.
700c15aa 3405
cea4838c
AC
34062004-06-14 Andrew Cagney <cagney@gnu.org>
3407
3408 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3409 testsuite maintainer.
3410
97092415
AC
34112004-06-13 Andrew Cagney <cagney@gnu.org>
3412
e8c3165b
AC
3413 * infcmd.c (print_return_value): Fix logic, allow
3414 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3415
bceabdd8
AC
3416 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3417 defining any macros.
3418 * gdbarch.h: Re-generate.
3419
57010b1c
AC
3420 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3421 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3422 * gdbarch.h: Re-generate.
3423
bc87dfa0
AC
3424 * values.c (generic_use_struct_convention): Don't check gcc_p.
3425
15ac804d
AC
3426 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3427 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3428 * gdbarch.h, gdbarch.c: Regenerate.
3429 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3430 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3432 deprecated_max_register_raw_size and
3433 deprecated_max_register_virtual_size.
3434 * v850-tdep.c (v850_gdbarch_init): Ditto.
3435 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3436 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3437 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3438 * cris-tdep.c (cris_gdbarch_init): Ditto.
3439
97092415
AC
3440 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3441 * gdbarch.h, gdbarch.c: Re-generate.
3442 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3443 (m68hc11_use_struct_convention): Delete function.
3444 (m68hc11_extract_struct_value_address): Delete function.
3445 (m68hc11_return_value): New function.
3446 (m68hc11_gdbarch_init): Instead of store_return_value,
3447 extract_return_value, return_value_on_stack,
3448 deprecated_extract_struct_value_address and use_struct_convention,
3449 set return_value.
3450 * values.c (using_struct_return): Do not call
3451 RETURN_VALUE_ON_STACK.
3452 * arch-utils.h (generic_return_value_on_stack_not): Delete
3453 declaration.
3454 * arch-utils.c (generic_return_value_on_stack_not): Delete
3455 function.
3456
44e5158b
AC
34572004-06-12 Andrew Cagney <cagney@gnu.org>
3458
3459 * values.c (register_value_being_returned): Delete function.
3460 * infcmd.c (legacy_return_value): Delete function.
3461 * infcall.c (call_function_by_hand): Inline
3462 "register_value_being_returned", simplify.
3463 * values.c (using_struct_return): Update comment, refer to
3464 print_return_value instead of register_value_being_returned.
3465 * infcmd.c (print_return_value): Inline calls to
3466 register_value_being_returned and legacy_return_value. Simplify.
3467
b887c273
RC
34682004-06-11 Randolph Chung <tausq@debian.org>
3469
3470 * somread.c (som_symtab_read): Exclude gcc local symbols.
3471
1b2bfbb9
RC
34722004-06-11 Randolph Chung <tausq@debian.org>
3473
3973a7d3
AC
3474 * infrun.c (handle_inferior_event): Handle the case when a
3475 trampoline ends up in the runtime resolver, and if the trampoline
3476 has no name. Rearrange the code so that all the trampoline
3477 processing happens before other step-out-of-range handling.
1b2bfbb9 3478
a9d61c86
MH
34792004-06-11 Martin Hunt <hunt@redhat.com>
3480
3481 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3482 has no fpu.
3483
2c87cf5a
AC
34842004-06-10 Andrew Cagney <cagney@gnu.org>
3485
3486 * blockframe.c (legacy_inside_entry_func): Delete.
3487 (legacy_frame_chain_valid): Inline call to
3488 legacy_inside_entry_func, simplify.
3489
0b67b468 34902004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
3491
3492 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
3493 * dwarf2read.c (partial_die_info): Add dirname field.
3494 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3495 (read_partial_die): Save away DW_AT_comp_dir.
3496 * defs.h (symtab_to_filename): Removed.
3497 * source.c (find_and_open_source): Added.
57c22c6c 3498 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
3499 (symtab_to_filename): Removed.
3500 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
3501 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3502 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3503 symtab_to_filename.
3504 * symtab.h (partial_symtab): Add dirname field.
3505 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
3506 (mi_cmd_file_list_exec_source_file): Call new function
3507 symtab_to_fullname to find fullname.
57c22c6c 3508 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 3509 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
3510 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3511
9a1dd1ad
AC
35122004-06-10 Andrew Cagney <cagney@gnu.org>
3513
239ae8c7
AC
3514 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3515 to generic_use_struct_convention, the default value.
3516
fc720350
AC
3517 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3518 of abort.
3519
9a1dd1ad
AC
3520 * ns32k-tdep.c (ns32k_push_arguments): New function.
3521 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3522 * infcall.c (call_function_by_hand): Call error instead of
3523 legacy_push_arguments.
3524 * value.h (legacy_push_arguments): Delete declaration.
3525 * valops.c (legacy_push_arguments): Delete function.
3526 (value_push): Delete function.
3527
fea25152
BF
35282004-06-10 Brian Ford <ford@vss.fsi.com>
3529
3530 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3531 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3532 info.
3533 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3534
30a4a8e0
AC
35352004-06-10 Andrew Cagney <cagney@gnu.org>
3536
3537 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3538 * gdbarch.h, gdbarch.c: Re-generate.
3539 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3540 parameters.
3541 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3542 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3543 deprecated_pc_in_call_dummy instead of
3544 DEPRECATED_PC_IN_CALL_DUMMY.
3545 (arm_skip_prologue): Ditto.
3546 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3547 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3548 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3549 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3550 Ditto.
3551 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3552 (sh64_init_extra_frame_info, sh64_get_saved_register)
3553 (sh64_pop_frame): Ditto.
3554 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3555 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3556 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3557 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3558 (h8300_pop_frame): Ditto.
3559 * blockframe.c (legacy_inside_entry_func)
3560 (legacy_frame_chain_valid): Ditto.
3561 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3562 to deprecated_pc_in_call_dummy.
3563
81cfbe54
AC
35642004-06-09 Andrew Cagney <cagney@gnu.org>
3565
a1f4a1b6
AC
3566 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3567 provide a default value.
3568 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3569 * gdbarch.h, gdbarch.c: Re-generate.
3570 * arch-utils.c (generic_convert_register_p): Rename
3571 legacy_convert_register_p
3572 (legacy_register_to_value, legacy_value_to_register): Delete
3573 functions.
3574 * arch-utils.h (generic_convert_register_p): Rename
3575 legacy_convert_register_p.
3576 (legacy_register_to_value, legacy_value_to_register): Delete
3577 declarations.
3578
9730f241
AC
3579 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3580 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3581 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3582 * gdbarch.h, gdbarch.c: Re-generate.
3583 * infcmd.c (default_print_registers_info): Simplify.
3584 * findvar.c (value_of_register): Simplify.
3585 * mi/mi-main.c (get_register): Simplify.
3586 * arch-utils.c (legacy_convert_register_p): Always return 0.
3587 (legacy_register_to_value, legacy_value_to_register): Always call
3588 internal_error.
3589
8a1bf479
AC
3590 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3591 #ifdef CLEAR_INSN_CACHE code.
3592 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3593 Delete #ifdef CLEAR_DEFERRED_STORES code.
3594
4b38d6f1
AC
3595 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3596
2d62ecc7
AC
3597 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3598 copyright.
3599 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3600
be4f7469
AC
3601 * config/mips/mipsv4.mh: Delete file.
3602
81cfbe54
AC
3603 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3604 unreferenced macro.
3605 (hpread_adjust_stack_address): Delete declaration.
3606
d966f0cb
AC
36072004-06-08 Andrew Cagney <cagney@gnu.org>
3608
3609 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3610 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3611 PTRACE_ATTACH / PTRACE_DETACH available call error.
3612 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3613 * infttrace.c (update_thread_state_after_attach, attach, detach):
3614 Remove #ifdef wrappers.
3615 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3616 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3617 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3618 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3619 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3620 * config/nm-linux.h (ATTACH_DETACH): Delete.
3621 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3622 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3623 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3624 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3625 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3626
d91670b9
CV
36272004-06-08 Corinna Vinschen <vinschen@redhat.com>
3628
3629 * configure.in: Set $configdir to the right OS specific value.
3630 Use value when setting $tcldir and $tkdir.
3631 * configure: Regenerate.
3632
28ba0b33
PB
36332004-06-06 Paul Brook <paul@codesourcery.com>
3634
3635 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3636 records.
3637
f26caa11
PH
36382004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3639
3640 * ada-lang.c (lookup_symbol_in_language): New function to allow
3641 re-use of another language's symbol lookup code. (Placed here
3642 temporarily while Ada support is being integrated into the public
3643 tree).
3644 (restore_language): New auxiliary function for
3645 lookup_symbol_in_language.
3646 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3647 temporarily while Ada support is being integrated into the public
3648 tree).
3649
d560a54b
AO
36502004-06-08 Alexandre Oliva <aoliva@redhat.com>
3651
e75d110c
AO
3652 * Makefile.in (check//%): New.
3653
d560a54b
AO
3654 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3655 (mn10300_store_return_value): Rewrite.
3656 (mn10300_type_align): New.
3657 (mn10300_use_struct_convention): Rewrite.
3658 (mn10300_return_value): New, using all of the above.
3659 (mn10300_pop_frame_regular): Add saved_regs_size.
3660 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3661
a72fbdb7
AO
3662 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3663 regs if PC is on movm.
3664
01904826
JB
36652004-06-07 Jim Blandy <jimb@redhat.com>
3666
3667 Add native Linux support for the PowerPC E500.
3668 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3669 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3670 all architectures except the E500.
3671 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3672 #definitions.
3673 (struct gdb_evrregset_t): New type.
3674 (have_ptrace_getsetevrregs): New variable.
3675 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3676 fetch_spe_registers): New functions.
3677 (fetch_register): Call fetch_spe_register as appropriate.
3678 Assert that we're only passed raw register numbers.
3679 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3680 Don't fetch gprs if they're pseudoregisters.
3681 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3682 store_spe_registers): New functions.
3683 (store_register): Call store_spe_register as appropriate.
3684 Assert that we're only passed raw register numbers.
3685 (store_ppc_registers): Call store_spe_registers as appropriate.
3686 Don't store gprs if they're pseudoregisters.
3687
f90ef764
JJ
36882004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3689
3690 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3691 struct if one exists, even if we are dealing with a zombie thread.
3692
45b75230
AC
36932004-06-07 Andrew Cagney <cagney@gnu.org>
3694
3695 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3696 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3697 Rename PC_REQUIRES_RUN_BEFORE_USE.
3698 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3699 #ifdef.
3700
1658da49
RC
37012004-06-07 Randolph Chung <tausq@debian.org>
3702
3703 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3704 unwinding after sp has been saved to the stack but before the end
3705 of the prologue, and after the fp has been modified but before it has
3706 been saved to the stack.
3707 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3708 Remove superfluous definitions.
3709 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3710
9a727a3c
RC
37112004-06-07 Guy Martin <gmsoft@gentoo.org>
3712
3713 Committed by Randolph Chung.
3714 * hppa-linux-nat.c: Include the correct version of the header file
3715 depending on the kernel version.
3716
9e500012
RC
37172004-06-06 Randolph Chung <tausq@debian.org>
3718
3719 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3720 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3721
3388d7ff
RC
37222004-06-06 Randolph Chung <tausq@debian.org>
3723
3724 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3725 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3726 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3727 * hppa-tdep.c (hppa_symbol_address): New function definition.
3728 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3729
d49771ef
RC
37302004-06-06 Randolph Chung <tausq@debian.org>
3731
3732 * hppa-tdep.h (struct value): Forward declaration.
3733 (gdbarch_tdep): Define tdep find_global_pointer method.
3734 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3735 associated with the function we are trying to call, and write it
3736 to the gp register.
3737 (hppa32_convert_from_funct_ptr_addr): New function.
3738 (hppa_find_global_pointer): New function.
3739 (hppa_gdbarch_init): Set default find_global_pointer method; set
3740 convert_from_func_ptr_addr method.
3741 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3742 (hppa_linux_init_abi): Set find_global_pointer method.
3743 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3744
7d9b040b
RC
37452004-06-06 Randolph Chung <tausq@debian.org>
3746
3747 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3748 to struct value *function.
3749 * gdbarch.c: Regenerate.
3750 * gdbarch.h: Likewise.
3751 * infcall.c (call_function_by_hand): Pass entire function value
3752 to push_dummy_call.
3753
3754 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3755 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3756 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3757 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3758 * arm-tdep.c (arm_push_dummy_call): Likewise.
3759 * avr-tdep.c (avr_push_dummy_call): Likewise.
3760 * cris-tdep.c (cris_push_dummy_call): Likewise.
3761 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3762 * frv-tdep.c (frv_push_dummy_call): Likewise.
3763 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3764 * hppa-tdep.c (hppa32_push_dummy_call)
3765 (hppa64_push_dummy_call): Likewise.
3766 * i386-tdep.c (i386_push_dummy_call): Likewise.
3767 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3768 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3769 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3770 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3771 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3772 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3773 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3774 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3775 (ppc64_sysv_abi_push_dummy_call): Likewise.
3776 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3777 (ppc64_sysv_abi_push_dummy_call): Likewise.
3778 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3779 * s390-tdep.c (s390_push_dummy_call): Likewise.
3780 * sh-tdep.c (sh_push_dummy_call_fpu)
3781 (sh_push_dummy_call_nofpu): Likewise.
3782 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3783 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3784 * vax-tdep.c (vax_push_dummy_call): Likewise.
3785
4a19ea35
JB
37862004-06-04 Jim Blandy <jimb@redhat.com>
3787
8327ccee
JB
3788 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3789 gdbarch argument to register_size.
3790
a3c001ce
JB
3791 * rs6000-tdep.c (rs6000_store_return_value): Use
3792 regcache_cooked_write_part instead of
3793 deprecated_write_register_bytes.
3794 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3795 not gdbarch_deprecated_store_return_value.
3796
4a19ea35
JB
3797 * ppc-linux-nat.c (store_register, fetch_register): Remove
3798 incorrect assertions. Simplify and generalize handling of
3799 transfers whose sizes are not multiples of, or less than, sizeof
3800 (PTRACE_XFER_TYPE).
3801
b9b5d7ea
JJ
38022004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3803
3804 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3805 as a new thread event.
720c7d64 3806 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3807 zombie, return TD_THR_ZOMBIE.
720c7d64 3808 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3809 TD_THR_ZOMBIE, check if the thread is still on the thread list
3810 and return a -1 ptid if not found.
3811 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3812 change the status to TARGET_WAITKIND_SPURIOUS.
3813
c8a3b559
CV
38142004-06-03 Corinna Vinschen <vinschen@redhat.com>
3815
3816 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3817 double values in little endian mode.
3818
20605361
AC
38192004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3820
3821 Committed by Andrew Cagney.
3822 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3823 after last enum constant to avoid error from IBM C
3824 compiler.
3825
bc97b3ba
JB
38262004-06-02 Jim Blandy <jimb@redhat.com>
3827
3828 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3829 to 'message', and make it local to the lone block that uses it.
3830
1da28ab0
JB
3831 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3832
4c4b4cd2
PH
38332004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3834
8a2225b2
PH
3835 * ada-exp.y: Update copyright notice.
3836 Include block.h.
3837
3838 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3839 SPECIAL_VARIABLE and unify the treatment of these cases.
3840
3841 (write_attribute_call0): Remove.
3842 (write_attribute_call1): Remove.
3843 (write_attribute_calln): Remove.
3844 (save_qualifier): Add missing semicolon.
3845
3846 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3847 temporarily disabled to allow compilation with FSF head version.
3848
3849 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3850 use individual operators (OP_*) for all attributes.
3851 (exp syntax): Use write_int.
3852 Handle STRING literals with OP_STRING.
3853 (variable syntax): Add limit parameter to calls to
3854 write_object_renaming.
3855
3856 (temp_parse_space): New definition to hold entities that need
3857 only live until the next call to ada_parse.
3858 (string_to_operator): Rename fields of ada_opname_table entries.
3859
3860 (write_var_from_sym): Record block.
3861 (write_var_from_name): Minor reformatting.
3862 Make sure saved name is properly encoded in the case of multiple
3863 matches, and set its language to Ada.
3864 Update comment.
3865 Modify to indicate unresolved name as symbol in the UNRESOLVED
3866 namespace, allocated in temp_parse_space.
3867 (write_int): New function.
3868
3869 (write_object_renaming): Add max_depth parameter to limit
3870 chains of object renamings.
3871 Handle case where root of renaming expression is itself a renaming.
3872 Use temp_parse_space for temporary name buffer.
3873 Handle renamings to dereferenced pointers (___XEXA suffices).
3874
3875 (ada_parse, yyerror, string_to_operator,
3876 write_var_from_sym, write_var_from_name, write_attribute_call0,
3877 write_attribute_call1, write_attribute_calln,
3878 write_object_renaming): Protoize.
3879
3880 (_initialize_ada_exp): New function.
3881
3882 * ada-lang.c: Update copyright notice.
3883 General terminology change to conform to GNAT compiler usage:
3884 mangle => encode, demangle => decode
3885 Include gdb_obstack.h.
3886 Include gdb_regex.h
3887 Include frame.h
3888 Include hashtab.h
3889 Include completer.h
3890 Include gdb_stat.h
3891 Include block.h
3892 Include infcall.h
3893
3894 (ADA_RETAIN_DOTS): Make sure this is defined.
3895 (TRUNCATION_TOWARDS_ZERO): Define.
3896 (struct string_vector): Define.
3897 (unresolved_names): Remove definition.
3898 (xnew_string_vector): New function.
3899 (string_vector_append): New function.
3900 (extract_string): Make static.
3901 (ada_unqualified_name): New function.
3902 (add_angle_brackets): New function.
3903 (function_name_from_pc): New function.
3904 (place_on_stack): Rename to ensure_lval.
3905
3906 (ensure_lval): Renamed from place_on_stack.
3907 Make identity on lvals.
3908 Update comment.
3909 (is_nonfunction): New interface.
3910 Only symbols in LOC_CONST class can be enumerals.
3911 (fill_in_ada_prototype): Remove; now independent of language.
3912 (add_defn_to_vec): Add obstack and symtab arguments.
3913 Use obstack to hold collected definitions.
3914 (num_defns_collected): New function.
3915 (defns_collected): New function.
3916 (ada_resolve_subexp): Rename to resolve_subexp.
3917 (resolve_subexp): Renamed from ada_resolve_subexp.
3918 (ada_op_name): Return non-const result.
3919 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3920 other purposes.
3921
3922 (to_fixed_array_type): Add declaration.
3923 (coerce_unspec_val_to_type): Remove offset parameter.
3924 (find_sal_from_funcs_and_line): New interface.
3925 (find_line_in_linetable): Ditto.
3926
3927 (all_sals_for_line): Rename to ada_sals_for_line and make
3928 global.
3929 Add new parameter. When set, do not ask the user to choose the
3930 instance, but use the first one found instead.
3931 Use given line number in returned sals.
3932 Fix comment.
3933 Skip the prologue if funfirstline is set.
3934 Correct for memory leak when 0 lines found.
3935
3936 (value_pos_atr): Use pos_atr.
3937 (pos_atr): New function.
3938 (standard_lookup): Add block parameter.
3939
3940 (makeTimeStart): Remove declaration and uses.
3941 (makeTimeStop): Remove declaration and uses.
3942
3943 (ada_completer_word_break_characters): Allow for VMS.
3944 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3945 (raise_sym_name): New constant.
3946 (raise_unhandled_sym_name): New constant.
3947 (raise_assert_sym_name): New constant.
3948 (process_raise_exception_name): New constant.
3949 (longest_exception_template): New constant.
3950 (warning_limit): New variable to limit warnings during expression
3951 evaluation.
3952 (warnings_issued): New variable to keep track of warnings issued.
3953 (known_runtime_file_name_patterns): New constant.
3954 (known_auxiliary_function_name_patterns): New constant.
3955 (symbol_list_obstack): New variable.
3956
3957 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3958 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3959 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3960 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3961 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3962 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3963 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3964 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3965 and strcmp.
3966
3967 (ada_get_field_index): New function.
3968 (lim_warning): New function.
3969 (ada_translate_error_message): New function.
3970 (MAX_OF_SIZE): New function.
3971 (MIN_OF_SIZE): New function.
3972 (UMAX_OF_SIZE): New function.
3973 (UMIN_OF_SIZE): New function.
3974 (discrete_type_high_bound): New function.
3975 (discrete_type_low_bound): New function.
3976 (base_type): New function.
3977 (do_command): Remove.
3978
3979 (ada_update_initial_language): Use language_ada, not language_unknown.
3980 (ada_encode): Renamed from ada_mangle.
3981 Obey ADA_RETAIN_DOTS.
3982 (ada_decode): Renamed from ada_demangle.
3983 Update coding conventions.
3984 (decoded_names_store): New hash table.
3985 (ada_decode_symbol): New function.
3986 (ada_la_decode): New function.
3987
3988 (modify_general_field): Correct computations of offset and bit
3989 position.
3990 (desc_base_type): Handle ref types, too.
3991 (ada_is_direct_array_type): New function.
3992
3993 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3994 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3995 (ada_is_bogus_array_descriptor,ada_type_of_array,
3996 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3997 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3998 ada_is_array_descriptor_type.
3999
4000 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4001 (ada_is_packed_array_type): Handle pointers or
4002 references to packed arrays as well.
4003 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4004 (decode_packed_array_type): Search for the packed array type
4005 symbol in the currently selected block and associated
4006 superblocks too.
4007 Use lookup_symbol again.
4008
4009 (decode_packed_array): Handle pointers and references.
4010 Update call to coerce_unspec_val_to_type.
4011 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4012 (ada_value_primitive_packed_val): Improve comment.
4013
4014 (ada_index_type): Substitute int type for "undefined".
4015 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4016 ada_array_langth, ada_is_string_type): Use renamed
4017 ada_is_simple_array_type.
4018 (empty_array): New function.
4019
4020 (ada_resolve): Rename to resolve.
4021 (resolve): Make static.
4022 Call renamed resolve_subexp.
4023 Update comment.
4024 (ada_resolve_subexp): Rename to resolve_subexp.
4025 (resolve_subexp): Update comment.
4026 Decomment disabled code.
4027 Add LOC_COMPUTED* cases.
4028 Modify to use temporary struct symbols (marked as being in
4029 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4030 OP_UNRESOLVED_VALUE.
4031 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4032 Add OP_STRING case.
4033 Remove OP_ARRAY.
4034 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4035 Use new ada_lookup_symbol_list interface.
4036 Use new ada_resolve_function interface.
4037 Remove OP_TYPE case.
4038
4039 (ada_args_match): Idiot proof against null actuals.
4040 Use intermediate variables to clarify.
4041 (ada_resolve_function): Update comment and interface.
4042 (mangled_ordered_before): Rename to encoded_ordered_before and
4043 update comment.
4044 (sort_choices): Update comment and interface.
4045 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4046 (user_select_syms): New interface.
4047 Use new sort_choices interface.
4048 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4049 (possible_user_operator_p): Idiot-proof against null values.
4050 (ada_simple_renamed_entity): Don't make cleanup; rely on
4051 caller to free result string.
4052 Remove const from return type.
4053 (make_array_descriptor): Rename uses of place_on_stack to
4054 ensure_lval.
4055 Make sure that arrays are on stack.
4056
4057 (HASH_SIZE): Define.
4058 (struct cache_entry): Define.
4059 (cache_space): Define.
4060 (cache): Define.
4061 (clear_ada_sym_cache): New function.
4062 (find_entry): New function.
4063 (lookup_cached_symbol): New function.
4064 (defn_vector_size): Define.
4065 (cache_symbol): New function.
4066 (defn_symbols): Remove.
4067
4068 (standard_lookup): Use lookup_symbol_in_language to get effect of
4069 C lookup.
4070 Cache results.
4071
4072 (symbol_completion_match): New function.
4073 (symbol_completion_add): New function.
4074 (ada_make_symbol_completion_list): New function.
4075
4076 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4077 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4078 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4079 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4080
4081 (ada_lookup_simple_minsym): New function.
4082 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4083
4084 (add_symbols_from_enclosing_procs): New interface.
4085 Conditionalize more helpfully.
4086 Don't bother if program isn't running.
4087 Use new interface to get_frame_block.
4088 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4089
4090 (remove_extra_symbols): New interface.
4091 (xget_renaming_scope): New function.
4092 (is_package_name): New function.
4093 (renaming_is_visible): New function.
4094 (remove_out_of_scope_renamings): New function.
4095
4096 (ada_lookup_symbol_list): New interface.
4097 Properly reinitialize the symbol list obstack.
4098 Don't call add_symbols_from_enclosing_procs if we start from a
4099 static or global block.
4100 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4101 add_symbols_from_enclosing_procs.
4102 Add symtab data to cached entries.
4103 Handle symbols prefixed with
4104 "standard__" specially; strip prefix and don't look in local symbols.
4105 Do not include out of scope renaming symbols in list of
4106 symbols returned.
4107 Add const to block parameter.
4108 Move check for non-local, non-global symbols earlier.
4109 Remove timing stuff.
4110 (ada_lookup_symbol): New interface.
4111 Find symtab as well.
4112 (ada_lookup_symbol_nonlocal): New function.
4113
4114 (is_name_suffix): Enhance suffix detection to recognize
4115 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4116 (is_dot_digits_suffix): New function.
4117 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4118
4119 (ada_add_block_symbols): New interface. Use obstack to return results
4120 in a vector of struct ada_symbol_infos. Add symtab argument.
4121 Use new interface to add_defn_to_vec.
4122 Remove calls to fill_in_ada_prototype.
4123 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4124
4125 (ada_finish_decode_line_1): Add const qualification to local to fix
4126 warning.
4127 Start looking in static block for functions to avoid attempts
4128 to search frame chain for up-level variables.
4129 Adapt to new ada_sals_for_line interface.
4130 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4131 Handle quoting of the function name inside the spec string.
4132 Skip prologue when funfirstline is set and update the
4133 function documentation to that effect.
4134
4135 (debug_print_lines, debug_print_block, debug_print_blocks,
4136 debug_print_symtab): Remove.
4137
4138 (ada_main_name): New function.
4139 (ada_exception_breakpoint_type): New function.
4140 (is_known_support_routine): New function.
4141 (ada_find_printable_frame): Renamed from find_printable_frame and made
4142 global.
4143 Remove level parameter.
4144 Use new interface to select_frame.
4145
4146 (begin_command): Remove.
4147 (ada_adjust_exception_stop): New function.
4148 (ada_print_exception_stop): New function.
4149 (exception_name_from_cond): New function.
4150 (ada_report_exception_break): Replace disabled code with
4151 conditionalization on GNAT_GDB.
4152 Get the exception name from the condition string.
4153 Remove and move functionality into new functions
4154 ada_print_exception_breakpoint_task and
4155 ada_print_exception_breakpoint_nontask.
4156 (error_breakpoint_runtime_sym_not_found): New function.
4157 (is_runtime_sym_defined): New function.
4158 (ada_breakpoint_rewrite): Uncomment suppressed code.
4159 Use symbolic error-message and runtime-symbol names.
4160 Surround runtime symbol names in quotes.
4161 Allow non-specific breakpoints on exceptions and assertions before
4162 program starts.
4163
4164 (ada_is_tagged_type): Add parameter.
4165 (ada_is_tag_type): New function.
4166 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4167 (ada_variant_discrim_type): Ditto.
4168 (value_tag_from_contents_and_address): New function.
4169 (type_from_tag): New function.
4170 (struct tag_args): New structure used to communicate with
4171 ada_tag_name_1.
4172 (ada_tag_name_1): New function.
4173 (ada_tag_name): New function.
4174
4175 (ada_scan_number): Update comment.
4176 (find_struct_field): New function.
4177 (ada_search_struct_field): Make static.
4178 (ada_value_struct_elt): New version that returns references when
4179 given pointers or references to structs.
4180 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4181 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4182 interface.
4183 (ada_value_ind): Use new ada_to_fixed_value interface.
4184 (ada_coerce_ref): Ditto.
4185 (field_offset): Remove.
4186
4187 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4188 (ada_find_renaming_symbol): New function.
4189 (ada_prefer_type): Prefer named types over unnamed ones.
4190 (variant_field_index): New function.
4191 (contains_variant_part): Removed: subsumed by variant_field_index.
4192 (ada_template_to_fixed_record_type): New function, mostly from
4193 template_to_fixed_record_type.
4194 (template_to_fixed_record_type):
4195 Do not scan the type fields beyond the last one; prevents a
4196 potential SEGV.
4197 Handle case where variant field is listed BEFORE discriminant it
4198 depends on.
4199 Fix calculation of record length when bit length is
4200 not evenly divisible by char length.
4201 Move code to ada_template_to_fixed_record_type and call it.
4202
4203 (template_to_static_fixed_type): Revise comment.
4204 Modify to work on ordinary record types as well as templates,
4205 so as to handle fields that use ___XVE or ___XVU encodings.
4206 (to_record_with_fixed_variant_part): Fill out comment.
4207 Initialize C++ stuff in right type.
4208 Allow case where DVAL is null.
4209 Handle case where variant field is not last.
4210 Fix typo concerning record length.
4211 (to_fixed_record_type): Decomment disabled code.
4212 (to_fixed_record_type): Use variant_field_index instead of
4213 contains_variant_part.
4214 (to_fixed_variant_branch_type): Ditto.
4215 (to_fixed_array_type): Decomment disabled code.
4216 (ada_to_fixed_type): Convert tagged types to the specific type.
4217 Deactivate the size-check for array types in order to avoid
4218 some false size alarms.
4219 (to_static_fixed_type): Decomment disabled code.
4220 Modify to call template_to_static_fixed_type
4221 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4222 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4223 Remove valaddr argument, as it is never really used.
4224 (ada_to_fixed_value): Change interface to act on single struct value*
4225 operand.
4226 (adjust_pc_past_prologue): New function.
4227 (ada_attribute_name): Modify to take enum exp_opcode argument.
4228
4229 (ada_enum_name): Recognize new homonym-distinguishing convention.
4230 Adjust local variable's type to remove compiler warning.
4231 Fix a small problem in the part that unqualifies the enumeration name.
4232 (ada_value_binop): New function.
4233 (ada_value_equal): New function.
4234
4235 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4236 Don't give error message when not doing normal evaluation
4237 and a tagged type doesn't seem to contain a structure member.
4238 Give error message for packed arrays.
4239 For indexing arrays, handle pointers to packed arrays correctly.
4240 Handle case of 'first and 'last attributes of bare integral type
4241 without encoded subtype info.
4242 Remove some unnecessary casts.
4243 Fix uninitialized value of type in computing 'first, 'last, or 'length
4244 of array object.
4245 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4246 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4247 calls.
4248 Attributes are now exp_opcode values.
4249 Correct treatment of 'modulus.
4250 Better error message for taking 'length of wrong kind of type;
4251 improve comment.
4252 Change EVAL_NORMAL to noside for consistency.
4253 Use ada_value_binop for DIV, MOD, REM.
4254 Make special case out of array of length 0, since an argument
4255 of 0 upsets some platforms' malloc.
4256 Use OP_STRING instead of OP_ARRAY.
4257 For slice, add check that we have an array type before extracting
4258 a slice out of it. Avoids a SEGV.
4259 When evaluating an array slice, if the array type is a reference to
4260 an aligner type, then replace the aligner type by the actual type.
4261 Decomment disabled code.
4262 Remove some dead code.
4263 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4264 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4265 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4266 and UNOP_MBR to UNOP_IN_RANGE.
4267 If an array type has a parallel ___XVE type, then use it.
4268 Turn arrays into pointers for lvalue arrays.
4269 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4270 bounds error and handle 0-length slices.
4271 Use lim_warning.
4272 When selecting fields, apply ada_to_fixed_value (because the fields
4273 might have ___XVU or ___XVE encodings even if not dynamic.)
4274 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4275 (ada_is_system_address_type): New function.
4276
4277 (get_var_value): Use new interface to ada_lookup_symbol_list.
4278 (get_int_var_value): New interface.
4279 (to_fixed_range_type): Allow unknown bound, with warning.
4280 (ada_is_modular_type): Decomment disabled code.
4281 (ADA_OPERATORS): New definition.
4282 (ada_operator_length): New function.
4283 (ada_expr_op_name): New function.
4284 (ada_forward_operator_length): New function.
4285 (ada_dump_subexp_body): New function.
4286 (ada_print_subexp): New function.
4287 (ada_exp_descriptor): New constant.
4288 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4289 (ada_language_defn): Add ada_exp_descriptor entry.
4290 Change ada_parse => parse.
4291 Add post-parser entry.
4292 Use ada-specific non-local symbol lookup.
4293 Don't use C-style arrays.
4294 String lower-bound is 1.
4295 Decomment disabled code.
4296 (parse): New function.
4297 New fields ada_translate_error_message, ada_lookup_symbol,
4298 ada_lookup_minimal_symbol.
4299
4300 * ada-lang.h: Update copyright dates.
4301 Replace the mangle/demangle terminology throughout by the
4302 more appropriate encode/decode one.
4303 Include breakpoint.h.
4304 Forward declare struct partial_symbol, struct block.
4305 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4306 (EXTRACT_ADDRESS): Remove.
4307 (EXTRACT_INT): Remove.
4308 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4309 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4310 (MAX_RENAMING_CHAIN_LENGTH): Define.
4311 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4312
4313 (enum task_states): Remove.
4314 ada_task_states: Remove.
4315 (fat_string): Remove.
4316 (struct entry_call): Remove.
4317 (struct task_fields): Remove.
4318 (struct task_entry): Remove.
4319
4320 (struct ada_symbol_info): Define.
4321 (enum ada_attribute): Remove.
4322 (enum ada_operator): Define.
4323
4324 (ada_get_field_index): Declare.
4325 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4326 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4327 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4328 (ada_lookup_symbol_list): New interface.
4329 (ada_decode_symbol): Declare.
4330 (ada_decode): Declare.
4331 (ada_lookup_symbol): New interface.
4332 (ada_update_initial_language): Declare.
4333 (ada_lookup_simple_minsym): Declare.
4334 (user_select_syms): New interface.
4335 (ada_sals_for_line): Declare.
4336 (ada_is_tagged_type): New interface.
4337 (ada_tag_name): Declare.
4338 (ada_lookup_struct_elt_type): Remove declaration.
4339 (ada_search_struct_field): Remove declaration.
4340 (ada_attribute_name): New interface.
4341 (ada_is_system_address_type): Declare.
4342 (ada_to_fixed_value): Remove declaration.
4343 (ada_template_to_fixed_record_type_1): Declare.
4344 (get_int_var_value): New interface.
4345 (ada_find_any_symbol): Declare.
4346 (ada_find_renaming_symbol): Declare.
4347 (ada_mangle): Rename to ada_encode.
4348 (ada_simple_renamed_entity): Remove const.
4349 (ada_main_name): Declare.
4350 (get_current_task): Rename to ada_get_current_task.
4351 (get_entry_number): Remove declaration.
4352 (ada_report_exception_break): Remove declaration.
4353 (ada_print_exception_breakpoint_nontask): Declare.
4354 (ada_print_exception_breakpoint_task): Declare.
4355 (ada_find_printable_frame): Declare.
4356
4357 * ada-lex.l: Update copyright notices.
4358 Use xmalloc and xfree instead of malloc and free.
4359 Use new interface to name_lookup.
4360 Use new interface to
4361 ada_mangle=>ada_encode.
4362 Redo handling of '$...' variable to parallel current treatment
4363 in c-exp.y.
4364 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4365 digit_to_int, strtoulst, processInt, processReal, processId,
4366 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4367 yywrap): Protoize.
4368
4369 (processInt): Use cast to remove harmless warning.
4370 (processReal): Modify to get rid of compiler warning on scan formats.
4371
4372 (processId): Replace xmalloc with obstack_alloc for name and remove
4373 call to ada_name_string_cleanup.
4374 Remove obsolete disabled code.
4375 (name_lookup): Ditto.
4376 New interface.
4377 Use obsavestring on temp_parse_space instead of savestring
4378 on name, and remove call to ada_name_string_cleanup.
4379 Free string returned from ada_simple_renamed_entity.
4380 Use new interface to ada_lookup_symbol_list.
4381 Decomment disabled code.
4382 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4383 not types.
4384 When a type name lookup succeeds as a result of
4385 lookup_primitive_typename, check for regular type entry that has not
4386 yet been read in.
4387 Limit length of chain of renamed symbols we are willing to follow.
4388 Do not break names beginning with "standard__" into segments.
4389 (block_lookup): Use new interface to ada_lookup_symbol_list.
4390
4391 * ada-typeprint.c: Update copyright notice.
4392 (demangled_type_name): Rename to decoded_type_name.
4393 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4394 (print_range_bound): Correct handling of negative
4395 bounds that make the index type looked unsigned under STABS.
4396 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4397 (print_range_type_named): Use the builtin int type if no type
4398 corresponding to the given type name could be found.
4399 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4400 Add some bullet-proofing.
4401 (print_variant_clauses): Allow for variant branches with ___XVU
4402 encodings that are not dynamic fields.
4403 Use new interface to ada_is_tagged_type.
4404 (print_record_type): Allow for fields with ___XVE encodings that
4405 are not dynamic fields.
4406 Use new interface to ada_is_tagged_type.
4407 (ada_print_type): ada_is_array_descriptor =>
4408 ada_is_array_descriptor_type.
4409
4410 * ada-valprint.c: Update copyright notice.
4411 Include gdb_string.h
4412 Include infcall.h
4413 (ui_memcpy): New function.
4414 (ada_print_floating): New function.
4415 (ada_print_str): Order arguments correctly.
4416 Correct handling of empty arrays and arrays of 0-length items.
4417 ada_is_array_descriptor => ada_is_array_descriptor_type
4418 Print values of type System.Address in hexadecimal format.
4419 Use ada_print_floating to print floating-point numbers in Ada format.
4420 Print class tag values with type names.
4421 No longer print the address of reference values. Avoids
4422 a potential confusion.
4423 (ada_value_print): Stop printing the object type for reference
4424 values, but preserve that behavior for access types. Avoids
4425 a potential confusion.
4426 Simplify one conditional expression, as the first part is now
4427 necessarily true.
4428 ada_is_array_descriptor => ada_is_array_descriptor_type
4429 Add check for arrays for null records, and print them by hand.
4c4b4cd2 4430
f65f91b5
JB
44312004-06-01 Jim Blandy <jimb@redhat.com>
4432
4433 * ppc-tdep.h: Delete unused 'regoff' member.
4434 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4435
d4687fa0
MC
44362004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4437
4438 Fix PR symtab/1661.
4439 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4440 (hpread_read_struct_type): Likewise.
4441
de169ec9
AC
44422004-06-01 Andrew Cagney <cagney@gnu.org>
4443
c6902d46
AC
4444 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4445 instead of xasprintf.
4446 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4447 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4448 (mi_cmd_data_list_register_names)
4449 (mi_cmd_data_list_changed_registers)
4450 (mi_cmd_data_list_register_values)
4451 (get_register, mi_cmd_data_write_register_values)
4452 (mi_cmd_data_write_register_values)
4453 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4454 (mi_cmd_target_download, mi_cmd_target_select)
4455 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4456 (mi_execute_cli_command, mi_execute_async_cli_command)
4457 (mi_execute_async_cli_command): Ditto.
4458 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4459 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4460
6085fc2d
AC
4461 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4462 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4463 error_last_message instead of mi_error_last_message.
4464 * mi/mi-main.c (mi_error_last_message): Delete function.
4465
de169ec9
AC
4466 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4467 "invalid number of columns" error. Delete redundant "out of
4468 memory" check.
4469
1fc7d519
MK
44702004-05-31 Mark Kettenis <kettenis@gnu.org>
4471
6cfb2041
MK
4472 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4473 (gregset_t, fpregset_t): Remove typedefs.
4474 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4475 (REG_OFFSET): Rename argument.
4476 (i386bsd_r_reg_offset): Rename from reg_offset.
4477 (REG_ADDR): Remove macro.
4478 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4479 functions.
4480 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4481 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4482 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4483 instead of supply_gregset.
4484 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4485 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4486 instead of fill_gregset.
4487 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4488
1fc7d519
MK
4489 * i386bsd-nat.c: Don't include "gregset.h".
4490 (supply_gregset, fill_gregset): Make static.
4491 (supply_fpregset, fill_fpregset): Remove.
4492 * Makefile.in (i386bsd-nat.o): Update dependencies.
4493
2c34abbe
MK
44942004-05-30 Mark Kettenis <kettenis@gnu.org>
4495
448724fb
MK
4496 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4497 "gdb_assert.h". Con't include "gregset.h".
4498 (fbsd_make_corefile_notes): Use regset-based core file support
4499 instead off fill_gregset and fill_fpregset.
4500 * Makefile.in (fbsd-proc.o): Update dependencies.
4501
5ca8ca7c
MK
4502 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4503 instructions.
4504 (m88k_frame_prev_register): Simplify code a bit.
4505
593adc23
MK
4506 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4507 (amd64_collect_fpregset): New function.
4508 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4509
8d1b517b
MK
4510 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4511
7fdafb5a
MK
4512 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4513 (i386_collect_gregset): New function.
4514 (i386_supply_fpregset): Adjust comment.
4515 (i386_collect_fpregset): New function.
4516 (i386_regset_from_core_section): Use i386_collect_gregset and
4517 i386_collect_fpregset.
4518
8693c419
MK
4519 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4520 handle VALUEP being null.
4521
2c34abbe
MK
4522 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4523
45d134d8
MK
45242004-05-29 Mark Kettenis <kettenis@gnu.org>
4525
1698f4e7
MK
4526 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4527
45d134d8
MK
4528 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4529 assembler in OpenBSD 3.5-current.
4530 (amd64obsd_sigcontext_addr): Likewise.
4531
691d145a
JB
45322004-05-28 Jim Blandy <jimb@redhat.com>
4533
4534 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4535 register set, so our regcache isn't declared "legacy" and our E500
4536 pseudoregister read and write functions aren't ignored.
4537 (rs6000_register_byte, rs6000_register_raw_size,
4538 rs6000_register_virtual_type, rs6000_register_convertible,
4539 rs6000_register_convert_to_virtual,
4540 rs6000_register_convert_to_raw): Deleted.
4541 (rs6000_register_type, rs6000_convert_register_p,
4542 rs6000_register_to_value, rs6000_value_to_register): New
4543 functions.
4544 (rs6000_gdbarch_init): Don't register
4545 gdbarch_deprecated_register_size,
4546 gdbarch_deprecated_register_bytes,
4547 gdbarch_deprecated_register_byte,
4548 gdbarch_deprecated_register_raw_size,
4549 gdbarch_deprecated_register_virtual_type,
4550 gdbarch_deprecated_register_convertible,
4551 gdbarch_deprecated_register_convert_to_virtual, or
4552 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4553 register gdbarch_register_type, gdbarch_convert_register_p,
4554 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4555
18ed0c4e
JB
45562004-05-26 Jim Blandy <jimb@redhat.com>
4557
4558 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4559 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4560 functions, updated to match the register numberings used in GCC.
4561 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4562 rs6000_dwarf2_reg_to_regnum as register number conversions
4563 functions for STABS and Dwarf2.
4564
779af9e3
RC
45652004-05-26 Randolph Chung <tausq@debian.org>
4566
4567 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4568 in header file.
4569
c23968a2
JB
45702004-05-25 Joel Brobecker <brobecker@gnat.com>
4571
4572 * NEWS: Document new "start" command.
4573
3a7d1c27
RC
45742004-05-25 Randolph Chung <tausq@debian.org>
4575
4576 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4577 hppa-linux.
4578
43613416
RC
45792004-05-25 Randolph Chung <tausq@debian.org>
4580
4581 * hppa-hpux-tdep.c (offsetof): Define.
4582 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4583 (hppa32_hpux_frame_base_before_sigtramp)
4584 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4585 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4586 (hppa64_hpux_frame_base_before_sigtramp)
4587 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4588 functions.
4589 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4590 (hppa_hpux_sigtramp_frame_unwind_cache)
4591 (hppa_hpux_sigtramp_frame_this_id)
4592 (hppa_hpux_sigtramp_frame_prev_register)
4593 (hppa_hpux_sigtramp_frame_unwind)
4594 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4595 (hppa_hpux_init_abi): Register sigtramp unwinder.
4596 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4597
6d1be3f1
RC
45982004-05-25 Randolph Chung <tausq@debian.org>
4599
4600 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4601 and multiple stack unwinds.
4602 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4603
97c34f65
AC
46042004-05-25 Andrew Cagney <cagney@gnu.org>
4605
4606 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4607 * symfile-mem.h: Delete file.
4608 * symfile-mem.c: Do not include "symfile-mem.h".
4609 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4610 "struct bfd_section". When an error do not bother returning NULL.
4611 (add_symbol_file_from_memory_command): Use "struct bfd" and
4612 "struct bfd_section".
4613 * Makefile.in (symfile_mem_h): Delete.
4614 (symfile-mem.o): Update dependencies.
4615
e23cbd82
NR
46162004-05-25 Nick Roberts <nickrob@gnu.org>
4617
4618 * gdb-mi.el: New file.
4619
20d2ca3e
AC
46202004-05-25 Andrew Cagney <cagney@gnu.org>
4621
4622 * inftarg.c: Include "observer.h".
4623 (child_attach, child_create_inferior): Notify inferior_created.
4624 * corelow.c: Include "observer.h".
4625 (core_open): Notify inferior_created.
4626 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4627
c27cda74
AC
46282004-05-25 Andrew Cagney <cagney@gnu.org>
4629
4630 * target.h (struct target_ops): Add from_tty to
4631 to_create_inferior.
4632 (target_create_inferior, find_default_create_inferior): Update.
4633 * infcmd.c (run_command): Update.
4634 * wince.c (child_create_inferior): Update.
4635 * win32-nat.c (child_create_inferior): Update.
4636 * uw-thread.c (uw_thread_create_inferior): Update.
4637 * thread-db.c (thread_db_create_inferior): Update.
4638 * target.c (debug_to_create_inferior)
4639 (find_default_create_inferior): Update.
4640 (maybe_kill_then_create_inferior): Update.
4641 * sol-thread.c (sol_thread_create_inferior): Update.
4642 * remote.c (extended_remote_async_create_inferior)
4643 (extended_remote_create_inferior): Update.
4644 * remote-vx.c (vx_create_inferior): Update.
4645 * remote-st.c (st2000_create_inferior): Update.
4646 * remote-sim.c (gdbsim_create_inferior): Update.
4647 * remote-sds.c (sds_create_inferior): Update.
4648 * remote-rdp.c (remote_rdp_create_inferior): Update.
4649 * remote-rdi.c (arm_rdi_create_inferior): Update.
4650 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4651 * remote-e7000.c (e7000_create_inferior): Update.
4652 * procfs.c (procfs_create_inferior): Update.
4653 * ocd.c (ocd_create_inferior): Update.
4654 * ocd.h (ocd_create_inferior): Update.
4655 * nto-procfs.c (procfs_create_inferior): Update.
4656 * monitor.c (monitor_create_inferior): Update.
4657 * lin-lwp.c (lin_lwp_create_inferior): Update.
4658 * inftarg.c (child_create_inferior): Update.
4659 * hpux-thread.c (hpux_thread_create_inferior): Update.
4660 * gnu-nat.c (gnu_create_inferior): Update.
4661
1db2a798
AC
46622004-05-25 Andrew Cagney <cagney@gnu.com>
4663
4664 * MAINTAINERS: Update e-mail address.
4665
007d08bb
RC
46662004-05-24 Randolph Chung <tausq@debian.org>
4667
4668 * thread.c (info_threads_command, thread_apply_all_command)
4669 (thread_apply_command, thread_command, do_captured_thread_select):
4670 Remove HPUXHPPA-specific code.
4671
69e7b95e
RC
46722004-05-24 Randolph Chung <tausq@debian.org>
4673
4674 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4675 unused symbols.
4676 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4677 references.
4678
a4d5f2e0
JB
46792004-05-24 Joel Brobecker <brobecker@gnat.com>
4680
4681 * infcmd.c (kill_if_already_running): New function, extracted
4682 from run_command().
4683 (run_command): Replace extracted code by call to
4684 kill_if_already_running().
4685 (start_command): New function.
4686 (_initialize_infcmd): Add "start" command.
4687
bf2ca189
MK
46882004-05-24 Mark Kettenis <kettenis@gnu.org>
4689
4690 Add OpenBSD/m88k support.
4691 * NEWS (New native configurations): Mention OpenBSD/m88k.
4692 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4693 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4694 * Makefile.in (m88k_tdep_h): New variable.
4695 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4696 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4697 * configure.host: Add m88*-*-openbsd*.
4698 * configure.tgt: Add m88*-*-openbsd*.
4699
80fadb11
JB
47002004-05-24 Jim Blandy <jimb@redhat.com>
4701
4702 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4703 to approve changes.
4704
19e2d14b
KB
47052004-05-24 Kevin Buettner <kevinb@redhat.com>
4706
4707 * symtab.c (fixup_section): Search section table when lookup by
4708 name fails.
4709
1b07b470
RC
47102004-05-24 Randolph Chung <tausq@debian.org>
4711
4712 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4713 be "small_struct".
4714
368702b1
MK
47152004-05-24 Mark Kettenis <kettenis@gnu.org>
4716
5df97fde
MK
4717 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4718 register number in regcache_raw_collect call.
4719 (m68kbsd_collect_fpregset): Likewise.
4720 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4721
368702b1
MK
4722 * regset.h (struct regset): Add back `regset' member.
4723
a770d4ec
MK
47242004-05-23 Mark Kettenis <kettenis@gnu.org>
4725
70f9f479
MK
4726 * configure.in: Check for td_pcb in `struct thread'.
4727 * configure, config.in: Regenerated.
4728
2e16d79e
MK
4729 * dpx2-nat.c: Remove file.
4730 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4731 (dpx2-nat.o): Remove dependencies.
4732
492cf391
MK
4733 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4734 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4735 (amd64obsd_supply_pcb): New function.
4736 (_initialize_amd64obsd_nat): Enable libkvm interface.
4737 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4738 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4739 (LOADLIBES): New variable.
4740
a770d4ec
MK
4741 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4742 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4743 (sparc32nbsd_supply_pcb): New function.
4744 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4745 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4746 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4747 (LOADLIBES): New variable.
4748
9ea75c57
MK
47492004-05-22 Mark Kettenis <kettenis@gnu.org>
4750
2e0c3539
MK
4751 * bsd-kvm.c, bsd-kvm.h: New files.
4752 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4753 "bsd-kvm.h".
4754 (i386fbsd_supply_pcb): New function.
4755 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4756 (i386fbsd-nat.o): Update dependencies.
4757 (bsd_kvm_h): New variable.
4758 (bsd-kvm.o): New dependency.
4759 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4760 (LOADLIBES): New variable.
4761
9ea75c57
MK
4762 * regset.c: Tweak comment.
4763 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4764 macro.
4765 * regset.h: Update copyright year.
4766 (struct regset): Remove `descr' member, add `gdbarch' member.
4767 (regset_alloc): Adjust prototype and comment.
4768 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4769 (i386_supply_fpregset): Likewise.
4770 (i386_regset_from_core_section): Update call to regset_alloc.
4771 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4772 REGSET->arch.
4773 (i386obsd_aout_regset_from_core_section): Update call to
4774 regset_alloc.
4775 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4776 REGSET->arch.
4777 (i386nbsd_aout_regset_from_core_section): Update call to
4778 regset_alloc.
4779 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4780 REGSET->arch.
4781 (amd64_regset_from_core_section): Update call to regset_alloc.
4782 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4783 REGSET->arch.
4784 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4785 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4786 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4787 (sparc32nbsd_init_abi): Update call to regset_alloc.
4788 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4789 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4790 (sparc64obsd_init_abi): Update call to regset_alloc.
4791 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4792 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4793 (sparc64nbsd_init_abi): Update call to regset_alloc.
4794 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4795 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4796 (sparc64fbsd_init_abi): Update call to regset_alloc.
4797
867e2dc5
JB
47982004-05-22 Jim Blandy <jimb@redhat.com>
4799
4800 * ppc-tdep.h (spe_register_p): New declaration.
4801 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4802 ppc_spefscr_regnum.
4803 * rs6000-tdep.c (spe_register_p): New function.
4804 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4805 spefscr.
4806 (rs6000_gdbarch_init): Initialize the new members of the tdep
4807 structure.
4808
617a4cba
JB
48092004-05-21 Jim Blandy <jimb@redhat.com>
4810
0397dee1
JB
4811 * ppc-linux-nat.c (fetch_register): Move code back to be next
4812 to the comment that describes it. (Moved code, instead of
4813 comment, for symmetry with store_register.)
4814
617a4cba
JB
4815 Allocate regset structures in the gdbarch's obstack, not using
4816 xmalloc.
4817 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4818 Add 'arch' argument. Allocate the regset on arch's obstack, not
4819 using xmalloc.
4820 * regset.h (regset_alloc): Update declaration.
4821 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4822 gdbarch argument.
4823 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4824 * i386-tdep.c (i386_regset_from_core_section): Same.
4825 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4826 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4827 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4828 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4829 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4830 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4831
9aa3914d
JB
48322004-05-21 Joel Brobecker <brobecker@gnat.com>
4833
4834 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4835
99c87dab
JB
48362004-05-21 Jim Blandy <jimb@redhat.com>
4837
4838 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4839 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4840
c2b6b4aa
JB
48412004-05-20 Jim Blandy <jimb@redhat.com>
4842
4843 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4844
144529d0
MK
48452004-05-20 Mark Kettenis <kettenis@gnu.org>
4846
4847 * regset.h: Make prototype const-correct.
4848 * regset.c (regset_xmalloc): Make const-correct.
4849
4725b721
PH
48502004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4851
4852 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4853 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4854 (symbol_search_name): Declare.
4855
4856 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4857 (iter_name_next_hashed): Ditto.
4858 (iter_name_next_linear): Ditto.
4859 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4860
4861 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4862 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4863 (symbol_search_name): New function.
4864
4865 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4866
4867 * minsyms.c (build_minimal_symbol_hash_tables): Change
4868 test for adding to demangled hash table to check for difference
4869 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4870
be07a590
JB
48712004-05-19 Jim Blandy <jimb@redhat.com>
4872
4873 Use a constructor function to create regset structures.
4874 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4875 (struct regset): Use supply_regset_ftype. Add new
4876 'collect_regset' member.
4877 (regset_xmalloc): New declaration.
4878 * regset.c: New file.
4879 * am64-tdep.c (amd64_regset_from_core_section): Use
4880 regset_xmalloc to construct regset structures.
4881 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4882 * i386-tdep.c (i386_regset_from_core_section): Same.
4883 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4884 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4885 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4886 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4887 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4888 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4889 * Makefile.in (COMMON_OBS): Add regset.o.
4890 (regset.o): New rule.
4891
604368f5
JB
48922004-05-19 Joel Brobecker <brobecker@gnat.com>
4893
4894 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4895 and pthread_cond_wait.c.
4896
82d69f8b
JB
48972004-05-18 Jim Blandy <jimb@redhat.com>
4898
4899 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4900 before the mach-specific switch, and then let the individual cases
4901 override the defaults, rather than leaving them uninitialized
4902 until the switch and then setting them in each case.
4903
5859efe5
RC
49042004-05-18 Randolph Chung <tausq@debian.org>
4905
4906 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4907 millicode functions.
4908
9ca80cf8
RC
49092004-05-18 Randolph Chung <tausq@debian.org>
4910
4911 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4912 references to dld_flags_buffer consistent.
4913
ed70ba00
RC
49142004-05-18 Randolph Chung <tausq@debian.org>
4915
4916 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4917 it for unwinding the stack.
4918
63100632
RC
49192004-05-18 Randolph Chung <tausq@debian.org>
4920
4921 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4922 Undefine these so we can overide them using gdbarch.
4923
090ccbb7
RC
49242004-05-18 Randolph Chung <tausq@debian.org>
4925
4926 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4927 handling for 64-bit HPUX (elf).
4928
594706e6
DJ
49292004-05-18 Daniel Jacobowitz <dan@debian.org>
4930
4931 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4932 constants.
4933 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4934 * ia64-tdep.c (examine_prologue): Likewise.
4935 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4936 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4937
e5483145
MK
49382004-05-18 Mark Kettenis <kettenis@gnu.org>
4939
4940 * vax-tdep.c (vax_return_value): Implement
4941 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4942
caed1a45
MK
49432004-05-17 Mark Kettenis <kettenis@gnu.org>
4944
4945 * vax-tdep.c (vax_return_value): Fix typo.
4946
3c0b7db2
AC
49472004-05-17 Andrew Cagney <cagney@redhat.com>
4948
5aae53e5
AC
4949 * MAINTAINERS: Mark Salter was also responsible for
4950 testsuite/config/
4951
3c0b7db2
AC
4952 * NEWS: Mention signal fixes.
4953
22b0923d
RC
49542004-05-17 Randolph Chung <tausq@debian.org>
4955
4956 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4957 check to see if we are unwinding an export stub. Export stubs clobber
4958 the %rp in the call path and stores the original rp in a stack slot.
4959
22f2b2f3
JB
49602004-05-17 Jim Blandy <jimb@redhat.com>
4961
4962 * MAINTAINERS: Update address for J.T. Conklin.
4963
cea96d64
RC
49642004-05-17 Randolph Chung <tausq@debian.org>
4965
4966 * hppa-tdep.c: Remove superfluous #include's.
4967 * Makefile.in (hppa-tdep.o): Update dependencies.
4968
f08f6a4a
RC
49692004-05-17 Randolph Chung <tausq@debian.org>
4970
4971 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4972 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4973 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4974 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4975 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4976 Remove static function declarations.
4977
51da707a
MK
49782004-05-17 Mark Kettenis <kettenis@gnu.org>
4979
caed1a45
MK
4980 * alphabsd-nat.c: Update copyright year.
4981 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4982
c0c2b0db
MK
4983 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4984 and M68K_A2_REGNUM.
4985
51da707a
MK
4986 * m68k-tdep.c (m68k_svr4_return_value): Implement
4987 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4988
8d027a04
MK
49892004-05-16 Mark Kettenis <kettenis@gnu.org>
4990
4991 * sol-thread.c Update copyright year. Fix various coding
4992 standards violations. Tweak a few comments.
4993 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4994 Delete prototypes.
4995
0d99fdb9
RC
49962004-05-15 Randolph Chung <tausq@debian.org>
4997
4998 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4999 as pointer instead of array reference since HPUX compiler does
5000 not accept unsized array arguments.
5001 * somsolib.c (dld_flags_buffer): Use constant array size.
5002
f7e3843a
MK
50032004-05-15 Mark Kettenis <kettenis@gnu.org>
5004
0fe85704
MK
5005 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5006 offset with decimal offset.
5007 (amd64obsd_sigcontext_addr): Return correct address for entire
5008 signal trampoline.
5009
a54f9a00
MK
5010 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5011 instead of get_frame_base.
5012
feae6502
MK
5013 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5014 (fill_gregset): Use regcache_raw_collect.
5015
0382d099
MK
5016 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5017 ppcobsd-tdep.c.
5018
f7e3843a
MK
5019 * config/sparc/tm-nbsd64.h: Remove file.
5020 * config/tm-sunos.h: Remove file.
5021
773df3e5
JB
50222004-05-15 Joel Brobecker <brobecker@gnat.com>
5023
5024 * rs6000-tdep.c (store_param_on_stack_p): New function,
5025 an improved version of some code extracted from skip_prologue().
5026 (skip_prologue): Use store_param_on_stack_p() to detect
5027 instructions saving a parameter on the stack. Detect when r0
5028 is used to save a parameter.
5029 Do not mark "li rx, SIMM" instructions as part of the prologue,
5030 unless the following instruction is also part of the prologue.
5031
95918acb
AC
50322004-05-14 Andrew Cagney <cagney@redhat.com>
5033
06f32659
AC
5034 * infrun.c (handle_inferior_event): Simplify
5035 STEP_OVER_UNDEBUGGABLE.
5036
95918acb
AC
5037 * infrun.c (handle_step_into_function): Delete function.
5038 (handle_inferior_event): Inline calls to
5039 handle_step_into_function.
5040
40711ff1 50412004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5042
5043 * rs6000-nat.c: Fix a comment.
5044
02f60eae
JB
50452004-05-12 David Anderson <davea@sgi.com>
5046
5047 Committed by Jim Blandy <jimb@redhat.com>:
5048 * regcache.c (struct regcache_descr): fix comment spelling.
5049
552e377b
JB
50502004-05-13 J. Brobecker <brobecker@gnat.com>
5051
5052 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5053 Fixes a link link failure.
5054
349766b2
JB
50552004-05-13 J. Brobecker <brobecker@gnat.com>
5056
5057 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5058 error that was causing the build to fail.
5059
0d4d5484
JB
50602004-05-13 J. Brobecker <brobecker@gnat.com>
5061
5062 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5063 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5064
0b30808c
AC
50652004-05-13 Andrew Cagney <cagney@redhat.com>
5066
5067 * infrun.c (handle_inferior_event): Check for
5068 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5069 calls. Update comments.
5070
cdf2c5f5
JB
50712004-05-13 Jim Blandy <jimb@redhat.com>
5072
063715bf
JB
5073 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5074 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5075 (store_regs_user_thread, store_regs_kernel_thread): Use
5076 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5077 * ppc-linux-nat.c (fill_gregset): Same.
5078 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5079 (ppc_linux_sigtramp_cache): Same.
5080 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5081 (ppcnbsd_sigtramp_cache_init): Same.
5082 * rs6000-nat.c (fetch_core_registers): Same.
5083 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5084 (rs6000_frame_cache): Same.
5085
cdf2c5f5
JB
5086 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5087 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5088 of assuming that the gprs are numbered starting with zero.
5089 * ppc-linux-nat.c (fill_gregset): Same.
5090 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5091 * ppcnbsd-nat.c (getregs_supplies): Same.
5092 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5093 * rs6000-nat.c (fetch_core_registers): Same.
5094 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5095
450bd37b
MS
50962004-05-07 Michael Snyder <msnyder@redhat.com>
5097
5098 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5099 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5100
4a72a2a6
AC
51012004-05-13 Andrew Cagney <cagney@redhat.com>
5102
5103 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5104
8edfa926
BM
51052004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5106
5107 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5108 base_address for shared libraries.
5109
723e0e3d
BM
51102004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5111
5112 * MAINTAINERS (write after approval): Add myself.
5113
00d4360e
UW
51142004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5115
5116 * breakpoint.c (bpstat_stop_status): Add new argument
5117 STOPPED_BY_WATCHPOINT. Use it instead of testing
5118 target_stopped_data_address agaist 0 to check whether
5119 or not we stopped due to a hardware watchpoint.
5120 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5121 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5122 with new argument.
5123
ec76baa5
JB
51242004-05-12 Jim Blandy <jimb@redhat.com>
5125
5126 * configure.in: When checking whether we should use the -bbigtoc
5127 option, don't forget to restore the original value of LDFLAGS.
5128 * configure: Regenerated.
5129
f2c9ca08
AC
51302004-05-12 Andrew Cagney <cagney@redhat.com>
5131
5132 * thread.c (load_infrun_state): Delete step_sp.
5133 * infrun.c (context_switch): Ditto.
5134 * inferior.h (step_sp): Ditto.
5135 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5136 * gdbthread.h (struct thread_info, save_infrun_state)
5137 (restore_infrun_state): Ditto.
5138
090ddb2a
UW
51392004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5140
5141 * MAINTAINERS (write after approval): Add myself.
5142
8aad930b
AC
51432004-05-12 Andrew Cagney <cagney@redhat.com>
5144
5145 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5146 eliminate reference to step_sp.
5147 (struct execution_control_state, init_execution_control_state)
5148 (handle_inferior_event, keep_going): Delete update_step_sp and
5149 step_sp.
5150 * infcmd.c (step_sp): Note that variable is unused.
5151
922d5ae0
AC
51522004-05-11 Andrew Cagney <cagney@redhat.com>
5153
5154 * infrun.c (step_over_function): Delete function.
5155 (handle_step_into_function): Use insert_step_resume_breakpoint.
5156 (insert_step_resume_breakpoint): Fix assertion.
5157
017c5ca5
NR
51582004-05-11 Nick Roberts <nickrob@gnu.org>
5159
5160 * utils.c (defaulted_query): Just use the normal query input type
5161 when printing the annotations.
5162
42edda50
AC
51632004-05-11 Andrew Cagney <cagney@redhat.com>
5164
5165 * infrun.c (handle_inferior_event): Simplify code handling
5166 step-into or return-from a signal trampoline.
5167
d28b44a7
AC
51682004-05-11 Andrew Cagney <cagney@redhat.com>
5169
5170 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5171 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5172
383f0f5b
JB
51732004-05-10 Jim Blandy <jimb@redhat.com>
5174
d0b57c3a
JB
5175 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5176 with a call to internal_error.
5177
383f0f5b
JB
5178 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5179 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5180 processor variant lacks those registers.
5181 (ppc_floating_point_unit_p): Change description to make it clear
5182 that this returns info about the ISA, not the ABI.
5183 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5184 return true or false by checking tdep->ppc_fp0_regnum and
5185 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5186 arch/mach switching done in rs6000_gdbarch_init; it's better to
5187 keep that logic there, and just check the results here.
5188 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5189 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5190 floating-point registers.
5191 (ppc_supply_fpregset, ppc_collect_fpregset)
5192 (rs6000_push_dummy_call, rs6000_extract_return_value)
5193 (rs6000_store_return_value): Assert that we have floating-point
5194 registers.
5195 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5196 (rs6000_frame_cache): Don't note the locations at which
5197 floating-point registers were saved if we have no fprs.
5198 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5199 registers.
5200 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5201 (store_regs_user_thread, store_regs_kernel_thread): Only call
5202 supply_fprs / fill_fprs if we actually have floating-point
5203 registers.
5204 (special_register_p): Check ppc_fpscr_regnum before matching
5205 against it.
5206 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5207 supply / collect fpscr if we don't have it.
5208 * ppc-bdm.c: #include "gdb_assert.h".
5209 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5210 have floating-point registers, since I can't test this code on
5211 FP-free systems to adapt it.
5212 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5213 fpscr and floating point register numbers if they don't exist.
5214 (fetch_register): Assert that we have floating-point registers
5215 before we reach the code that handles them.
5216 (store_register): Same. And use tdep instead of calling
5217 gdbarch_tdep again.
5218 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5219 don't have them.
5220 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5221 fprs and fpscr if we don't have them.
5222 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5223 don't have them.
5224 * ppcnbsd-nat.c: #include "gdb_assert.h".
5225 (getfpregs_supplies): Assert that we have floating-point registers.
5226 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5227 * ppcobsd-tdep.c: #include "gdb_assert.h".
5228 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5229 have floating-point registers.
5230 * rs6000-nat.c (regmap): Don't match against the fpscr and
5231 floating point register numbers if they don't exist.
5232 (fetch_inferior_registers, store_inferior_registers,
5233 fetch_core_registers): Only fetch / store / supply the
5234 floating-point registers and the fpscr if we have them.
5235 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5236 (ppcobsd-tdep.o): Update dependencies.
5237
15960608
AC
52382004-05-10 Andrew Cagney <cagney@redhat.com>
5239
5240 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5241 (context_switch): Do not switch through_sigtramp_breakpoint.
5242 * gdbthread.h (save_infrun_state, load_infrun_state)
5243 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5244 and structure member.
5245 * thread.c (load_infrun_state, save_infrun_state): Update.
5246
5ab5aa0f
MK
52472004-05-10 Mark Kettenis <kettenis@gnu.org>
5248
5249 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5250
da78b0e7
DJ
52512004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5252
5253 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5254 throughout.
5255 * aclocal.m4: Regenerate.
5256
cca0d3b0
NW
52572004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5258
5259 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5260
d303a6c7
AC
52612004-05-10 Andrew Cagney <cagney@redhat.com>
5262
5263 * infrun.c (check_sigtramp2): Delete function.
5264 (handle_inferior_event): When single stepping, and taking a
5265 signal, set a breakpoint at the signal return address. Delete
5266 redundant calls to check_sigtramp2.
5267 (insert_step_resume_breakpoint): New function.
5268 (through_sigtramp_breakpoint, handle_inferior_event)
5269 (follow_exec, wait_for_inferior, fetch_inferior_event)
5270 (currently_stepping, keep_going): Delete most uses of
5271 through_sigtramp_breakpoint, not that it should be deleted.
5272 (delete_breakpoint_current_contents): Delete function.
5273
03f4cc20
RC
52742004-05-10 Randolph Chung <tausq@debian.org>
5275
5276 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5277 target.
5278 * config/pa/tm-linux.h: New file.
5279
37fc812e
DJ
52802004-05-10 Daniel Jacobowitz <drow@mvista.com>
5281
5282 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5283 of prefixes. Don't print the prefix twice in the CLI.
5284
26c0b942
JB
52852004-05-10 Jim Blandy <jimb@redhat.com>
5286
2e56e9c1
JB
5287 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5288 collect all the gprs.
5289
26c0b942
JB
5290 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5291 loop collecting gprs.
5292
dc497459
AC
52932004-05-09 Andrew Cagney <cagney@redhat.com>
5294
5295 * remote-vx.c (net_step): Delete step-range code.
5296 * remote.c (remote_resume, init_all_packet_configs)
5297 (set_remote_protocol_E_packet_cmd)
5298 (show_remote_protocol_E_packet_cmd)
5299 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5300 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5301 (show_remote_protocol_e_packet_cmd): Ditto.
5302
0543f387
MK
53032004-05-09 Mark Kettenis <kettenis@gnu.org>
5304
c481d1ca
MK
5305 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5306
f626a069
MK
5307 * hppa-tdep.h: Update copyright year.
5308 (struct trad_frame_saved_reg): Add opaque declaration.
5309
6fa57a7d
MK
5310 * amd64-tdep.c (amd64_return_value): Implement
5311 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5312
e47577ab
MK
5313 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5314 (m68k_value_to_register): New functions.
5315 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5316 value_to_register.
5317
31db7b6c
MK
5318 * defs.h (enum return_value_convention): Add
5319 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5320 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5321 * infcmd.c (legacy_return_value): New function.
5322 (print_return_value): Rwerite to implement
5323 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5324 * values.c (using_struct_return): Check for inequality to
5325 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5326 RETURN_VALUE_STRUCT_CONVENTION.
5327 * i386-tdep.c (i386_return_value): Implement
5328 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5329
0543f387
MK
5330 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5331 include "symtab.h", "opcode/vax.h" and "inferior.h".
5332 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5333 to read_memory_unsigned_integer.
5334 (vax_gdbarch_init): Reorder.
5335 (_initialize_vax_tdep): Spell out prototype.
5336 * Makefile.in (vax-tdep.o): Update dependencies.
5337
0c93b7b6
AC
53382004-05-08 Andrew Cagney <cagney@redhat.com>
5339
e6b55ae2
AC
5340 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5341 * target.c (target_detach, target_disconnect): Ditto.
5342
1ac839b8
AC
5343 * infcall.c (call_function_by_hand): When no
5344 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5345 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5346 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5347 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5348 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5349
28954179
AC
5350 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5351 * gdbarch.h, gdbarch.c: Re-generate.
5352 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5353 deprecated_fix_call_dummy.
5354 * v850-tdep.c (v850_gdbarch_init): Ditto.
5355 * infcall.c (call_function_by_hand): Do not call
5356 DEPRECATED_FIX_CALL_DUMMY.
5357
434b87dd
AC
5358 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5359 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5360 * gdbarch.h, gdbarch.c: Re-generate.
5361 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5362 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5363 deprecated_sizeof_call_dummy_words.
5364 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5365 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5366 * v850-tdep.c (v850_gdbarch_init): Ditto.
5367 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5368 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5369 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5370 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5371 * arch-utils.h (legacy_call_dummy_words)
5372 (legacy_sizeof_call_dummy_words): Delete declarations.
5373 * arch-utils.c (legacy_call_dummy_words)
5374 (legacy_sizeof_call_dummy_words): Delete variables.
5375
58d28df8
AC
5376 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5377 * gdbarch.h, gdbarch.c: Re-generate.
5378 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5379 * infcall.c (call_function_by_hand): Eliminate call to
5380 DEPRECATED_PUSH_DUMMY_FRAME.
5381 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5382 push_dummy_frame.
5383 (ns32k_push_dummy_frame): Delete function.
5384
e4a2df64
AC
5385 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5386 deprecated_call_dummy_breakpoint_offset or
5387 deprecated_call_dummy_start_offset.
5388 * dummy-frame.c, arm-tdep.c: Update comments.
5389 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5390 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5391 * gdbarch.h, gdbarch.c: Re-generate.
5392
d3712828
AC
5393 * infcall.c (legacy_push_dummy_code): Delete function.
5394 (push_dummy_code): Delete call.
5395
7a882905
AC
5396 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5397 * gdbarch.h, gdbarch.c: Re-generate.
5398 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5399 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5400 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5401 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5402
0ec5872b
AC
5403 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5404 (struct frame_info): Delete opaque declaration.
5405 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5406 * frame.c (get_frame_type): Delete call.
5407
0c93b7b6
AC
5408 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5409 pc_in_call_dummy.
5410 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5411 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5412
75536971
MK
54132004-05-08 Mark Kettenis <kettenis@gnu.org>
5414
527ca6bb
MK
5415 * alphanbsd-tdep.c: Include "gdb_string.h".
5416 * armnbsd-tdep.c: Update copyright year.
5417 Include "gdb_string.h".
5418 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5419 dependencies.
5420
d39fdc61
MK
5421 * delta68-nat.c: Remove file.
5422 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5423 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5424 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5425 (delta68-nat.o): Remove dependency.
5426
75536971
MK
5427 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5428 function.
5429 (m68k_gdbarch_init): Don't set
5430 deprecated_frameless_function_invocation.
5431
f4ca1d1f
RC
54322004-05-07 Randolph Chung <tausq@debian.org>
5433
5434 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5435 read_memory_nobpt for code reading when doing frame unwinding.
5436 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5437
2f0e8c7a
RC
54382004-05-07 Randolph Chung <tausq@debian.org>
5439
5440 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5441 instead of sp, handle sigaltstack case.
5442 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5443 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5444 signal handler and not that of the caller.
5445 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5446 hppa_linux_sigtramp_find_sigcontext.
5447
959464ff
RC
54482004-05-07 Randolph Chung <tausq@debian.org>
5449
5450 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5451 hppa-linux-nat.c.
5452 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5453 * hppa-linux-nat.c (fetch_register, store_register): Define.
5454 (fetch_inferior_registers, store_inferior_registers): Define.
5455 (supply_gregset): Add comment and clean up some unneeded code.
5456 (fill_gregset): Add comment and fix so that it saves registers in
5457 the right place in the gregset.
5458 (fill_fpregset): Fix buffer overrun problem.
5459 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5460
0da28f8a
RC
54612004-05-07 Randolph Chung <tausq@debian.org>
5462
5463 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5464 do common handling of the pcoqt register.
5465 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5466 to use helper function.
5467 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5468 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5469 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5470 generic fallback unwinder when all else fails.
5471 (hppa_gdbarch_init): Add fallback sniffer.
5472 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5473 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5474 to use helper function.
5475
b9ec757a
JB
54762004-05-08 Joel Brobecker <brobecker@gnat.com>
5477
5478 * config/djgpp/fnchange.lst: Add translation rules for
5479 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5480
756e95f1
MK
54812004-05-08 Mark Kettenis <kettenis@gnu.org>
5482
5483 * frame.c (get_prev_frame_1): Work around GCC bug.
5484 * frame.h: Add comment about GCC bug.
5485
2b4855ab
AC
54862004-05-07 Andrew Cagney <cagney@redhat.com>
5487
5488 * observer.c: Include "commands.h" and "gdbcmd.h".
5489 (observer_debug, _initialize_observer): Add the
5490 command "set/show debug observer".
5491 * observer.sh: When observer debugging, log notify calls.
5492 * Makefile.in (observer.o): Update dependencies.
5493
ba3e8e46
JM
54942004-05-07 Jason Molenda (jmolenda@apple.com)
5495
5496 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5497
16796152
JB
54982004-05-07 Jim Blandy <jimb@redhat.com>
5499
daf6dc85
JB
5500 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5501 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5502 to recognize gpr regnums, instead of assuming that
5503 tdep->ppc_fp0_regnum marks the end of the general-purpose
5504 registers.
5505
16796152
JB
5506 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5507 the given architecture has floating-point registers.
5508
c69b8bfc
AC
55092004-05-07 Andrew Cagney <cagney@redhat.com>
5510
5511 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5512 macro defined to 1.
5513 * gdbarch.h, gdbarch.c: Re-generate.
5514 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5515 deprecated_use_generic_dummy_frames.
5516
7243600a
BF
55172004-05-07 Brian Ford <ford@vss.fsi.com>
5518
5519 * NEWS: Mention Cygwin DWARF 2 support.
5520
73c1e0a1
AC
55212004-05-07 Andrew Cagney <cagney@redhat.com>
5522
5523 * objfiles.h (struct entry_info): Delete unused fields
5524 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5525 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5526 * mipsread.c (mipscoff_symfile_read): Update.
5527 * mdebugread.c (parse_partial_symbols): Update.
5528 * dwarfread.c (read_file_scope): Update.
5529 * dwarf2read.c (read_file_scope): Update.
5530 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5531 * coffread.c (complete_symtab): Update.
5532
1d3056ac
MK
55332004-05-07 Mark Kettenis <kettenis@gnu.org>
5534
5535 * infcall.c (_initialize_infcall): Fix typo.
5536
15170568
AC
55372004-05-07 Andrew Cagney <cagney@redhat.com>
5538
5539 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5540 * command.h (add_setshow_zinteger_cmd): Declare.
5541
34f75cc1
RC
55422004-05-06 Randolph Chung <tausq@debian.org>
5543
5544 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5545 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5546 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5547 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5548 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5549 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5550 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5551 definitions ...
5552 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5553 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5554 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5555 (hppa64_hpux_frame_find_saved_regs_in_sig)
5556 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5557 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5558 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5559 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5560 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5561 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5562 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5563 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5564 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5565 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5566 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5567 (hppa32_register_type, hppa_cannot_store_register)
5568 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5569 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5570 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5571 * pa64solib.c (pa64_solib_have_load_event)
5572 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5573 (pa64_solib_unloaded_library_pathname): Likewise.
5574 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5575 (som_solib_library_pathname): Likewise.
5576
0a5e7efe
JI
55772004-05-05 Jim Ingham <jingham@apple.com>
5578
5579 * breakpoint.c (create_breakpoints): Copy the ignore count and
5580 thread id over from the pended breakpoint to the actual
5581 breakpoint.
5582
10a4b113
AC
55832004-05-05 Andrew Cagney <cagney@redhat.com>
5584
5585 * gdbarch.sh (PARM_BOUNDARY): Delete.
5586 gdbarch.h, gdbarch.c: Re-generate.
5587 * valops.c (PARM_BOUNDARY): Delete macro.
5588 (value_push): Delete PARM_BOUNDARY code.
5589 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5590
366f009f
JB
55912004-05-04 Jim Blandy <jimb@redhat.com>
5592
32b99774
JB
5593 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5594 Don't assume that the gprs, fprs, and UISA sprs are
5595 contiguous, start at register number zero, and end with fpscr.
5596 Instead, use the numbers from the tdep structure.
5597
366f009f
JB
5598 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5599 should no longer be used in code specific to the RS6000 and its
5600 derivatives.
5601 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5602 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5603 tdep->ppc_fp0_regnum.
5604 (ppc_supply_fpregset, ppc_collect_fpregset)
5605 (rs6000_push_dummy_call, rs6000_extract_return_value)
5606 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5607 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5608 FP0_REGNUM.
5609 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5610 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5611 Same.
5612 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5613 bdm_ppc_store_registers): Same.
5614 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5615 (store_register, fill_fpregset): Same.
5616 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5617 (ppc_linux_supply_fpregset): Same.
5618 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5619 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5620 Same.
5621 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5622 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5623 ppc64_sysv_abi_return_value): Same.
5624 * rs6000-nat.c (regmap, fetch_inferior_registers)
5625 (store_inferior_registers, fetch_core_registers): Same.
5626
827f338d
MK
56272004-05-01 Mark Kettenis <kettenis@gnu.org>
5628
5629 * m68knbsd-nat.c: Remove file.
5630 * m68knbsd-tdep.c: Remove file.
5631 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5632 dependencies.
5633 * configure.host: Add m68k-*-netbsdelf*.
5634 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5635 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5636 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5637 (XM_FILE): Remove.
5638 * config/m68k/nbsdelf.mh: New file.
5639 * config/m68k/nbsd.mt: New file.
5640 * config/m68k/nbsdaout.mt: Remove file.
5641 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5642 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5643 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5644 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5645 (use_struct_convention): Remove prototype.
5646 (USE_STRUCT_CONVENTION): Remove define.
5647 * config/m68k/xm-nbsd.h: Remove file.
5648
66894781
MS
56492004-05-04 Michael Snyder <msnyder@redhat.com>
5650
5651 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5652 reg_struct_return method (as gcc usually does for cross targets).
5653
f0f63663
AC
56542004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5655
5656 Committed by Andrew Cagney.
5657 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5658 alignment padding when accessing ucontext struct members.
5659
edf61169
JB
56602004-05-04 Jim Blandy <jimb@redhat.com>
5661
8bf659e8
JB
5662 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5663 'ppc_gplast_regnum' member.
5664 (ppc_num_gprs): New enum constant.
5665 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5666 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5667 * rs6000-nat.c (regmap, fetch_inferior_registers,
5668 store_inferior_registers): Same.
5669 * rs6000-tdep.c (e500_pseudo_register_read)
5670 (e500_pseudo_register_write): Same.
5671 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5672
b967e06f
JB
5673 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5674 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5675 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5676 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5677 FPLAST_REGNUM.
5678 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5679 Same.
5680 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5681 * rs6000-nat.c (regmap, fetch_inferior_registers)
5682 (store_inferior_registers): Same.
5683
edf61169
JB
5684 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5685 with FPLAST_REGNUM.
5686
58a9656e
JB
56872004-05-03 Joel Brobecker <brobecker@gnat.com>
5688
5689 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5690 failure detected by recent versions of GCC.
5691 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5692 to be consistent with the usage in dwarf2_create_include_psymtab.
5693
dc305454
MS
56942004-05-03 Michael Snyder <msnyder@redhat.com>
5695
5696 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5697 (heuristic_proc_start): Whitespace cleanup.
5698
29972665
MK
56992004-05-04 Mark Kettenis <kettenis@gnu.org>
5700
6b57680d
MK
5701 * sun3-nat.c: Remove file.
5702 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5703 dependencies.
5704 (ALLDEPFILES): Remove sun3-nat.c.
5705 (sun3-nat.o): Remove dependencies.
5706
29972665
MK
5707 * i386-interix-nat.c, i386-interix-tdep.c,
5708 config/i386/nm-interix.h, config/i386/interix.mh,
5709 config/i386/interix.mt: Remove files.
5710 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5711 dependencies.
5712
f595cb19
MK
57132004-05-03 Mark Kettenis <kettenis@gnu.org>
5714
5715 * m68k-tdep.h (struct gdbarch_tdep): Add member
5716 struct_value_regnum.
5717 (m68k_svr4_init_abi): New prototype.
5718 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5719 different calling conventions.
5720 (m68k_extract_return_value): Remove code dealing with single-field
5721 structs.
5722 (m68k_store_return_value): Remove code dealing with single-field
5723 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5724 (m68k_extract_struct_value_address): Remove function.
5725 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5726 (m68k_reg_struct_return_p, m68k_return_value)
5727 (m68k_svr4_return_value): New functions.
5728 (m68k_use_struct_convention): Remove function.
5729 (m68k_push_dummy_call): Use new struct_value_regnum member of
5730 `struct gdbarch_tdep' instead of hardcoded register number to
5731 store STRUCT_ADDR.
5732 (m68k_svr4_init_abi): New function.
5733 (m68k_gdbarch_init): Don't set extract_return_value,
5734 store_return_values, deprecated_extract_struct_value_address and
5735 use_struct_convention. Set return_value instead. Initialize new
5736 struct_value_regnum member of `struct gdbarch_tdep'.
5737 * m68klinux-tdep.c: Update copyright year.
5738 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5739 (m68k_linux_extract_struct_value_address): Remove function.
5740 (m68k_linux_init_abi): Don't set extract_return_value,
5741 store_return_values, deprecated_extract_struct_value_address and
5742 use_struct_convention. Call m68k_svr4_init_abi but override the
5743 new struct_value_regnum member of `struct gdbarch_tdep'.
5744 * Makefile.in (m68k-tdep.o): Update dependencies.
5745
aaa75496
JB
57462004-05-03 J. Brobecker <brobecker@gnat.com>
5747
5748 * dwarf2read.c (line_header): Add new included_p field in
5749 field file_names.
5750 (partial_die_info): New field has_stmt_list. New field line_offset.
5751 (dwarf2_create_include_psymtab): New function.
5752 (dwarf2_build_include_psymtabs): New function.
5753 (add_file_name): Add forward declaration. Initialize new field.
5754 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5755 to be able to determine the list of files included by the
5756 given unit, and build their associated psymtabs.
5757 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5758 files as well.
5759 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5760 (read_file_scope): Update call to dwarf_decode_lines.
5761 (read_partial_die): Handle DW_AT_stmt_list attributes.
5762
c848556f
MC
57632004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5764
5765 Unfix PR gdb/1626.
5766 * configure.in: Revert special case for osf5.*.
5767 * configure: Regenerate.
5768
eb4556d7
JB
57692004-05-02 Jim Blandy <jimb@redhat.com>
5770
5771 Move the symbol-file-from-memory functions into their own file.
5772 * symfile-mem.c, symfile-mem.h: New files.
5773 * symfile.c (symbol_file_add_from_bfd): New function.
5774 (symbol_file_add): Call symbol_file_add_from_bfd.
5775 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5776 Moved to symfile-mem.c.
5777 (_initialize_symfile): Move definition of
5778 add-symbol-file-from-memory command to symfile-mem.c.
5779 * symfile.h (symbol_file_add_from_bfd): New declaration.
5780 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5781 * config/powerpc/linux.mt (TDEPFILES): Same.
5782 * Makefile.in (SFILES): Add symfile-mem.c.
5783 (symfile_mem_h): New variable.
5784 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5785 (symfile-mem.o): New rule.
5786
80bb239e
AC
57872004-05-01 Andrew Cagney <cagney@redhat.com>
5788
7789d0fa
AC
5789 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5790 frame_find_by_id instead of frame_relative_level.
5791 (do_enable_breakpoint): Ditto.
5792 * thread.c: Update copyright.
5793 (info_threads_command): Ditto, simplify.
5794
80bb239e
AC
5795 * frame.c (deprecated_generic_get_saved_register): Delete
5796 function, moved to "xstormy16-tdep.c".
5797 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5798 deprecated_generic_get_saved_register from "frame.c".
5799 (xstormy16_frame_saved_register): Call
5800 xstormy16_get_saved_register.
5801 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5802 static.
5803 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5804 * frame.h (deprecated_generic_get_saved_register): Delete.
5805
b2a871dd
MC
58062004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5807
5808 * dwarfread.c: Update documentation on the state of dwarf-1.
5809
0e100dab
AC
58102004-05-01 Andrew Cagney <cagney@redhat.com>
5811
acd8056e
AC
5812 * stack.c (select_frame_command): Delete call to
5813 frame_relative_level.
5814 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5815 Delete #if0 code.
5816 (frame_info): Do not print FRAMELESS.
5817 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5818 (catch_info): Delete #if0 code.
5819
0e100dab
AC
5820 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5821 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5822 of frame_relative_level.
5823 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5824 to SENTINEL_FRAME.
5825 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5826 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5827 frame_relative_level.
5828
55699d59
AC
5829 * frame.h (deprecated_set_frame_type): Delete declaration.
5830 * frame.c (deprecated_set_frame_type): Delete function, update
5831 comments.
5832
fcf70625
AC
5833 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5834 * gdbarch.h, gdbarch.c: Re-generate.
5835 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5836 (shnbsd_pc_in_sigtramp): Delete.
5837 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5838 pc_in_sigtramp.
5839 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5840 pc_in_sigtramp.
5841 * frame.h: Update comments.
5842 * ppc-linux-tdep.c: Update comments.
5843 * breakpoint.c (bpstat_what): Update comments.
5844
ac5eccb7
AC
5845 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5846 m68klinux-tdep.o's dependencies, were previously added to
5847 m68klinux-nat.o.
5848
f2524b93
AC
5849 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5850 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5851 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5852 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5853 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5854
17e20bce
AC
5855 * Makefile.in (m68klinux-nat.o): Update dependencies.
5856 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5857 (m68k_linux_sigtramp_frame_cache)
5858 (m68k_linux_sigtramp_frame_this_id)
5859 (m68k_linux_sigtramp_frame_prev_register)
5860 (m68k_linux_sigtramp_frame_unwind)
5861 (m68k_linux_sigtramp_frame_sniffer)
5862 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5863 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5864 names, use trad-frame.h.
5865 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5866 (struct m68k_sigtramp_info): Delete.
5867 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5868 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5869 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5870 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5871 "m68klinux-tdep.c".
5872
c8864fa2
AC
5873 * infrun.c (check_sigtramp2): Delete check for
5874 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5875
511dd2cd
MK
58762004-05-01 Mark Kettenis <kettenis@gnu.org>
5877
5878 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5879
8c6b0e06
AC
58802004-05-01 Andrew Cagney <cagney@redhat.com>
5881
9df0bb3f
AC
5882 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5883 (frv_linux_sigtramp_frame_cache)
5884 (frv_linux_sigtramp_frame_this_id)
5885 (frv_linux_sigtramp_frame_prev_register)
5886 (frv_linux_sigtramp_frame_unwind)
5887 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5888 include "linux" in function and variable names, directly call
5889 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5890 the latest trad-frame code.
5891 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5892 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5893 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5894 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5895 * frv-tdep.c (frv_sigtramp_frame_cache)
5896 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5897 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5898 frv-linux-tdep.c.
5899 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5900 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5901 (frv_set_sigcontext_reg_addr): Delete function.
5902
8c6b0e06
AC
5903 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5904 (DEPRECATED_SIGTRAMP_END): Delete.
5905 * gdbarch.h, gdbarch.c: Re-generate.
5906 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5907 * config/vax/tm-vaxbsd.h: Update copyright.
5908 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5909 (DEPRECATED_IN_SIGTRAMP): Define.
5910 * config/m68k/tm-nbsd.h: Update copyright.
5911 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5912 (DEPRECATED_IN_SIGTRAMP): Define.
5913
50ea7769
MK
59142004-05-01 Mark Kettenis <kettenis@gnu.org>
5915
03ac2a74
MK
5916 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5917 encondings. Fixes PR gdb/1628.
5918
50ea7769
MK
5919 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5920 DW_CFA_restore state without a matching DW_CFA_remember_state
5921 instead of aborting. Fixes PR backtrace/1589.
5922
9a5d7be1
JB
59232004-04-30 Joel Brobecker <brobecker@gnat.com>
5924
5925 * MAINTAINERS: Add self as AIX maintainer.
5926 Update my e-mail address in write-after-approval section.
5927
2593d1cd
AC
59282004-04-30 Andrew Cagney <cagney@redhat.com>
5929
ce12bbf9
AC
5930 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5931 (legacy_get_prev_frame): Ditto.
5932
36710c63
AC
5933 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5934 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5935 * mipsread.c (sigtramp_address): Delete extern variable.
5936 (mipscoff_new_init): Delete reference.
5937 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5938 (fixup_sigtramp): Delete function.
5939 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5940 (fixup_sigtramp): Delete declarations.
5941
2593d1cd
AC
5942 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5943 deprecated_pc_in_sigtramp.
5944 (ppcnbsd_pc_in_sigtramp): Delete function.
5945
2a25f91c
MK
59462004-05-01 Mark Kettenis <kettenis@gnu.org>
5947
5948 * config/m68k/nm-nbsd.h: Tweak comments.
5949 * config/m68k/nm-nbsdaout.h: Likewise.
5950
0b281939
AC
59512004-04-30 Andrew Cagney <cagney@redhat.com>
5952
5953 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5954 legacy_pc_in_sigtramp.
5955 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5956
8f2d3ea0
MK
59572004-05-01 Mark Kettenis <kettenis@gnu.org>
5958
5959 Add OpenBSD/m68k support.
5960 * NEWS (New native configurations): Mention OpenBSD/m68k.
5961 * m68kbsd-tdep.c: New file.
5962 * m68kbsd-nat.c: New file.
5963 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5964 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5965 * configure.host: Add m68k-*-openbsd.
5966 * configure.tgt: Add m68k-*-openbsd.
5967 * config/m68k/tm-obsd.h: New file.
5968 * config/m68k/obsd.mt: New file.
5969 * config/m68k/obsd.mh: New file.
5970 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5971 m68kbsd-tdep.c.
5972
c40f49a4
AC
59732004-04-30 Andrew Cagney <cagney@redhat.com>
5974
5975 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5976 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5977
e81554cd
MK
59782004-04-30 Mark Kettenis <kettenis@gnu.org>
5979
5980 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5981 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5982
d4dc1a91
BF
59832004-04-30 Brian Ford <ford@vss.fsi.com>
5984
5985 Revert 2004-04-16 change.
5986 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5987 (i386_coff_init_abi): Remove.
5988 * i386-tdep.h (i386_coff_init_abi): Remove.
5989 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5990
2f72f850
AC
59912004-04-30 Andrew Cagney <cagney@redhat.com>
5992
e492f9d6
AC
5993 * blockframe.c (find_pc_partial_function): Delete use of
5994 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5995 DEPRECATED_SIGTRAMP_END.
5996
7b7adad0
AC
5997 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5998 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5999 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6000 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6001 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6002
2f72f850
AC
6003 * defs.h (deprecated_inside_entry_file): Delete declaration.
6004 * blockframe.c (deprecated_inside_entry_file): Delete function.
6005 (legacy_frame_chain_valid): Delete call.
6006 * sh64-tdep.c (sh64_frame_chain): Delete call.
6007 * objfiles.h: Update comments.
6008 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6009 call.
6010 * frame.c (get_prev_frame): Delete call, update comments.
6011
283f90a7
BF
60122004-04-30 Brian Ford <ford@vss.fsi.com>
6013
6014 * MAINTAINERS (Write After Approval): Add myself.
6015
8ee56bcf
AC
60162004-04-30 Andrew Cagney <cagney@redhat.com>
6017
6018 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6019 * gdbarch.h, gdbarch.c: Re-generate.
6020 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6021 code.
6022
ee27e1b6
AC
60232004-04-30 Andrew Cagney <cagney@redhat.com>
6024
6025 * gdb-events.sh (selected_thread_changed)
6026 (selected_frame_level_changed, target_changed): Delete.
6027 * gdb-events.h, gdb-events.c: Re-generate.
6028 * valops.c (value_assign): Update.
6029 * stack.c (select_frame_command, up_silently_base)
6030 (down_silently_base): Update.
6031
d5ac5a39
AC
60322004-04-29 Andrew Cagney <cagney@redhat.com>
6033
6034 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6035 registers correctly.
6036 (print_gp_register_row, mips32_heuristic_proc_desc)
6037 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6038 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6039 references to mips_isa_regsize.
6040
ceae6e75
AC
60412004-04-29 Andrew Cagney <cagney@redhat.com>
6042
6043 * mips-tdep.c (struct gdbarch_tdep): Delete
6044 mips_fp_register_double.
6045 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6046 mips_abi_regsize.
6047 (mips_gdbarch_init): Do not set mips_fp_register_double.
6048 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6049
a587af0b
AC
60502004-04-29 Joel Brobecker <brobecker@gnat.com>
6051
6052 Committed by Andrew Cagney.
6053 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6054 function calls.
6055
13326b4e
AC
60562004-04-29 Andrew Cagney <cagney@redhat.com>
6057
6058 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6059 gdbarch, use mips_abi, update callers.
6060 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6061 mips_abi_regsize, update callers.
6062 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6063 mips_default_abi_regsize.
6064 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6065 mips_default_abi_regsize.
6066
711cc5cd
AC
60672004-04-29 Andrew Cagney <cagney@redhat.com>
6068
1b13c4f6
AC
6069 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6070 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6071 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6072 mips_default_abi_regsize.
6073 (mips_isa_regsize): Rename mips_regisze.
6074 * mipsnbsd-tdep.c: Update.
6075 * mips-linux-tdep.c: Update.
6076 * irix5-nat.c: Update.
6077 * mips-tdep.h (mips_isa_regsize): Update.
6078
711cc5cd
AC
6079 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6080 Delete all disabled code.
6081 * gdb-events.h, gdb-events.c: Re-generate.
6082
e63bbc88
MK
60832004-04-19 Jerome Guitton <guitton@gnat.com>
6084 Mark Kettenis <kettenis@gnu.org>
6085
6086 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6087 the function begins with a branch instruction.
6088
fd35795f
MK
60892004-04-29 Mark Kettenis <kettenis@gnu.org>
6090
6091 * i386-tdep.c: Fix spelling mistakes.
6092
c960c18f
AC
60932004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6094 Andrew Cagney <cagney@redhat.com>
6095
6096 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6097 <sys/proc.h>.
6098 * acconfig.h: Provide default _KMEMUSER value.
6099 * config.in, configure: Re-generate.
6100 * NEWS: Mention fix.
6101
50306a9d
RC
61022004-04-24 Randolph Chung <tausq@debian.org>
6103
6104 * configure.host (hppa*-*-linux*): New target.
6105 * configure.tgt (hppa*-*-linux*): Likewise.
6106 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6107 gdbarch_init_osabi() call earlier so that osabi-specific frame
6108 unwinders can be registered first.
6109 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6110 hppa-linux-nat.c.
6111 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6112 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6113 * config/pa/linux.mh: New file.
6114 * config/pa/linux.mt: New file.
6115 * config/pa/nm-linux.h: New file.
6116 * config/pa/xm-linux.h: New file.
6117 * hppa-linux-nat.c: New file.
6118 * hppa-linux-tdep.c: New file.
6119
2a6228ef
RC
61202004-04-28 Randolph Chung <tausq@debian.org>
6121
6122 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6123 return values.
6124 (hppa32_push_dummy_call): Fix small struct and floating point argument
6125 passing, and make sure the stack frame is properly aligned.
6126
82c10df6
AC
61272004-04-28 Andrew Cagney <cagney@redhat.com>
6128
d762c46a
AC
6129 * stack.c (print_stack_frame): Fix description.
6130
82c10df6
AC
6131 * NEWS: Mention gdb/gdbserver/configure execute permission
6132 changed. PR server/519.
6133
0faf0076
AC
61342004-04-28 Andrew Cagney <cagney@redhat.com>
6135
6136 * stack.c (print_stack_frame_stub): Delete declaration.
6137 (struct print_stack_frame_args, print_stack_frame)
6138 (print_frame_info, print_frame): Replace "source" with print what.
6139 Replace "print" with "print_level". Replace "args" with
6140 "print_args".
6141 * frame.h (show_and_print_stack_frame, print_stack_frame)
6142 (print_frame_info): Update declarations.
6143 * stack.c (select_and_print_frame, frame_command)
6144 (current_frame_command, up_command, down_command): Update calls -
6145 use get_selected_frame, pass "enum print_what" for source, do not
6146 call frame_relative_level.
6147 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6148 * remote-rdp.c (remote_rdp_open): Ditto.
6149 * remote-mips.c (common_open): Ditto.
6150 * remote-e7000.c (e7000_start_remote): Ditto.
6151 * ocd.c (ocd_start_remote): Ditto.
6152 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6153 * infrun.c (normal_stop): Ditto.
6154 * inflow.c (kill_command): Ditto.
6155 * infcmd.c (finish_command): Ditto.
6156 * corelow.c (core_open): Ditto.
6157 * tracepoint.c (finish_tfind_command): Ditto.
6158 * thread.c (info_threads_command, info_threads_command)
6159 (restore_current_thread, do_captured_thread_select): Ditto.
6160 * ada-tasks.c (task_command): Ditto.
6161
f4c5303c
OF
61622004-04-26 Orjan Friberg <orjanf@axis.com>
6163
6164 * frame.c: Include "observer.h".
6165 (frame_observer_target_changed): New function.
6166 (_initialize_frame): Attach target_changed observer.
6167 * regcache.c: Include "observer.h".
6168 (regcache_observer_target_changed): New function.
6169 (_initialize_regcache): Attach target_changed observer.
6170 * valops.c: Include "observer.h".
6171 (value_assign): Notify target_changed event when modifying register.
6172 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6173
7270d8f2
OF
61742004-04-26 Orjan Friberg <orjanf@axis.com>
6175
6176 From Paul Koning <pkoning@equallogic.com>:
6177 * breakpoint.c (free_valchain): New function.
6178 (insert_bp_location, delete_breakpoint): Use free_valchain.
6179 (remove_breakpoint): Do not remove the valchain.
6180 (bpstat_stop_status): If not stopped by watchpoint, skip
6181 watchpoints when generating stop status list.
6182 * infrun.c (handle_inferior_event): Make
6183 stepped_after_stopped_by_watchpoint a global variable.
6184 * remote.c (remote_stopped_data_address): Return watch data
6185 address rather than zero if stepped_after_stopped_by_watchpoint is
6186 set.
6187
02d62932
MC
61882004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6189
6190 Fix PR gdb/1626.
6191 * configure.in: Check for curses after termcap.
6192 On osf5.*, do not check for ncurses.
6193 * configure: Regenerate.
6194
3e9a183c
MK
61952004-04-25 Mark Kettenis <kettenis@gnu.org>
6196
c79ac407
MK
6197 * ppcobsd-nat.c: Include "ppc-tdep.h".
6198 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6199
3e9a183c
MK
6200 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6201 Fixes PR tdep/1623 and PR tdep/1624.
6202
38cc9c28
MC
62032004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6204
6205 * xmodem.h, xmodem.c: Remove files.
6206 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6207
7f07c5b6
RC
62082004-04-23 Randolph Chung <tausq@debian.org>
6209
6210 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6211 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6212 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6213 for handling stackless frames.
6214 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6215
9f7194c3
RC
62162004-04-23 Randolph Chung <tausq@debian.org>
6217
6218 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6219 starts at a pc before the frame is created.
6220
dcff6009
JB
62212004-04-23 Joel Brobecker <brobecker@gnat.com>
6222
6223 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6224
40711ff1 62252004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
6226
6227 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6228 use convert_typed_floating to get the appropriate format.
6229
abc485a1
RC
62302004-04-22 Randolph Chung <tausq@debian.org>
6231
6232 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6233 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6234 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6235 (hppa_sign_extend): Add prototype.
6236 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6237 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6238 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6239 hppa targets will also use these functions.
6240 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6241 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6242 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6243 (hppa_gdbarch_init): Remove gdbarch setting of
6244 skip_trampoline_code, in_solib_call_trampoline and
6245 in_solib_return_trampoline.
6246 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6247 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6248 hppa_in_solib_call_trampoline.
6249 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6250 Moved from hppa-tdep.c.
6251 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6252 in_solib_call_trampoline and in_solib_return_trampoline.
6253
369aa520
RC
62542004-04-22 Randolph Chung <tausq@debian.org>
6255
6256 * hppa-tdep.c (hppa_debug): New variable.
6257 (find_unwind_entry, hppa_frame_cache): Add debug output.
6258 (_initialize_hppa_tdep): Add command to set debug flag.
6259
476be15e
AC
62602004-04-22 Andrew Cagney <cagney@redhat.com>
6261
6262 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6263 "trad-frame.h".
6264 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6265 signal trampoline unwinder.
6266 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6267
d195bc9f
MK
62682004-04-22 Mark Kettenis <kettenis@gnu.org>
6269
6270 Add OpenBSD/powerpc support.
6271 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6272 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6273 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6274 (ppc_collect_fpregset): New prototypes.
6275 * ppcobsd-nat.c: New file.
6276 * ppcobsd-tdep.c: New file.
6277 * ppcobsd-tdep.h: New file.
6278 * rs6000-tdep.c: Include "regset.h".
6279 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6280 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6281 New functions.
6282 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6283 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6284 (rs6000-tdep.o): Update dependencies.
6285 * configure.host: Add powerpc-*-openbsd.
6286 * configure.tgt: Add powerpc-*-openbsd.
6287 * config/powerpc/obsd.mh: New file.
6288 * config/powerpc/nm-obsd.h: New file.
6289 * config/powerpc/obsd.mt: New file.
6290
6f14cc33
AC
62912004-04-22 Andrew Cagney <cagney@redhat.com>
6292
fcf29e5f
AC
6293 * frame.h (show_frame_info): Delete declaration.
6294
6f14cc33
AC
6295 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6296 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6297 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6298 * frv-tdep.c (frv_frame_this_id): Ditto.
6299 * avr-tdep.c (avr_frame_this_id): Ditto.
6300
e5786a5c
EZ
63012004-04-22 Elena Zannoni <ezannoni@redhat.com>
6302
6303 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6304
26e75e5c
JB
63052004-04-22 Jim Blandy <jimb@redhat.com>
6306
6307 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6308 register number zero.
6309
d8d65dd3
MS
63102004-04-21 Michael Snyder <msnyder@redhat.com>
6311
6312 * mips-tdep.c (heuristic_proc_start):
6313 Warning() already prefixes "Warning: ".
6314
9a4105ab
AC
63152004-04-21 Andrew Cagney <cagney@redhat.com>
6316
6317 * annotate.h (deprecated_annotate_starting_hook)
6318 (deprecated_annotate_stopped_hook)
6319 (deprecated_annotate_exited_hook)
6320 (deprecated_annotate_signal_hook)
6321 (deprecated_annotate_signalled_hook): Deprecate.
6322 * tracepoint.h (deprecated_create_tracepoint_hook)
6323 (deprecated_delete_tracepoint_hook)
6324 (deprecated_modify_tracepoint_hook)
6325 (deprecated_trace_find_hook)
6326 (deprecated_trace_start_stop_hook): Deprecate.
6327 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6328 * remote.h (deprecated_target_resume_hook)
6329 (deprecated_target_wait_loop_hook): Deprecate.
6330 * gdbcore.h (deprecated_exec_file_display_hook)
6331 (deprecated_file_changed_hook): Deprecate.
6332 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6333 * defs.h (deprecated_modify_breakpoint_hook)
6334 (deprecated_command_loop_hook, deprecated_show_load_progress)
6335 (deprecated_print_frame_info_listing_hook)
6336 (deprecated_query_hook, deprecated_warning_hook)
6337 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6338 (deprecated_delete_breakpoint_hook)
6339 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6340 (deprecated_readline_begin_hook, deprecated_readline_hook)
6341 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6342 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6343 (deprecated_context_hook, deprecated_target_wait_hook)
6344 (deprecated_attach_hook, deprecated_detach_hook)
6345 (deprecated_call_command_hook, deprecated_set_hook)
6346 (deprecated_error_hook, deprecated_error_begin_hook)
6347 (deprecated_ui_load_progress_hook): Deprecate.
6348 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6349 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6350 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6351 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6352 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6353 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6354 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6355 * annotate.c, aix-thread.c: Update.
6356
62cf13cc
AC
63572004-04-21 Andrew Cagney <cagney@redhat.com>
6358
b2e31a62
AC
6359 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6360 * vaxnbsd-tdep.c: Include "gdb_string.h".
6361
62cf13cc
AC
6362 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6363 (add_symbol_file_from_memory_command): #if 0 function body, call
6364 error instead.
6365
00e32a35
AC
63662004-04-21 Andrew Cagney <cagney@redhat.com>
6367
6368 * gdbcore.h: Update copyright.
6369 (deprecated_add_core_fns): Rename add_core_fns.
6370 * win32-nat.c (_initialize_core_win32): Update.
6371 * sun3-nat.c (_initialize_core_sun3): Update.
6372 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6373 * rs6000-nat.c (_initialize_core_rs6000): Update.
6374 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6375 * nto-tdep.c (_initialize_nto_tdep): Update.
6376 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6377 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6378 * mips-nat.c (_initialize_core_mips): Update.
6379 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6380 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6381 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6382 * lynx-nat.c (_initialize_core_lynx): Update.
6383 * irix5-nat.c (_initialize_core_irix5): Update.
6384 * i386-interix-nat.c (_initialize_core_interix): Update.
6385 * cris-tdep.c (_initialize_cris_tdep): Update.
6386 * corelow.c (deprecated_add_core_fns): Update.
6387 * core-regset.c (_initialize_core_regset): Update.
6388 * core-aout.c (_initialize_core_aout): Update.
6389 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6390 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6391 * alpha-nat.c (_initialize_core_alpha): Update.
6392
13c7b1ca
JB
63932004-04-21 Jim Blandy <jimb@redhat.com>
6394
6395 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6396
7b5a2f43
DJ
63972004-04-19 Daniel Jacobowitz <drow@mvista.com>
6398
6399 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6400 Delete.
6401 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6402 (read_attribute_value): Update calls to dwarf_alloc_block.
6403 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6404 dwarf2_tmp_obstack.
6405 (psymtab_to_symtab_1): Likewise. Clean up using
6406 free_stack_comp_unit.
6407 (add_to_cu_func_list): Use the comp_unit_obstack.
6408
05cf31d1
JB
64092004-04-19 Joel Brobecker <brobecker@gnat.com>
6410
6411 * dwarf2read.c (dwarf2_flag_true_p): New function.
6412 (die_is_declaration): Use the function above. Add some comments.
6413
adf93a2f
MK
64142004-04-19 Mark Kettenis <kettenis@gnu.org>
6415
6416 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6417 architecture when registering sparcnbsd_core_osabi_sniffer.
6418 Adjust comment.
6419
748894bf
MK
64202004-04-18 Mark Kettenis <kettenis@gnu.org>
6421
f622ad42
MK
6422 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6423 return value.
6424
c4fc7f1b
MK
6425 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6426 * i386-tdep.c: Correct register numbering scheme comments
6427 throughout.
6428 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6429 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6430 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6431 (i386_gdb_arch_init): Likewise.
6432
b4ead1bd
MK
6433 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6434 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6435 ppcnbsd-tdep.o.
6436
748894bf
MK
6437 * m68k-tdep.h: Tweak comments.
6438 * m68k-tdep.c: Tweak comment.
6439
fdd72f95
RC
64402004-04-17 Randolph Chung <tausq@debian.org>
6441
6442 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6443 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6444 (hppa_hpux_som_init_abi): Set is_elf to 0.
6445 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6446 * hppa-tdep.c (low_text_segment_address): Remove global.
6447 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6448 section offset to calculate segment address.
6449 (internalize_unwinds): Define low_text_segment_address as local and
6450 pass to record_text_segment_lowaddr for ELF targets.
6451 (hppa_gdbarch_init): Zero fill tdep structure.
6452 (hppa_dump_tdep): Print tdep structure.
6453 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6454
0f8d9d59
RC
64552004-04-17 Randolph Chung <tausq@debian.org>
6456
6457 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6458 (hppa_gdbarch_init): Set pseudo_register_read.
6459 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6460 * regcache.c (supply_register): Remove check for
6461 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6462
7c46b9fb
RC
64632004-04-17 Randolph Chung <tausq@debian.org>
6464
6465 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6466 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6467 (hpread_adjust_stack_address): Move to hpread.c.
6468 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6469 obj_private_struct): Move from tm-hppa.h.
6470 * hpread.c (hppa-tdep.h): Include.
6471 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6472 (hpread_read_function_type, hpread_read_doc_function_type)
6473 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6474 directly.
6475 * pa64solib.c (hppa-tdep.h): Include.
6476 * somsolib.c (hppa-tdep.h): Include.
6477 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6478 inferior_status): Remove unused forward declarations.
6479 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6480 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6481 obj_private_struct): Move to hppa-tdep.h.
6482 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6483
8d153463
RC
64842004-04-17 Randolph Chung <tausq@debian.org>
6485
6486 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6487 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6488 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6489 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6490 Remove forward declaration and make static.
6491 (hppa_reg_struct_has_addr): Remove.
6492
350c2e5b
JB
64932004-04-16 Joel Brobecker <brobecker@gnat.com>
6494
6495 * observer.sh: Move comments in sed command to first column.
6496
bbde78fa
JM
64972004-04-16 Jason Molenda (jmolenda@apple.com)
6498
6499 * frame.c: Minor typeo corrections in comments.
6500
e0270fd9
JB
65012004-04-16 Joel Brobecker <brobecker@gnat.com>
6502
6503 * observer.c (observer_test_first_notification_function): Update
6504 function profile.
6505 (observer_test_second_notification_function): Likewise.
6506 (observer_test_third_notification_function): Likewise.
6507
3d049254
MK
65082004-04-16 Mark Kettenis <kettenis@gnu.org>
6509
6510 From Brian Ford <ford@vss.fsi.com>:
6511 * i386-tdep.c (i386_coff_init_abi): New function.
6512 * i386-tdep.h (i386_coff_init_abi): New prototype.
6513 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6514 register number translation functions for DWARF and DWARF 2.
6515
7867684d
JB
65162004-04-16 Joel Brobecker <brobecker@gnat.com>
6517
6518 * dwarf2read.c: Back out my previous change, it was incorrect.
6519
72bf9492
DJ
65202004-04-16 Daniel Jacobowitz <drow@mvista.com>
6521
6522 * dwarf2read.c: Include "hashtab.h".
6523 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6524 has_namespace_info.
6525 (struct partial_die_info): Add comments. Use bitfields to reduce
6526 memory footprint. Add scope, scope_set, has_specification,
6527 spec_offset, die_parent, die_child, and die_sibling.
6528 (peek_die_abbrev): Add prototype.
6529 (partial_read_comp_unit_head): New function, broken out from
6530 dwarf2_build_psymtabs_hard.
6531 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6532 Use partial_read_comp_unit_head. Initialize the CU and
6533 comp_unit_obstack. Update calls to read_partial_die and
6534 scan_partial_symbols. Use free_stack_comp_unit and
6535 load_partial_dies.
6536 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6537 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6538 Update calls to helper functions. Remove NAMESPACE argument.
6539 Update comments.
6540 (partial_die_parent_scope, partial_die_full_name): New functions.
6541 (add_partial_symbol): Remove namespace argument. Update call to
6542 pdi_needs_namespace. Use partial_die_full_name. Handle
6543 DW_TAG_namespace. Check has_namespace_info flag.
6544 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6545 tag. Handle namespaces.
6546 (add_partial_namespace, add_partial_enumeration): Simplify.
6547 (guess_structure_name): New function, derived from
6548 add_partial_structure.
6549 (add_partial_structure): Remove.
6550 (determine_class_name): Update comment.
6551 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6552 (is_type_tag_for_partial, load_partial_dies): New functions.
6553 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6554 Record specifications instead of following them immediately.
6555 (find_partial_die_in_comp_unit, find_partial_die)
6556 (fixup_partial_die, free_stack_comp_unit)
6557 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6558 (partial_die_hash, partial_die_eq): New functions.
6559 * Makefile.in (hashtab_h): Define.
6560 (dwarf2read.o): Update dependencies.
6561 (observer_inc, observer_h): Move to the correct section.
6562
fdc860a3
JB
65632004-04-15 Joel Brobecker <brobecker@gnat.com>
6564
6565 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6566 (die_is_declaration): Use the function above. Add comment.
6567
dc718098
JB
65682004-04-15 Joel Brobecker <brobecker@gnat.com>
6569
6570 * dwarf2read.c (read_structure_scope): Identify stub types
6571 using die_is_declaration() only.
6572
8718a420
RM
65732004-04-15 Roland McGrath <roland@redhat.com>
6574
6575 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6576 argument instead of NAME.
6577 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6578 in call to symbol_file_add_with_addrs_or_offsets.
6579 (build_addr_info): New function, helper for ...
6580 (symbol_file_add_from_memory): New function.
6581 (add_symbol_file_from_memory_command): New function using that.
6582 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6583 (pre_add_symbol_hook): Add const to argument type.
6584 * symfile.h (symbol_file_add_from_memory): Declare it.
6585
8b910bab
MK
65862004-04-15 Mark Kettenis <kettenis@gnu.org>
6587
9f076e7a
MK
6588 * NEWS (New native configurations): Mention OpenBSD/vax.
6589 * configure.host: Add vax-*-openbsd*.
6590 * config/vax/obsd.mh: New file.
6591 * config/vax/nm-obsd.h: New file.
6592
8b910bab
MK
6593 * vax-tdep.c: Include "regset.h".
6594 (vax_supply_gregset): New function.
6595 (vax_gregset): New variable.
6596 (vax_regset_from_core_section): New function.
6597 (vax_gdbarch_init): Set regset_from_core_section.
6598 * Makefile.in (vax-tdep.o): Update dependencies.
6599
7a464420
AC
66002004-04-15 Andrew Cagney <cagney@redhat.com>
6601
6602 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6603 (observer_normal_stop_notification_stub)
6604 (observer_attach_normal_stop, observer_detach_normal_stop):
6605 Delete, replaced by #include "observer.inc".
6606 * infrun.c (normal_stop): Pass "stop_bpstat" to
6607 observer_notify_normal_stop.
6608 * Makefile.in (observer_inc): Define.
6609 (observer.o): Update dependencies.
6610 (observer.h, observer.inc): New rules.
6611 * observer.h: Delete file.
6612 * observer.sh: New file.
6613
e36ad527
MK
66142004-04-15 Mark Kettenis <kettenis@gnu.org>
6615
6616 * vax-tdep.c (vax_frame_cache): Fix typo.
6617
67b441e1
MK
66182004-04-14 Mark Kettenis <kettenis@gnu.org>
6619
6f606e1c
MK
6620 * NEWS (New native configurations): Mention NetBSD/vax.
6621 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6622 * config/vax/nbsdelf.mh: New file.
6623 * config/vax/nbsdaout.mh: New file.
6624 * config/vax/nm-nbsd.h: New file.
6625 * config/vax/nm-nbsdaout.h: New file.
6626
9c5519a5
MK
6627 * vaxnbsd-tdep.c: New file.
6628 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6629 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6630 * config/vax/nbsd.mt: New file.
6631 * config/vax/tm-nbsd.h: New file.
6632
4844a614
MK
6633 * Makefile.in (vaxbsd-nat.o): New dependency.
6634
67b441e1
MK
6635 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6636 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6637 struct_addr arguments. Don't push return value address.
6638 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6639 arguments to vax_store_arguments. Store return value address in
6640 R1.
6641 (vax_store_struct_return, vax_extract_return_value)
6642 (vax_store_return_value): Remove functions.
6643 (vax_return_value): New function.
6644 (vax_gdbarch_init): Set return value. Don't set
6645 deprecated_store_struct_return, deprecated_extract_struct_return
6646 and deprecated_store_return_value.
6647
6672f2ae
AS
66482004-04-14 Andreas Schwab <schwab@suse.de>
6649
6650 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6651 value buffer.
6652 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6653
7346c184
MK
66542004-04-14 Mark Kettenis <kettenis@gnu.org>
6655
6656 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6657 (vax_unwind_dummy_id): New functions.
6658 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6659 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6660 variables.
6661 (vax_fix_call_dummy): Remove function.
6662 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6663 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6664 call_dummy_location, deprecated_call_dummy_words,
6665 deprecated_sizeof_call_dummy_words,
6666 deprecated_call_dummy_breakpoint_offset,
6667 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6668 and deprecated_dummy_write_sp.
6669
58e23df4
DC
66702004-04-13 David Carlton <carlton@kealia.com>
6671
6672 * MAINTAINERS: Move myself to "paper trail" section.
6673
5e6b39ff
MK
66742004-04-12 Mark Kettenis <kettenis@gnu.org>
6675
7def7fef
MK
6676 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6677 "trad-frame.h".
6678 (vax_frame_init_saved_regs): Remove function.
6679 (vax_sigtramp_saved_pc): Remove function.
6680 (vax_frame_saved_pc): Remove function.
6681 (vax_frame_args_address): Remove function.
6682 (vax_frame_num_args): Rewrite.
6683 (vax_frame_chain): Remove function.
6684 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6685 VAX_FP_REGNUM.
6686 (vax_pop_frame): Likewise.
6687 (vax_saved_pc_after_call): Remove function.
6688 (struct vax_frame_cache): New structure.
6689 (vax_frame_cache): New function.
6690 (vax_frame_this_id): New function.
6691 (vax_frame_prev_register): New function.
6692 (vax_frame_unwind): New variable.
6693 (vax_frame_sniffer): New function.
6694 (vax_frame_base_address): New function.
6695 (vax_frame_args_address): New function.
6696 (vax_frame_base): New variable.
6697 (vax_unwind_pc): New function.
6698 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6699 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6700 deprecated_frame_chain, deprecated_frame_saved_pc,
6701 deprecated_frame_args_address and
6702 deprecated_frame_init_saved_regs.
6703 * Makefile.in (vax-tdep.o): Update dependencies.
6704
53284fc1
MK
6705 * vaxbsd-nat.c: New file.
6706
5e6b39ff
MK
6707 * vax-tdep.h: Update copyright year. Adjust comments.
6708 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6709 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6710 (vax_regnum): New enum. Replacing...
6711 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6712 (VAX_PS_REGNUM): ... these removed macros.
6713 * vax-tdep.c (vax_register_name): Remove prototype.
6714 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6715 (vax_register_byte, vax_register_raw_size,
6716 vax_register_virtual_size, vax_register_virtual_type): Remove
6717 functions.
6718 (vax_register_type): New function.
6719 (vax_breakpoint_from_pc): Reorganize.
6720 (vax_gdbarch_init): Set register_type. Don't set
6721 deprecated_register_size, deprecated_register_bytes,
6722 deprecated_register_byte, deprecated_register_raw_size,
6723 deprecated_max_register_raw_size,
6724 deprecated_register_virtual_size,
6725 deprecated_max_register_virtual_size and
6726 deprecated_register_virtual_type. Add comment on stack direction.
6727
e9c71e9f
MK
67282004-04-11 Mark Kettenis <kettenis@gnu.org>
6729
6730 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6731 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6732 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6733
d46f1176 67342004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6735
d46f1176
RC
6736 * MAINTAINERS (write after approval): Add myself.
6737
a2a84a72
RC
67382004-04-07 Randolph Chung <tausq@debian.org>
6739
6740 * hppa-tdep.c (hppa_inner_than): Remove.
6741 (is_pa_2): Remove unused static variable.
8718a420 6742 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6743
e85c3284
PH
67442004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6745
6746 * language.h (language_defn): Add new la_post_parser field.
6747 * parser-defs.h (null_post_parser): New declaration (default for
6748 la_post_parser).
8718a420 6749
e85c3284
PH
6750 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6751 insert call to that function.
6752 (parse_exp_in_context): New function, including code formerly in
8718a420 6753 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6754 prefixification.
6755 (parse_expression_in_context): New exported function.
6756 (null_post_parser): New definition.
6757 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6758
e85c3284
PH
6759 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6760 * c-lang.c (c_language_defn): Ditto.
6761 (cplus_language_defn): Ditto.
6762 (asm_language_defn): Ditto.
6763 (minimal_language_defn): Ditto.
6764 * f-lang.c (f_language_defn): Ditto.
6765 * jv-lang.c (java_language_defn): Ditto.
6766 * language.c (unknown_language_defn): Ditto.
6767 (auto_language_defn): Ditto.
6768 (local_language_defn): Ditto.
6769 * m2-lang.c (m2_language_defn): Ditto.
6770 * scm-lang.c (scm_language_defn): Ditto.
6771 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6772
d9f8c85b
MK
67732004-04-10 Mark Kettenis <kettenis@gnu.org>
6774
fa34704a
MK
6775 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6776 (amd64nbsd_mcontext_addr): New function.
6777 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6778 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6779 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6780
403e1656
MK
6781 * corelow.c (core_xfer_partial): Fix coding standards violation.
6782 Add support for TARGET_OBJECT_WCOOKIE.
6783
a57e5a95
MK
6784 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6785 deprecated_pc_in_sigtramp.
6786 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6787 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6788 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6789 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6790 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6791 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6792 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6793
377d9ebd
MK
6794 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6795 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6796 Fix typo.
6797
f0ef85a5
MK
6798 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6799 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6800 (amd64_collect_fxsave): Likewise.
6801
d9f8c85b
MK
6802 * i386-sol2-tdep.c: Include "gdb_string.h".
6803 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6804 name.
6805 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6806
75f501b5
MK
68072004-04-10 Mark Kettenis <kettenis@gnu.org>
6808
6809 * i386-sol2-tdep.c: Include "solib-svr4.h".
6810 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6811 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6812 * config/i386/tm-i386sol2.h: Include :solib.h".
6813 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6814 solib-svr4.o and solib-legacy.o.
6815 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6816 solib-svr4.o.
6817
b31bc724
MK
68182004-04-09 Mark Kettenis <kettenis@gnu.org>
6819
18bbbd9e
MK
6820 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6821 whether a register is supplied by PTRACE_GETFPREGS.
6822 (store_inferior_registers): Likewise.
6823 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6824 whether a register is supplied by PT_GETFPREGS.
6825 (store_inferior_registers): Likewise.
6826
3c30bf1b
MK
6827 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6828 * config/i386/linux64.mt (TDEPFILES): Likewise.
6829
a4194092
MK
6830 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6831
911bc6ee
MK
6832 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6833 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6834 the program counter is in the range specified by `struct
6835 gdbarch_tdep'.
6836 * amd64-linux-tdep.c: Include "symtab.h".
6837 (amd64_linux_pc_in_sigtramp): Remove function.
6838 (amd64_linux_sigtramp_p): New function.
6839 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6840 deprecated_pc_in_sigtramp.
6841 * amd64nbsd-tdep.c: Include "symtab.h".
6842 (amd64nbsd_sigtramp_p): New function.
6843 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6844 deprecated_pc_in_sigtramp.
6845 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6846 few comments.
6847 (amd64obsd_pc_in_sigtramp): Remove function.
6848 (amd64obsd_sigtramp_p): New function.
6849 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6850 deprecated_pc_in_sigtramp.
6851 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6852 (i386bsd_pc_ins_sigtramp): Remove prototype.
6853 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6854 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6855 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6856 the program counter is in the range specified by `struct
6857 gdbarch_tdep'.
6858 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6859 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6860 (i386_go32_pc_in_sigtramp): Remove function.
6861 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6862 Initialize TDEP->sigtramp_p.
6863 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6864 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6865 deprecated_pc_in_sigtramp.
6866 * i386-linux-tdep.c: Adjust comments.
6867 (i386_linux_pc_in_sigtramp): Remove function.
6868 (i386_linux_sigtramp_p): New function.
6869 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6870 deprecated_pc_in_sigtramp.
6871 * i386-nto-tdep.c: Update copyright year.
6872 (i386nto_pc_in_sigtramp): Remove function.
6873 (i386nto_sigtramp_p): New function.
6874 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6875 SP_REGNUM.
6876 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6877 deprecated_pc_in_sigtramp.
6878 * i386-sol2-tdep.c: Update copyright year.
6879 (i386_sol2_pc_in_sigtramp): Remove function.
6880 (i386_sol2_sigtramp_p): New function.
6881 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6882 deprecated_pc_in_sigtramp.
6883 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6884 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6885 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6886 deprecated_sigtramp_start and deprecated_sigtramp_end.
6887 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6888 (i386nbsd_pc_in_sigtramp): Remove function.
6889 (i386nbsd_sigtramp_p): New function.
6890 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6891 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6892 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6893 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6894 (i386obsd_pc_in_sigtramp): Remove function.
6895 (i386obsd_sigtramp_p): New function.
6896 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6897 functions.
6898 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6899 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6900 TDEP->sigtramp_p.
6901 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6902 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6903 dependencies.
6904
e083e6ec
MK
6905 * config/i386/i386aout.mt: Remove file.
6906
bd153b94
MK
6907 * configure.tgt: Remove i[34567]86-*-go32*,
6908 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6909 and i[34567]86-*-isc*. Set gdb_target to i386 for
6910 i[34567]86-*-netware* and i[34567]86-*-*.
6911 * config/i386/i386.mt: New file.
6912 * config/i386/embed.mt: Remove file.
6913 * config/i386/go32.mt: Remove file.
6914 * config/i386/i386nw.mt: Remove file.
6915 * config/i386/i386v.mt: Remove file.
6916 * config/i386/tm-go32.h: Remove file.
6917
4a1bcc8c
MK
6918 * tui/tui-hooks.c: Include "readline/readline.h" after
6919 "gdb_curses.h" instead of before.
6920 * tui/tui-io.c: Likewise.
6921
f9a79064
MK
6922 * tui/tui.c: Fix typo in comment.
6923
b31bc724
MK
6924 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6925
f83f82bc
AC
69262004-04-08 Andrew Cagney <cagney@redhat.com>
6927
6928 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6929 (deprecated_exception_support_initialized): Declare.
8718a420 6930 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6931 (initialize_hp_cxx_exception_support)
6932 (child_enable_exception_callback): Update.
6933 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6934 (deprecated_exception_support_initialized): Rename
6935 deprecated_exception_catchpoints_are_fragile and
6936 deprecated_exception_support_initialized.
6937 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6938
6939 * symtab.c (deprecated_hp_som_som_object_present): Rename
6940 hp_som_som_object_present.
6941 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6942 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6943 Update. Delete extern declaration.
6944 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6945 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6946 (parse_nested_classes_for_hpacc): Ditto.
6947 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6948 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6949 (initialize_hp_cxx_exception_support): Ditto.
6950 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6951 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6952 (cp_print_class_method): Ditto.
8718a420 6953 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6954 (c_type_print_base): Ditto.
6955 * c-exp.y (hp_som_som_object_present): Ditto.
6956
fb2be677
AC
69572004-04-08 Andrew Cagney <cagney@redhat.com>
6958
6959 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6960 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6961 (frame_unwind_find_by_frame): Re-implement the unwind code so
6962 that it can both prepend and append sniffers. Replace
6963 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6964 * tramp-frame.c (tramp_frame_append): Use
6965 frame_unwind_prepend_unwinder.
6966 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6967 frame_unwind_register_unwinder.
6968 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6969 tramp_frame_append.
6970 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6971 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6972 (mips_linux_init_abi): Update.
6973
67faf007
KB
69742004-04-08 Kevin Buettner <kevinb@redhat.com>
6975
6976 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6977 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6978 file support.
6979
8973ff21
KB
69802004-04-07 Kevin Buettner <kevinb@redhat.com>
6981
6982 * ia64-tdep.c (elf.h): Don't include.
6983 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6984
4a0e2f88
JM
69852004-04-07 Jason Molenda (jmolenda@apple.com)
6986
6987 * frame.h: Typeo corrections in comments.
6988
9872ad24
JB
69892004-04-07 Jim Blandy <jimb@redhat.com>
6990
6991 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6992 %esp and %ebp
6993
70b216c8
MK
69942004-04-07 Mark Kettenis <kettenis@gnu.org>
6995
11d5789c
MK
6996 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6997 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6998 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6999 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7000 and solib-legacy.o.
7001 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7002 solib-svr4.o.
7003 * config/sparc/tm-sol2.h: Update copyright year. Include
7004 "solib.h".
7005
70b216c8
MK
7006 * sparc-sol2-tdep.c: Update copyright year. Include
7007 "solib-svr4.h".
7008 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7009 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7010 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7011 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7012 dependencies.
7013
6339dc9e
AC
70142004-04-06 Andrew Cagney <cagney@redhat.com>
7015
7016 * infttrace.c: Include "infttrace.h".
7017 * infttrace.h: Include "target.h".
7018 * Makefile.in (infttrace_h): Update.
7019 (infttrace.o): Update.
8718a420 7020
93449403
AC
70212004-04-06 Andrew Cagney <cagney@redhat.com>
7022
6d518969
AC
7023 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7024 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7025 move extern declarations from here ...
7026 * infttrace.h: ... to here.
7027 * Makefile.in (hppah-nat.o): Update dependencies.
7028
85f4f2d8
AC
7029 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7030 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7031 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7032 (hppa_breakpoint_from_pc): Delete.
7033
93449403
AC
7034 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7035
71456ec6
AC
70362004-04-05 Andrew Cagney <cagney@redhat.com>
7037
7038 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7039 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7040 <sys/file.h>.
8718a420 7041
4c02c60c
AC
70422004-04-06 Randolph Chung <tausq@debian.org>
7043
7044 Committed by Andrew Cagney (mechanical change).
7045 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7046 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7047 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7048 child_enable_exception_callback, current_ex_event,
7049 null_symtab_and_line, child_get_current_exception_event,
7050 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7051 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7052 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7053 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7054 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7055 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7056 Move hpux-specific definitions ...
7057 * hppa-hpux-tdep.c: ... to here.
7058
3a515653
AC
70592004-04-05 Andrew Cagney <cagney@redhat.com>
7060
7061 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7062 skip_prologue_using_sal.
7063
c1730d02
AC
70642004-04-05 Andrew Cagney <cagney@redhat.com>
7065
7066 * config/i386/tm-i386.h: Delete file.
7067 * config/i386/tm-vxworks.h: Update copyright, do not include
7068 "tm-i386.h".
7069 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7070 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7071 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7072 * config/i386/ncr3000.mt (TM_FILE): Delete.
7073 * config/i386/interix.mt (TM_FILE): Delete.
7074 * config/i386/i386v.mt (TM_FILE): Delete.
7075 * config/i386/i386nw.mt (TM_FILE): Delete.
7076 * config/i386/i386gnu.mt (TM_FILE): Delete.
7077 * config/i386/i386aout.mt (TM_FILE): Delete.
7078 * config/i386/embed.mt (TM_FILE): Delete.
7079
8b67aa36
KB
70802004-04-05 Kevin Buettner <kevinb@redhat.com>
7081
7082 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7083 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7084 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7085 (accg7_regnum): New constants.
7086 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7087 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7088 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7089 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7090 for accg registers.
7091 (frv_register_sim_regno): Update spr_map[].
7092
3c7012f5
AC
70932004-04-04 Andrew Cagney <cagney@redhat.com>
7094
7095 * config/mips/xm-riscos.h: Delete.
7096 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7097 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7098 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7099 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7100 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7101 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7102 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7103 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7104 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7105 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7106 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7107 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7108 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7109 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7110 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7111 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7112 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7113 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7114 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7115 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7116 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7117 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7118 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7119 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7120 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7121 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7122
3c7012f5
AC
7123 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7124 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7125 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7126 * configure.host: Remove m680[01]0-sun-sunos3*,
7127 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7128 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7129 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7130 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7131 mips-*-riscos*.
7132 * NEWS: Mention removed systems.
7133
99d16a21
AC
71342004-04-04 Andrew Cagney <cagney@redhat.com>
7135
7136 GDB 6.1 release created from 6.1 branch.
7137
6cdf9d98
AC
71382004-04-04 Andrew Cagney <cagney@redhat.com>
7139
98d346c3
AC
7140 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7141 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7142 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7143
6cdf9d98
AC
7144 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7145 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7146 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7147
859a326d
JB
71482004-04-03 Jim Blandy <jimb@redhat.com>
7149
7150 * MAINTAINERS: Chris Faylor has changed employers; add him to
7151 "paper trail" section, and update his E-mail address.
7152
b87178c3
AC
71532004-04-03 Andrew Cagney <cagney@redhat.com>
7154
4ea2acf0
AC
7155 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7156 generic dummy frames.
7157 * dummy-frame.c: Update copyright.
7158 (dummy_frame_sniffer): Delete check for generic dummy frames.
7159
d0bd2d18 7160 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 7161 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
7162 (REG_PARM_STACK_SPACE): Delete.
7163 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7164 Inline reference to REG_PARM_STACK_SPACE.
7165
b87178c3
AC
7166 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7167 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7168 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7169 (FRAME_BASE_BEFORE_SIGTRAMP)
7170 (hppa32_hpux_frame_base_before_sigtramp)
7171 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7172 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7173 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7174 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7175 (FRAME_BASE_BEFORE_SIGTRAMP)
7176 (hppa64_hpux_frame_base_before_sigtramp)
7177 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7178
43e2e1a0
AC
71792004-04-03 Andrew Cagney <cagney@redhat.com>
7180
7181 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7182
ddc135a4
AC
71832004-04-02 Andrew Cagney <cagney@redhat.com>
7184
7185 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7186 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7187 * dummy-frame.h: Delete out-of-date comments.
7188 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7189 * gdbarch.h, gdbarch.c: Re-generate.
7190
d15bfd3a 71912004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 7192
d15bfd3a
AC
7193 Committed by Andrew Cagney <cagney@redhat.com>.
7194 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7195 into account an instruction saving a register if we have already
7196 seen an earlier instruction saving that same register.
7197
f04ceafa
AC
71982004-04-02 Andrew Cagney <cagney@redhat.com>
7199
08be3abd
AC
7200 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7201 * gdbarch.h, gdbarch.c: Re-generate.
7202 * frame.c (legacy_get_prev_frame): Delete references to
7203 DEPRECATED_INIT_FRAME_PC_FIRST.
7204
f04ceafa
AC
7205 * infrun.c (pc_in_sigtramp): Delete function.
7206 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7207 get_frame_type.
7208
08e69816
AC
72092004-04-02 Andrew Cagney <cagney@redhat.com>
7210
7211 * infrun.c (handle_step_into_function): Delete code conditional on
7212 legacy_frame_p.
7213 (handle_inferior_event, step_over_function): Ditto.
7214
adb54772
AC
72152004-04-02 Andrew Cagney <cagney@redhat.com>
7216
7217 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7218 "previous frame inner to this frame" test.
7219
304396fb
AC
72202004-04-02 Andrew Cagney <cagney@redhat.com>
7221
7222 * frame.c (safe_frame_unwind_memory): New function.
7223 * frame.h (safe_frame_unwind_memory): Declare. Update description
7224 of /safe_/ methods.
7225 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7226 "next_frame". Use safe_frame_unwind_memory.
7227 (tramp_frame_sniffer): Update call to tramp_frame_start.
7228
6502dd73
DJ
72292004-04-01 Daniel Jacobowitz <drow@mvista.com>
7230
7231 * dwarf2read.c (dwarf2_objfile_data_key): New.
7232 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7233 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7234 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7235 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7236 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7237 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7238 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7239 Remove variables.
7240 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7241 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7242 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7243 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7244 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7245 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7246 Remove macros.
7247 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7248 data.
7249 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7250 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7251 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7252 (read_partial_die, read_full_die, read_indirect_string)
7253 (dwarf_decode_line_header, dwarf_decode_macros)
7254 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7255 Update uses of removed variables.
7256 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7257 of removed macros.
7258 (_initialize_dwarf2_read): New function.
7259 * symfile.h (dwarf2_has_info): Update prototype.
7260 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7261 * elfread.c (elf_symfile_read): Likewise.
7262
408752b0
JB
72632004-04-01 Jim Blandy <jimb@redhat.com>
7264
9f744501
JB
7265 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7266 function for register numbers on all the rs6000-derived targets.
7267 (rs6000_gdbarch_init): Don't register a separate
7268 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7269 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7270 variants.
7271
408752b0
JB
7272 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7273 numbering.
7274
2de41bce
PH
72752004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7276
7277 * valarith.c: Update copyright notice.
7278 (value_add): Handle range types.
7279 (value_sub): Ditto.
7280 (value_equal): Ditto.
7281 (value_less): Ditto.
7282 (value_neg): Ditto.
7283 (value_complement): Ditto.
8718a420 7284 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 7285 eliminiating unnecessary COERCE_ENUMs.
8718a420 7286
5613d8d3
AC
72872004-03-31 Andrew Cagney <cagney@redhat.com>
7288
7289 * frame.h (frame_unwind_id): Declare.
7290 * frame.c (frame_unwind_id): New function.
7291 (get_prev_frame_1): New function.
7292 (frame_debug_got_null_frame): New function.
7293 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7294 code proper to prev_frame, update description.
7295 * infrun.c (step_over_function): Use frame_unwind_id.
7296
c4557624
JB
72972004-04-31 J. Brobecker <brobecker@gnat.com>
7298
7299 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7300 (hppa64_push_dummy_call): Likewise.
7301
3e6bb910
JB
73022004-03-30 Jim Blandy <jimb@redhat.com>
7303
7304 From Ulrich Weigand:
7305 * utils.c (query): Do not use a va_list variable multiple times.
7306
a2f23071
DJ
73072004-03-29 Daniel Jacobowitz <drow@mvista.com>
7308
7309 * Makefile.in (linux_nat_h): Update dependencies.
7310 * configure.in: Check for <gnu/libc-version.h>.
7311 * configure: Regenerate.
7312 * config.in: Regenerate.
7313 * linux-nat.h: Include "target.h". Add waitstatus field to
7314 struct lwp_info.
7315 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7316 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7317 to.
7318 (lin_lwp_handle_extended): New function. Handle clone events.
7319 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7320 thread exit events.
7321 (child_wait): Handle clone events.
7322 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7323 * linux-nat.c (linux_enable_event_reporting): Turn on
7324 PTRACE_O_TRACECLONE.
7325 (linux_handle_extended_wait): Handle clone events.
7326 * thread-db.c: Include <gnu/libc-version.h>.
7327 (struct private_thread_info): Add dying flag.
7328 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7329 higher.
7330 (attach_thread): Update comments. Handle dying threads.
7331 (detach_thread): Set the dying flag.
7332 (check_event): Always call attach_thread.
7333
8d5f9dcb
DJ
73342004-03-29 Daniel Jacobowitz <drow@mvista.com>
7335
7336 * mips-tdep.c (mips_pdr_data): New.
7337 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7338 (_initialize_mips_tdep): Initialize mips_pdr_data.
7339
66337bb1
CV
73402004-03-29 Corinna Vinschen <vinschen@redhat.com>
7341
7342 * minsyms.c (install_minimal_symbols): Move dropping leading
7343 char from linkage name from here...
7344 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7345 test for "__gnu_compiled*" symbols.
7346
e802b915
JB
73472004-03-28 Jim Blandy <jimb@redhat.com>
7348
7349 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7350 registers to temp register r0 and byte stores as prologue
7351 instructions.
7352
72b56458
AC
73532004-03-28 Andrew Cagney <cagney@redhat.com>
7354
7355 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7356 arm*-*-*.
7357
0bfbda3b
SC
73582004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7359
7360 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7361 and switch the layout to force a display of register window.
7362
5a7225ed
JB
73632004-02-26 J. Brobecker <brobecker@gnat.com>
7364
7365 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7366 of the INTEGER class.
7367
81a07a45
JB
73682004-03-26 Jim Blandy <jimb@redhat.com>
7369
7370 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7371 bytes long on PPC GNU/Linux.
7372
8c691c7a
DC
73732004-03-26 David Carlton <carlton@kealia.com>
7374
7375 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7376
103a0089
AC
73772004-03-25 Andrew Cagney <cagney@redhat.com>
7378
7379 * PROBLEMS: Add general section titles, remove references to
7380 specific releases.
7381
7a5ea0d4
DJ
73822004-03-25 Daniel Jacobowitz <drow@mvista.com>
7383
7384 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7385 INT_REGISTER_SIZE.
7386 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7387 FP_REGISTER_VIRTUAL_SIZE.
7388 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7389 of DEPRECATED_REGISTER_RAW_SIZE.
7390 (arm_register_type): Add gdbarch argument.
7391 (arm_register_raw_size, arm_register_virtual_size): Delete.
7392 (arm_register_byte, arm_extract_return_value)
7393 (arm_store_return_value, arm_get_longjmp_target): Update references
7394 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7395 (arm_gdbarch_init): Likewise. Don't set
7396 deprecated_register_raw_size, deprecated_register_virtual_size,
7397 deprecated_max_register_raw_size,
7398 deprecated_max_register_virtual_size, or
7399 deprecated_max_register_virtual_type. Do set register_type.
7400 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7401 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7402 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7403 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7404 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7405 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7406 INT_REGISTER_SIZE.
7407 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7408 (remote_rdp_store_register): Likewise.
7409
5792a79b
DJ
74102004-03-24 Daniel Jacobowitz <drow@mvista.com>
7411
7412 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7413 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7414 to after osabi initialization.
7415 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7416 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7417 functions.
7418 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7419 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7420 variables.
7421 (mips_linux_init_abi): Append signal trampoline unwinders.
7422
1196bfda
AC
74232004-03-24 Andrew Cagney <cagney@redhat.com>
7424
7425 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7426 * tramp-frame.c: Include "gdb_assert.h".
7427 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7428 correct sizeof.
7429 (tramp_frame_append): Validate the tramp frame's instructions.
7430 * Makefile.in (tramp-frame.o): Update dependencies.
7431
4be282b4
AC
74322004-03-23 Andrew Cagney <cagney@redhat.com>
7433
7434 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7435
69aec09b
AC
74362004-03-23 Andrew Cagney <cagney@redhat.com>
7437
7438 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7439 Nasser as past testsuite/lib/ (and other) maintainers.
7440
63ed89b4
DJ
74412004-03-23 Daniel Jacobowitz <drow@mvista.com>
7442
7443 * infcmd.c (attach_command): Reread symbols if we already have
7444 an exec file.
7445
f3b36427
AC
74462004-03-23 Andrew Cagney <cagney@redhat.com>
7447
7448 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7449
aa2a3f87
AC
74502004-03-23 Andrew Cagney <cagney@redhat.com>
7451
7452 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7453 * gdbarch.h, gdbarch.c: Re-generate.
7454 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7455 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7456 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 7457 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 7458 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 7459 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
7460 (DEPRECATED_SIGTRAMP_START): Update.
7461 * blockframe.c (find_pc_sect_partial_function): Update.
7462 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7463
00cac895
DJ
74642004-03-23 Daniel Jacobowitz <drow@mvista.com>
7465
7466 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7467 if necessary.
7468
f561f026
AC
74692004-03-23 Andrew Cagney <cagney@redhat.com>
7470
7471 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7472 predicate, deprecate.
7473 * gdbarch.h, gdbarch.c: Re-generate.
7474 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7475 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7476 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7477 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7478 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7479 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7480 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7481 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7482 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7483 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7484 * blockframe.c (find_pc_partial_function): Update.
7485 * breakpoint.c (bpstat_what): Update.
7486 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7487 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7488 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7489 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7490 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7491 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7492 * i386-nto-tdep.c (i386nto_init_abi): Update.
7493 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7494 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7495 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7496 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7497 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7498 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7499 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7500 * infrun.c (pc_in_sigtramp): Update.
7501 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7502 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7503 * mips-tdep.c (mips_gdbarch_init): Update.
7504 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7505 * ppc-linux-tdep.c: Update comment.
7506 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7507 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7508 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7509 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7510 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7511 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7512 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7513 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7514 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7515 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 7516
8050c72f
AC
75172004-03-23 Andrew Cagney <cagney@redhat.com>
7518
d2259dd3
AC
7519 * tramp-frame.h, tramp-frame.h: New files.
7520 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7521 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7522
8050c72f
AC
7523 * Makefile.in: Update all dependencies.
7524
0db9b4b7
AC
75252004-03-23 Andrew Cagney <cagney@redhat.com>
7526
7527 * Makefile.in (trad_frame_h): Add $(frame_h).
7528 * trad-frame.h: Update copyright. Include "frame.h".
7529 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7530 (trad_frame_set_id, trad_frame_get_id): Declare.
7531 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7532 * trad-frame.c: Update copyright.
7533 (struct trad_frame_cache): Define.
7534 (trad_frame_cache_zalloc): New function.
7535 (trad_frame_set_id, trad_frame_get_id): New functions.
7536 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 7537
8e645ae7
AC
75382004-03-22 Andrew Cagney <cagney@redhat.com>
7539
7540 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7541 s390_pltstub_unwind_cache.
7542 (s390_stub_frame_unwind_cache): Rename
7543 s390_pltstub_frame_unwind_cache.
7544 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7545 (s390_stub_frame_prev_register): Rename
7546 s390_pltstub_frame_prev_register.
7547 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7548 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7549
7550 From Ulrich Weigand:
7551 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7552 pointer calls like PLT calls.
7553
34fcf120
DJ
75542004-03-22 Daniel Jacobowitz <drow@mvista.com>
7555
7556 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7557 PC rather than the partial function start address. Use the start
7558 address to sanity check the found PDR.
7559
5b917078
DJ
75602004-03-22 Daniel Jacobowitz <drow@mvista.com>
7561
7562 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7563 linux_handle_extended_wait.
7564
8adf9e78
AC
75652004-03-22 Andrew Cagney <cagney@redhat.com>
7566
c3122434
AC
7567 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7568 function.
7569
8adf9e78
AC
7570 * frame.h (generic_pop_current_frame): Delete declaration.
7571 (deprecate_pop_dummy_frame): Deprecate
7572 generic_pop_dummy_frame.
7573 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7574 (generic_pop_current_frame): Delete function.
7575 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7576 generic_pop_current_frame.
7577 * v850-tdep.c (v850_pop_frame): Update.
7578 * mcore-tdep.c (mcore_pop_frame): Update.
7579 * sh64-tdep.c (sh64_pop_frame): Update.
7580 * h8300-tdep.c (h8300_pop_frame): Update.
7581
90ba813f
AC
75822004-03-22 Andrew Cagney <cagney@redhat.com>
7583
7584 * frame.h (deprecated_pc_in_call_dummy): Rename
7585 generic_pc_in_call_dummy.
7586 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7587 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7588 generic_pc_in_call_dummy.
7589 (pc_in_dummy_frame): Make static.
7590 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7591 * gdbarch.h, gdbarch.c: Re-generate.
7592 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7593 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7594 (legacy_get_prev_frame): Ditto.
7595 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7596 comment.
8718a420 7597
ca4bb888
AC
75982004-03-21 Andrew Cagney <cagney@redhat.com>
7599
244675f9
AC
7600 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7601 declaration and out-of-date comment.
7602 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7603 Delete function.
7604 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7605 deprecated_pc_in_call_dummy.
7606
ca4bb888
AC
7607 * infrun.c (handle_inferior_event): For non legacy frames, use the
7608 frame ID and frame type to identify a signal trampoline. Update
7609 comments.
7610
1777c7b4
NW
76112004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7612
7613 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7614 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7615
82417da5
AC
76162004-03-21 Andrew Cagney <cagney@redhat.com>
7617
7618 * frame-unwind.h: Update copyright.
7619 (struct frame_data): Add opaque declaration.
7620 (frame_sniffer_ftype): Declare.
7621 (struct frame_unwind): Add "unwind_data" and "sniffer".
7622 (frame_unwind_register_unwinder): Declare.
7623 (frame_unwind_find_by_frame): Add parameter "this_cache".
7624 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7625 (legacy_get_prev_frame, legacy_get_prev_frame)
7626 (get_frame_type): Pass the prologue_cache to
7627 frame_unwind_find_by_frame.
7628 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7629 "unwinder".
7630 (frame_unwind_register_unwinder): New function.
7631 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7632
b2ba182e
PH
76332004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7634
7635 * bcache.c (print_percentage): Use floating point to avoid
7636 incorrect results when portion*100 overflows.
7637
81332287
KB
76382004-03-19 Kevin Buettner <kevinb@redhat.com>
7639
7640 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7641 (ppc_linux_init_extra_frame_info)
7642 (ppc_linux_frameless_function_invocation)
7643 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7644 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7645 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7646 (rs6000_frame_chain): Delete declarations.
7647 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7648 (ppc_linux_init_extra_frame_info)
7649 (ppc_linux_frameless_function_invocation)
7650 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7651 (ppc_linux_init_abi): Remove registration of above deleted functions.
7652 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7653 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7654 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7655 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7656 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7657 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7658 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7659 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7660 frame management for all OSABIs.
7661
61a65099
KB
76622004-03-19 Andrew Cagney <cagney@redhat.com>
7663
7664 Committed by Kevin Buettner <kevinb@redhat.com>.
7665
7666 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7667 Update copyright.
7668 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7669 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7670 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7671 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7672 unwinders. #ifdef legacy frame code.
7673 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7674 "frame-base.h".
7675 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7676 (struct rs6000_frame_cache, rs6000_frame_cache)
7677 (rs6000_frame_this_id, rs6000_frame_prev_register)
7678 (rs6000_frame_sniffer, rs6000_frame_unwind)
7679 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7680 (rs6000_frame_base): Implement a traditional frame unwinder.
7681 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7682 frame unwinder.
7683
88f7da05
KB
76842004-03-19 Kevin Buettner <kevinb@redhat.com>
7685
7686 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7687 breakpoint address for watchpoints or the catch eventpoints.
7688 Add new paramter ``bptype''. Adjust all callers.
7689
f826dce1
AC
76902004-03-19 Andrew Cagney <cagney@redhat.com>
7691
33cb8b0f
AC
7692 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7693
f826dce1
AC
7694 * PROBLEMS: Delete note that ARM does not use frame code, problem
7695 fixed.
7696
43b1ab88
AC
76972004-03-18 Andrew Cagney <cagney@redhat.com>
7698
292ab034
AC
7699 * stack.c (return_command): Delete code wrapped in #ifdef
7700 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7701
43b1ab88
AC
7702 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7703
dbfe4626
AC
77042004-03-18 Andrew Cagney <cagney@redhat.com>
7705
7706 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7707 DEPRECATED_IN_SIGTRAMP.
7708 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7709 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7710 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7711 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7712 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7713 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7714 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7715 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7716 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7717 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7718
0cad6aec
AC
77192004-03-18 Andrew Cagney <cagney@redhat.com>
7720
7721 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7722 (struct frame_base_table_entry): Define.
7723 (struct frame_base_table): Re-implement as a linked list.
7724 (frame_base_init): Re-implement.
7725 (frame_base_table): Delete function.
7726 (append_predicate): Delete function.
7727 (frame_base_append_sniffer): Update.
7728 (frame_base_set_default): Update.
7729 (frame_base_find_by_frame): Update.
7730 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7731 * Makefile.in (frame-base.o): Update dependencies.
7732
9982c2e7
AC
77332004-03-17 Andrew Cagney <cagney@redhat.com>
7734
7735 * frame.c (legacy_get_prev_frame): Pass correct frame to
7736 frame_unwind_find_by_frame.
7737
8dfe8985
DC
77382004-03-17 David Carlton <carlton@kealia.com>
7739
7740 * NEWS: Mention C++ nested types and namespaces
7741
ed47347a
MC
77422004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7743
7744 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7745 and "Regressions since gdb 5.3.". Add known regressions since
7746 gdb 6.0.
7747
90aeadfc
DC
77482004-03-16 David Carlton <carlton@kealia.com>
7749
7750 * dwarf2read.c (process_structure_scope): Process children even
7751 when we're a declaration.
7752
73912b9b
AC
77532004-03-16 Andrew Cagney <cagney@redhat.com>
7754
7755 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7756 * blockframe.c (find_pc_partial_function)
7757 (find_pc_sect_partial_function): Merge into a single
7758 find_pc_partial_function.
7759
283accbc
MK
77602004-03-16 Mark Kettenis <kettenis@gnu.org>
7761
7762 * i386bsd-nat.c: s/regno/regnum/g.
7763 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7764 FP0_REGNUM.
7765 (store_inferior_registers): Likewise.
7766
f5b1afdf
MK
77672004-03-16 Mark Kettenis <kettenis@gnu.org>
7768
7769 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7770 of i387_fill_fsave.
7771 (store_inferior_registers): Call i387_collect_fsave and
7772 i387_collect_fxsave instead of i387_fill_fsave and
7773 i387_fill_fxsave.
7774
41fe5eb3
AC
77752004-03-15 Andrew Cagney <cagney@redhat.com>
7776
7777 * Makefile.in (frame-unwind.o): Update dependencies.
7778 * frame-unwind.c: Include "gdb_obstack.h".
7779 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7780 parameter.
7781 (append_predicate): Delete function.
7782 (struct frame_unwind_table_entry): New structure.
7783 (struct frame_unwind_table): Replace "sniffer" with "head" and
7784 "tail".
7785 (frame_unwind_append_sniffer): Update.
7786 (frame_unwind_find_by_frame): Update.
7787 (_initialize_frame_unwind): Registe frame_unwind_init using
7788 gdbarch_data_register_pre_init.
7789
3f63813d
MK
77902004-03-15 Mark Kettenis <kettenis@gnu.org>
7791
7792 * i386bsd-nat.c: Update copyright year.
7793 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7794 define unconditionally.
7795
3248c325 77962004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7797
7798 * i387-tdep.h (i387_collect_fsave): New prototype.
7799 * i387-tdep.c (i387_collect_fsave): New function containing most
7800 of the code from i387_fill_fsave.
3248c325 7801 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7802
871fbe6a
MK
78032004-03-15 Mark Kettenis <kettenis@gnu.org>
7804
7805 * i386-linux-tdep.c: Update copyright year.
7806 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7807 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7808 svr4_ilp32_link_map_offsets instead of
7809 i386_linux_svr4_fetch_link_map_offsets.
7810
8176b9b8
DC
78112004-03-15 David Carlton <carlton@kealia.com>
7812
7813 Fix for PR c++/1553:
7814 * dwarf2read.c (read_structure_type): Determine type name by
7815 calling determine_class_name.
7816 (determine_class_name): New.
7817 (determine_prefix): Look at TYPE_TAG_NAME and call
7818 determine_class_name when appropriate.
7819 (determine_prefix_aux, class_name): Delete.
9d58e29d 7820 (read_namespace): Set die->type.
8176b9b8 7821
fe8bf7d7
KB
78222004-03-15 Kevin Buettner <kevinb@redhat.com>
7823
7824 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7825 unused macro definition. The definition in target.h (or perhaps
7826 elsewhere) takes precedence.
7827
ed6edd9b
AC
78282004-03-15 Andrew Cagney <cagney@redhat.com>
7829
f9be684a
AC
7830 * ppc-tdep.h: Update copyright.
7831 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7832 function signatures to match "regsets.h".
7833 * ppc-linux-tdep.c: Include "regset.h".
7834 (ELF_GREGSET_SIZE): Delete.
7835 (right_supply_register): New function.
7836 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7837 using right_supply_register.
7838 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7839 functions.
7840 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7841 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7842 (_initialize_ppc_linux_tdep): Do not register
7843 ppc_linux_regset_core_fns.
7844 (ppc_linux_regset_from_core_section): Replace
7845 fetch_core_registers.
7846 (ppc_linux_regset_core_fns): Delete.
7847 * ppc-linux-nat.c: (right_fill_reg): New function.
7848 (supply_gregset): Update call to ppc_linux_supply_gregset.
7849 (fill_gregset): Clear the register set, use right_fill_reg.
7850 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7851 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7852
ed6edd9b
AC
7853 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7854 unsigned.
7855
030f20e1
AC
78562004-03-15 Andrew Cagney <cagney@redhat.com>
7857
7858 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7859 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7860 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7861 and register_gdbarch_data.
7862 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7863 (struct gdbarch_data): Replace "init" by "pre_init" and
7864 "post_init".
7865 * gdbarch.h, gdbarch.c: Re-generate.
7866 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7867 with"obstack", use OBSTACK_ZALLOC.
7868 (dwarf2_frame_ops): Delete.
7869 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7870 (dwarf2_frame_init_reg): Use gdbarch_data.
7871 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7872 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7873 (_initialize_svr4_solib): Update.
7874 * user-regs.c (_initialize_user_regs): Update.
7875 * reggroups.c (_initialize_reggroup): Update.
7876 * regcache.c (_initialize_regcache): Update.
7877 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7878 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7879 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7880 * frame-unwind.c (_initialize_frame_unwind): Update.
7881 * frame-base.c (_initialize_frame_base): Update.
7882 * user-regs.c (user_reg_add): Update.
7883 * reggroups.c (reggroup_add): Update.
7884 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7885 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7886 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7887 * frame-base.c (frame_base_table): Update.
7888 * remote.c (_initialize_remote): Update.
7889 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7890
3111a3fc
AC
78912004-03-15 Andrew Cagney <cagney@redhat.com>
7892
7893 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7894
5ecb7103
KB
78952004-03-15 Kevin Buettner <kevinb@redhat.com>
7896
7897 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7898 * frv-linux-tdep.c: New file.
7899 * frv-tdep.c (struct gdbarch_tdep): Add new field
7900 ``sigcontext_reg_addr''.
7901 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7902 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7903 (frv_sigramp_frame_sniffer): New functions.
7904 (frv_sigtramp_frame_unwind): New static global.
7905 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7906 sniffers.
7907 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7908 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7909
1ccda5e9
KB
79102004-03-15 Kevin Buettner <kevinb@redhat.com>
7911
7912 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7913 but not via a call to error(), when unable to read memory.
7914
b375a0a5
KB
79152004-03-15 Kevin Buettner <kevinb@redhat.com>
7916
7917 * frv-tdep.c (frv_call_dummy_words): Delete.
7918 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7919
4fdf6121
AC
79202004-03-15 Andrew Cagney <cagney@redhat.com>
7921
7922 * infrun.c (handle_step_into_function, step_over_function): Only
7923 update and use STEP_FRAME_ID when the system is using legacy
7924 frames. Update comments.
7925
34021503
MK
79262004-03-14 Mark Kettenis <kettenis@gnu.org>
7927
187e21d1
MK
7928 * amd64-linux-tdep.h: Remove file.
7929 * amd64-linux-tdep.c: Don't include "inferior.h" and
7930 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7931 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7932 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7933 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7934 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7935 macros.
7936 (user_to_gdb_regmap): Remove variable.
7937 (amd64_linux_gregset_reg_offset): New variable.
7938 (amd64_core_fns): Remove variable.
7939 (fetch_core_registers): Remove function.
7940 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7941 functions.
7942 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7943 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7944 * Makefile.in (amd64_linux_tdep_h): Remove.
7945 (amd64-linux-nat.o): Update dependencies.
7946 (amd64-linux-tdep.o): Update dependencies.
7947
99679982
MK
7948 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7949 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7950 functions.
7951 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7952
34021503
MK
7953 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7954 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7955
134d01f1
DJ
79562004-03-14 Daniel Jacobowitz <drow@mvista.com>
7957
7958 * dwarf2read.c (read_structure_type): Rename from
8718a420 7959 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7960 Return immediately if die->type is set. Call read_type_die before
7961 dwarf2_add_member_fn.
7962 (process_structure_scope): New function.
7963 (read_enumeration_type, process_enumeration_scope): New functions,
7964 broken out from read_enumeration. Don't create the enumeration
7965 type if it has already been created.
7966 (read_enumeration): Removed.
7967 (process_die): Call read_structure_type, process_structure_scope,
7968 read_enumeration_type, and process_enumeration_scope. Just call
7969 new_symbol for base and subrange types. Add a comment about other
7970 type dies.
7971 (read_type_die): Call read_enumeration_type.
7972 (add_partial_structure, new_symbol): Update comments.
7973
65760afb
SC
79742004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7975
7976 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7977
10f59415
SC
79782004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7979
7980 * tui/tui-win.h (tui_get_cmd_list): Declare.
7981 * tui/tui-win.c (tui_command): New function.
7982 (tui_get_cmd_list): New function.
7983 (_initialize_tui_win): Moved initialization of tui command in
7984 tui_get_cmd_list.
7985
7986 * tui/tui-data.c (init_content_element): Setup new data members.
7987 (init_win_info): Likewise.
7988 (free_content_elements): Free it.
7989 * tui/tui-data.h (struct tui_data_element): Store the register
7990 content to print.
7991 (struct tui_data_info): Keep the current register group.
7992
7993 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7994
7995 * tui/tui-regs.h (tui_show_registers): Update prototype.
7996 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7997 (tui_resize_all): No need to calculate anything for register window.
7998 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7999 (tui_set_register_element, tui_set_general_regs_content): Remove.
8000 (tui_set_special_regs_content): Remove.
8001 (tui_set_general_and_special_regs_content): Remove.
8002 (tui_set_float_regs_content): Remove.
8003 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8004 (tui_set_regs_content): Remove.
8005 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8006 (tui_v_show_registers_command_support): Remove.
8007 (tui_show_registers): Use a reggroup to specify the registers to show.
8008 (tui_show_register_group): New function.
8009 (tui_display_registers_from): Compute the layout of register window
8010 and refresh with new API; be sure to delete old register windows.
8011 (tui_check_register_values): Update to use tui_get_register and
8012 tui_display_data.
8013 (tui_display_register): Just refresh the register window part.
8014 (tui_register_format): Format registers and save in tui_data_element.
8015 (tui_get_register): New to combine tui_reg_value_has_changed and
8016 tui_get_register_raw_value; fix to use the new gdb API.
8017 (tui_show_float_command): Renamed tui_reg_float_command.
8018 (tui_show_general_command): Renamed tui_reg_general_command.
8019 (tui_show_special_command): Renamed tui_reg_system_command.
8020 (_initialize_tui_regs): Remove unused commands.
8021
c3364ea4
MK
80222004-03-13 Mark Kettenis <kettenis@gnu.org>
8023
27d1e716
MK
8024 * NEWS (New native configurations): Mention OpenBSD/amd64.
8025
c3364ea4
MK
8026 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8027 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8028 Remove defines.
8029 * config/i386/nm-fbsd64.h: Likewise.
8030 * config/i386/nm-obsd.h: Likewise.
8031 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8032 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8033
b2d6d697
KB
80342004-03-12 Kevin Buettner <kevinb@redhat.com>
8035
8036 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8037 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8038 New constants.
8039
76e43199
KB
8040 From Richard Sandiford <rsandifo@redhat.com>:
8041 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8042
34ce532e
KB
80432004-03-12 Kevin Buettner <kevinb@redhat.com>
8044
8045 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8046 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8047 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8048 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8049 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8050 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8051 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8052 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8053 definitions from frv-tdep.c to frv-tdep.h.
8054
c4d10515
KB
80552004-03-12 Kevin Buettner <kevinb@redhat.com>
8056
8057 Add shared library support for FR-V FDPIC ABI:
8058 * Makefile.in (solib-frv.o): Add dependencies.
8059 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8060 New functions.
8061 (frv_push_dummy_call): Add support for FDPIC ABI.
8062 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8063 for FDPIC ABI.
8064 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8065 (frv_fdpic_find_canonical_descriptor): Declare.
8066 * solib-frv.c: New file.
8067 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8068 * config/frv/tm-frv.h (solib.h): Include.
8069
ed1bd989
KB
80702004-03-12 Kevin Buettner <kevinb@redhat.com>
8071
8072 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8073 (frv-tdep.o): Update dependencies.
8074 * frv-tdep.h: New file.
8075 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8076 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8077 constants.
8078 (struct gdbarch_tdep): Add new member ``frv_abi''.
8079 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8080 functions.
8081 (new_variant): Set ``frv_abi'' field.
8082 (gdb_arch_init): Detect FDPIC executables.
8083
82b38f72
MK
80842004-03-12 Mark Kettenis <kettenis@gnu.org>
8085
8086 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8087 wrapper.
8088
db1ea9ba
AC
80892004-03-11 Andrew Cagney <cagney@redhat.com>
8090
8091 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8092
f8766ec1
KB
80932004-03-11 Kevin Buettner <kevinb@redhat.com>
8094
8095 * solist.h (master_so_list): New function.
8096 * solib.c (master_so_list): Likewise.
8097 * solib-svr4.c (enable_break): Iterate over so_list entries
8098 obtained from master list instead of entries obtained directly
8099 via svr4_current_sos().
8100
523f6a27
BE
81012004-03-10 Ben Elliston <bje@gnu.org>
8102
8103 * MAINTAINERS: Update my mail address.
8104
37814c18
KI
81052004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8106
8107 * remote-m32r-sdi.c: Support hardware watchpoint.
8108
8b9740d8
DJ
81092004-03-09 Daniel Jacobowitz <drow@mvista.com>
8110
8111 * user-regs.c: Update copyright years.
8112 (struct user_regs): Rename to gdb_user_regs.
8113 (append_user_reg, builtin_user_regs, user_regs_init)
8114 (user_reg_add, user_reg_map_name_to_regnum)
8115 (usernum_to_user_reg): Update.
8116
4bb7a0a7
DJ
81172004-03-09 Daniel Jacobowitz <drow@mvista.com>
8118
8119 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8120 (skip_children): New functions.
8121 (locate_pdi_sibling): Call skip_children.
8122
44e1a9eb
DJ
81232004-03-09 Daniel Jacobowitz <drow@mvista.com>
8124
8125 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8126 * gdbtypes.c (check_typedef): Update comments.
8127
f3dd6933
DJ
81282004-03-09 Daniel Jacobowitz <drow@mvista.com>
8129
8130 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8131 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8132 pointer. Update comment about comp_unit_head.
8133 (struct abbrev_info): Shorten two int flags.
8134 (dwarf_alloc_abbrev): Take a CU argument.
8135 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8136 each time through the loop. Update cleanup argument.
8137 (psymtab_to_symtab_1): Update cleanup call.
8138 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8139 abbrev_obstack.
8140 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8141 Just call obstack_free and clear the pointer.
8142
b40c7d58
DJ
81432004-03-09 Daniel Jacobowitz <drow@mvista.com>
8144
8145 * infrun.c (handle_inferior_event): Remove short-circuit code for
8146 events in a different thread.
8147
333dabeb
DJ
81482004-03-09 Daniel Jacobowitz <drow@mvista.com>
8149
8150 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8151 print the whole transfer.
8152 (initialize_targets): Update description of "set debug target".
8153
aa17d93e
DJ
81542004-03-09 Daniel Jacobowitz <drow@mvista.com>
8155
8156 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8157
0b71f08f
NW
81582004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8159
8160 * MAINTAINERS (write after approval): Add myself.
8161
3930f270
CV
81622004-03-08 Corinna Vinschen <vinschen@redhat.com>
8163
8164 * sh-tdep.c (sh_print_registers_info): Use for loop.
8165 Don't skip multiple registers when a float register is encountered.
8166
a2b4a96c
CV
81672004-03-08 Corinna Vinschen <vinschen@redhat.com>
8168
8169 Fix PR tdep/1291.
8170 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8171 to official SH documentation.
8172
f15a4bc0
AC
81732004-03-07 Andrew Cagney <cagney@redhat.com>
8174
8175 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8176 unused function.
8177
9498281f
DJ
81782004-03-07 Daniel Jacobowitz <drow@mvista.com>
8179
8180 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8181 (arm_get_next_pc): Handle BX and BLX.
8182
449e1137
AC
81832004-03-07 Andrew Cagney <cagney@redhat.com>
8184
eded0a31
AC
8185 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8186 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8187 HPPA_SP_REGNUM.
8188 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8189 (hppa_target_read_fp): Delete.
8190 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8191 register_virtual_size, max_register_raw_size,
8192 max_register_virtual_size, register_byte, register_size,
8193 target_read_fp, fp_regnum, and register_bytes. Set register_type
8194 instead of register_virtual_type.
8195 (hppa32_register_type, hppa64_register_type): Replace
8196 hppa32_register_virtual_type and hppa64_register_virtual_type.
8197 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8198 (HPPA_FP_REGNUM): Define.
8199
f5f907e2
AC
8200 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8201
69b4bbe4
AC
8202 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8203 (pa_do_registers_info): Delete.
8204 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 8205 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 8206 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 8207
78161e48
AC
8208 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8209 GDB_TARGET_IS_HPPA code.
8210 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 8211 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
8212 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8213 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
8214 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8215 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8216 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 8217 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
8218 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8219 (hppa_frameless_function_invocation, hppa64_store_return_value)
8220 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 8221 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 8222 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 8223 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
8224 (find_proc_framesize, deposit_21, restore_pc_queue)
8225 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 8226 (rp_saved, pc_in_linker_stub): Delete.
78161e48 8227
782eae8b
AC
8228 Unconditionally enable 64-bit frame and ABI code.
8229 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8230 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8231 push_dummy_frame, fix_call_dummy, push_arguments,
8232 call_dummy_location, extract_return_value, use_struct_convention,
8233 store_return_value, store_struct_return, saved_pc_after_call,
8234 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8235 frame_chain, frame_chain_valid, frameless_function_invocation,
8236 frame_saved_pc, and pop_frame.
78161e48 8237
449e1137
AC
8238 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8239 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8240 (hppa_gdbarch_init): Do not set PC_REGNUM.
8241
12507572
MK
82422004-03-06 Mark Kettenis <kettenis@gnu.org>
8243
8244 * config/alpha/tm-fbsd.h: Remove file.
8245 * config/alpha/fbsd.mt: Tweak comment.
8246 (TM_FILE): Set to tm-alpha.h.
8247
c107cc1b
AC
82482004-03-05 Andrew Cagney <cagney@redhat.com>
8249
8250 * infrun.c (step_over_function): When non-legacy code, and no
8251 step_frame_id, use the unwinder to get the caller's frame ID.
8252
f2e7c15d
MK
82532004-03-05 Mark Kettenis <kettenis@gnu.org>
8254
8b0c3633
MK
8255 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8256 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8257 bfd_arch_unknown. Adjust comment.
8258
f2e7c15d
MK
8259 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8260 * i386obsd-tdep.c: Correct spelling in comment.
8261 * i386nbsd-tdep.c: Correct spelling in comment.
8262 * sparc-tdep.c: Correct spelling in comments.
8263
1198ecbe
DC
82642004-03-05 David Carlton <carlton@kealia.com>
8265
8266 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8267 bug.
8268
9eb42ed1
MK
82692004-03-05 Mark Kettenis <kettenis@gnu.org>
8270
8271 * sparc-tdep.c: Fix typo in comment.
8272
52b5e991
JB
82732004-03-04 J. Brobecker <brobecker@gnat.com>
8274
8275 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8276
d8151005
DJ
82772004-03-04 Daniel Jacobowitz <drow@mvista.com>
8278
8279 * dwarf2read.c: Add comment describing memory lifetimes.
8280 (struct dwarf2_pinfo): Update comment.
8281 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8282 (read_enumeration, new_symbol): Don't use obsavestring.
8283
cbeae229
MK
82842004-03-04 Mark Kettenis <kettenis@gnu.org>
8285
722d18c2
MK
8286 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8287 instead of amd64_fill_fxsave.
8288 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8289 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8290
cbeae229
MK
8291 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8292 Reorganize code a bit.
8293
b4206d25
OF
82942004-03-04 Orjan Friberg <orjanf@axis.com>
8295
8296 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
8297 when the frame pointer is pushed. Don't set the frame pointer's
8298 address on the stack unless it's actually located there.
b4206d25
OF
8299 Set the SRP's address on the stack correctly when the PC is still in
8300 the prologue.
8301 (cris_return_value): New function.
8302 (cris_gdbarch_init): Clear deprecated store_return_value,
8303 extract_return_value.
8304
49b0b195
JB
83052004-03-02 Jim Blandy <jimb@redhat.com>
8306
8307 * stabsread.c (reg_value_complaint): The maximum register number
8308 is one less than the number of registers.
8309
e9ff708b
AC
83102004-03-02 Andrew Cagney <cagney@redhat.com>
8311
8312 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8313 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8314 trailing comma and redundant assignment of I386_ST0_REGNUM.
8315 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8316 32-bit segment registers.
8317
d4715e41
AC
83182004-03-01 Andrew Cagney <cagney@redhat.com>
8319
8320 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8321 use frame_relative_level and get_next_frame.
8322
3ce2bf18
AC
83232004-02-29 Andrew Cagney <cagney@redhat.com>
8324
8325 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8326 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8327 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8328 Delete macro.
8329
2da6aac3
DJ
83302004-02-29 Daniel Jacobowitz <drow@mvista.com>
8331
8332 * inflow.c (terminal_inferior): Don't give up the terminal if we
8333 previously couldn't get the inferior's terminal state.
8334
6ba34a8d
DJ
83352004-02-29 Daniel Jacobowitz <drow@mvista.com>
8336
8337 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8338 PC_REGNUM.
8339
faae5abe
AC
83402004-02-28 Andrew Cagney <cagney@redhat.com>
8341
8342 * NEWS: Refer to GDB 6.1.
8343 * README: Refer to GDB 6.1.
8344 * PROBLEMS: Refer to GDB 6.1.
8345
2227a3c5
DJ
83462004-02-28 Daniel Jacobowitz <drow@mvista.com>
8347
8348 * thread-db.c (disable_thread_signals): Remove unused function.
8349
80571bff
MK
83502004-02-28 Mark Kettenis <kettenis@gnu.org>
8351
041bd74b
MK
8352 * amd64-nat.c: Include "gdb_string.h".
8353 (amd64_collect_native_gregset): Zero-extend the 32-bit
8354 general-purpose registers and %eip.
8355
3c017e40
MK
8356 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8357 * amd64-tdep.c (amd64_collect_fxsave): New function.
8358 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8359
80571bff
MK
8360 * i387-tdep.h: Update copyright year.
8361 (i387_collect_fxsave): New prototype.
8362 * i387-tdep.c: Update copyright year.
8363 (i387_collect_fxsave): New function containing most of the code
8364 from i387_fill_fxsave.
8365 (i387_fill_fxsave): Call i387_collect_fxsave.
8366
50d71875
AC
83672004-02-28 Andrew Cagney <cagney@redhat.com>
8368
8369 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8370 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8371
4a28816e
MK
83722004-02-28 Mark Kettenis <kettenis@gnu.org>
8373
8374 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8375
dbda9972
AC
83762004-02-28 Andrew Cagney <cagney@redhat.com>
8377
8378 * utils.c: Use "", instead of <>, to include readline.
8379 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8380 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8381 * source.c, solib.c, exec.c, event-top.c: Ditto.
8382 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8383 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8384 * Makefile.in: Update all dependencies.
8385 (readline_tilde_h, readline_history_h): Define.
8386 (readline_headers): Delete.
8387
83277a99
MK
83882004-02-28 Mark Kettenis <kettenis@gnu.org>
8389
91ae4303
MK
8390 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8391 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8392 "config/i386/tm-lx64.h".
8393
83277a99
MK
8394 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8395 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8396 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8397
6e1d7d6c
AC
83982004-02-28 Andrew Cagney <cagney@redhat.com>
8399
ecc9ac84
AC
8400 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8401
6e1d7d6c
AC
8402 * breakpoint.c (_initialize_breakpoint): Use
8403 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8404 Add help to show command.
8405
9671aeef
MK
84062004-02-28 Mark Kettenis <kettenis@gnu.org>
8407
7fa2737c
MK
8408 * i386-nat.c: Reformat to be closer to coding standards.
8409 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8410 `retval'. Make variables `align' and `size' local to while-loop.
8411 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8412 (_initialize_i386_nat): New prototype.
8413
9671aeef
MK
8414 * tui/tui.c: Include <readline/readline.h> instead of
8415 "readline/readline.h". Include it after <term.h> and
8416 "gdb_curses.h".
8417
fca7aa43
AC
84182004-02-27 Andrew Cagney <cagney@redhat.com>
8419
412275d5
AC
8420 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8421 the new frame unwind code.
8422 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8423 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8424 PCOQ_HEAD_REGNUM.
8425
fca7aa43
AC
8426 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8427 "return_value" and "push_dummy_call".
8428 (hppa32_use_struct_convention): Delete unused function.
8429 (hppa32_store_return_value): Delete unused function.
8430 (hppa32_extract_return_value): Delete unused function.
8431 (hppa32_stack_align): Delete function.
8432
e6a8a7d2
EZ
84332004-02-27 Eli Zaretskii <eliz@elta.co.il>
8434
8435 * coffread.c (enter_linenos): Don't let rawptr reference memory
8436 outside linetab[]'s limits.
8437
1797a8f6
AC
84382004-02-27 Andrew Cagney <cagney@redhat.com>
8439
8440 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8441 inferior stack space - the stack needs to grow upwards.
8442 (hppa32_frame_align): New function.
8443 (hppa64_frame_align): Replace hppa_frame_align.
8444 (hppa_gdbarch_init): Update.
8445
2e4b5889
OF
84462004-02-26 Orjan Friberg <orjanf@axis.com>
8447
8448 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8449 (dwarf2-frame.h): Include.
8450 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8451 Remove static variables related to ABI setting.
8452 (struct gdbarch_tdep): Remove cris_abi member.
8453 (struct frame_extra_info): Remove.
8454 (cris_unwind_cache, stack_item): New structs.
8455 (cris_frame_unwind, cris_frame_base): New variables.
8456 (push_stack_item, pop_stack_item)
8457 (cris_frame_unwind_cache, cris_frame_this_id)
8458 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8459 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8460 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8461 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8462 (cris_reg_struct_has_addr): New functions.
8463 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 8464 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
8465 (cris_store_struct_return, cris_frameless_function_invocation)
8466 (cris_pop_frame, cris_skip_prologue_main)
8467 (cris_abi_original_store_return_value)
8468 (cris_abi_v2_store_return_value)
8469 (cris_abi_original_extract_return_value)
8470 (cris_abi_v2_extract_return_value)
8471 (cris_abi_original_reg_struct_has_addr)
8472 (cris_abi_v2_reg_struct_has_addr)
8473 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8474 (cris_push_return_address, cris_abi_update): Remove.
8475 (_initialize_cris_tdep): Remove ABI command.
8476 (cris_dump_tdep): Ditto.
8718a420 8477 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
8478 Set store_return_value, extract_return_value, push_dummy_code,
8479 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8480 frame_unwind_append_sniffer, frame_base_set_default.
8481 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8482 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8483 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 8484 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
8485 init_extra_frame_info, frameless_function_invocation, frame_chain,
8486 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8487 dummy_write_sp.
8718a420 8488
6b9acc27
JJ
84892004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8490
8491 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8492 * valprint.c (print_hex_chars): Change from static to external.
8493 (print_char_chars): New function.
8494 * printcmd.c (print_scalar_formatted): For integer and enum types
8495 that are longer than LONGEST, perform processing via appropriate
8496 print_*_chars routines.
8497
a431654a
AC
84982004-02-26 Andrew Cagney <cagney@redhat.com>
8499
8500 * Makefile.in: Update dependencies.
8501 Changes from Ulrich Weigand,
8502 * s390-tdep.c: Include "dwarf2-frame.h".
8503 (s390_dwarf2_frame_init_reg): New function.
8504 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8505 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8506
fa8d40ab
JJ
85072004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8508
8509 * breakpoint.c (pending_break_support): New setting variable.
8510 (break_command_1): Account for pending_break_support setting
8511 when creating pending breakpoints.
8512 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8513 (_initialize_breakpoint): Add "set breakpoint pending" and
8514 "show breakpoint pending" commands.
8515
0dcd613f
AC
85162004-02-26 Andrew Cagney <cagney@redhat.com>
8517
8518 Fix PR i18n/1570.
8519 * charset.c (backslashable, backslashed, represented): Remove 'e'
8520 from list of escaped characters, not part of ISO-C.
8521
479272a3
JB
85222004-02-25 J. Brobecker <brobecker@gnat.com>
8523
8524 From Peter Schauer <schauer@pdf.de>:
8525 * tui/tui.c: Move system header includes after local includes.
8526 Fixes a build failure on solaris systems.
8527
7613d933
JB
85282004-02-25 J. Brobecker <brobecker@gnat.com>
8529
8530 * configure.in: Refine the previous change.
8531 * configure: Regenerate.
8532
9c1488cb
MK
85332004-02-25 Mark Kettenis <kettenis@gnu.org>
8534
8535 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8536 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8537 "amd64-tdep.h" instead of "x86-64-tdep.h".
8538 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8539 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8540 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8541 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8542 and "x86-64-tdep.c".
8543 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8544 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8545 and "x86-64-tdep.c".
8546 * amd64bsd-nat.c: Update copyright year.
8547 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8548 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8549 "x86-64-tdep.h".
8550 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8551 "x86-64-tdep.h".
8552 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8553 "x86-64-tdep.h".
8554 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8555 "x86-64-tdep.h".
8556 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8557 "x86-64-tdep.h".
8558 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8559 "x86-64-tdep.h".
8718a420 8560 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8561 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8562 * Makefile.in (amd64_linux_tdep_h): Renamed from
8563 x86_64_linux_tdep_h.
8564 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8565 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8566 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8567 (amd64obsd-tdep.o): Update dependencies.
8568 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8569 dependencies.
8570 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8571 dependencies.
8572 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8573 amd64-linux-nat.c amd64-linux-tdep.c.
8574 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8575 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8576 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8577 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8578 amd64-tdep.o and amd64-linux-tdep.o.
8579 (TM_FILE): Set to tm-linux64.h.
8580 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8581 (NAT_FILE): Set to nm-linux64.h.
8582 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8583 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8584 amd64-tdep.o.
8585 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8586 amd64-tdep.o.
8587 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8588 amd64-tdep.o.
8589
4b8dad4a
RM
85902004-02-25 Roland McGrath <roland@redhat.com>
8591
8592 * remote.c (remote_protocol_qPart_auxv): New variable.
8593 (init_all_packet_configs): Initialize it.
8594 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8595 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8596 (show_remote_cmd): Call it.
8597 (_initialize_remote): Initialize commands.
8598 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8599 service TARGET_OBJECT_AUXV requests.
8600
66745969
JB
86012004-02-25 J. Brobecker <brobecker@gnat.com>
8602
8603 * configure.in: Make sure that the wborder function is available.
8604 Otherwise, search for it in the cur_colr library.
8605 * configure: Regenerate.
8606
79508e1e
AC
86072004-02-25 Andrew Cagney <cagney@redhat.com>
8608
8609 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8610
571ee600
MK
86112004-02-25 Mark Kettenis <kettenis@gnu.org>
8612
8613 * config/i386/tm-x86-64linux.h: Tweak comments.
8614
2b1b322f 86152004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8616
8617 * MAINTAINERS: Add self to write-after-approval list.
8618
4d2acc65
AC
86192004-02-25 Andrew Cagney <cagney@redhat.com>
8620
4b8dad4a 8621 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8622 * cli/cli-script.c (execute_control_command): Unconditionally
8623 install a cleanup. Default "ret" to "invalid_control". Use
8624 "break" instead of "return" to escape from the switch.
8625
4cfcaf21
JB
86262004-02-24 J. Brobecker <brobecker@gnat.com>
8627
8628 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8629 with the lines macro defined in term.h on AiX.
8630 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8631 a collision with the label_width macro defined in term.h on AiX.
8632
54a5c8d8
KB
86332004-02-23 David Mosberger <davidm@hpl.hp.com>
8634
8635 Committed by Kevin Buettner <kevinb@redhat.com>.
8636
8637 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8638 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8639 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8640 instead of ia64_write_pc().
8641 * ia64-linux-tdep.c (regcache.h): Include.
8642 (ia64_linux_write_pc): New function.
4b8dad4a 8643
8a1dac83
RM
86442004-02-23 Roland McGrath <roland@redhat.com>
8645
8646 * auxv.c (info_auxv_command): Fix typos in error messages.
8647
90f90721
MK
86482004-02-23 Mark Kettenis <kettenis@gnu.org>
8649
8a1dac83 8650 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8651 (enum amd64_regnum): New.
8652 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8653 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8654 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8655 (X86_64_XMM1_REGNUM): Removed.
8656 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8657 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8658 prototypes for renamed functions.
8659 * x86-64-tdep.c: Fix typo.
8660 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8661 register numbers.
8662 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8663 Use constants from `enum amd64_regnum' for register numbers.
8664 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8665 (amd64_analyze_prologue, amd64_frame_cache,
8666 amd64_sigtramp_frame_cache): Use constants from `enum
8667 amd64_regnum' for register numbers.
8668 (amd64_supply_fpregset): Adjust for renamed functions.
8669 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8670 `enum amd64_regnum' for register numbers.
8671 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8672 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8673 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8674 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8675 (amd64_linux_fill_gregset): Adjust for renamed macros.
8676 (fetch_core_registers): Adjust for renamed functions.
8677 (amd64_linux_init_abi): Adjust for renamed functions.
8678 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8679 renamed functions.
8680 * amd64-nat.c: Adjust for renamed macros.
8681 * amd64bsd-nat.c (fetch_inferior_registers)
8682 (store_inferior_registers): Use constants from `enum amd64_regnum'
8683 for register numbers. Adjust for renamed variables.
8684 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8685 renamed variables.
8686 (_initialize_amd64fbsd_nat): Use constants from `enum
8687 amd64_regnum' for register numbers.
8688 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8689 `enum amd64_regnum' for register numbers.
8690 (amd64fbsd_init_abi): Adjust for renamed functions.
8691 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8692 `enum amd64_regnum' for register numbers.
8693 (amd64nbsd_init_abi): Adjust for renamed functions.
8694 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8695 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8696 `enum amd64_regnum' for register numbers.
8697 (amd64obsd_init_abi): Adjust for renamed functions.
8698 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8699
d5479188
JJ
87002004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8701
8702 * breakpoint.c (print_one_breakpoint): Do not output spaces
8703 after printing <PENDING> for a pending breakpoint.
8704
81cb7cc9
JJ
87052004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8706
8707 * printcmd.c (print_scalar_formatted): Initialize val_long
8708 to remove compiler warning message.
8709
cbdeadca
JJ
87102004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8711
8712 * defs.h (nquery, yquery): New prototypes.
8713 * breakpoint.c (break_command_1): Use new nquery interface.
8714 * utils.c (defaulted_query, nquery, yquery): New functions.
8715
da6bab63
AC
87162004-02-23 Andrew Cagney <cagney@redhat.com>
8717
2f690297
AC
8718 * hppa-tdep.c (hppa_frame_align): New function.
8719 (hppa32_push_dummy_call): New function.
8720 (hppa64_push_dummy_call): New function.
8721 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8722 disabled.
8a1dac83 8723
da6bab63
AC
8724 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8725 FIX_CALL_DUMMY when push_dummy_call is available.
8726 (call_function_by_hand, push_dummy_code): Ditto.
8727
abf9b42d
AC
87282004-02-22 Andrew Cagney <cagney@redhat.com>
8729
8730 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8731 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8732 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8733 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8734 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8735 call_dummy_location to ON_STACK.
8736
10fc94a4
MK
87372004-02-22 Mark Kettenis <kettenis@gnu.org>
8738
51433e4b
MK
8739 * x86-64-linux-tdep.c: Tweak comment.
8740 (amd64_linux_supply_gregset): Renamed from
8741 x86_64_linux_supply_gresget.
8742 (amd64_linux_fill_gregset): Renamed from
8743 x86_64_linux_fill_gregset.
8744 (fetch_core_registers): Adjust for renamed functions.
8745 (amd64_core_fns): Renamed from x86_64_core_fns.
8746 (amd64_linux_sigtramp_start): Renamed from
8747 x86_64_linux_sigtramp_start.
8748 (amd64_linux_pc_in_sigtramp): Renamed from
8749 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8750 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8751 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8752 (amd64_linux_sigcontext_addr): Renamed from
8753 x86_64_linux_sigcontext_addr.
8754 (amd64_linux_sc_reg_offset): Renamed from
8755 x86_64_linux_sc_reg_offset.
8756 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8757 Adjust for renamed functions and variables.
8758 (_initialize_amd64_linux_tdep): Renamed from
8759 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8760 variables.
8761 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8762 Adjust for renamed functions.
8763
430eaf2e
MK
8764 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8765 from x86_64_linux_gregset64_reg_offset.
8766 (amd64_linux_gregset32_reg_offset): Rename from
8767 x86_64_linux_gregset64_reg_offset.
8768 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8769 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8770 (amd64_linux_dr_set_control): Renamed from
8771 x86_64_linux_dr_set_control. Adjust for renamed functions.
8772 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8773 Adjust for renamed functions.
8774 (amd64_linux_dr_reset_addr): Renamed from
8775 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8776 (amd64_linux_dr_get_status): Renamed from
8777 x86_64_linux_dr_get_status. Adjust for renamed functions.
8778 (_initialize_amd64_linux_nat): Renamed from
8779 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8780 functions.
8781 * config/i386/nm-x86-64linux.h: Update copyright year.
8782 Adjust for renamed functions.
8783
10fc94a4
MK
8784 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8785 amd64fbsd_sigtramp_start.
8786 (amd64fbsd_sigtramp_end_addr): Renamed from
8787 amd64fbsd_sigtramp_end.
8788 (amd64fbsd_init_abi): Adjust for renamed variables.
8789 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8790 variables.
8791 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8792 amd64fbsd_sigtramp_start.
8793 (amd64fbsd_sigtramp_end_addr): Renamed from
8794 amd64fbsd_sigtramp_end.
8795
343af405
AC
87962004-02-22 Andrew Cagney <cagney@redhat.com>
8797
537987fc
AC
8798 * hppa-tdep.c (hppa32_return_value): New function.
8799 (hppa64_return_value): New function.
8800 (hppa_gdbarch_init): Set return_value; keep disabled.
8801
fad850b2
AC
8802 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8803 struct-return and inferior function call methods.
8804
26d08f08
AC
8805 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8806 "frame-base.h".
8807 (struct hppa_frame_cache): Define.
8808 (hppa_frame_cache, hppa_frame_this_id): New functions.
8809 (hppa_frame_prev_register): New function.
8810 (hppa_frame_unwind, hppa_frame_base): New variables.
8811 (hppa_frame_unwind_sniffer): New function.
8812 (hppa_frame_base_address, hppa_unwind_pc): New function.
8813 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8814 sniffer, and frame base sniffer; keep disabled.
8815 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8816 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8817
e7d7bd65
AC
8818 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8819 to predicates for "seriously old code".
8820
e963316f
AC
8821 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8822 runtime if(0).
8823
56132691
AC
8824 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8825 unsigned.
8826 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8827
343af405
AC
8828 * config/pa/tm-hppa.h: Update copyright.
8829 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8830 (deprecated_init_frame_pc_default): Delete declaration.
8831 (hppa_frame_init_saved_regs): Delete declaration.
8832 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8833 * hppa-tdep.c: Include "arch-utils.h".
8834 (hppa_gdbarch_init): Set deprecated init_frame_pc
8835 and deprecated frame_init_saved_regs.
8836 (hppa_frame_init_saved_regs): Make static.
8837
f5859b4d
MK
88382004-02-22 Mark Kettenis <kettenis@gnu.org>
8839
86f6f8e7 8840 Remove old 386BSD support.
cf7c5c23 8841 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8842 * configure.host: Remove i[34567]86-*-bsd*.
8843 * configure.tgt: Remove i[34567]86-*-bsd*.
8844 * i386b-nat.c: Removed.
8845 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8846 (i386b-nat.o): Remove dependencies.
8847
86f6f8e7
MK
8848 * config/i386/i386bsd.mh: Removed.
8849 * config/i386/i386bsd.mt: Removed.
8850 * config/i386/nm-i386bsd.h: Removed.
8851 * config/i386/tm-i386bsd.h: Removed.
8852 * config/i386/xm-i386bsd.h: Removed.
8853
971218cd
MK
8854 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8855
7e654c37
MK
8856 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8857 (amd64fbsd_init_abi): Set link map offsets.
8858 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8859 (amd64nbsd_init_abi): Set link map offsets.
8860 * amd64obsd-tdep.c: Include "solib-svr4.h".
8861 (amd64obsd_init_abi): Set link map offsets.
8862 * i386fbsd-tdep.c: Include "solib-svr4.h".
8863 (i386fbsd_init_abi): Set link map offsets.
8864 * i386nbsd-tdep.c: Include "solib-svr4.h".
8865 (i386nbsdelf_init_abi): Set link map offsets.
8866 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8867 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8868 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8869 solib-legacy.o and core-aout.o. Reformat.
8870 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8871 solib-svr4.o, solib-legacy.o. Reformat.
8872 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8873 * config/i386/nbsdelf.mh: Reformat.
8874 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8875 solib-svr4.o, solib-legacy.o and corelow.o.
8876 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8877 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8878 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8879 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8880 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8881 (TM_FILE): Set to tm-fbsd.h.
8882 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8883 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8884 solib-svr4.o.
8885 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8886 solib-svr4.o.
8887 (TM_FILE): Set to nm-nbsd.h.
8888 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8889 Simplify shared library support. Don't include "elf/common.h".
8890 (SVR4_SHARED_LIBS): Don't define.
8891 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8892 "solib.h".
8893 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8894 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8895 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8896 Don't include "i386/tm-i386.h". Include "solib.h".
8897 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8898 Don't include "i386/tm-i386.h".
8899 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8900 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8901 Include "i386/xm-i386.h".
8902 (HOST_LONG_DOUBLE_FORMAT): Remove.
8903
5d93ae8c
MK
8904 Fix OpenBSD/i386 sigtramp recognition.
8905 * i386-tdep.h: Update copyright year.
8906 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8907 (i386bsd_sigtramp_end): New prototypes.
8908 (i386fbsd_sigtramp_start_addr): Renamed from
8909 i386fbsd_sigtramp_start.
8910 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8911 (i386obsd_sigtramp_start_addr): Renamed from
8912 i386obsd_sigtramp_start.
8913 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8914 * i386bsd-tdep.c: Update copyright year.
8915 (i386bsd_pc_in_sigtramp): Make public.
8916 * i386fbsd-nat.c: Update copyright year.
8917 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8918 * i386fbsd-tdep.c: Update copyright year.
8919 (i386fbsd_sigtramp_start_addr): Renamed from
8920 i386fbsd_sigtramp_start.
8921 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8922 (i386fbsdaout_init_abi): Adjust for renamed variables.
8923 * i386obsd-nat.c: Update copyright year.
8924 (_initialize_i386obsd_nat): Adjust for renamed variables.
8925 * i386obsd-tdep.c: Include "target.h".
8926 (i386obsd_page_size): New variable.
8927 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8928 (i386obsd_sigtramp_end): New functions.
8929 (i386obsd_sigtramp_start_addr): Renamed from
8930 i386obsd_sigtramp_start.
8931 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8932 (i386obsd_init_abi): Adjust for renamed variables. Set
8933 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8934 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8935
84d04465
MK
8936 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8937 trampoline change in OpenBSD kernel.
8938
b053aceb
MK
8939 * amd64-nat.c: Update copyright year.
8940 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8941 architecture from REGCACHE.
8942
f5859b4d
MK
8943 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8944 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8945
e4bbbda8
MK
89462004-02-21 Mark Kettenis <kettenis@gnu.org>
8947
ba361932
MK
8948 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8949 i[34567]86-*-openbsd3.[0-3].
8950 * config/i386/obsdaout.mh: New file.
8951
d3e48264
MK
8952 * config/i386/obsd.mh (MH_FLAGS): Remove.
8953
60a6eeb6
MK
8954 Fix PR build/1549.
8955 * i386obsd-tdep.c: Update copyright years. Include
8956 "solib-svr4.h".
8957 (i386obsd_init_abi): Don't set regset_from_core_section here.
8958 (i386obsd_aout_init_abi): New function. Set
8959 regset_from_core_section here.
8960 (i386obsd_elf_init_abi): New function.
8961 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8962 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8963 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8964 (TM_FILE): Set to tm-nbsd.h.
8965
8966 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8967 solib-sunos.o.
8968
e4bbbda8
MK
8969 * solib-svr4.h: Update copyright year.
8970 (svr4_ilp32_fetch_link_map_offsets)
8971 (svr4_lp64_fetch_link_map_offsets): New prototype.
8972 * solib-svr4.c: Update copyright year.
8973 (svr4_ilp32_fetch_link_map_offsets)
8974 (svr4_lp64_fetch_link_map_offsets): New function.
8975
f6fe98ef
DJ
89762004-02-20 Daniel Jacobowitz <drow@mvista.com>
8977
8978 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8979 to the partial symbol table.
8980
589ca796
JB
89812004-02-20 J. brobecker <brobecker@gnat.com>
8982
8983 * PROBLEMS: Add description of problem documented under gdb/1560.
8984
2031c21a
MK
89852004-02-20 Mark Kettenis <kettenis@gnu.org>
8986
30b344b1
MK
8987 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8988 comments.
8989 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8990 functions.
8991 (amd64obsd_init_abi): Reorder initializations. Use
8992 amd64obsd_r_reg_offset to initialize the general-purpose register
8993 set details. Set regset_from_core_section.
8994 (_initialize_amd64obsd_tdep): Rename from
8995 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8996 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8997 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8998
2031c21a
MK
8999 * NEWS (New native configurations): Mention OpenBSD/alpha.
9000 * configure.tgt: Add alpha*-*-openbsd*.
9001 * configure.host: Add alpha*-*-openbsd*.
9002 * alphanbsd-tdep.c: Update copyright year.
9003 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9004
42471775
AC
90052004-02-20 Andrew Cagney <cagney@redhat.com>
9006
9007 Fix PR tdep/1372.
9008 * configure.tgt: Delete target "none-*-*".
9009 * configure.host: Delete host "none-*-*".
9010 * config/none/none.mh: Delete file.
9011 * config/none/none.mt: Delete file.
9012 * config/none/xm-none.h: Delete file.
9013 * config/none/tm-none.h: Delete file.
9014 * config/none/nm-none.h: Delete file.
9015
960ccd7d
FF
90162004-02-19 Fred Fish <fnf@redhat.com>
9017
9018 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9019 cache->uses_fp prior to setting it.
9020
5f883edd
FF
90212004-02-19 Fred Fish <fnf@redhat.com>
9022
9023 Fix for PR breakpoint/1558.
9024 * sh-tdep.c (IS_JSR): New macro.
9025 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9026
f98c22d5
JB
90272004-02-19 Jim Blandy <jimb@redhat.com>
9028
9029 * findvar.c (value_from_register): Doc fix.
9030
95051d27
JJ
90312004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9032
9033 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9034 type being greater than sizeof of host's LONGEST. Always use
9035 unpack_long() unless format 'f' chosen.
9036
ccefbec3
EZ
90372004-02-19 Joel Brobecker <brobecker@gnat.com>
9038
9039 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9040
ccefbec3
EZ
9041 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9042 contains a symbol wich is the best, non-exact match for the given
9043 pc. Update comments.
9044
90452004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9046
2ede629f
EZ
9047 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9048 macro, which was part of the now removed Mach 3 port.
9049 * utils.c (request_quit): Ditto.
9050
567ee972
MK
90512004-02-18 Mark Kettenis <kettenis@gnu.org>
9052
9053 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9054 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9055
50cca7bb
MK
90562004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9057
9058 Committed by Mark Kettenis <kettenis@gnu.org>.
9059
9060 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9061 Define.
9062
226361c4
AC
90632004-02-18 Andrew Cagney <cagney@redhat.com>
9064
9065 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9066 CONFIG_INSTALL and CONFIG_UNINSTALL.
9067 * configure: Re-generate.
9068 * interps.h (INTERP_TUI): Define.
9069 * Makefile.in: Update dependencies.
9070 (TUI): New macro.
9071 (tui-main.o): Specify dependencies.
9072 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9073 * tui/tui-main.c: New file.
9074
49cfa46f
MK
90752004-02-18 Mark Kettenis <kettenis@gnu.org>
9076
e2879ccb
MK
9077 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9078 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9079 dependencies.
9080 * configure.host: Add x86_64-*-openbsd*.
9081 * configure.tgt: Add x86_64-*-openbsd*.
9082 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9083
c43f4bec
MK
9084 * tui/tui.c: Don't include <malloc.h>.
9085
09ae75b6
MK
9086 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9087 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9088 amd64nbsd-tdep.c.
9089
49cfa46f 9090 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9091 static. Remove extraneous whitespace.
49cfa46f
MK
9092 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9093 static.
9094
05957fdb
JB
90952004-02-17 Jim Blandy <jimb@redhat.com>
9096
9097 * findvar.c (value_from_register): Doc fix.
9098
d0f54f9d
JB
90992004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9100
9101 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9102
8a1dac83 9103 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9104 CORE_ADDR as type for selectors. Correct types for GNU run time
9105 message lookup function to use double indirection.
9106 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9107 * objc-lang.h (lookup_child_selector): Adapt prototype.
9108
9cbd5950
JB
9109 * s390-nat.c (SUBOFF): New macro.
9110 (supply_gregset, fill_gregset): Use it to handle debugging
9111 of 32-bit exectuables running under a 64-bit kernel.
9112 * s390-tdep.c: Include "solib-svr4.h".
9113 (s390_svr4_fetch_link_map_offset): New function.
9114 (s390x_svr_fetch_link_map_offset): Likewise.
9115 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9116 * Makefile.in (s390-tdep.o): Update dependencies.
9117
a8c99f38
JB
9118 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9119 "frame-unwind.h".
9120 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9121 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9122 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9123 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9124 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9125 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9126 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9127 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9128 (struct frame_extra_info): Remove.
9129 (s390_memset_extra_info): Remove.
f73b1eff
JB
9130 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9131 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9132 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9133 (is_rse): Renamed to ...
9134 (is_rsy): ... this. Support long displacements.
9135 (is_rxe): Renamed to ...
9136 (is_rxy): ... this. Support long displacements.
9137 (compute_x_addr): Support long displacements.
9138 (struct s390_prologue_data): New data type.
9139 (s390_on_stack): Change API to use struct s390_prologue_data.
9140 (s390_store): Reimplement.
9141 (s390_load): New function.
9142 (s390_get_signal_frame_info): Remove.
9143 (s390_get_frame_info): Remove, replace by ...
9144 (s390_analyze_prolog): ... this new function.
9145 (s390_check_function_end): Remove.
9146 (s390_function_start): Remove.
9147 (s390_frameless_function_invokation): Remove.
9148 (s390_is_sigreturn): Remove.
9149 (s390_init_frame_pc_first): Remove.
9150 (s390_init_frame_extra_info): Remove.
9151 (s390_frame_init_saved_regs): Remove.
9152 (s390_frame_saved_pc_nofix): Remove.
9153 (s390_frame_saved_pc): Remove.
9154 (s390_frame_chain): Remove.
9155 (s390_fp_regnum, s390_read_fp): Remove.
9156 (s390_pop_frame_regular, s390_pop_frame): Remove.
9157 (s390_saved_pc_after_call): Remove.
9158 (s390_skip_prologue): Reimplement.
9159 (s390_in_function_epilogue_p): Support long displacements.
9160 (struct s390_unwind_cache): New data structure.
9161 (s390_frame_unwind_cache): New function.
9162 (s390_prologue_frame_unwind_cache): Likewise.
9163 (s390_backchain_frame_unwind_cache): Likewise.
9164 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9165 (s390_frame_unwind): Define.
9166 (s390_frame_sniffer): New function.
9167 (struct s390_pltstub_unwind_cache): New data structure.
9168 (s390_pltstub_frame_unwind_cache): New function.
9169 (s390_pltstub_frame_this_id): Likewise.
9170 (s390_pltstub_frame_prev_register): Likewise.
9171 (s390_pltstub_frame_unwind): Define.
9172 (s390_pltstub_frame_sniffer): New function.
9173 (struct s390_sigtramp_unwind_cache): New data structure.
9174 (s390_sigtramp_frame_unwind_cache): New function.
9175 (s390_sigtramp_frame_this_id): Likewise.
9176 (s390_sigtramp_frame_prev_register): Likewise.
9177 (s390_sigtramp_frame_unwind): Define.
9178 (s390_sigtramp_frame_sniffer): New function.
9179 (s390_frame_base_address, s390_local_base_address): New functions.
9180 (s390_frame_base): Define.
9181 (s390_unwind_pc, s390_unwind_sp): New function.
9182 (s390_push_dummy_call): Use new frame base location.
9183 (s390_unwind_dummy_id): Likewise.
9184 (s390_gdbarch_init): Remove calls to:
9185 set_gdbarch_frameless_function_invocation,
9186 set_gdbarch_deprecated_init_frame_pc,
9187 set_gdbarch_deprecated_frame_chain,
9188 set_gdbarch_deprecated_frame_init_saved_regs,
9189 set_gdbarch_deprecated_pop_frame,
9190 set_gdbarch_deprecated_init_extra_frame_info,
9191 set_gdbarch_deprecated_init_frame_pc_first,
9192 set_gdbarch_deprecated_target_read_fp,
9193 set_gdbarch_deprecated_frame_saved_pc,
9194 set_gdbarch_deprecated_saved_pc_after_call,
9195 set_gdbarch_deprecated_fp_regnum.
9196 Add calls to:
9197 set_gdbarch_in_solib_call_trampoline,
9198 frame_unwind_append_sniffer,
9199 frame_base_set_default,
9200 set_gdbarch_unwind_pc,
9201 set_gdbarch_unwind_sp.
9202 * Makefile.in (s390-tdep.o): Update dependencies.
9203
b0cf273e
JB
9204 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9205 (S390_STACK_FRAME_OVERHEAD): Remove.
9206 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9207 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9208 (s390_promote_integer_argument): Remove.
9209 (s390_cannot_extract_struct_value_address): Remove.
9210 (s390_use_struct_convention, s390_store_struct_return): Remove.
9211 (s390_extract_return_value, s390_store_return_value): Remove.
9212 (s390_return_value_convention, s390_return_value): New functions.
9213 (is_float_singleton): Handle typedefs.
8a1dac83 9214 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
9215 Remove, replace by ...
9216 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9217 s390_function_arg_integer): ... these new functions.
9218 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9219 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9220 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9221 Fill in tdep->abi.
9222 Remove calls to:
9223 set_gdbarch_deprecated_store_struct_return,
9224 set_gdbarch_deprecated_extract_return_value,
9225 set_gdbarch_deprecated_store_return_value,
9226 set_gdbarch_use_struct_convention,
9227 set_gdbarch_extract_struct_value_address,
9228 set_gdbarch_deprecated_pc_in_call_dummy,
9229 set_gdbarch_deprecated_push_arguments,
9230 set_gdbarch_deprecated_save_dummy_frame_tos,
9231 set_gdbarch_deprecated_push_return_address,
9232 set_gdbarch_deprecated_sizeof_call_dummy_words,
9233 set_gdbarch_deprecated_call_dummy_words,
9234 set_gdbarch_deprecated_dummy_write_sp.
9235 Add calls to:
9236 set_gdbarch_push_dummy_call,
9237 set_gdbarch_unwind_dummy_id,
9238 set_gdbarch_return_value.
8a1dac83 9239
e1457d83
JB
9240 * config/s390/nm-linux.h: Update comments.
9241 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9242 (STOPPED_BY_WATCHPOINT): Redefine.
9243 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9244 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9245 (s390_stopped_by_watchpoint): Likewise.
9246 (watch_area_cnt): Remove.
9247 * s390-nat.c: Update comments.
9248 (watch_area): Remove typedef.
9249 Global replace watch_area by struct watch_area.
9250 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 9251 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
9252 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9253 (s390_fix_watch_points): Remove pid argument,
9254 use s390_inferior_tid. Recompute area spanned by watchpoints.
9255 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9256 argument. Reimplement.
9257
d0f54f9d
JB
9258 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9259 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9260 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 9261 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
9262 core-regset.o.
9263 * config/s390/s390x.mt: Remove.
9264 * config/s390/tm-s390.h: Remove.
9265 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9266 (TARGET_ELF64): Remove.
9267 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9268 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9269 s390*-*-* case; always set gdb_target to s390.
9270 * regformats/reg-s390.dat: Remove control registers.
9271 * regformats/reg-s390x.dat: Likewise.
9272 * s390-tdep.h: New file.
8a1dac83 9273 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
9274 Include "inferior.h" and "s390-tdep.h".
9275 Remove private definition of offsetof.
9276 (s390_register_u_addr): Remove.
9277 (regmap_gregset, regmap_fpregset): Define.
9278 (supply_gregset, fill_gregset): Reimplement.
9279 (supply_fpregset, fill_fpregset): Likewise.
9280 (s390_inferior_tid): New function.
9281 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9282 (fetch_inferior_registers, store_inferior_registers): Likewise.
9283 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9284 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9285 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9286 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9287 (struct gdbarch_tdep): Define.
9288 (struct s390_register_info): Define.
9289 (s390_register_info): New variable.
9290 (s390_register_name): Reimplement.
9291 (s390_register_type): New function.
9292 (s390_register_raw_size, s390x_register_raw_size): Remove.
9293 (s390_cannot_fetch_register): Remove.
9294 (s390_register_byte): Remove.
9295 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9296 (s390_dwarf_regmap): New variable.
9297 (s390_dwarf_reg_to_regnum): New function.
9298 (s390_stab_reg_to_regnum): Remove.
9299 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9300 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9301 (s390_convert_register_p): Likewise.
9302 (s390_register_to_value, s390_value_to_register): Likewise.
9303 (s390_register_reggroup_p): Likewise.
9304 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9305 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9306 (s390_supply_regset, s390_regset_from_core_section): New functions.
9307 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9308 (S390_FPR_SIZE): Likewise.
9309 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9310 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9311 (S390_NUM_GPRS): Move here from tm-s390.h.
9312 (S390_NUM_FPRS): Likewise.
9313 (s390_in_function_epilogue_p): New function.
9314 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9315 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9316 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9317 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9318 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9319 Remove calls to:
9320 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
9321 set_gdbarch_deprecated_max_register_virtual_size,
9322 set_gdbarch_deprecated_register_byte,
d0f54f9d 9323 set_gdbarch_cannot_fetch_register,
8a1dac83 9324 set_gdbarch_cannot_store_register,
d0f54f9d
JB
9325 set_gdbarch_deprecated_register_size,
9326 set_gdbarch_deprecated_register_raw_size,
9327 set_gdbarch_deprecated_register_virtual_size,
9328 set_gdbarch_deprecated_register_virtual_type,
9329 set_gdbarch_deprecated_register_bytes.
9330 Add calls to:
9331 set_gdbarch_num_pseudo_regs,
9332 set_gdbarch_register_type,
9333 set_gdbarch_convert_register_p,
9334 set_gdbarch_register_to_value,
9335 set_gdbarch_value_to_register,
9336 set_gdbarch_register_reggroup_p,
9337 set_gdbarch_regset_from_core_section,
9338 set_gdbarch_pseudo_register_read,
9339 set_gdbarch_pseudo_register_write,
9340 set_gdbarch_in_function_epilogue_p.
9341 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9342 (s390_tdep_h): New variable.
9343
8cfe231d
JB
93442004-02-17 Jim Blandy <jimb@redhat.com>
9345
4589a601
JB
9346 * findvar.c (value_from_register): If the type has no length, just
9347 return an acceptable value --- don't report an internal error.
9348
8cfe231d
JB
9349 * stabsread.c (read_type): If we find any type numbers that are
9350 forward references, complain if the references aren't resolved by
9351 the time we're finished reading.
9352 (cleanup_undefined_types): Make error message more appropriate for
9353 a complaint.
9354
5bf0017e
EZ
93552004-02-17 Elena Zannoni <ezannoni@redhat.com>
9356
9d62932d
EZ
9357 * Makefile.in (defs_h): Remove dependency on progress_h.
9358 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9359 progress.h.
9360 * main.c (captured_main): Delete use of START_PROGRESS and
9361 END_PROGRESS.
9362
93632004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9364
5bf0017e
EZ
9365 * objfiles.c (terminate_minimal_symbol_table): Add back
9366 initialization of MSYMBOL_TYPE.
9367
9fc9f5e2
AC
93682004-02-17 David Mosberger <davidm@hpl.hp.com>
9369
9370 Committed by Andrew Cagney.
9371 * Makefile.in (ia64_tdep_h): New macro.
9372 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9373 (ia64-tdep.o): Likewise.
9374 * ia64-tdep.h: New file.
9375 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9376 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9377 (ia64_aix_sigcontext_register_address): Likewise.
9378 (ia64_linux_getunwind_table): Delete declaration.
9379 * ia64-linux-tdep.c: Likewise.
9380
76cd2bd9
CV
93812004-02-17 Corinna Vinschen <vinschen@redhat.com>
9382
9383 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9384 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9385 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9386
634aa483
AC
93872004-02-17 Andrew Cagney <cagney@redhat.com>
9388
9389 * symtab.c (skip_prologue_using_sal): New function.
9390 * symtab.h (skip_prologue_using_sal): Declare.
9391 * frv-tdep.c: Include "symtab.h".
9392 (skip_prologue_using_sal): Delete function.
9393 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9394 * rs6000-tdep.c (refine_prologue_limit): Mention
9395 skip_prologue_using_sal.
9396 * ia64-tdep.c (refine_prologue_limit): Ditto.
9397 * Makefile.in: Update dependencies.
9398
93992004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 9400
39ce7b3f
AC
9401 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9402 START_INFERIOR_TRAPS_EXPECTED.
9403 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9404 START_INFERIOR_TRAPS_EXPECTED.
9405 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9406 Delete macro.
9407 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9408 macro, moved to "nm-osf.h". Update copyright.
9409 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9410 update copyright.
9411
19772a2c
AC
9412 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9413 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9414 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9415 frameless_look_for_prologue.
9416 * frame.h (legacy_frameless_look_for_prologue): Rename
9417 frameless_look_for_prologue.
9418 * gdbarch.h, gdbarch.c: Re-generate.
9419 * sh64-tdep.c (sh64_gdbarch_init): Update.
9420 * sh-tdep.c (sh_gdbarch_init): Update.
9421 * s390-tdep.c (s390_gdbarch_init): Update.
9422 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9423 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9424 * m68k-tdep.c (m68k_gdbarch_init): Update.
9425 (delta68_frame_args_address): Update.
9426 * m32r-tdep.c (m32r_gdbarch_init): Update.
9427 * hppa-tdep.c (hppa_gdbarch_init): Update.
9428 * h8300-tdep.c (h8300_gdbarch_init): Update.
9429 * frv-tdep.c (frv_gdbarch_init): Update.
9430 (frv_frameless_function_invocation): Update.
9431 * cris-tdep.c (cris_gdbarch_init): Update.
9432 (cris_frameless_function_invocation): Update.
9433 * avr-tdep.c (avr_gdbarch_init): Update.
9434 * arm-tdep.c (arm_gdbarch_init): Update.
9435 * stack.c (frame_info): Update, call predicate.
9436 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9437 * frame.c (legacy_get_prev_frame): Update, call predicate..
9438 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9439 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9440 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9441 invocation.
9442 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9443 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9444 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
9445
9446 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9447 function.
9448
7dcaac91
DJ
94492004-02-16 Daniel Jacobowitz <drow@mvista.com>
9450
9451 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9452 initializations.
9453
88289b6e
AC
94542004-02-16 Andrew Cagney <cagney@redhat.com>
9455
9456 * tui/tui-windata.c: Include "gdb_string.h".
9457 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9458 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9459 * Makefile.in: Update dependencies.
9460
9f976b41
DJ
94612004-02-16 Daniel Jacobowitz <drow@mvista.com>
9462
9463 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9464 * infrun.c: Include "gdb_assert.h".
9465 (singlestep_ptid, saved_singlestep_ptid)
9466 (stepping_past_singlestep_breakpoint): New variables.
9467 (resume): Set singlestep_ptid. Check for singlestep thread
9468 hop.
9469 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9470 (handle_inferior_event): Handle singlestep thread hop.
9471
c324d747
AC
94722004-02-16 Andrew Cagney <cagney@redhat.com>
9473
f090b9b1
AC
9474 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9475 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9476 (dwarf2_frame_init_reg): Ditto.
9477
fd33e6cb
AC
9478 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9479 suggested by Joshua Neuheisel
9480
c324d747
AC
9481 * configure.in: Always check for curses, including pdcurses.
9482 Warn, instead of error, when no curses are found. Enable TUI when
9483 curses is available.
9484 * configure: Re-generate.
9485
b66ba949
CV
94862004-02-16 Corinna Vinschen <vinschen@redhat.com>
9487
9488 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9489 sh_sh4_register_convert_to_virtual.
9490 (sh_register_convert_to_raw): Rename from
9491 sh_sh4_register_convert_to_raw.
9492 (sh_pseudo_register_read): Accomodate above name change.
9493 (sh_pseudo_register_write): Ditto.
9494
b58cbbf2
CV
94952004-02-16 Corinna Vinschen <vinschen@redhat.com>
9496
9497 * sh-tdep.c (sh_generic_register_name): Remove.
9498 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9499
5929a910
AC
95002004-02-15 Andrew Cagney <cagney@redhat.com>
9501
4566dfcf
AC
9502 * configure.in (build_warnings): Add -Wunused-function.
9503 * configure: Re-generate.
9504
db11ed55
AC
9505 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9506 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9507
46ac7a5d
AC
9508 * procfs.c (procfs_init_inferior): Assume that
9509 START_INFERIOR_TRAPS_EXPECTED is defined.
9510 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9511 * config/ns32k/tm-nbsd.h: Delete file,
9512 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9513
ba801595
AC
9514 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9515 * config/vax/tm-vax.h: Delete file.
9516
5929a910
AC
9517 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9518 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9519 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9520 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9521 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9522 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9523 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9524
8f22cb90
MK
95252004-02-15 Mark Kettenis <kettenis@gnu.org>
9526
9527 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9528 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9529 (struct dwarf2_frame_ops): New.
9530 (dwarf2_frame_default_init_reg): New function, based on
9531 dwarf2_frame_init_reg.
9532 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9533 (dwarf2_frame_init_reg): Call architecture-specific function.
9534 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9535 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9536 instead of dwarf2_frame_data.
9537 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9538 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9539
8132723e
AC
95402004-02-15 Andrew Cagney <cagney@redhat.com>
9541
046a4708
AC
9542 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9543 register_gdbarch_swap.
9544 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9545 * f-lang.c (_initialize_f_language): Update, use
9546 DEPRECATED_REGISTER_GDBARCH_SWAP.
9547 * remote.c (_initialize_remote): Ditto.
9548 * regcache.c (_initialize_regcache): Ditto.
9549 * parse.c (_initialize_parse): Ditto.
9550 * infrun.c (_initialize_infrun): Ditto.
9551 * mi/mi-main.c (_initialize_mi_main): Ditto.
9552 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 9553
549c1eea
AC
9554 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9555 poking .cacheable directly.
9556 * symfile.c (symfile_bfd_open): Ditto.
9557
0c0b39de
AC
9558 * Makefile.in: Update all dependencies.
9559
8132723e
AC
9560 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9561 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9562 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9563 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9564 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9565
b9d26eb9
AC
95662004-02-14 Andrew Cagney <cagney@redhat.com>
9567
8e1f669a
AC
9568 * arch-utils.c (legacy_convert_register_p): Check
9569 DEPRECATED_REGISTER_CONVERTIBLE_P.
9570 * findvar.c (value_of_register): Ditto.
9571
cd0bfa36
AC
9572 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9573 * gdbarch.h, gdbarch.c: Re-generate.
9574 * arch-utils.c (deprecated_register_convertible_not): Delete.
9575 * arch-utils.h (deprecated_register_convertible_not): Delete.
9576 * mi/mi-main.c (get_register): Update. Update copyright.
9577 * infcmd.c (default_print_registers_info): Update.
9578
b9d26eb9
AC
9579 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9580 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9581 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9582 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9583 * frame.c (deprecated_get_next_frame_hack): Delete function.
9584 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9585 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9586 Update.
9587 * infcall.c (call_function_by_hand): Update.
9588
9ab9195f
EZ
95892004-02-14 Elena Zannoni <ezannoni@redhat.com>
9590
9591 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9592 from here...
9ab9195f
EZ
9593 * objfiles.c (init_entry_point_info, entry_point_address):..to
9594 here.
9595 * symfile.h (init_entry_point_info, entry_point_address): Remove
9596 prototypes.
9597 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9598 prototypes.
9ab9195f
EZ
9599 * cris-tdep.c: Remove include of symfile.h. Add include of
9600 objfiles.h.
9601 * infcall.c: Ditto.
9602 * mcore-tdep.c: Ditto.
9603 * mn10300-tdep.c: Ditto.
9604 * sh64-tdep.c: Ditto.
9605 * v850-tdep.c: Ditto.
9606 * arm-tdep.c: Remove include of symfile.h.
9607 * blockframe.c: Ditto.
9608 * coffread.c: Ditto.
9609 * dbxread.c: Ditto.
9610 * dwarf2read.c: Ditto.
9611 * dwarfread.c: Ditto.
8a1dac83 9612 * frv-tdep.c: Ditto.
9ab9195f
EZ
9613 * ia64-tdep.c: Ditto.
9614 * mdebugread.c: Ditto.
9615 * mipsread.c: Ditto.
8a1dac83 9616 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9617 * s390-tdep.c: Ditto.
9618 * sh-tdep.c: Ditto.
8a1dac83 9619 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9620 * gdbarch.sh: Remove include of symfile.h.
9621 * gdbarch.c: Regenerate.
9622 * solib-irix.c (enable_break): Use entry_point_address().
9623 Add comment about include file.
9624 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9625 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9626 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9627 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9628 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9629 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9630
c4c5b7ba
AC
96312004-02-13 Andrew Cagney <cagney@redhat.com>
9632
9633 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9634 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9635 copyright.
9636 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9637
3e7879de
FF
96382004-02-12 Fred Fish <fnf@redhat.com>
9639
9640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9641 set_gdbarch_store_return_value.
9642
6a7760b6
AC
96432004-02-12 Andrew Cagney <cagney@redhat.com>
9644
9645 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9646 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9647 (interrupt_query): Ditto.
9648 (ofunc): Delete unused variable.
9649 * cris-tdep.c (cris_abi): Delete unused function.
9650 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9651 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9652 (cris_get_asr_quick_shift_steps): Ditto.
9653 (cris_skip_prologue_frameless_p): Ditto.
9654 * arm-tdep.c (arm_push_return_address): Delete unused function.
9655 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9656 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9657 * s390-tdep.c (s390_function_start): Delete unused function.
9658
31687c3c
AC
96592004-02-12 Andrew Cagney <cagney@redhat.com>
9660
9661 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9662 gdbarch.h, gdbarch.c: Re-generate.
9663 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9664 to generic_prologue_frameless_p.
9665 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9666 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9667
6de918a6
DJ
96682004-02-11 Daniel Jacobowitz <drow@mvista.com>
9669
9670 * mips-linux-tdep.c: Include "frame.h".
9671 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9672 (mips_linux_skip_resolver): New functions.
9673 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9674 and set_gdbarch_in_solib_call_trampoline.
9675 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9676 to after set_gdbarch_in_solib_return_trampoline. Only set the
9677 solib hooks to mips16 functions if the OS ABI is unknown.
9678 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9679 including "config/tm-linux.h".
9680 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9681 * Makefile.in (mips-linux-tdep.o): Update.
9682
87b3ede8
DC
96832004-02-11 David Carlton <carlton@kealia.com>
9684
9685 * linespec.c (decode_compound): Only look for a class symbol when
9686 considering all but the rightmost component.
9687
5979bc46
AC
96882004-02-11 Andrew Cagney <cagney@redhat.com>
9689
9690 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9691 abi code are are separatly grouped.
9692
5867a2fb
AC
96932004-02-11 Andrew Cagney <cagney@redhat.com>
9694
9695 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9696 * gdbarch.h, gdbarch.c: Re-generate.
9697 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9698 * v850-tdep.c (v850_gdbarch_init): Update.
9699 * sh64-tdep.c (sh64_gdbarch_init): Update.
9700 * sh-tdep.c (sh_gdbarch_init): Update.
9701 * s390-tdep.c (s390_gdbarch_init): Update.
9702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9703 * mips-tdep.c (mips_gdbarch_init): Update.
9704 * mcore-tdep.c (mcore_gdbarch_init): Update.
9705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9706 * m32r-tdep.c (m32r_gdbarch_init): Update.
9707 * ia64-tdep.c (ia64_gdbarch_init): Update.
9708 * hppa-tdep.c (hppa_gdbarch_init): Update.
9709 * h8300-tdep.c (h8300_gdbarch_init): Update.
9710 * frv-tdep.c (frv_gdbarch_init): Update.
9711 * d10v-tdep.c (d10v_gdbarch_init): Update.
9712 * cris-tdep.c (cris_gdbarch_init): Update.
9713 * avr-tdep.c (avr_gdbarch_init): Update.
9714 * arm-tdep.c (arm_gdbarch_init): Update.
9715 * alpha-tdep.c (alpha_gdbarch_init): Update.
9716
026a72f8
CV
97172004-02-11 Corinna Vinschen <vinschen@redhat.com>
9718
9719 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9720 comma.
9721 (sh_sh4al_dsp_register_name): Ditto.
9722
3903d437
AC
97232004-02-10 Andrew Cagney <cagney@redhat.com>
9724
9725 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9726 (mips_init_frame_pc_first): Delete function.
9727 (mips_frame_saved_pc): Delete function.
9728 (mips_frame_chain): Delete function.
9729 (mips_init_extra_frame_info): Delete function.
9730 (mips_xfer_register): Delete unused variable "reg".
9731 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9732 (mips_n32n64_return_value): Delete unused variable "reg".
9733 (mips_n32n64_return_value): Delete unused variable "pos".
9734 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9735 (mips_o32_return_value): Delete unused variable "pos".
9736 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9737 (mips_print_fp_register): Delete unused variable "namelen"
9738 (mips_print_fp_register): Delete unused variable "flt2"
9739 (get_frame_pointer): Delete function.
9740 (cached_proc_desc): Delete static variable.
9741 (mips_pop_frame): Delete function.
9742 (mips_find_saved_regs): Delete function.
9743 (mips_get_saved_register): Delete function.
9744 (mips_saved_pc_after_call): Delete function.
9745 (SIGFRAME_BASE): Delete macro.
9746 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9747 (SIGFRAME_PC_OFF): Delete macro.
9748 (SIGFRAME_REGSAVE_OFF): Delete macro.
9749 (mips_dump_tdep): Do not print deleted macro definitions.
9750
b9fb98bd
AC
97512004-02-10 Andrew Cagney <cagney@redhat.com>
9752
9753 * Makefile.in (SFILES): Remove explictly listed tui files.
9754 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9755
78ced177 97562004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9757
78ced177
JJ
9758 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9759 to use paddr functions to format ia64 addresses and long values.
9760 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9761 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9762 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9763 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9764 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9765
6a83354a
AC
97662004-02-10 Andrew Cagney <cagney@redhat.com>
9767
9768 * defs.h: Do not include "tui.h".
9769 * gdb_curses.h: New file.
9770 * tui/tui-hooks.h: New file.
9771 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9772 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9773 (tui_initialize_io): Delete declaration.
9774 (tui_initialize_readline: Delete redundant declaration.
9775 (struct tui_point): Delete definition.
9776 * tui/tui-data.h (struct tui_point): Define.
9777 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9778 * utils.c: Include "tui/tui.h".
9779 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9780 * printcmd.c [TUI]: Include "tui/tui.h".
9781 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9782 * tui/tui-command.c: Include "gdb_curses.h".
9783 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9784 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9785 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9786 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9787 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9788 * Makefile.in: Update all dependencies.
9789 (tui_hooks_h, gdb_curses_h): Define.
9790 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9791
997470ef
EZ
97922004-02-10 Elena Zannoni <ezannoni@redhat.com>
9793
9794 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9795 auxf2. Add comments about some other rarely used fields.
9796
4ff2cc4d
AC
97972004-02-10 Andrew Cagney <cagney@redhat.com>
9798
9799 * Makefile.in (init.c): Fix script removing duplicates. Problem
9800 reported by Peter Schauer.
9801
1ab21617
EZ
98022004-02-09 Elena Zannoni <ezannoni@redhat.com>
9803
9804 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9805 obstack_specify_allocation.
9806 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9807 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9808 (allocate_rt_common_objfile): Ditto.
9809 * symfile.c (reread_symbols): Ditto.
9810 * gdb_obstack.h: Add comment.
9811
17763fd9
EZ
98122004-02-09 Elena Zannoni <ezannoni@redhat.com>
9813
9814 * linespec.c (decode_line_1, locate_first_half)
9815 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9816 commented out code.
9817
ec5cdd75
DJ
98182004-02-09 Daniel Jacobowitz <drow@mvista.com>
9819
9820 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9821 obstack_free.
9822
43b54b88
AC
98232004-02-09 Andrew Cagney <cagney@redhat.com>
9824
9825 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9826 fails, try find_pc_section. Fix PR c++/1267.
9827 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9828 instead of find_pc_mapped_section.
9829 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9830 not default to the section containing PC. Fix PR symtab/1519.
9831
edfae063
AC
98322004-02-09 Andrew Cagney <cagney@redhat.com>
9833
9834 * Makefile.in (mips-tdep.o): Update dependencies.
9835 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9836 "trad-frame.h".
9837 (mips_unwind_pc): Return the pseudo PC register.
9838 (mips_unwind_dummy_id): New function.
9839 (mips16_fetch_instruction): New function.
9840 (mips32_fetch_instruction): New function.
9841 (struct mips_frame_cache): Define.
9842 (mips_mdebug_frame_cache): New function.
9843 (mips_mdebug_frame_this_id): New function.
9844 (mips_mdebug_frame_prev_register): New function.
9845 (mips_mdebug_frame_unwind): Define.
9846 (mips_mdebug_frame_sniffer): New function.
9847 (mips_mdebug_frame_base_address): New function.
9848 (mips_mdebug_frame_base): Define.
9849 (mips_mdebug_frame_base_sniffer): New function.
9850 (mips_gdbarch_init): Append unwind and base sniffers. Set
9851 unwind_dummy_id.
9852
defc864c
AC
98532004-02-08 Andrew Cagney <cagney@redhat.com>
9854
6764ddad
AC
9855 * frame.c: Print both the register number and name.
9856
defc864c
AC
9857 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9858 and a sed into a single sed. Make .c and .o patterns more robust.
9859 (OBS): Delete.
9860 (INIT_FILES): Replace OBS with COMMON_OBS.
9861 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9862
645d6d10
MK
98632004-02-08 Mark Kettenis <kettenis@gnu.org>
9864
9865 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9866 the PT_WCOOKIE request.
9867
23e3c3fc
AC
98682004-02-08 Andrew Cagney <cagney@redhat.com>
9869
58dfe9ff
AC
9870 * mips-tdep.c (mips_unwind_pc): New function.
9871 (mips_gdbarch_init): Set mips_unwind_pc.
9872
1152e35e
AC
9873 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9874 (get_frame_id): Allow the UNKNOWN_FRAME.
9875 (frame_register_unwind, get_frame_type): Ditto.
9876
31b75dbf
AC
9877 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9878 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9879 unwind_dummy_id indicates a legacy frame.
9880
3483b318
AC
9881 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9882 * configure: Re-generate.
9883
23e3c3fc
AC
9884 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9885 methods.
9886
33f8ca73
AC
98872004-02-08 Andrew Cagney <cagney@redhat.com>
9888
9889 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9890 makefile macro.
9891 * configure: Re-generate.
9892 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9893 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9894 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9895 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9896 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9897 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9898 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9899 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9900 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9901 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9902
6ba8e26f 99032004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9904
20d286a5
AC
9905 * Makefile.in: Update all dependencies.
9906
d836ee13
AC
9907 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9908 * configure: Re-generate.
9909 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9910 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9911 (COMMON_OBS): Add "main.o" and "annotate.o".
9912 (ANNOTATE_OBS): Delete.
9913 (OBS): Remove ANNOTATE_OBS.
9914 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9915 CONFIG_INITS.
9916 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9917 against CONFIG_OBS and "main.o".
9918 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9919 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9920
d02c80cd
AC
9921 * tui/tui-command.c: Include "gdb_string.h", delete register
9922 attribute, use ISO-C function signatures.
9923 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9924 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9925 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9926 * tui/tui.c: Ditto.
6ba8e26f
AC
9927
9928 * tui/tui-command.c: Change variable and function names to lower
9929 case.
9930 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9931 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9932 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9933 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9934 * tui/tui-winsource.c, tui/tui.c: Ditto.
9935
4a146b47
EZ
99362004-02-07 Elena Zannoni <ezannoni@redhat.com>
9937
9938 * buildsym.c (free_pending_blocks, finish_block)
9939 (record_pending_block, make_blockvector, end_symtab): Replace
9940 symbol_obstack with objfile_obstack.
8a1dac83 9941 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9942 (coff_read_enum_type): Ditto.
8a1dac83 9943 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9944 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9945 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9946 (dwarf2_symbol_mark_computed): Ditto.
9947 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9948 * elfread.c (elf_symtab_read): Ditto.
9949 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9950 (hpread_read_enum_type, hpread_read_function_type)
9951 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9952 Ditto.
8a1dac83 9953 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9954 (java_link_class_type): Ditto.
8a1dac83 9955 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9956 (new_symbol): Ditto.
9957 * minsyms.c (install_minimal_symbols): Ditto.
9958 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9959 (terminate_minimal_symbol_table): Replace symbol_obstack with
9960 objfile_obstack.
9961 (free_objfile): Remove freeing of symbol_obstack.
9962 * objfiles.h: Remove symbol_obstack field.
9963 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9964 objfile_obstack.
9965 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9966 symbol_obstack.
9967 (solib_add_common_symbols): Replace symbol_obstack with
9968 objfile_obstack.
9969 * somsolib.c (som_solib_add): Ditto.
9970 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9971 (common_block_start, common_block_end): Ditto.
9972 * symfile.c (reread_symbols): Remove freeing and init of
9973 symbol_obstack.
9974 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9975 * symfile.h: Update comment.
9976 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9977 stats printing.
9978 * symtab.c (symbol_set_names): Replace symbol_obstack with
9979 objfile_obstack.
9980 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9981 Update comments.
9982 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9983 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9984 objfile_obstack.
9985
6d012f14
AC
99862004-02-07 Andrew Cagney <cagney@redhat.com>
9987
9988 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9989 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9990 fields and variables.
9991 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9992 (m_beInvisible): Delete macro.
9993 * tui/tui-data.h: Fix case case fields and variables.
9994 (m_genWinPtrIsNull): Delete macro.
9995 (tui_win_list): Rename winList.
9996 (TUI_SRC_WIN): Rename srcWin.
9997 (TUI_DISASM_WIN): Rename disassemWin.
9998 (TUI_DATA_WIN): Rename dataWin.
9999 (TUI_CMD_WIN): Rename cmdWin.
10000 (m_genWinPtrNotNull): Delete macro.
10001 (m_winPtrIsNull): Delete macro.
10002 (m_winPtrNotNull): Delete macro.
10003 (tui_win_is_source_type): Replace m_winIsSourceType
10004 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10005 (tui_win_has_locator): Replace m_hasLocator.
10006 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10007 m_setWinHighlightOff.
10008 * tui/tui-data.c: Update references.
10009 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10010 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10011 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10012 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10013 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10014 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10015 * tui/tui-winsource.c, tui/tui.c: Ditto.
10016
7d34766b
MK
100172004-02-07 Mark Kettenis <kettenis@gnu.org>
10018
1c800673
MK
10019 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10020 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10021 StackGhost.
10022
7d34766b
MK
10023 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10024 variable `i6' to `i7'.
10025 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10026
22940a24
AC
100272004-02-07 Andrew Cagney <cagney@redhat.com>
10028
10029 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10030 (TuiPoint, TuiPointPtr): Ditto.
10031 (TuiStatus, TuiStatusPtr): Ditto.
10032 (TuiWinType, TuiWinTypePtr): Ditto.
10033 (struct tui_point): Rename _TuiPoint.
10034 (tui_get_low_disassembly_address): Rename
10035 tuiGetLowDisassemblyAddress.
10036 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10037 (tuiFree): Delete declaration.
10038 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10039 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10040 * tui/tui.c (tuiFree): Delete function.
10041 * cli/cli-cmds.c (disassemble_command): Update references.
10042 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10043 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10044 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10045 * tui/tui-winsource.c: Ditto.
10046
8b92e4d5
EZ
100472004-02-07 Elena Zannoni <ezannoni@redhat.com>
10048
10049 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10050 coffstab_build_psymtabs, elfstab_build_psymtabs)
10051 (stabsect_build_psymtabs): Replace psymbol_obstack with
10052 objfile_obstack.
10053 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10054 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10055 Ditto.
10056 * dwarfread.c (scan_compilation_units): Ditto.
10057 * elfread.c (elfstab_offset_sections): Ditto.
10058 * hppa-tdep.c (read_unwind_info): Ditto.
10059 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10060 (hpread_end_psymtab): Ditto.
10061 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10062 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10063 Ditto.
10064 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10065 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10066 (build_objfile_section_table): Ditto.
10067 (allocate_objfile): Remove init of psymbol_obstack.
10068 (free_objfile): Remove freeing of psymbol_obstack.
10069 * objfiles.h (struct objfile): Remove field
10070 psymbol_obstack. Update comments.
10071 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10072 psymbol_obstack with objfile_obstack.
10073 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10074 psymbol_obstack.
10075 * somread.c (som_symfile_offsets, init_import_symbols)
10076 (init_export_symbols): Replace psymbol_obstack with
10077 objfile_obstack.
10078 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10079 * symfile.c (default_symfile_offsets, syms_from_objfile)
10080 (reread_symbols): Remove freeing and init of psymbol_obstack.
10081 (cashier_psymtab): Update comment.
10082 * symmisc.c (print_objfile_statistics): Don't report stats for
10083 psymbol obstack.
10084 * symtab.h (struct general_symbol_info, struct partial_symtab):
10085 Update comments.
10086 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10087 (xcoff_symfile_offsets): Replace psymbol_obstack with
10088 objfile_obstack.
10089
b99607ea
EZ
100902004-02-07 Elena Zannoni <ezannoni@redhat.com>
10091
10092 * objfiles.h (struct objfile): Add objfile_obstack field.
10093 Remove type_obstack field.
10094
10095 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10096 read_structure_scope read_enumeration, new_symbol): Replace
10097 type_obstack with objfile_obstack.
10098 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10099 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10100 (lookup_fundamental_type): Ditto.
10101 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10102 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10103 (hpread_read_doc_function_type, hpread_read_struct_type)
10104 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10105 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10106 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10107 (java_link_class_type): Ditto.
10108 * mdebugread.c (parse_type): Ditto.
10109 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10110 * solib-sunos.c (solib_add_common_symbols): Ditto.
10111 * stabsread.c (define_symbol, read_type, read_member_functions,
10112 read_cpp_abbrev, read_one_struct_field): Ditto.
10113 * symfile.c (reread_symbols): Ditto.
10114 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10115
2a8854a7
AC
101162004-02-07 Andrew Cagney <cagney@redhat.com>
10117
10118 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10119 (tui_exec_info_content): Rename TuiExecInfoContent.
10120 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10121 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10122 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10123 (TuiList, TuiListPtr): Ditto.
10124 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10125 (TuiDataType, TuiDataTypePtr): Ditto.
10126 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10127 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10128 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10129 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10130 (TuiDataElement, TuiDataElementPtr): Ditto.
10131 (TuiWinElement, TuiWinElementPtr): Ditto.
10132 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10133 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10134 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10135 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10136 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10137 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10138 * tui/tui-command.c, tui/tui-data.c: Update references.
10139 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10140 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10141 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10142 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10143
05cbe71a
MK
101442004-02-07 Mark Kettenis <kettenis@gnu.org>
10145
10146 * dwarf2-frame.h: Update copyright.
10147 (enum dwarf2_frame_reg_rule): New.
10148 (struct dwarf2_frame_state_reg): New.
10149 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10150 * dwarf2-frame.c: Update copyright.
10151 (enum dwarf2_reg_rule): Remove.
10152 (struct dwarf2_frame_state): Remove defenition of `struct
10153 dwarf2_frame_state_reg'.
10154 (read_reg): Call get_frame_arch to get the architecture instead of
10155 using CURRENT_GDBARCH.
10156 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10157 DWARF2_FRAME_.
10158 (dwarf2_frame_init_reg): New function.
10159 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10160 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10161 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10162 tags with DWARF2_FRAME_.
10163 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10164 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10165 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10166
ec7d9e56
AC
101672004-02-06 Andrew Cagney <cagney@redhat.com>
10168
dd1abb8c
AC
10169 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10170 (enum tui_data_type): Rename _TuiDataType.
10171 (struct tui_layout_def): Rename _TuiLayoutDef.
10172 (struct tui_source_element): Rename _TuiSourceElement.
10173 (struct tui_data_element): Rename _TuiDataElement.
10174 (struct tui_command_element): Rename _TuiCommandElement.
10175 (struct tui_locator_element): Rename _TuiLocatorElement.
10176 (union tui_which_element): Define.
10177 (struct tui_win_element): Rename _TuiWinElement.
10178 (struct tui_data_info): Rename _TuiDataInfo.
10179 (struct tui_source_info): Rename _TuiSourceInfo.
10180 (struct tui_command_info): Rename _TuiCommandInfo.
10181 (tui_initialize_static_data): Rename initializeStaticData.
10182 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10183 (tui_alloc_win_info): Rename allocWinInfo.
10184 (tui_init_generic_part): Rename initGenericPart.
10185 (tui_init_win_info): Rename initWinInfo.
10186 (tui_alloc_content): Rename allocContent.
10187 (tui_add_content_elements): Rename addContentElements.
10188 (tui_init_content_element): Rename initContentElement.
10189 (tui_free_window): Rename freeWindow.
10190 (tui_free_win_content): Rename freeWinContent.
10191 (tui_free_data_content): Rename freeDataContent.
10192 (tui_free_all_source_wins_content): Rename
10193 freeAllSourceWinsContent.
10194 (tui_del_window): Rename tuiDelWindow.
10195 (tui_del_data_windows): Rename tuiDelDataWindows.
10196 (tui_partial_win_by_name): Rename partialWinByName.
10197 (tui_win_name): Rename winName.
10198 (tui_current_layout): Rename currentLayout.
10199 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10200 (tui_term_height): Rename termHeight.
10201 (tui_set_term_height_to): Rename setTermHeightTo.
10202 (tui_term_width): Rename termWidth.
10203 (tui_set_term_width_to): Rename setTermWidthTo.
10204 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10205 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10206 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10207 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10208 (tui_source_windows): Rename sourceWindows.
10209 (tui_clear_source_windows): Rename clearSourceWindows.
10210 (tui_clear_source_windows_detail): Rename
10211 clearSourceWindowsDetail.
10212 (tui_clear_win_detail): Rename clearWinDetail.
10213 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10214 (tui_default_tab_len): Rename tuiDefaultTabLen.
10215 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10216 (tui_win_with_focus): Rename tuiWinWithFocus.
10217 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10218 (tui_layout_def): Rename tuiLayoutDef.
10219 (tui_win_resized): Rename tuiWinResized.
10220 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10221 (tui_next_win): Rename tuiNextWin.
10222 (tui_prev_win): Rename tuiPrevWin.
10223 (tui_add_to_source_windows): Rename addToSourceWindows.
10224 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10225 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10226 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10227 * tui/tui.c, tui/tui-data.c: Ditto.
10228 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10229 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10230
a358af15
AC
10231 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10232 (struct symtab): Declare.
10233 (tui_set_source_content): Rename tuiSetSourceContent.
10234 (tui_show_symtab_source): Rename tuiShowSource.
10235 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10236 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10237 * tui/tui-source.c: Update copyright. Update references.
10238 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10239 * tui/tui-stack.c: Update references.
10240
a21fcd8f
AC
10241 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10242 (struct tui_win_info): Declare.
10243 (tui_scroll_forward): Rename tuiScrollForward.
10244 (tui_scroll_backward): Rename tuiScrollBackward.
10245 (tui_scroll_left): Rename tuiScrollLeft.
10246 (tui_scroll_right): Rename tuiScrollRight.
10247 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10248 (tui_resize_all): Rename tuiResizeAll.
10249 (tui_refresh_all_win): Rename tuiRefreshAll.
10250 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10251 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10252 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10253 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10254
edae1ccf
AC
10255 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10256 (tui_erase_data_content): Rename tuiEraseDataContent.
10257 (tui_display_all_data): Rename tuiDisplayAllData.
10258 (tui_check_data_values): Rename tuiCheckDataValues.
10259 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10260 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10261 (tui_first_data_element_no_in_line): Rename
10262 tuiFirstDataElementNoInLine.
10263 (tui_delete_data_content_windows): Rename
10264 tuiDeleteDataContentWindows.
10265 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10266 (tui_display_data_from): Rename tuiDisplayDataFrom.
10267 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10268 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10269 * tui/tui-win.c, tui/tui-regs.c: Update references.
10270 * tui/tui-layout.c, tui/tui.c: Update references.
10271
ec7d9e56
AC
10272 * tui/tui-wingeneral.h: Update copyright.
10273 (m_allBeVisible): Delete macro.
8a1dac83 10274 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
10275 (struct tui_gen_win_info): Declare.
10276 (struct tui_win_info): Declare.
10277 (tui_unhighlight_win): Rename unhighlightWin.
10278 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10279 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10280 (tui_make_window): Rename makeWindow.
10281 (tui_copy_win): Rename copyWin.
10282 (tui_box_win): Rename boxWin.
10283 (tui_highlight_win): Rename highlightWin.
10284 (tui_check_and_display_highlight_if_needed): Rename
10285 checkAndDisplayHighlightIfNeeded.
10286 (tui_refresh_all): Rename refreshAll.
10287 (tui_delete_win): Rename tuiDelwin.
10288 (tui_refresh_win): Rename tuiRefreshWin.
10289 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10290 (tui_make_visible, tui_make_invisible): New functions.
10291 (tui_make_all_visible, tui_make_all_invisible): New functions.
10292 (make_all_visible): Rename makeAllVisible.
10293 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10294 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10295 * tui/tui-windata.c, tui/tui-win.c: Update references.
10296 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10297 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10298
1e52e2eb
MK
102992004-02-06 Mark Kettenis <kettenis@gnu.org>
10300
10301 * proc-api.c (write_with_trace): Initialize local variable to
10302 silence compiler warning.
10303
f80bda8e
AC
103042004-02-06 Andrew Cagney <cagney@redhat.com>
10305
10306 * tui/tui-source.h: Do not include "defs.h".
10307 (struct tui_win_info): Declare.
10308 (tui_set_source_content_nil): Declare.
10309 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10310 (union tui_line_or_address): Rename _TuiLineOrAddress.
10311 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10312 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10313 (tui_update_source_window_as_is): Rename
10314 tuiUpdateSourceWindowAsIs.
10315 (tui_update_source_windows_with_addr): Rename
10316 tuiUpdateSourceWindowsWithAddr.
10317 (tui_update_source_windows_with_line): Rename
10318 tuiUpdateSourceWindowsWithLine.
10319 (tui_clear_source_content): Rename tuiClearSourceContent.
10320 (tui_erase_source_content): Rename tuiEraseSourceContent.
10321 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10322 (tui_show_source_content): Rename tuiShowSourceContent.
10323 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10324 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10325 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10326 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10327 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10328 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10329 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10330 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10331 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10332 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10333 (struct tui_win_info): Declare.
10334 * tui/tui-stack.c: Update references.
10335 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10336 * tui/tui-win.c, tui/tui-source.c: Ditto.
10337 * tui/tui.c, tui/tui-disasm.c: Ditto.
10338
9fbfb822
MK
103392004-02-06 Mark Kettenis <kettenis@gnu.org>
10340
10341 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10342 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10343
03cebad2
MK
103442004-02-05 Mark Kettenis <kettenis@gnu.org>
10345
10346 * infrun.c (handle_inferior_event): Allow for breakpoint
10347 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10348 and SIGEMT. Update comments.
10349 * NEWS (Revised SPARC target): Mention support for non-executable
10350 stack.
10351
290281b1
MK
103522004-02-04 Mark Kettenis <kettenis@gnu.org>
10353
10354 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10355 * inftarg.c: Update copyright year.
10356 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10357 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10358 (sparc_xfer_wcookie): New function.
10359 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10360 * Makefile.in (sparc-nat.o): Update dependencies.
10361 * config/sparc/nm-nbsd.h: Include "target.h".
10362 (NATIVE_XFER_WCOOKIE): New define.
10363 (sparc_xfer_wcookie): New prototype.
10364
212161df
AC
103652004-02-04 Andrew Cagney <cagney@redhat.com>
10366
10367 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10368 SYSCALL_TRAP function.
10369 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10370
6e4c6c91
DJ
103712004-02-04 Andrew Cagney <cagney@redhat.com>
10372 Daniel Jacobowitz <drow@mvista.com>
10373
10374 * objfiles.h: Delete comments refering to inside_entry_func and
10375 DEPRECATED_FRAME_CHAIN_VALID.
10376 * defs.h (inside_entry_func): Update prototype..
10377 * blockframe.c (inside_entry_func): Rename to
10378 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10379 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10380
cae688ec
JJ
103812004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10382
10383 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10384 outside of #ifdef SOLIB_ADD region.
10385 (do_restore_lang_radix_cleanup): Ditto.
10386 (resolve_pending_breakpoint): Ditto.
10387
19217676
AC
103882004-02-03 Andrew Cagney <cagney@redhat.com>
10389
10390 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10391 (process_note_abi_tag_sections): Delete unused function.
10392 (ia64_read_fp): Delete unused function.
10393 (gdbarch_extract_struct_value_address): Delete declaration.
10394
876753be
AC
103952004-02-02 Andrew Cagney <cagney@redhat.com>
10396
10397 * vax-tdep.c (vax_frame_chain): Delete call to
10398 deprecated_inside_entry_file.
10399 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10400
d4f10bf2
MK
104012004-02-02 Mark Kettenis <kettenis@gnu.org>
10402
10403 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10404 column that's "empty" or "same value" when eliminating REG_RA
10405 rules.
10406
cae688ec
JJ
104072004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10408
10409 * NEWS: Add information about new pending breakpoint support.
10410
0101ce28
JJ
104112004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10412
10413 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10414 and pending fields for pending breakpoint support.
10415 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10416 (condition_command): Only parse condition if not a pending
10417 breakpoint.
10418 (print_one_breakpoint): Add support for pending breakpoints.
10419 (describe_other_breakpoints): Add checks to verify we are not
10420 dealing with pending breakpoints.
10421 (check_duplicates): Don't check pending breakpoints.
10422 (set_raw_breakpoint): Initialize pending flag.
10423 (do_restore_lang_radix_cleanup): New cleanup routine.
10424 (resolve_pending_breakpoint): New function.
10425 (re_enable_breakpoints_in_shlibs): Try and resolve any
10426 pending breakpoints via resolve_pending_breakpoint.
10427 (mention): Add pending breakpoint support.
10428 (parse_breakpoint_sals): Add new parameter to pass to
10429 decode_line_1 to indicate silent errors when files or functions
10430 are not found. Change all callers.
10431 (do_captured_parse_breakpoint): New function.
10432 (break_command_1): Change prototype to return an rc value and to
10433 take an optional pending breakpoint pointer. Support creating
10434 a pending breakpoint if a "not found" form of error occurs when
10435 parsing the breakpoint. Also support resolving an existing pending
10436 breakpoint and be silent if the resolution fails.
10437 (create_breakpoints): Change prototype to take pending breakpoint
10438 pointer. When resolving a pending breakpoint, use the new pointer
10439 to provide a conditional or commands added by the end-user.
10440 (delete_breakpoint): Add appropriate check for pending.
10441 (breakpoint_re_set_one): Ditto.
10442 (do_enable_breakpoint): Ditto.
10443
8d577d32
DC
104442004-02-02 David Carlton <carlton@kealia.com>
10445
10446 * valops.c (enum oload_classification): New.
10447 (find_overload_match): Break implementation into separate
10448 functions; delete #if 0'd code; look for symbols within
10449 namespaces.
10450 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10451 (find_oload_champ,oload_method_static,classify_oload_match): New.
10452 * cp-support.h: Add declaration for cp_func_name; update
10453 declaration for make_symbol_overload_list.
10454 * cp-support.c (cp_func_name): New.
10455 (overload_list_add_symbol): Fix comment, use
10456 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10457 (make_symbol_overload_list): Take a function name and a namespace
10458 instead of a symbol; change implementation.
10459 (make_symbol_overload_list_using): New.
10460 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10461
22e8e3c7
FF
104622004-02-02 Fred Fish <fnf@redhat.com>
10463
10464 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 10465 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
10466 * remote-sim.c (gdb_os_write_stderr): Write output to
10467 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10468 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 10469 gdb_stderr stream and update copyright years.
22e8e3c7 10470
6b753f60
DJ
104712004-02-01 Daniel Jacobowitz <drow@mvista.com>
10472
10473 * Makefile.in (mips-linux-nat.o): Update dependencies.
10474 * mips-linux-nat.c: Include mips-tdep.h.
10475
104762004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
10477
10478 * sol-thread.c (sol_thread_xfer_partial): New function.
10479 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10480 (init_sol_core_ops): Likewise.
10481
10482 * procfs.c (procfs_xfer_partial): New function.
10483 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10484 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10485
10486 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10487 procfs_xfer_auxv function.
10488
10489 * procfs.c (procfs_make_note_section): If we can read
10490 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10491 * linux-proc.c (linux_make_note_section): Likewise.
10492
10493 * auxv.h: New file.
10494 * auxv.c: New file.
10495 * Makefile.in (auxv_h): New variable.
10496 (COMMON_OBS): Add auxv.o here.
10497 (auxv.o): New target.
10498
10499 * corelow.c (core_xfer_partial): New function.
10500 (init_core_ops): Use it for core_ops.to_xfer_partial.
10501
10502 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10503 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10504 macro if that is defined.
10505
fa5281d0
DJ
105062004-02-01 Daniel Jacobowitz <drow@mvista.com>
10507
10508 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10509 and check the specified thread for each breakpoint.
10510 * breakpoint.h (bpstat_stop_status): Update prototype.
10511 * infrun.c (handle_inferior_event): Update calls to
10512 bpstat_stop_status.
10513
26ee262d
DJ
105142004-02-01 Daniel Jacobowitz <drow@mvista.com>
10515
10516 * Makefile.in (cli-cmds.o): Add $(readline_h).
10517
d9b52655
DJ
105182004-02-01 Daniel Jacobowitz <drow@mvista.com>
10519
10520 * cli/cli-cmds.c: Include readline.h.
10521 (complete_command): Pass the start of the last word to
10522 complete_line.
10523
9709f61c
DJ
105242004-01-31 Daniel Jacobowitz <drow@mvista.com>
10525
10526 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10527 argument, and change first argument to a CORE_ADDR.
10528 * breakpoint.h (bpstat_stop_status): Update prototype.
10529 * infrun.c (adjust_pc_after_break): Add a new comment.
10530 (handle_inferior_event): Update calls to bpstat_stop_status.
10531
4f1280bb
DJ
105322004-01-31 Daniel Jacobowitz <drow@mvista.com>
10533
10534 * breakpoint.h: Update copyright years.
10535
4fa8626c
DJ
105362004-01-31 Daniel Jacobowitz <drow@mvista.com>
10537
10538 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10539 (bpstat_stop_status): Don't decrement PC.
10540 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10541 prototype.
10542 * infrun.c (adjust_pc_after_break): New function.
10543 (handle_inferior_event): Call it, early. Remove later references
10544 to DECR_PC_AFTER_BREAK.
10545 (normal_stop): Add commentary.
10546
fad0733a
DJ
105472004-01-31 Daniel Jacobowitz <drow@mvista.com>
10548
10549 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10550 2004-01-27 double-free fix.
10551
42cdca6c
MK
105522004-01-31 Mark Kettenis <kettenis@gnu.org>
10553
10554 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10555 (sparc32_frame_prev_register): Handle StackGhost.
10556 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10557
932d5416
RM
105582004-01-29 Roland McGrath <roland@redhat.com>
10559
10560 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10561 * configure: Regenerated.
10562
10563 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10564 * Makefile.in (procfs.o): Add dep.
10565
47d3492a
AC
105662004-01-28 Andrew Cagney <cagney@redhat.com>
10567
10568 * tui/tui-stack.h: Update copyright.
10569 (struct frame_info): Add opaque declaration.
10570 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10571 (tui_show_locator_content): Rename tuiShowLocatorContent.
10572 (tui_show_frame_info): Rename tuiShowFrameInfo.
10573 * tui/tui-stack.c: Update copyright. Update references.
10574 * tui/tui-winsource.c: Update references.
10575 * tui/tui-win.c: Update references.
10576 * tui/tui-layout.c: Update references.
10577 * tui/tui-hooks.c: Update copyright, update references.
10578 * tui/tui.c: Update copyright, update references.
10579 * tui/tui-disasm.c: Update references.
10580
5d51ca54
DC
105812004-01-28 David Carlton <carlton@kealia.com>
10582
10583 * dwarf2read.c (add_partial_structure): Use demangled name if
10584 namespace equals "".
10585
086ed43d
JB
105862004-01-27 Jim Blandy <jimb@redhat.com>
10587
10588 Clean up misapplied patch:
10589 * dwarf2read.c (determine_prefix): Change one of the two forward
10590 declarations for 'determine_prefix_aux' to a declaration for this.
10591 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10592 argument to 'die_specification'.
10593
2a35147e
JB
10594 * dwarf2read.c (read_func_scope): Re-indent comment.
10595
a355c7de 105962004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10597
a355c7de
AC
10598 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10599 b->exp to NULL after freeing so that error during re-parsing or
10600 evaluation of expressions associated with breakpoint don't
10601 eventually lead to re-freeing of storage.
10602 Committed by Andrew Cagney.
10603
63ff5125
AC
106042004-01-27 Andrew Cagney <cagney@redhat.com>
10605
10606 * source.c (ambiguous_line_spec): Delete undefined declaration.
10607 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10608 (m32r_set_server_address, m32r_set_download_path): Ditto.
10609 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10610
e142c38c
DJ
106112004-01-27 Daniel Jacobowitz <drow@mvista.com>
10612
10613 * dwarf2read.c: Update calls to changed and renamed functions, and
10614 references to moved variables.
10615
10616 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10617 language, language_defn, list_in_scope, and ftypes members.
10618 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10619 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10620 (baseaddr): Remove globals.
10621
10622 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10623 (set_cu_language, die_is_declaration, die_specification)
10624 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10625 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10626 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10627 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10628
10629 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10630 cu.list_in_scope. Don't initialize cu_header_offset.
10631 (add_partial_symbol): Add local baseaddr.
10632 (psymtab_to_symtab_1): Add local baseaddr. Use
10633 objfile->section_offsets for consistency. Don't initialize
10634 cu_header_offset; do initialize cu.header.offset and
10635 cu.list_in_scope.
10636 (read_file_scope, read_func_scope, read_lexical_block_scope)
10637 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10638
c6e06ede
MC
106392004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10640
fb328ecc 10641 * PROBLEMS: Add gdb/1516.
c6e06ede 10642
48184fd4
AC
106432003-12-29 Robert Millan <robertmh@gnu.org>
10644
10645 Patch committed by Andrw Cagney.
10646 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10647 * configure.tgt: Match knetbsd*-gnu.
10648
c1321b30
AC
106492004-01-26 Andrew Cagney <cagney@redhat.com>
10650
f3699be3
AC
10651 * breakpoint.c (catch_command_1): Delete #ifdef code.
10652 (catch_fork_command_1): Delete #ifdef wrapper.
10653 (catch_exec_command_1): Ditto.
10654 (catch_load_command_1): Ditto.
10655 (catch_unload_command_1): Ditto.
10656
c1321b30
AC
10657 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10658 (catch_breakpoint): Delete #if0ed function.
10659 (disable_catch_breakpoint): Ditto.
10660 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10661 (disable_catch, enable_catch, delete_catch): Ditto.
10662
b4501125
AC
106632004-01-26 Andrew Cagney <cagney@redhat.com>
10664
10665 * remote.c (echo_check, quit_flag): Delete variables.
10666 (cisco_kernel_mode): Delete variable.
10667 (minitelnet_return, tty_input, escape_count): Delete variables.
10668 (remote_cisco_mode): Delete variable.
10669 (remote_cisco_open, remote_cisco_close): Delete function.
10670 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10671 (init_remote_cisco_ops): Delete function.
10672 (_initialize_remote): Do not install "remote cisco" code.
10673 (read_frame): Delete cisco specific code.
10674 (remote_info_process): Delete function.
10675 (remote_wait): Delete cisco specific code.
10676 (remote_cisco_section_offsets): Delete function.
10677 (remote_cisco_objfile_relocate): Delete function.
10678 (remote_async_wait): Delete cisco specific code.
10679 (minitelnet, readtty, readsocket): Delete function.
10680
74055713
AC
106812004-01-26 Andrew Cagney <cagney@redhat.com>
10682
10683 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10684 comments mentioning extract_returned_value_address.
10685 * infcmd.c (print_return_value): Update. Add comments on
10686 extract_returned_value_address.
10687 * stack.c (return_command): Add comments on
10688 extract_returned_value_address.
10689 * values.c: Update comment.
10690 * m32r-tdep.c: Update comment.
10691 * sparc-tdep.c: Update comment.
10692 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10693 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10694 * sh64-tdep.c (sh64_gdbarch_init): Update.
10695 * sh-tdep.c (sh_gdbarch_init): Update.
10696 * s390-tdep.c (s390_gdbarch_init): Update.
10697 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10698 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10699 * m68k-tdep.c (m68k_gdbarch_init): Update.
10700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10701 * m32r-tdep.c (m32r_gdbarch_init): Update.
10702 * ia64-tdep.c (ia64_gdbarch_init): Update.
10703 * h8300-tdep.c (h8300_gdbarch_init): Update.
10704 * frv-tdep.c (frv_gdbarch_init): Update.
10705 * arm-tdep.c (arm_gdbarch_init): Update.
10706 * alpha-tdep.c (alpha_gdbarch_init): Update.
10707
a67af2b9
AC
107082004-01-26 Andrew Cagney <cagney@redhat.com>
10709
10710 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10711 SYMBOL_LOCATION_FUNCS
10712 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10713 "struct symbol_ops".
10714 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10715 type to "struct symbol_ops".
10716 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10717 (struct symbol): Replace ".aux_value.loc.funcs" and
10718 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10719 (SYMBOL_OBJFILE): Delete macro.
10720 (SYMBOL_LOCATION_FUNCS): Delete macro.
10721 (SYMBOL_LOCATION_BATON): Update.
10722 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10723 intead of SYMBOL_LOCATION_FUNCS.
10724 * ax-gdb.c (gen_var_ref): Ditto.
10725 * printcmd.c (address_info): Ditto.
10726 * findvar.c (read_var_value): Ditto.
10727 (symbol_read_needs_frame): Ditto.
10728
c034e007
AC
107292004-01-26 Andrew Cagney <cagney@redhat.com>
10730
10731 * dwarf2read.c (read_func_scope): Document frame-base hack.
10732
bb472c1e
MK
107332004-01-25 Mark Kettenis <kettenis@gnu.org>
10734
10735 * infcmd.c (print_return_value): Plug memory leak; delete
10736 ui_stream object. Rename argument `structure_return' to
10737 `struct_return'.
10738
c8e737d5
MK
107392004-01-25 Mark Kettenis <kettenis@gnu.org>
10740
f941662f
MK
10741 * infcmd.c (print_return_value): Wrap long lines.
10742 (finish_command_continuation, finish_command): Remove unused
10743 variable `funcaddr'. Fix some coding-standards problems.
10744
c558d81a 10745 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10746 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10747 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10748 TDEP->fpregset to zero.
10749
bf1e5861 10750 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10751 floating-point registers for traditional NetBSD core files.
10752 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10753 TDEP->sizeof_fpregset here.
10754
4c72d57a
MK
107552004-01-25 Mark Kettenis <kettenis@gnu.org>
10756
566626fa
MK
10757 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10758 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10759 function with code split out from
10760 sparc32nbsd_sigcontext_frame_cache.
10761 (sparc32nbsd_sigcontext_frame_cache): Use
10762 sparc32nbsd_sigcontext_saved_regs.
10763 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10764 OpenBSD.
10765 * sparcobsd-tdep.c: New file.
10766 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10767 (sparcobsd-tdep.o): New dependency.
10768 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10769 * config/sparc/obsd.mt: New file.
10770
4c72d57a
MK
10771 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10772 TDEP->fpregset to be initialized to enable core file register
10773 sets.
10774
7e5e9f88
MK
107752004-01-24 Mark Kettenis <kettenis@gnu.org>
10776
f0f207fd 10777 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10778 Add opaque declarations.
10779 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10780 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10781 function with code split out from
10782 sparc64nbsd_sigcontext_frame_cache.
10783 (sparc64nbsd_sigcontext_frame_cache): Use
10784 sparc64nbsd_sigcontext_saved_regs.
10785 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10786 OpenBSD.
10787 * sparc64obsd-tdep.c: New file.
10788 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10789 (sparc64obsd-tdep.o): New dependency.
10790 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10791 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10792 * config/sparc/obsd64.mt: New file.
10793
690668cc
MK
10794 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10795 read the instruction at PC.
10796
7e5e9f88
MK
10797 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10798 value of GDB_OSABI_DEFAULT.
10799 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10800 instead of GDB_OSABI_NETBSD_AOUT.
10801
68b6dce9
NR
108022004-01-24 Nick Roberts <nick@nick.uklinux.net>
10803
10804 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10805 copyright.
10806
080ce8c0
AC
108072004-01-23 Andrew Cagney <cagney@redhat.com>
10808
10809 * printcmd.c (display_command): Replace tui_set_display call with
10810 tui_set_layout_for_display_command.
10811 * tui/tui.h (enum tui_win_type): Define.
10812 (tui_set_layout): Delete declaration.
10813 (tui_set_layout_for_display_command): Rename set_tui_layout.
10814 * tui/tui-data.h (enum tui_layout_type): Define.
10815 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10816 "tui.h".
10817 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10818 (tui_default_win_height): Rename tuiDefaultWinHeight.
10819 (tui_default_win_viewport_height): Rename
10820 tuiDefaultWinViewportHeight.
10821 (tui_set_layout): RenametuiSetLayout.
10822 * tui/tui-layout.c: Update references.
10823 * tui/tui.c: Update references.
10824 * tui/tui-disasm.c: Update references.
10825
b368761e
DC
108262004-01-23 David Carlton <carlton@kealia.com>
10827
10828 Partial workaround for PR c++/1511:
10829 * cp-namespace.c: Include frame.h.
10830 (cp_lookup_transparent_type): New
10831 (cp_lookup_transparent_type_loop): New.
10832 * cp-support.h: Declare cp_lookup_transparent_type.
10833 * symtab.c (basic_lookup_transparent_type): Renamed from
10834 lookup_transparent_type.
10835 (lookup_transparent_type): Replace old body by a call to
10836 current_language->la_lookup_transparent_type.
10837 * symtab.h: Update copyright. Declare
10838 basic_lookup_transparent_type.
10839 * language.h: Update copyright.
10840 (struct language_defn): Add la_lookup_transparent_type.
10841 * language.c: Update copyright.
10842 (unknown_language_defn): Add basic_lookup_transparent_type.
10843 (auto_language_defn): Add basic_lookup_transparent_type.
10844 (local_language_defn): Add basic_lookup_transparent_type.
10845 * ada-lang.c: Update copyright.
10846 (ada_language_defn): Add basic_lookup_transparent_type.
10847 * c-lang.c: Update copyright.
10848 (c_language_defn): Add basic_lookup_transparent_type.
10849 (cplus_language_defn): Add basic_lookup_transparent_type.
10850 (asm_language_defn): Add basic_lookup_transparent_type.
10851 (minimal_language_defn): Add basic_lookup_transparent_type.
10852 * f-lang.c: Update copyright.
10853 (f_language_defn): Add basic_lookup_transparent_type.
10854 * jv-lang.c: Update copyright.
10855 (java_language_defn): Add basic_lookup_transparent_type.
10856 * m2-lang.c: Update copyright.
10857 (m2_language_defn): Add basic_lookup_transparent_type.
10858 * objc-lang.c: Update copyright.
10859 (objc_language_defn): Add basic_lookup_transparent_type.
10860 * p-lang.c: Update copyright.
10861 (p_language_defn): Add basic_lookup_transparent_type.
10862 * scm-lang.c: Update copyright.
10863 (scm_language_defn): Add basic_lookup_transparent_type.
10864 * Makefile.in (cp-namespace.o): Depend on frame.h.
10865
fdde2d81
DC
108662004-01-23 David Carlton <carlton@kealia.com>
10867
10868 Patch for PR c++/1520:
10869 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10870 properly if we have a specification die.
10871 (determine_prefix_aux): Rename from determine_prefix.
10872 (determine_prefix): Like the old determine_prefix, but never
10873 returns NULL.
10874
5b828b6b
TR
108752004-01-23 Theodore A. Roth <troth@openavr.org>
10876
10877 * avr-tdep.c: Update copyright.
10878 (avr_iaddr_p): Delete unused function.
10879 (avr_saddr_p): Delete unused function.
10880
a1b8c067
DC
108812004-01-23 David Carlton <carlton@kealia.com>
10882
10883 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10884 Fix for PR symtab/1534.
10885
f2cab569
MK
108862004-01-23 Mark Kettenis <kettenis@gnu.org>
10887
10888 * NEWS (New native configurations): Mention OpenBSD/sparc and
10889 OpenBSD/sparc64.
10890 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10891 * configure.host: Likewise.
10892 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10893 handler for OpenBSD.
10894 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10895
642d8300
MK
108962004-01-22 Mark Kettenis <kettenis@gnu.org>
10897
89aac506
MK
10898 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10899 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10900
36662fde
MK
10901 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10902 * cli/cli-cmds.c (shell_escape): Likewise.
10903
642d8300
MK
10904 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10905 OpenBSD .note.openbsd.ident sections.
10906
fae299cd
DC
109072004-01-22 David Carlton <carlton@kealia.com>
10908
10909 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10910 get_scope_pc_bounds.
10911 (read_file_scope): Ditto.
10912 (get_scope_pc_bounds): New function, produced by extracting code
10913 from the above two functions, consolidating it, and adding support
10914 for DW_TAG_namespace.
10915
a49d618c
MK
109162004-01-22 Mark Kettenis <kettenis@gnu.org>
10917
10918 * osabi.c (MAX_NOTESZ): New define.
10919 (check_note): New function.
10920 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10921 check_note.
10922
fe61caab
RM
109232004-01-21 Roland McGrath <roland@redhat.com>
10924
10925 * MAINTAINERS (write after approval): Add myself.
10926
ec145965
EZ
109272004-01-21 Eli Zaretskii <eliz@gnu.org>
10928
10929 * utils.c (init_page_info): Move declarations of `rows' and
10930 `cols' before the __GO32__-specific code. Move the closing brace
10931 outside the #ifdef __GO32__..#endif block.
10932 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10933
877522db
PB
109342004-01-21 Paul Brook <paul@codesourcery.com>
10935
10936 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10937 BPSTAT_WHAT_CHECK_SHLIBS.
10938
dbf5be1c
PB
109392004-01-21 Paul Brook <paul@codesourcery.com>
10940
10941 * MAINTAINERS: Add myself to write-after-approval.
10942
81f08b92
AC
109432004-01-20 Andrew Cagney <cagney@redhat.com>
10944
5a1efed7
AC
10945 * ax-gdb.c (print_axs_value): Delete unused function.
10946 * jv-lang.c (java_lookup_type): Delete unused function.
10947 * cli/cli-dump.c (dump_filetype): Delete unused function.
10948 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10949 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10950 (mips_getstring): Delete unused function.
10951 (pmon_insert_breakpoint): Delete #if0ed function.
10952 (PMON_MAX_BP): Delete #if0ed MACRO.
10953 (mips_pmon_bp_info): Delete #if0ed variable.
10954 (pmon_remove_breakpoint): Delete #if0ed function.
10955 * monitor.c (monitor_write_even_block): Delete unused function.
10956 (monitor_write_memory_block): Delete #if0ed code.
10957 * dink32-rom.c (dink32_load): Delete unused function.
10958 (_initialize_dink32_rom): Delete #if0ed code.
10959 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10960
b0a30fce
AC
10961 * tui/tui-command.c: Update references.
10962 * tui/tui-io.c: Update references.
10963 * tui/tui-command.h: Update copyright.
10964 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10965
81f08b92
AC
10966 * source.c (ambiguous_line_spec): Delete never-defined function.
10967 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10968 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10969 * cli/cli-cmds.c (validate_comname): Ditto.
10970
65f05602
AC
10971 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10972 "tui-data.h".
10973 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10974 (tui_show_disassem): Rename tuiShowDisassem.
10975 (tui_show_disassem_and_update_source): Rename
10976 tuiVerticalDisassemScroll.
10977 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10978 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10979 * tui/tui.h: Update copyright.
10980 (enum tui_status): Define.
10981 * tui/tui-data.h (enum tui_scroll_direction): Define.
10982 * tui/tui-disasm.c: Update copyright. Update references.
10983 * tui/tui-winsource.c: Update copyright. Update references.
10984 * tui/tui-win.c: Update references.
10985 * tui/tui-layout.c: Update references.
10986
6bb0384f
AC
109872004-01-20 Andrew Cagney <cagney@redhat.com>
10988
10989 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10990 sym2 to start of block.
10991
9175c9a3
MC
109922004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10993
10994 * MAINTAINERS: Delete mmalloc.
10995 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10996 * NEWS: Mention removal of --with-malloc.
10997 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10998 * config.in: Regenerate.
10999 * configure: Regenerate.
6bb0384f
AC
11000 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11001 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11002 * gdbinit.in: Remove mmalloc.
11003 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11004 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11005 * config/i386/go32.mh: Likewise.
11006 * config/i386/interix.mh: Likewise.
11007 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11008
4fcef00a
JJ
110092004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11010
11011 * linespec.c (decode_variable, symtab_from_filename): Call
11012 error_silent with error message instead of throwing an exception
11013 directly.
11014 * defs.h (error_silent, error_output_message): Add prototypes.
11015 (catch_exceptions_with_msg): Ditto.
11016 * utils.c (error_silent, error_output_message): New functions.
11017 * top.c (catch_exceptions_with_msg): New function.
11018
8e94b928
NR
110192004-01-20 Nick Roberts <nick@nick.uklinux.net>
11020
11021 * mi/mi-cmds.h (enum print_values): Add definition.
11022
11023 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11024 type and value for simple data types and just the name and type
11025 for complex ones, if required.
11026
11027 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11028 children, if required.
11029
a02d6af8
KB
110302004-01-19 Kevin Buettner <kevinb@redhat.com>
11031
11032 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11033 unused declarations.
11034
78a4a9b9
AC
110352004-01-19 Andrew Cagney <cagney@redhat.com>
11036
11037 * top.h (mapped_symbol_files): Delete declaration.
11038 * main.c (captured_main): Delete option "m" and "mapped".
11039 * objfiles.c (mapped_symbol_files): Delete variable.
11040 * symfile.c (symbol_file_command): Delete mmap code.
11041 (symbol_file_add_with_addrs_or_offsets): Ditto.
11042 (add_symbol_file_command, reread_separate_symbols): Ditto.
11043 * objfiles.h (OBJF_MAPPED): Delete.
11044 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11045 (free_objfile) [USE_MMALLOC]: Ditto.
11046 (open_existing_mapped_file): Delete function.
11047 (open_mapped_file): Delete function.
11048 (map_to_file): Delete function.
11049
2dbd5e30
KB
110502004-01-19 Kevin Buettner <kevinb@redhat.com>
11051
11052 * infrun.c (step_into_function): Account for possible breakpoint
11053 adjustment when computing ``stop_func_start''.
11054
437b434f
KB
110552004-01-19 Kevin Buettner <kevinb@redhat.com>
11056
11057 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11058 the region size against the size of a pointer, not the size of
11059 a register as given by DEPRECATED_REGISTER_SIZE.
11060
55fb0713
AC
110612004-01-19 Andrew Cagney <cagney@redhat.com>
11062
11063 * tui/tui-regs.h: Include "tui-data.h".
11064 (tuiFirstRegElementNoInLine): Delete declaration.
11065 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11066 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11067 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11068 (tui_calculate_regs_column_count): Rename
11069 tuiCalculateRegsColumnCount.
11070 (tui_check_register_values): Rename tuiCheckRegisterValues.
11071 (tui_show_registers): Rename tuiShowRegisters.
11072 (tui_display_registers_from_line): Rename
11073 tuiDisplayRegistersFromLine.
11074 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11075 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11076 (tui_first_reg_element_no_inline): Rename
11077 tuiFirstRegElementNoInLine.
11078 * tui/tui-data.h: Update copyright.
11079 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11080 * tui/tui-windata.c: Update copyright, update references.
11081 * tui/tui-regs.c: Update copyright, update references.
11082 * tui/tui-win.c: Update copyright, update references.
11083 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11084
cebe9500
AC
110852004-01-18 Andrew Cagney <cagney@redhat.com>
11086
bcdf1568
AC
11087 * tui/tui-io.c: Update copyright.
11088 (key_is_end_sequence, key_is_backspace): New functions.
11089 (key_is_command_char, key_is_start_sequence): New function.
11090 (tui_getc): Update references.
11091 * tui/tui-io.h: Update copyright.
11092 (m_tuiStartNewLine): Delete macro.
11093 (m_isBackspace, m_isDeleteChar): Delete macros.
11094 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11095 (m_isNextPage, m_isPrevPage): Delete macros.
11096 (m_isLeftArrow, m_isRightArrow): Delete macros.
11097 (m_isXdbStyleCommandChar): Delete macro.
11098 (key_is_start_sequence): Declare, replace m_isStartSequence.
11099 (key_is_end_sequence): Declare, replace m_isEndSequence.
11100 (key_is_backspace): Declare ,replace m_isBackspace.
11101 (key_is_command_char): Declare, replace m_isCommandChar.
11102 * tui/tui-command.c: Update copyright.
11103 (tuiDispatchCtrlChar): Update references.
11104
130d87e6
AC
11105 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11106 tuiSourceWin.h.
11107
d7b2e967
AC
11108 * tui/tui-command.c: Rename tui/tuiCommand.c.
11109 * tui/tui-command.h: Rename tui/tuiCommand.h.
11110 * tui/tui-data.c: Rename tui/tuiData.c.
11111 * tui/tui-data.h: Rename tui/tuiData.h.
11112 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11113 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11114 * tui/tui-io.c: Rename tui/tuiIO.c.
11115 * tui/tui-io.h: Rename tui/tuiIO.h.
11116 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11117 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11118 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11119 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11120 * tui/tui-source.c: Rename tui/tuiSource.c.
11121 * tui/tui-source.h: Rename tui/tuiSource.h.
11122 * tui/tui-stack.c: Rename tui/tuiStack.c.
11123 * tui/tui-stack.h: Rename tui/tuiStack.h.
11124 * tui/tui-win.c: Rename tui/tuiWin.c.
11125 * tui/tui-win.h: Rename tui/tuiWin.h.
11126 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11127 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11128 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11129 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11130 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11131 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11132 * tui/tui-file.c: Update includes.
11133 * tui/tui-hooks.c: Update includes.
11134 * tui/tui-interp.c: Update includes.
11135 * tui/tui.c: Update includes.
11136 * Makefile.in: Update all tui/ dependencies.
11137 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11138
b2100910
AC
11139 * Makefile.in: Update copyright. Update dependencies.
11140
cebe9500
AC
11141 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11142 problem.
11143
c6f0559b
AC
111442004-01-18 Andrew Cagney <cagney@redhat.com>
11145
43e9390b
AC
11146 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11147 instead of register_gdbarch_init.
11148
c6f0559b
AC
11149 * remote-sds.c (tohex): Delete unused function. Update copyright.
11150 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11151 * v850-tdep.c (v850_register_virtual_size): Ditto.
11152 * target.c (normal_target_post_startup_inferior): Ditto.
11153 * source.c (ambiguous_line_spec): Ditto.
11154 * remote.c (adapt_remote_get_threadinfo): Ditto.
11155 * mi/mi-out.c (out_field_fmt): Ditto.
11156 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11157 (output_control_change_notification): Ditto.
11158 * m68k-tdep.c (m68k_register_byte): Ditto.
11159 (m68k_remote_breakpoint_from_pc): Ditto.
11160 * ui-out.c (init_ui_out_state): Delete unused declaration.
11161 * stabsread.c (search_value): Ditto.
11162 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11163 * maint.c (print_section_table): Ditto.
11164 * infrun.c (set_follow_fork_mode_command): Ditto.
11165
a8504492
MK
111662004-01-18 Mark Kettenis <kettenis@gnu.org>
11167
11168 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11169 DW_CFA_def_cfa_exporession. Add support for
11170 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11171 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11172
0bd8997e
AC
111732004-01-18 Andrew Cagney <cagney@redhat.com>
11174
11175 * ocd.c: Update copyright.
11176 (bdm_read_register_command): Delete unused function.
11177 (_initialize_remote_ocd): Delete commented out reference.
11178 (get_quoted_char, reset_packet): Delete #if0ed function.
11179 (output_packet, put_quoted_char): Delete #if0ed function.
11180 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11181 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11182 (BDM_BREAKPOINT): Delete #if0ed macro.
11183 (remote_timeout): Delete #if0ed variable.
11184
31bb40e4
MK
111852004-01-18 Mark Kettenis <kettenis@gnu.org>
11186
11187 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11188 (core-sol2.o): Remove dependency.
11189 * core-sol2.c: Remove file.
11190
887432a5
AC
111912004-01-17 Andrew Cagney <cagney@redhat.com>
11192
11193 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11194 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11195 enums.
11196
29182b13
DJ
111972004-01-17 Daniel Jacobowitz <drow@mvista.com>
11198
11199 * remote.c: Update copyright years.
11200
2963ee1d
DJ
112012004-01-17 Daniel Jacobowitz <drow@mvista.com>
11202
11203 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11204
79d45cd4
AC
112052004-01-17 Andrew Cagney <cagney@redhat.com>
11206
ee300cd4
AC
11207 * mdebugread.c: Update copyright.
11208 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11209 (parse_type, parse_procedure): Ditto.
11210 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11211
fcacc9c2
AC
11212 * cris-tdep.c (cris_store_struct_return): Put back accidently
11213 deleted function.
11214
79d45cd4
AC
11215 * gdbarch.sh: Update copyright year.
11216 * gdbarch.h, gdbarch.c: Re-generate.
11217
b263358a
DJ
112182004-01-17 Daniel Jacobowitz <drow@mvista.com>
11219
11220 Suggested by George Anzinger.
11221 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11222 correct stack offset. Include unknown opcode numbers in the error
11223 message.
11224
931aecf5
AC
112252004-01-17 Andrew Cagney <cagney@redhat.com>
11226
11227 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11228 extract_struct_value_address, i386 does not set it.
11229 * sparc64-tdep.c (sparc64_init_abi): Do not set
11230 extract_struct_value_address, never called.
11231 (sparc64_extract_struct_value_address): Delete function.
11232 * m68hc11-tdep.c: Update copyright.
11233 (m68hc11_gdbarch_init): Delete redundant assignment of
11234 extract_struct_value_address.
11235 * i386-tdep.c: Update copyright.
11236 (i386_gdbarch_init): Do not set extract_struct_value_address,
11237 never called.
11238 (i386_extract_struct_value_address): Delete function.
11239 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11240 extract_struct_value_address, never called.
11241 (sparc32_extract_struct_value_address): #if 0 function. Add
11242 comments explaining its future.
11243
756fe439
DJ
112442004-01-17 Daniel Jacobowitz <drow@mvista.com>
11245
11246 * arm-tdep.c (arm_write_pc): New function.
11247 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11248
e74f0f02
DJ
112492004-01-17 Daniel Jacobowitz <drow@mvista.com>
11250
11251 * breakpoint.c (must_shift_inst_regs): Delete.
11252 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11253 and SHIFT_INST_REGS.
11254 * infcmd.c (step_1, step_1_continuation): Delete references to
11255 SHIFT_INST_REGS.
11256 * infrun.c (keep_going): Likewise.
11257 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11258 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11259
b6cb9035
AC
112602004-01-17 Andrew Cagney <cagney@redhat.com>
11261
444a1e2e
AC
11262 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11263 * gdbarch.h, gdbarch.c: Re-generate.
11264 * infcmd.c (print_return_value): Delete reference to
11265 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11266
def7e6ed
AC
11267 * cris-tdep.c (cris_gdbarch_init): Do not set
11268 deprecated_extract_struct_value_address.
11269
07be497a
AC
11270 * xstormy16-tdep.c: Update copyright.
11271 (xstormy16_extract_struct_value_address): Update to current
11272 extract struct value address interface.
11273 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11274 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11275 current extract struct value address interface.
11276 (sh64_gdbarch_init): Set extract_struct_value_address.
11277
6b4d5c91
AC
11278 * cris-tdep.c: Update copyright.
11279 (cris_extract_struct_value_address): Delete function.
11280 (struct_return_address): Delete variable.
11281 (cris_store_struct_return): Do not set struct_return_address.
11282
464e0365
AC
11283 * mcore-tdep.c: Update copyright.
11284 (mcore_extract_struct_value_address): Delete function. Update
11285 comments.
11286 (mcore_gdbarch_init): Update.
11287 * mn10300-tdep.c: Update copyright.
11288 (mn10300_extract_struct_value_address): Delete function.
11289 (mn10300_gdbarch_init): Update.
11290 * v850-tdep.c: Update copyright.
11291 (v850_extract_struct_value_address): Delete.
11292 (v850_gdbarch_init): Update.
11293 * ns32k-tdep.c: Update copyright.
11294 (ns32k_extract_struct_value_address): Delete.
11295 (ns32k_gdbarch_init): Update.
11296 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11297 (hppa_gdbarch_init): Update.
11298 * vax-tdep.c: Update copyright.
11299 (vax_extract_struct_value_address): Delete.
11300 (vax_gdbarch_init): Update.
11301
afb18d0f
AC
11302 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11303 * gdbarch.h, gdbarch.c: Re-generate.
11304 * procfs.c (procfs_fetch_registers): Delete reference to
11305 DEPRECATED_NPC_REGNUM.
11306 (procfs_store_registers): Ditto.
11307 * regcache.c (generic_target_write_pc): Simplify.
11308 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11309
a698f53e
AC
11310 * core-sol2.c (fetch_core_registers): Replace
11311 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11312
adc11376
AC
11313 * hppa-tdep.c: Update copyright year.
11314 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11315 NPC_REGNUM.
11316 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11317
b6cb9035
AC
11318 * mips-tdep.c (mips_write_pc): New function.
11319 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11320 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11321 (mips_find_saved_regs, mips_software_single_step: Ditto.
11322 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11323 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11324
6d82d43b
AC
113252004-01-17 Andrew Cagney <cagney@redhat.com>
11326
11327 * mips-tdep.c: Re-indent. Group functions by ABI.
11328
71bd6bd4
AC
113292004-01-17 Andrew Cagney <cagney@redhat.com>
11330
11331 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11332 * gdbarch.c: Re-generate.
11333 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11334 DECR_PC_AFTER_BREAK to zero.
11335 * vax-tdep.c (vax_gdbarch_init): Ditto.
11336 * v850-tdep.c (v850_gdbarch_init): Ditto.
11337 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11338 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11339 * sh-tdep.c (sh_gdbarch_init): Ditto.
11340 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11341 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11342 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11343 * mips-tdep.c (mips_gdbarch_init): Ditto.
11344 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11346 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11347 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11348 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11349 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11350 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11351 * frv-tdep.c (frv_gdbarch_init): Ditto.
11352 * cris-tdep.c (cris_gdbarch_init): Ditto.
11353 * avr-tdep.c (avr_gdbarch_init): Ditto.
11354 * arm-tdep.c (arm_gdbarch_init): Ditto.
11355 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11356
a02abb62
JB
113572004-01-17 J. Brobecker <brobecker@gnat.com>
11358
11359 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11360 Delete, no longer used.
11361 (read_subrange_type): New function, mostly extracted from
11362 read_array_type().
11363 (read_array_type): Replace extracted code by call to
11364 read_subrange_type().
11365 (dwarf2_get_attr_constant_value): New function.
11366 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11367 (add_partial_symbol): Likewise.
11368 (process_die): Likewise.
11369 (new_symbol): Likewise.
11370 (read_type_die): Likewise.
11371
cf5b2f1b
AC
113722004-01-16 Andrew Cagney <cagney@redhat.com>
11373
11374 * symfile.c: Update copyright year.
11375 (compare_symbols): Delete unused function.
11376 * stabsread.c: Update copyright year.
11377 (lrs_general_complaint): Delete unused function.
11378 (ref_search_value): Ditto.
11379 (get_substring): Delete declaration.
11380 * sh64-tdep.c: Update copyright year.
11381 (sh64_get_gdb_regnum): Delete unused function.
11382 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11383 Delete unused function.
11384
d33b9831
MK
113852004-01-17 Mark Kettenis <kettenis@gnu.org>
11386
11387 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11388 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11389
7aea86e6
AC
113902004-01-16 Andrew Cagney <cagney@redhat.com>
11391
11392 Changes from Peter Schauer.
11393 * rs6000-tdep.c: Update copyright year.
11394 (rs6000_push_dummy_call): Update the stack pointer before
11395 accessing the corresponding stack region.
11396 * rs6000-nat.c: Update copyright year.
11397 (set_host_arch): Set "info.abfd" to "exec_bfd".
11398
26b0da32
MK
113992004-01-15 Mark Kettenis <kettenis@gnu.org>
11400
11401 * blockframe.c: Update copyright year.
11402 (inside_entry_func): Don't treat a zero PC specially.
11403
86fbe6cc
EZ
114042004-01-14 Elena Zannoni <ezannoni@redhat.com>
11405
11406 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11407 variable.
11408 (gcore_create_callback): Ditto. Skip any memory segment that has
11409 no permissions set.
11410
63d06c5c
DC
114112004-01-14 David Carlton <carlton@kealia.com>
11412
11413 Change symbols for C++ nested types to contain the fully qualified
11414 name, if possible. (At least in the DWARF-2 case.) Partial fix
11415 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11416 c++/895.
11417 * c-exp.y (qualified_type): Handle types nested within classes.
11418 * cp-namespace.c: Update comments.
11419 (cp_set_block_scope): Delete #if 0.
11420 (cp_lookup_nested_type): Handle types nested within classes.
11421 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11422 when appropriate.
11423 (add_partial_symbol): Add the name of the enclosing namespace to
11424 types.
11425 (pdi_needs_namespace): New.
11426 (add_partial_namespace): Tweak comment.
11427 (add_partial_structure): New.
11428 (psymtab_to_symtab_1): Initialize processing_current_prefix
11429 here...
11430 (process_die): instead of here.
11431 (read_structure_scope): Try to figure out the name of the class or
11432 namespace that the structure might be defined within.
11433 (read_enumeration): Generate fully-qualified names, if possible.
11434 (read_namespace): Don't set name to NULL.
11435 (die_specification): New.
11436 (new_symbol): Generate fully-qualified names for types.
11437 (read_type_die): Determine appropriate prefix.
11438 (determine_prefix): New.
11439 (typename_concat): New.
11440 (class_name): New.
11441 * valops.c (value_aggregate_elt): Pass NOSIDE to
11442 value_struct_elt_for_reference.
11443 (value_struct_elt_for_reference): Make static, add NOSIDE
11444 parameter, call value_maybe_namespace_elt as a last resort.
11445 (value_namespace_elt): Break out code into
11446 value_maybe_namespace_elt.
11447 (value_maybe_namespace_elt): New.
11448
87783b8b
AC
114492004-01-12 Andrew Cagney <cagney@redhat.com>
11450
11451 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11452 cooked floating-point registers.
11453 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11454 and value_to_register.
11455
6503b91e
AC
114562004-01-13 Andrew Cagney <cagney@redhat.com>
11457
11458 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11459 * gdbarch.c: Re-generate.
11460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11461 FUNCTION_START_OFFSET.
11462 * v850-tdep.c (v850_gdbarch_init): Ditto.
11463 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11464 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11465 * sh-tdep.c (sh_gdbarch_init): Ditto.
11466 * s390-tdep.c (s390_gdbarch_init): Ditto.
11467 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11468 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11469 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11470 * mips-tdep.c (mips_gdbarch_init): Ditto.
11471 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11472 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11474 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11475 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11476 * i386-tdep.c (i386_gdbarch_init): Ditto.
11477 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11478 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11479 * frv-tdep.c (frv_gdbarch_init): Ditto.
11480 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11481 * cris-tdep.c (cris_gdbarch_init): Ditto.
11482 * avr-tdep.c (avr_gdbarch_init): Ditto.
11483 * arm-tdep.c (arm_gdbarch_init): Ditto.
11484 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11485
ea1dd7bc
DJ
114862004-01-13 Daniel Jacobowitz <drow@mvista.com>
11487
11488 * infrun.c (follow_fork_mode_ask): Remove.
11489 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11490 (follow_fork): Simplify and remove internal error for
11491 follow_fork_mode_ask.
11492 (_initialize_infrun): Update "set follow-fork-mode" help text.
11493
0f0cffd2
AC
114942004-01-13 Andrew Cagney <cagney@redhat.com>
11495
11496 * configure.in: Update copyright year.
11497 (build_warnings): Add -Wunused-label.
11498 * configure: Re-generate.
11499
de38af99
AC
115002004-01-12 Andrew Cagney <cagney@redhat.com>
11501
954a7fba
AC
11502 * exec.h (exec_ops): Make "extern".
11503
de38af99
AC
11504 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11505 the function is void.
11506 (mips_pseudo_register_write): Ditto.
11507
1a111ce3
AC
115082004-01-12 Andrew Cagney <cagney@redhat.com>
11509
11510 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11511 call. Never defined.
11512 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11513 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11514 (struct sparc_gregset, struct regcache): Ditto.
11515 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11516
48efe704
AC
115172004-01-12 Andrew Cagney <cagney@redhat.com>
11518
11519 * mi/ChangeLog: Delete file. Renamed to ...
11520 * mi/ChangeLog-1999-2003: New file.
11521 * tui/ChangeLog: Delete file. Renamed to ...
11522 * tui/ChangeLog-1998-2003: New file.
fe61caab 11523
a54124c5
MK
115242004-01-11 Mark Kettenis <kettenis@gnu.org>
11525
2ca62865
MK
11526 * sparc64nbsd-tdep.c: Include "regset.h".
11527 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11528 Remove variables.
11529 (fetch_core_registers): Remove function.
11530 (sparc64nbsd_core_fns): Remove variable.
11531 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11532 functions.
11533 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11534 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11535 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11536
ca9d58e9
MK
11537 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11538 sparc_extract_struct_value_address.
11539 (sparc32_gdbarch_init): Set extract_struct_value_address.
11540 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11541 function.
11542 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11543 return_value_on_stack.
11544
3cc87ec0
MK
11545 * NEWS: Mention that %cs and %ss have been added to the AMD64
11546 configurations
11547
5bf00f29
MK
11548 * frame.c: Update copyright year.
11549 (get_prev_frame): Improve comment.
11550
4f7ec84e
MK
11551 * sparc64fbsd-tdep.c: Include "regset.h".
11552 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11553 Remove variables.
11554 (fetch_core_registers): Remove function.
11555 (sparc64fbsd_core_fns): Remove variable.
11556 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11557 functions.
11558 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11559 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 11560 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11561
4e7b0cd3
MK
11562 * sparcnbsd-tdep.c: Include "regset.h".
11563 (fetch_core_registers): Remove function.
11564 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11565 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11566 functions.
11567 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11568 TDEP->fpregset.
46b58ce9 11569 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11570
a54124c5
MK
11571 * sparc-tdep.h (struct regset): Provide opaque declaration.
11572 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11573 fpregset and sizeof_fpregset members.
11574 * sparc-tdep.c (struct regset): Provide opaque declaration.
11575 (sparc_regset_from_core_section): New function.
11576 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11577 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11578 Set regset_from_core_section when appropriate.
11579
29ff87c5
MK
115802004-01-10 Mark Kettenis <kettenis@gnu.org>
11581
79b1ab3d
MK
11582 * x86-64-tdep.c (amd64_non_pod_p): New function.
11583 (amd64_classify_aggregate): Return class memory for non-POD
11584 C++ structure types.
11585
6470d250
MK
11586 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11587 argument. Use it to reserve a register if necessary.
11588 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11589 amd64_push_arguments.
11590
562c50c2
MK
11591 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11592
af233647
MK
11593 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11594 register numbers in comments.
11595 * x86-64-tdep.h: Update copyright year.
11596 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11597 Adjust for addition of %cs and %ss.
11598 * amd64fbsd-nat.c: Update copyright year.
11599 (reg_offset): Add register offsets for %cs and %ss.
11600 * amd64fbsd-tdep.c: Update copyright year.
11601 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11602 (amd64fbsd_sc_reg_offset): Likewise.
11603 * x86-64-linux-nat.c: Update copyright year.
11604 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11605 and %ss.
11606 * amd64nbsd-nat.c: Update copyright year.
11607 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11608 * amd64nbsd-tdep.c: Update copyright year.
11609 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11610 * x86-64-linux-tdep.c: Update copyright year.
11611 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11612 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11613 * regformats/reg-x86-64.dat: Add %cs and %ss.
11614
29ff87c5
MK
11615 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11616 variables to prevent long lines. Update comments to reflect
11617 reality.
11618
38d518c9
EZ
116192004-01-09 David Carlton <carlton@kealia.com>
11620
11621 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11622 * dwarf2read.c (read_namespace): Pull out name-generating code
11623 into namespace_name. Rename previous_namespace to previous_prefix
11624 and processing_current_namespace to processing_current_prefix..
11625 (namespace_name): New function.
11626 (add_partial_symbol): Substitute uses of pdi->name with
11627 actual_name.
11628 * cp-support.h: Rename processing_current_namespace to
11629 processing_current_prefix.
11630 Update copyright year.
11631 * cp-namespace.c: Rename processing_current_namespace to
11632 processing_current_prefix.
11633 Update copyright year.
fe61caab 11634
1e4728e7
AC
116352004-01-09 Andrew Cagney <cagney@redhat.com>
11636
11637 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11638
c77c642a
MK
116392004-01-09 Mark Kettenis <kettenis@gnu.org>
11640
11641 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11642 complaining.
11643 (process_one_symbol): Deal with N_PATCH stabs.
11644
b44e9041
EZ
116452004-01-09 Elena Zannoni <ezannoni@redhat.com>
11646
11647 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11648 ifdeffed code.
11649 Update copyright year.
38d518c9 11650
eccfb640
MC
116512004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11652
11653 * config/pa/tm-hppa.h: Update extern declarations for
11654 hppa32_hpux_frame_saved_pc_in_sigtramp,
11655 hppa32_hpux_frame_base_before_sigtramp, and
11656 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11657
848c5feb
MC
116582004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11659
11660 * config/pa/tm-hppah.h: Update copyright years.
11661
3cc5d663
AC
116622004-01-08 Andrew Cagney <cagney@redhat.com>
11663
11664 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11665 (mips_o32_reg_struct_has_addr): Delete function.
11666 (mips_gdbarch_init): Update.
11667 (mips_extract_struct_value_address): Delete function.
11668
bfec0b41
JJ
116692004-01-08 David Mosberger <davidm@hpl.hp.com>
11670
11671 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11672 reality.
11673
16e109ca
AC
116742004-01-07 Andrew Cagney <cagney@redhat.com>
11675
6214a8a1
AC
11676 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11677 architecture's elf flags (when available).
11678
8d5838b5
AC
11679 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11680 FPU to the start, check the MIPS FPU when looking for an old
11681 architecture.
11682 (set_mipsfpu_single_command): Update the architecture.
11683 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11684
480d3dd2
AC
11685 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11686 (mips_mask_address_p): Add "tdep" parameter.
11687 (show_mask_address, mips_addr_bits_remove): Update.
11688 (mips_dump_tdep): Update.
11689 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11690 (MIPS_STACK_ARGSIZE): Delete macro.
11691 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11692 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11693 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11694 (mips_dump_tdep): Update.
11695 (MIPS_SAVED_REGSIZE): Delete macro.
11696 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11697 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11698 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11699 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11700 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11701 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11702 (mips_pop_frame, return_value_location): Update.
11703 (mips_n32n64_return_value, mips_dump_tdep): Update.
11704
ec03c1ac
AC
11705 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11706 MIPS ABI.
11707
16e109ca
AC
11708 * mips-tdep.c: Update copyright.
11709 (mips_gdbarch_init): Merge two code blocks handling the register
11710 name and number layout.
11711
15255275
MS
117122004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11713
11714 * tracepoint.c (validate_actionline): Fix segv at EOF
11715
9f9057da
MC
117162004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11717
11718 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11719 properly for static fields.
11720
0127c0d3 117212004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11722 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11723
11724 * disasm.c: Update copyright to include 2004.
11725 (do_mixed_source_and_assembly): For uiout asm list
11726 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11727 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11728 the tuple/list. Move check for whether to close off the
fe61caab 11729 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11730 on each loop iteration.
11731
5269965e
AC
117322004-01-05 Andrew Cagney <cagney@redhat.com>
11733
54f1137d
AC
11734 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11735 should be a switch case and not a label.
11736 * mips-tdep.c (mips32_next_pc): Delete unused labels
11737 "greater_equal_branch" and "less_zero_branch".
11738 * jv-valprint.c (java_print_value_fields): Delete unused label
11739 "flush_it".
11740
5269965e
AC
11741 * target.c (unpush_target): Only close a target that is in the
11742 target stack.
11743
dbc22fa1
MK
117442004-01-05 Mark Kettenis <kettenis@gnu.org>
11745
9515395e
MK
11746 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11747 address from [sp + 64] instead of %o2.
11748
dbc22fa1
MK
11749 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11750 fixes PR backtrace/1476.
11751
5439edaa
AC
117522004-01-05 Andrew Cagney <cagney@redhat.com>
11753
11754 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11755 move to start of file.
11756 * i386-tdep.h (struct regcache): Add opaque declaration.
11757 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11758 declaration.
11759 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11760 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11761 * win32-nat.c (fake_create_process): Use ISO C style definition.
11762 * stabsread.c (define_symbol): Delete #ifndef
11763 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11764 stabs_argument_has_addr call, macro never defined.
11765
19061abe
MC
117662004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11767
11768 * op50-rom.c: Delete.
11769 * w89k-rom.c: Delete.
11770 * Makefile.in: Remove references.
11771
e53bef9f
MK
117722004-01-04 Mark Kettenis <kettenis@gnu.org>
11773
11774 * x86-64-tdep.c: Update copyright year.
11775 (struct amd64_register_info): Rename from x86_64_register_info.
11776 (amd64_register_info): Rename from x86_64_register_info.
11777 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11778 (amd64_register_name): Rename from x86_64_register_name.
11779 (amd64_register_type): Rename from x86_64_register_type.
11780 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11781 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11782 (amd64_dwarf_reg_to_regnum): Rename from
11783 x86_64_dwarf_reg_to_regnum.
11784 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11785 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11786 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11787 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11788 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11789 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11790 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11791 (amd64_frame_cache): Rename from x86_64_frame_cache.
11792 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11793 (amd64_frame_prev_register): Rename from
11794 x86_64_frame_prev_register.
11795 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11796 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11797 (amd64_sigtramp_frame_cache): Rename from
11798 x86_64_sigtramp_frame_cache.
11799 (amd64_sigtramp_frame_prev_register): Rename from
11800 x86_64_sigtramp_frame_prev_register.
11801 (amd64_sigtramp_frame_unwind): Rename from
11802 x86_64_sigtramp_frame_unwind.
11803 (amd64_sigtramp_frame_sniffer): Rename from
11804 x86_64_sigtramp_frame_sniffer.
11805 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11806 (amd64_frame_base): Rename from x86_64_frame_base.
11807 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11808 (amd64_frame_align): Rename from x86_64_frame_align.
11809 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11810 (amd64_regset_from_core_section): Rename from
11811 x86_64_regset_from_core_section.
11812 (x86_64_init_abi): Update comments.
11813
fca6aa58
NR
118142004-01-04 Nick Roberts <nick@nick.uklinux.net>
11815
11816 * MAINTAINERS (write after approval): Add myself.
11817
8ada74e3
MK
118182004-01-04 Mark Kettenis <kettenis@gnu.org>
11819
11820 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11821 `float' arguments.
11822
5154b0cd
MK
118232004-01-04 Mark Kettenis <kettenis@gnu.org>
11824
11825 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11826 such that it mentions a specific version of GCC that exhibits this
11827 bug.
11828
fb316966
MK
118292004-01-03 Mark Kettenis <kettenis@gnu.org>
11830
200cc553
MK
11831 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11832 structure that has a single `float' member, store it in %f1 in
11833 addition to %f0.
11834
e226a4a0
MK
11835 * sparc-sol2-nat.c: Add missing '\'.
11836
b9d4c5ed
MK
11837 * sparc-tdep.c (sparc32_return_value): New function.
11838 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11839 Remove functions.
11840 (sparc32_gdbarch_init): Set return_value, don't set
11841 extract_return_value, store_return_value, use_struct_convention
11842 and return_value_on_stack.
11843
fb316966
MK
11844 * sparc-sol2-nat.c: Add missing ')'.
11845
1af510a8
JB
118462004-01-03 J. Brobecker <brobecker@gnat.com>
11847
11848 * infrun.c (handle_step_into_function): New function.
11849 (handle_inferior_event): Extract out some code into the new
11850 function above.
11851
5cf4d23a
JB
118522004-01-03 J. Brobecker <brobecker@gnat.com>
11853
11854 * infrun.c (handle_inferior_event): Move the declaration of
11855 real_stop_pc inside the if blocks where it is used.
11856
60af1db2
MK
118572004-01-03 Mark Kettenis <kettenis@gnu.org>
11858
11859 * sparc64-tdep.c (sparc64_16_byte_align_p)
11860 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11861 Use check_typedef to get subtypes of structures and unions.
11862 (sparc64_store_return_value): Fix calculation of the appropriate
11863 offset into VALBUF when storing a structure or union.
11864 (sparc64_return_value): New function.
11865 (sparc64_use_struct_convention): Remove function.
11866 (sparc64_init_abi): Set return_value, don't set
11867 extract_return_value, store_return_value and
11868 use_struct_convention.
11869
1a901d3f
EZ
118702004-01-03 Eli Zaretskii <eliz@elta.co.il>
11871
11872 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11873 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11874 gdb/config/alpha/xm-alphaosf.h,
11875 gdb/config/powerpc/tm-ppcle-eabi.h,
11876 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11877 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11878 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11879 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11880 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11881 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11882 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11883 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11884 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11885 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11886 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11887 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11888 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11889 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11890 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11891 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11892 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11893 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11894 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11895 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11896 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11897 Remove lines for .cvsignore files.
11898
ef52e463
JB
118992004-01-03 J. Brobecker <brobecker@gnat.com>
11900
11901 * infrun.c: Back out the previous change.
11902
cb1bf9dc
MK
119032004-01-03 Mark Kettenis <kettenis@gnu.org>
11904
f0424ef6
MK
11905 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11906 sparc-*-sunos4* to the list of REMOVED configurations.
11907
cb1bf9dc
MK
11908 * configure.tgt: Add back sparc-*-vxworks*.
11909 * remote-vxsparc.c: Remove all includes except for "defs.h",
11910 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11911 Include "sparc-tdep.h".
11912 (SPARC_R_G1): New define.
11913 (vxsparc_gregset): New variable.
11914 (ext_format_sparc): Remove extern declaration.
11915 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11916 sparc32_supply_fpregset.
11917 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11918 sparc_collect_rwindow and sparc32_collect_fpregset.
11919 * config/sparc/tm-vxworks.h: New file, based on recently removed
11920 tm-vxsparc.h.
11921 * config/sparc/vxworks.mt: New file, based on recently removed
11922 vxworks.mt.
fe61caab 11923
5e938f9f
JB
119242004-01-03 J. Brobecker <brobecker@gnat.com>
11925
11926 * infrun.c (handle_step_into_function): New function.
11927 (handle_inferior_event): Extract out some code into the new
11928 function above.
11929
386c036b
MK
119302004-01-02 Mark Kettenis <kettenis@gnu.org>
11931
11932 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11933 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11934 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11935 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11936 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11937 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11938 (sparc_nat_h): New variable.
11939 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11940 (tm-sun4os4.h): Remove dependency.
11941 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11942 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11943 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11944 sparc-tdep.o): Update dependencies.
11945 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11946 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11947 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11948 dependencies.
11949 * configure.host: Remove existing sparc-*-lynxos*,
11950 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11951 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11952 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11953 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11954 triplets.
11955 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11956 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11957 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11958 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11959 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11960 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11961 sparc64-*-solaris2* and sparc64-*-* triplets.
11962 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11963 "symtab.h" and "objfiles.h".
11964 (BIAS): Remove define.
11965 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11966 (X_DISP19): Remove macros.
11967 (sparc_fetch_instruction): Remove function.
11968 (struct gdbarch_tdep): Remove definition.
11969 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11970 (sparc_breakpoint_from_pc): Remove function.
11971 (struct sparc64_frame_cache): Remove definition.
11972 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11973 sparc64_unwind_pc): Remove functions.
11974 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11975 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11976 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11977 (sparc64_frame_cache): Change return type to `struct
11978 sparc_frame_cache *'. Simply call sparc_frame_cache.
11979 (sparc64_frame_this_id, sparc64_frame_prev_register,
11980 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11981 instead of `struct sparc64_frame_cache.
11982 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11983 sparc_analyze_control_transfer, sparc_software_single_step,
11984 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11985 _initialize_sparc64_tdep): Remove functions.
11986 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11987 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11988 macros.
11989 (sparc64_supply_gregset, sparc64_collect_gregset,
11990 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11991 (sparc64_init_abi): New function.
11992 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11993 inclusion guard. Include "sparc-tdep.h".
11994 (BIAS): Define.
11995 (r_tstate_offset, r_fprs_offset): New defines.
11996 (enum sparc_regnum): Remove defenition.
11997 (enum sparc64_regnum): Reformat.
11998 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11999 (sparc64_init_abi, sparc64_supply_gregset,
12000 sparc64_collect_gregset, sparc64_supply_fpregset,
12001 sparc64_collect_fpregset): New prototypes.
12002 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12003 Add extern declarations.
12004 (sparc64_sol2_init_abi): New prototype.
12005 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12006 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12007 prototypes.
12008 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12009 "sparnbsd-nat.h".
12010 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12011 functions.
12012 (_initialize_sparc64fbsd_nat): Remove initialization of
12013 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12014 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12015 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12016 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12017 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12018 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12019 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12020 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12021 (sparc64fbsd_r_y_offset): Remove variables.
12022 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12023 Make static and const.
12024 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12025 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12026 functions.
12027 (sparc64fbsd_gregset): New variable.
12028 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12029 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12030 and sparc64_supply_fpregset.
12031 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12032 (sparc64fbsd_sigtramp_frame_this_id)
12033 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12034 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12035 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12036 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12037 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12038 * sparcnbsd-tdep.c: Update copyright year. Include
12039 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12040 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12041 "value.h" and "sparcnbsd-tdep.h".
12042 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12043 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12044 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12045 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12046 defines.
12047 (sparcnbsd_gregset): New variable.
12048 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12049 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12050 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12051 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12052 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12053 variables.
12054 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12055 (sparc32nbsd_sigcontext_frame_this_id)
12056 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12057 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12058 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12059 (sparcnbsd_get_longjmp_target_32,
12060 sparcnbsd_get_longjmp_target_64): Remove functions.
12061 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12062 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12063 sparcnbsd_init_elf): Remove.
12064 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12065 (sparcnbsd_elf_init_abi): New functions.
12066 (_initialize_sparcnbsd_tdep): New prototype.
12067 (_initialize_sparnbsd_tdep): Update.
12068 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12069 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12070 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12071 * config/sparc/linux.mh: Update comment.
12072 (XM_FILE, HOST_IPC): Remove variables.
12073 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12074 sparc-linux-nat.o.
12075 * config/sparc/linux.mt: Update comment.
12076 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12077 * config/sparc/nbsd.mt: Reformat.
12078 * config/sparc/nbsd64.mh: Update comment.
12079 (NATDEPFILES): Add sparc-nat.o.
12080 * config/sparc/nbsd64.mt: Update comment.
12081 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12082 (TM_FILE): Set to tm-nbsd.h.
12083 * config/sparc/nbsdelf.mh: Update comment.
12084 (NATDEPFILES): Add sparc-nat.o.
12085 (XM_FILE): Delete.
12086 * config/sparc/nbsdaout.mh: Update comment.
12087 (NATDEPFILES): Add sparc-nat.o
12088 (XM_FILE): Delete.
12089 * config/sparc/nm-linux.h: Update copyright year. Don't include
12090 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12091 inclusion.
12092 (KERNEL_U_SIZE): Remove define.
12093 (kernel_u_size): Remove prototype.
12094 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12095 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12096 "regcache.h".
12097 (CHILD_PREPARE_TO_STORE): Remove define.
12098 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12099 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12100 sparcnbsd-nat.c: Rewrite files.
12101 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12102 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12103 sparcnbsd-tdep.h: Remove files.
12104 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12105 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12106 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12107 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12108 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12109 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12110 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12111 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12112 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12113 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12114 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12115 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12116 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12117 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12118 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12119 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12120 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12121 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12122 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12123
ee84457a
AC
121242004-01-02 Andrew Cagney <cagney@redhat.com>
12125
12126 From 2003-12-18 Kazuhiro Inaoka:
12127 * configure.host: Add m32r-linux target.
12128
0bc2134e
MC
121292004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12130
12131 * top.c (print_gdb_version): Update year to 2004.
12132
89a72f9c
MM
121332004-01-02 Mark Mitchell <mark@codesourcery.com>
12134
12135 * MAINTAINERS: Add myself to the write-after-approval category.
12136
86b013ed
DJ
121372004-01-02 Daniel Jacobowitz <drow@mvista.com>
12138
12139 From Bernardo Innocenti <bernie@develer.com>:
12140 * configure.tgt: Add uClinux target.
12141
e42c9534
AC
121422004-01-02 Andrew Cagney <cagney@redhat.com>
12143
12144 * utils.c (do_my_cleanups): Make static, add forward declaration.
12145 * defs.h (do_my_cleanups): Delete declaration.
12146
162467d3
EZ
121472004-01-02 Eli Zaretskii <eliz@elta.co.il>
12148
12149 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12150 bfd/ChangeLog-0203.
12151
78434e59
MK
121522004-01-02 Mark Kettenis <kettenis@gnu.org>
12153
12154 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12155 in <machine/reg.h>.
12156 * configure, config.in: Regenerate.
12157
48efe704
AC
12158For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12159tui/ChangeLog-1998-2003.
c906108c
SS
12160\f
12161Local Variables:
12162mode: change-log
12163left-margin: 8
12164fill-column: 74
12165version-control: never
12166End:
This page took 1.183606 seconds and 4 git commands to generate.