afe3c564b54185dba15e173740f49e2de86e18bb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2
3 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
4 to read_reg and update its comment. Remove regnum member.
5 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6 Don't call read_reg when setting in_reg. Call read_reg to get
7 the frame base if it's in a register. Return the register number
8 on the stack instead of in the context. Remove extra arguments
9 to read_reg.
10 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
11 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
12 the register number on the expression stack.
13 (needs_frame_read_reg): Remove extra arguments.
14
15 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
16
17 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
18 made non-static.
19 (execute_stack_op): All callers updated.
20 * dwarf2expr.h: Add prototype for dwarf2_read_address.
21 * dwarf2loc.c (find_location_expression): New function.
22 (dwarf_expr_frame_base): Call it.
23 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
24 (dwarf2_tracepoint_var_ref): New function, broken out from
25 locexpr_tracepoint_var_ref.
26 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
27 Make static.
28 (loclist_read_variable, loclist_read_needs_frame): New functions.
29 (loclist_describe_location, loclist_tracepoint_var_ref): New
30 functions.
31 (dwarf2_loclist_funcs): New struct location_funcs.
32 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
33 (struct dwarf2_locexpr_baton): Add comments.
34 (dwarf2_loclist_funcs): New extern.
35 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
36 base_address and base_known.
37 (dwarf_loc_buffer): New variable.
38 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
39 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
40 (dwarf2_has_info): Initialize dwarf_loc_offset.
41 (dwarf2_build_psymtabs): Read in .debug_loc.
42 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
43 DWARF_LOC_SIZE.
44 (psymtab_to_symtab_1): Likewise. Move base address calculation
45 here, from...
46 (dwarf2_get_pc_bounds): ... here. Use the base address from
47 cu_header.
48 (dwarf2_symbol_mark_computed): Handle location lists.
49
50 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
51
52 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
53 if the linkage name demangled successfully.
54
55 2003-04-13 Mark Kettenis <kettenis@gnu.org>
56
57 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
58 disassmbly_flavour): Removed.
59
60 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
61
62 2003-04-13 Mark Kettenis <kettenis@gnu.org>
63
64 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
65
66 2003-04-12 Andrew Cagney <cagney@redhat.com>
67
68 * frame.h (struct frame_info): Move definition from here ...
69 * frame.c (struct frame_info): ... to here.
70
71 2003-04-12 Andrew Cagney <cagney@redhat.com>
72
73 * gdbthread.h (save_infrun_state): Delete parameter
74 "prev_func_start".
75 (struct thread_info): Delete field "prev_func_start".
76 (load_infrun_state): Ditto.
77 * thread.c (load_infrun_state, save_infrun_state): Update.
78 * infrun.c (prev_func_start): Delete variable.
79 (context_switch, init_wait_for_inferior): Update.
80 (stop_stepping, keep_going): Update.
81
82 2003-04-12 Andrew Cagney <cagney@redhat.com>
83
84 * gdbarch.sh: Add missing opaque declarations.
85 * gdbarch.h: Regnerate.
86 * symtab.h: Add missing opaque declarations.
87 * value.h, target.h, symfile.h, stabsread.h: Ditto.
88 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
89 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
90 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
91 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
92 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
93 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
94 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
95 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
96 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
97 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
98 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
99 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
100
101 2003-04-11 Andrew Cagney <cagney@redhat.com>
102
103 * frame.c (get_frame_id): Return this frame's "id".
104 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
105 function start.
106 (legacy_saved_regs_this_id): Replace function body with
107 internal-error.
108 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
109 FRAME_OBSTACK_ZALLOC.
110 (create_new_frame): Mark the frame ID as valid.
111
112 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
113
114 * Makefile.in (libbfd_h): Added missing setting.
115 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
116 according to the selected ABI.
117
118 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
119
120 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
121
122 2003-04-11 Andrew Cagney <cagney@redhat.com>
123
124 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
125 SAVED_PC_AFTER_CALL.
126 * gdbarch.h, gdbarch.c: Regenerate.
127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
128 * x86-64-tdep.c (x86_64_init_abi): Update.
129 * vax-tdep.c (vax_gdbarch_init): Update.
130 * v850-tdep.c (v850_gdbarch_init): Update.
131 * sparc-tdep.c (sparc_gdbarch_init): Update.
132 * sh-tdep.c (sh_gdbarch_init): Update.
133 * s390-tdep.c (s390_gdbarch_init): Update.
134 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
135 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
136 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
137 * mips-tdep.c (mips_gdbarch_init): Update.
138 * mcore-tdep.c (mcore_gdbarch_init): Update.
139 * m68k-tdep.c (m68k_gdbarch_init): Update.
140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
141 * ia64-tdep.c (ia64_gdbarch_init): Update.
142 (ia64_saved_pc_after_call): Update declaration.
143 * i386ly-tdep.c (i386lynx_init_abi): Update.
144 * i386-tdep.c (i386_gdbarch_init): Update.
145 * hppa-tdep.c (hppa_gdbarch_init): Update.
146 * h8300-tdep.c (h8300_gdbarch_init): Update.
147 * frv-tdep.c (frv_gdbarch_init): Update.
148 * cris-tdep.c (cris_gdbarch_init): Update.
149 * avr-tdep.c (avr_gdbarch_init): Update.
150 * arm-tdep.c (arm_gdbarch_init): Update.
151 * alpha-tdep.c (alpha_gdbarch_init): Update.
152 * ns32knbsd-nat.c (frame_num_args): Update.
153 * ns32k-tdep.c (umax_frame_num_args): Update.
154 * mips-tdep.c (mips_init_frame_pc_first): Update.
155 * infrun.c (step_over_function): Update.
156 * i386-linux-tdep.c (skip_hurd_resolver): Update.
157 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
158 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
159 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
160 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
161 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
162 * arm-linux-tdep.c (skip_hurd_resolver): Update.
163 * arch-utils.c (init_frame_pc_default): Update.
164 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
165 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
166 declaration.
167
168 2003-04-11 Andrew Cagney <cagney@redhat.com>
169
170 * i387-tdep.c: Update copyright.
171 (i387_to_double): Delete function.
172 (double_to_i387): Delete function.
173
174 2003-04-10 Andrew Cagney <cagney@redhat.com>
175
176 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
177 frame's function's address. Simplify.
178 (d10v_frame_unwind_cache): Check that the frame's function is
179 non-zero.
180
181 2003-04-10 Jim Blandy <jimb@redhat.com>
182
183 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
184 call to set_gdbarch_deprecated_push_arguments.
185
186 2003-04-10 Andrew Cagney <cagney@redhat.com>
187
188 * frame.c (fprint_frame_id): New function.
189 (fprint_frame_type, fprint_frame): New function.
190 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
191 (create_sentinel_frame, get_frame_id): Ditto.
192 (frame_id_p, frame_id_eq): Ditto.
193 (frame_id_inner, create_new_frame): Ditto.
194 (legacy_get_prev_frame, get_prev_frame): Ditto.
195 (deprecated_update_frame_pc_hack): Ditto.
196 (frame_register_unwind): Ditto.
197 (deprecated_update_frame_base_hack): Ditto.
198
199 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
200
201 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
202 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
203 frame_chain function.
204 * Makefile.in: Add dependencies due to above change.
205
206 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
207
208 * blockframe.c (legacy_frame_chain_valid): Move call to
209 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
210 inside_entry_file.
211
212 2003-04-09 Andrew Cagney <cagney@redhat.com>
213
214 * frame.h (struct frame_id): Replace "pc" and "base" with
215 "stack_addr" and "code_addr". Update comments.
216 (frame_id_build): Update parameter names and comment.
217 (struct frame_info): Replace "id_p" and "id" with "this_id".
218 * dummy-frame.c (dummy_frame_this_id): Update.
219 * breakpoint.c (print_one_breakpoint): Update.
220 * frame.c (get_frame_id): Update.
221 (get_frame_base, frame_id_build): Update.
222 (create_sentinel_frame, legacy_get_prev_frame): Update.
223 (deprecated_update_frame_base_hack): Update.
224 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
225 (frame_id_inner): Ditto.
226
227 2003-04-09 Andrew Cagney <cagney@redhat.com>
228
229 * defs.h (gdb_print_host_address): Make "addr" parameter a
230 pointer constant.
231 * utils.c (gdb_print_host_address): Update.
232
233 2003-04-09 Kevin Buettner <kevinb@redhat.com>
234
235 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
236 register number for R0 is 0.
237
238 2003-04-09 J. Brobecker <brobecker@gnat.com>
239
240 * frame.h (struct gdbarch): Add opaque structure definition
241 to avoid a compilation warning on LynxOS 4.0.
242
243 2003-04-09 Andrew Cagney <cagney@redhat.com>
244
245 * frame.h (struct frame_info): Delete field "pc". Replace
246 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
247 structure.
248 * frame.c (frame_pc_unwind): Update.
249 (create_sentinel_frame): Do not set "pc".
250 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
251 (get_frame_pc): Call frame_pc_unwind.
252 (deprecated_update_frame_pc_hack): Update.
253 (create_new_frame): Use "pc" not "->pc".
254
255 2003-04-09 Andrew Cagney <cagney@redhat.com>
256
257 * frame.c (get_frame_id): Eliminate code updating "frame".
258 (legacy_get_prev_frame): Ditto.
259 (get_frame_base): Return id.base directly.
260 (deprecated_update_frame_base_hack): Update "id.base".
261 * frame.h (struct frame_info): Delete field "frame".
262
263 2003-04-09 Andrew Cagney <cagney@redhat.com>
264
265 * NEWS: Mention that the "Sequent family" is obsolete.
266 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
267 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
268 * configure.host: Obsolete i[3456]86-sequent-bsd*,
269 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
270 * config/i386/tm-ptx4.h: Obsolete file.
271 * config/i386/tm-ptx.h: Obsolete file.
272 * symm-tdep.c: Obsolete file.
273 * config/i386/symmetry.mt: Obsolete file.
274 * config/i386/tm-symmetry.h: Obsolete file.
275 * symm-nat.c: Obsolete file.
276 * config/i386/nm-symmetry.h: Obsolete file.
277 * config/i386/xm-symmetry.h: Obsolete file.
278 * config/i386/symmetry.mh: Obsolete file.
279 * config/i386/nm-ptx4.h: Obsolete file.
280 * config/i386/ptx4.mh: Obsolete file.
281 * config/i386/ptx.mt: Obsolete file.
282 * config/i386/ptx.mh: Obsolete file.
283 * config/i386/xm-ptx4.h: Obsolete file.
284 * config/i386/xm-ptx.h: Obsolete file.
285
286 2003-04-09 Andrew Cagney <cagney@redhat.com>
287
288 Obsolete mips*-*-mach3*.
289 * NEWS: Mention that mips*-*-mach3* is obsolete.
290 * m3-nat.c: Obsolete file.
291 * config/nm-m3.h: Obsolete file.
292 * config/mips/tm-mipsm3.h: Obsolete file.
293 * config/mips/mipsm3.mt: Obsolete file.
294 * config/mips/mipsm3.mh: Obsolete file.
295 * config/mips/xm-mipsm3.h: Obsolete file.
296 * mipsm3-nat.c: Obsolete file.
297 * configure.host: Obsolete mips-dec-mach3*.
298 * configure.tgt: Obsolete mips*-*-mach3*.
299
300 2003-04-09 Andrew Cagney <cagney@redhat.com>
301
302 * doublest.h: Update copyright.
303 (deprecated_store_floating, deprecated_extract_floating): Rename
304 store_floating and extract_floating. Update comments.
305 * doublest.c: Update copyright.
306 (extract_floating_by_length): Replace extract_floating.
307 (store_floating_by_length): Replace store_floating.
308 (deprecated_extract_floating): New function.
309 (deprecated_store_floating): New function.
310 (extract_typed_floating): Call extract_floating_by_length.
311 (store_typed_floating): Call store_floating_by_length.
312 * x86-64-tdep.c (x86_64_store_return_value): Update.
313 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
314 (sh64_extract_return_value): Update.
315 (sh_sh4_register_convert_to_virtual): Update.
316 (sh_sh64_register_convert_to_virtual): Update.
317 (sh_sh4_register_convert_to_raw): Update.
318 (sh_sh64_register_convert_to_raw): Update.
319 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
320 (rs6000_register_convert_to_raw): Update.
321 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
322 (ia64_register_convert_to_raw): Update.
323 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
324 (REGISTER_CONVERT_TO_VIRTUAL): Update.
325 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
326 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
327 (alpha_register_convert_to_raw): Update.
328
329 2003-04-08 Andrew Cagney <cagney@redhat.com>
330
331 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
332 * gdbarch.h, gdbarch.c: Re-generate.
333 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
334 (d10v_gdbarch_init): Do not set saved_pc_after_call.
335 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
336 conditionally, use frame_pc_unwind as an alternative. Add
337 comments.
338 * arch-utils.c (init_frame_pc_default): Only call
339 SAVED_PC_AFTER_CALL when available.
340
341 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
342
343 * infrun.c (stop_soon): Rename from stop_soon_quietly.
344 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
345 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
346 (start_remote): Ditto.
347 (handle_inferior_event): Ditto.
348 (save_inferior_status): Ditto.
349 (restore_inferior_status): Ditto.
350 * infcmd.c (attach_command): Ditto.
351 * fork-child.c (startup_inferior): Ditto.
352 * inferior.h (stop_soon): Rename from stop_soon_quietly.
353 * alpha-tdep.c (heuristic_proc_start): Ditto.
354 * mips-tdep.c (heuristic_proc_start): Ditto.
355 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
356 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
357 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
358 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
359 * remote-vx.c (vx_create_inferior): Ditto.
360
361 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
362
363 * infrun.c (stop_soon_quietly): Make it an enum, to better
364 override the default behavior of handle_inferior_event.
365 (clear_proceed_status): Update uses of stop_soon_quietly to
366 reflect that it is now an enum.
367 (start_remote): Ditto.
368 (handle_inferior_event): Change logic a bit if stop_soon_quietly
369 is set to handle the new GNU/Linux kernel behavior for
370 attach/sigstop. Update uses of stop_soon_quietly.
371 * inferior.h (enum stop_kind): New enum.
372 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
373 Reset normal handle_inferior_event behavior, afterwards.
374 * fork-child.c (startup_inferior): Update.
375 * alpha-tdep.c (heuristic_proc_start): Update.
376 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
377 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
378 * solib-osf.c (osf_solib_create_inferior_hook): Update.
379 * solib-irix.c (irix_solib_create_inferior_hook): Update.
380 * remote-vx.c (vx_create_inferior): Update.
381 * mips-tdep.c (heuristic_proc_start): Update.
382
383 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
384
385 * disasm.c (dump_insns): Move variables inside loop, or they will
386 be freed more than once, causing wild memory corruptions.
387 (gdb_disassembly): Look for the substring "-thread",
388 instead of "-threads" in the target name, to make sure to find
389 the 'multi-thread' target. Also, make sure we do the right thing
390 with the "core" target.
391
392 2003-04-07 Kevin Buettner <kevinb@redhat.com>
393
394 * mips-tdep.c (mips_print_fp_register): New function, created from
395 do_fp_register_row(). Registers are now (also) printed as hex.
396 Only one register is printed per row.
397 (mips_print_register, do_fp_register_row): Print floating point
398 registers with mips_print_fp_register().
399
400 2003-04-06 Andrew Cagney <cagney@redhat.com>
401
402 * valprint.h (inspect_it): Add extern declaration.
403 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
404 (selectors_info, classes_info): Ditto.
405 (find_objc_msgcall): Fix indentation.
406 (objc_printstr): Delete extern declarations.
407
408 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
409
410 2003-04-06 Andrew Cagney <cagney@redhat.com>
411
412 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
413 Update comment.
414 * frame.c (legacy_saved_regs_this_id): Update.
415 (legacy_get_prev_frame): Update.
416 * xstormy16-tdep.c: Update comment.
417 * sparc-tdep.c (sparc_frame_chain): Update comment.
418 * blockframe.c (legacy_frame_chain_valid): Update.
419
420 2003-04-06 Andrew Cagney <cagney@redhat.com>
421
422 * valprint.c (val_print_type_code_int): Delete #ifdef
423 PRINT_TYPELESS_INTEGER code.
424
425 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
426 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
427 multi-arch definition.
428 * gdbarch.h: Re-generate.
429
430 2003-04-05 Andrew Cagney <cagney@redhat.com>
431
432 Eliminate FRAME_FIND_SAVED_REGS.
433 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
434 Change FSR parameter to a pointer.
435 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
436 Assume FSR parameter is a pointer.
437 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
438 Make fsr a pointer.
439 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
440 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
441 saved_regs a pointer.
442 (hppa_frame_saved_pc): Ditto.
443 (find_dummy_frame_regs): Make frame_saved_regs a pointer
444 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
445 pointer.
446 (restore_pc_queue): Make fsr a pointer.
447 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
448 (hppa_frame_chain): Make saved_regs a pointer, call
449 hppa_frame_init_saved_regs.
450 * sparc-tdep.c: Include "gdb_assert.h".
451 (sparc_frame_find_saved_regs): Replace internal_error with
452 gdb_assert.
453 * remote-vxsparc.c (vx_read_register): Delete reference to
454 FRAME_FIND_SAVED_REGS.
455 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
456 * gdbarch.h: Regenerate.
457 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
458 (deprecated_get_frame_saved_regs): Delete declaration.
459 (struct frame_saved_regs): Delete definition.
460 * frame.c (deprecated_get_frame_saved_regs): Delete function.
461 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
462 (hppa_frame_find_saved_regs): Delete declaration.
463 (FRAME_FIND_SAVED_REGS): Delete macro.
464 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
465 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
466 FRAME_FIND_SAVED_REGS in comment.
467
468 2003-04-05 Andrew Cagney <cagney@redhat.com>
469
470 * frame.c (frame_func_unwind, get_frame_func): New functions.
471 * frame.h (get_frame_func, frame_func_unwind): Declare.
472 (struct frame_info): Add field "prev_func" for caching the
473 previous frame's function address.
474 * arm-tdep.c (arm_frameless_function_invocation): Combine
475 get_pc_function_start and get_frame_pc into get_frame_func.
476 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
477 (sh64_nofp_frame_init_saved_regs): Ditto.
478 * s390-tdep.c (s390_function_start): Ditto.
479 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
480 (rs6000_frameless_function_invocation): Ditto.
481 (rs6000_frame_saved_pc): Ditto.
482 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
483 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
484 * i386-tdep.c (i386_frameless_signal_p): Ditto.
485 (i386_frame_init_saved_regs): Ditto.
486 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
487 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
488 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
489 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
490 * blockframe.c (frameless_look_for_prologue): Ditto.
491
492 2003-04-05 Andrew Cagney <cagney@redhat.com>
493
494 * frame.c (legacy_get_prev_frame): Link prev to next at the
495 function start. Update comments.
496
497 2003-04-05 Andrew Cagney <cagney@redhat.com>
498
499 * frame.c (get_frame_id): Update comment.
500 (legacy_get_prev_frame): Update comment.
501 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
502 * gdbarch.h: Regenerate.
503 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
504 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
505
506 2003-04-05 Andrew Cagney <cagney@redhat.com>
507
508 * stack.c (print_frame_info): Use get_frame_pc.
509
510 2003-04-04 Andrew Cagney <cagney@redhat.com>
511
512 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
513 the frame's type from the unwinder.
514 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
515 (create_new_frame, legacy_get_prev_frame): When the unwinder's
516 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
517 (get_frame_base_address): Use get_frame_type.
518 (get_frame_locals_address, get_frame_args_address): Ditto.
519 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
520 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
521 (struct frame_info): Add comment explaining why the frame contains
522 a "type" field.
523 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
524 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
525 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
526 NORMAL_FRAME.
527 * frame-unwind.h: Include "frame.h".
528 (struct frame_unwind): Add "type" field.
529 * Makefile.in (frame_unwind_h): Add $(frame_h).
530
531 2003-04-04 Andrew Cagney <cagney@redhat.com>
532
533 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
534 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
535 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
536 get_frame_base.
537 (d10v_unwind_dummy_id): Use frame_id_build.
538 * frame.c (find_frame_sal): Use get_frame_pc.
539 (create_new_frame): Use deprecated_update_frame_pc_hack and
540 deprecated_update_frame_base_hack.
541 (create_sentinel_frame): Add comment about ->pc going away.
542 (get_prev_frame): Add comment about ->pc going away.
543 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
544 frame_id_build, deprecated_update_frame_pc_hack and
545 deprecated_update_frame_base_hack.
546 (select_frame): Use get_frame_pc.
547 (legacy_saved_regs_this_id): Use frame_id_build.
548
549 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
550
551 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
552 signed integer case.
553 (classify_argument): Handle enumerations and references.
554
555 2003-04-04 Andrew Cagney <cagney@redhat.com>
556
557 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
558 ID to NULL.
559
560 2003-04-01 Adam Fedor <fedor@gnu.org>
561
562 * gdb/objc-lang.c (selectors_info): Replace calls to
563 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
564 SYMBOL_NATURAL_NAME.
565 (classes_info, find_methods): Likewise.
566
567 2003-04-03 Kevin Buettner <kevinb@redhat.com>
568
569 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
570 ``mach'' to the value determined by bfd_default_set_arch_mach().
571
572 2003-04-02 Bob Rossi <bob_rossi@cox.net>
573
574 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
575 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
576 (mi-cmd-file.o): Update dependencies.
577
578 2003-04-01 Kevin Buettner <kevinb@redhat.com>
579
580 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
581 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
582
583 2003-04-01 Adam Fedor <fedor@gnu.org>
584
585 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
586 * language.h (struct language_defn): Add la_demangle.
587 (language_demangle): Declare.
588 * language.c (language_demangle): New function.
589 (unk_lang_demangle): Likewise.
590 (unknown_language_defn, auto_language_defn, local_language_defn):
591 Add ukn_lang_demangle.
592 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
593 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
594 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
595 (cplus_language_defn): Add cplus_demangle for la_demangle element.
596 * jv-lang.c (java_demangle): New function
597 (java_language_defn): Use it for la_demangle element.
598 * objc-lang.c (objc_demangle): Add options argument
599 (objc_language_defn): Use objc_demangle for la_demangle element.
600 * maint.c (maintenance_demangle): Replace switch with
601 call to language_demangle.
602 * utils.c (fprintf_symbol_filtered): Likewise.
603
604 2003-04-01 Andrew Cagney <cagney@redhat.com>
605
606 * printcmd.c (print_frame_nameless_args): Delete #ifdef
607 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
608 PRINT_TYPELESS_INTEGER.
609 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
610 PUSH_RETURN_ADDRESS.
611
612 2003-04-01 Andrew Cagney <cagney@redhat.com>
613
614 * Makefile.in (d10v-tdep.o): Update dependencies.
615 * d10v-tdep.c: Include "frame-base.h".
616 (d10v_frame_unwind): Make constant.
617 (d10v_frame_base_address): New function.
618 (d10v_frame_base): New variable.
619 (d10v_gdbarch_init): Set frame_base default.
620 (struct d10v_unwind_cache): Add the field "prev_sp". Update
621 comment for base.
622 (d10v_frame_unwind_cache): Set and use "prev_sp".
623 (d10v_frame_this_id): Use the previous frame's inner most stack
624 address and this frame's func address for the frame ID. Use
625 frame_id_build. Don't analyze beyond the current instruction.
626
627 2003-04-01 Andrew Cagney <cagney@redhat.com>
628
629 * frame.h (get_frame_locals_address, get_frame_args_address):
630 Refer to the base address, instead of the address of the first
631 local or parameter.
632
633 2003-04-01 Andrew Cagney <cagney@redhat.com>
634
635 Add frame debug info addresses:
636 * frame-base.c: New file.
637 * frame-base.h: New file.
638 * frame.h (struct frame_base): Add opaque declaration.
639 (get_frame_base): Update comment.
640 (get_frame_base_address): Declare.
641 (get_frame_locals_address): Declare.
642 (get_frame_args_address): Declare.
643 (struct frame_info): Add "base" and "base_cache". Update
644 comments on the unwinder.
645 * frame.c: Include "frame-base.h".
646 (get_frame_locals_address): New function.
647 (get_frame_base_address): New function.
648 (get_frame_args_address): New function.
649 * findvar.c (read_var_value): Use get_frame_locals_address and
650 get_frame_args_address.
651 * stack.c (frame_info): Use get_frame_locals_address and
652 get_frame_args_address.
653 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
654 moved to "frame-base.c".
655 * printcmd.c (print_frame_nameless_args): Ditto.
656 * symtab.h (address_class): Update comments.
657 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
658 get_frame_base_address.
659 * dwarf2expr.c (execute_stack_op): Ditto.
660 * Makefile.in (frame_base_h): Define.
661 (frame.o): Update dependencies.
662 (frame-base.o): Add dependencies.
663 (SFILES): Add frame-base.c.
664 (COMMON_OBS): Add frame-base.o.
665
666 2003-04-01 Andrew Cagney <cagney@redhat.com>
667
668 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
669 CALL_DUMMY_LENGTH): Ditto.
670 * gdbarch.c: Re-generate.
671 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
672 (CALL_DUMMY_LENGTH): Delete macro.
673 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
674 * arm-tdep.c (arm_gdbarch_init): Ditto.
675 * avr-tdep.c (avr_gdbarch_init): Ditto.
676 * cris-tdep.c (cris_gdbarch_init): Ditto.
677 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
678 * frv-tdep.c (frv_gdbarch_init): Ditto.
679 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
680 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
681 * i386-tdep.c (i386_gdbarch_init): Ditto.
682 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
684 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
685 * mips-tdep.c (mips_gdbarch_init): Ditto.
686 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
687 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
688 * s390-tdep.c (s390_gdbarch_init): Ditto.
689 * sh-tdep.c (sh_gdbarch_init): Ditto.
690 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
691 * v850-tdep.c (v850_gdbarch_init): Ditto.
692 * vax-tdep.c (vax_gdbarch_init): Ditto.
693 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
694
695 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
696
697 * frame.c (get_prev_frame): Disable call to inside_entry_file().
698
699 2003-04-01 Andrew Cagney <cagney@redhat.com>
700
701 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
702 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
703 * gdbarch.h, gdbarch.c: Re-generate.
704 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
705 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
706 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
707 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
708 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
709 * infcmd.c (run_stack_dummy): Simplify assuming
710 CALL_DUMMY_BREAKPOINT_OFFSET_P.
711 * infrun.c (handle_inferior_event): Ditto.
712 * alpha-tdep.c (alpha_gdbarch_init): Do not set
713 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
714 * arm-tdep.c (arm_gdbarch_init): Ditto.
715 * avr-tdep.c (avr_gdbarch_init): Ditto.
716 * cris-tdep.c (cris_gdbarch_init): Ditto.
717 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
718 * frv-tdep.c (frv_gdbarch_init): Ditto.
719 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
720 * i386-tdep.c (i386_gdbarch_init): Ditto.
721 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
723 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
724 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
725 * mips-tdep.c (mips_gdbarch_init): Ditto.
726 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
727 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
728 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
729 * s390-tdep.c (s390_gdbarch_init): Ditto.
730 * sh-tdep.c (sh_gdbarch_init): Ditto.
731 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
732 * v850-tdep.c (v850_gdbarch_init): Ditto.
733 * vax-tdep.c (vax_gdbarch_init): Ditto.
734 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
735
736 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
737
738 * symfile.c (symfile_relocate_debug_section): Update call to
739 bfd_simple_get_relocated_section_contents.
740
741 2003-03-31 Andrew Cagney <cagney@redhat.com>
742
743 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
744 * gdbarch.h, gdbarch.c: Regenerate.
745 * inferior.h (FIX_CALL_DUMMY): Delete macro.
746 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
747 available.
748 * frame.h (generic_fix_call_dummy): Delete declaration.
749 * dummy-frame.h: Update comment.
750 * dummy-frame.c (generic_fix_call_dummy): Delete function.
751 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
752 fix_call_dummy.
753 * sh-tdep.c (sh_gdbarch_init): Ditto.
754 * s390-tdep.c (s390_gdbarch_init): Ditto.
755 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
756 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
758 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
759 * i386-tdep.c (i386_gdbarch_init): Ditto.
760 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
761 * frv-tdep.c (frv_gdbarch_init): Ditto.
762 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
763 * cris-tdep.c (cris_gdbarch_init): Ditto.
764 * avr-tdep.c (avr_gdbarch_init): Ditto.
765 * arm-tdep.c (arm_gdbarch_init): Ditto.
766
767 2003-03-31 J. Brobecker <brobecker@gnat.com>
768
769 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
770 (INIT_FRAME_AP): Likewise.
771 (EXTRA_FRAME_INFO): Likewise.
772
773 2003-03-31 Andrew Cagney <cagney@redhat.com>
774
775 * gdbarch.sh: Include "symfile.h".
776 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
777 * gdbarch.h, gdbarch.c: Re-generate.
778 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
779 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
780 call_dummy_address, the default is at entry_point_address.
781 * v850-tdep.c (v850_gdbarch_init): Ditto.
782 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
783 * sh-tdep.c (sh_gdbarch_init): Ditto.
784 * s390-tdep.c (s390_gdbarch_init): Ditto.
785 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
786 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
787 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
788 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
789 * i386-tdep.c (i386_gdbarch_init): Ditto.
790 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
791 * frv-tdep.c (frv_gdbarch_init): Ditto.
792 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
793 * cris-tdep.c (cris_gdbarch_init): Ditto.
794 * arm-tdep.c (arm_gdbarch_init): Ditto.
795
796 2003-03-31 Andrew Cagney <cagney@redhat.com>
797
798 * gdbarch.sh (CALL_DUMMY_P): Delete.
799 * gdbarch.h, gdbarch.c: Re-generate.
800 * inferior.h (CALL_DUMMY_P): Delete macro.
801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
802 * vax-tdep.c (vax_gdbarch_init): Update.
803 * v850-tdep.c (v850_gdbarch_init): Update.
804 * sparc-tdep.c (sparc_gdbarch_init): Update.
805 * sh-tdep.c (sh_gdbarch_init): Update.
806 * s390-tdep.c (s390_gdbarch_init): Update.
807 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
808 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
809 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
810 * mips-tdep.c (mips_gdbarch_init): Update.
811 * mcore-tdep.c (mcore_gdbarch_init): Update.
812 * m68k-tdep.c (m68k_gdbarch_init): Update.
813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
814 * ia64-tdep.c (ia64_gdbarch_init): Update.
815 * i386-tdep.c (i386_gdbarch_init): Update.
816 * h8300-tdep.c (h8300_gdbarch_init): Update.
817 * frv-tdep.c (frv_gdbarch_init): Update.
818 * d10v-tdep.c (d10v_gdbarch_init): Update.
819 * cris-tdep.c (cris_gdbarch_init): Update.
820 * breakpoint.c (deprecated_frame_in_dummy): Update.
821 * avr-tdep.c (avr_gdbarch_init): Update.
822 * alpha-tdep.c (alpha_gdbarch_init): Update.
823 * arm-tdep.c (arm_gdbarch_init): Update.
824 * dummy-frame.c (dummy_frame_this_id): Update comments.
825 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
826 * frame.c (legacy_get_prev_frame): Ditto.
827 * valops.c (call_function_by_hand): Delete function.
828 (hand_function_call): Rename to call_function_by_hand
829
830 2003-03-30 Andrew Cagney <cagney@redhat.com>
831
832 2002-11-10 Klee Dienes <kdienes@apple.com>
833 * value.h (struct value): Update comment.
834
835 2003-03-30 Andrew Cagney <cagney@redhat.com>
836
837 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
838 D10V_FP_REGNUM.
839 (d10v_gdbarch_init): Do not set fp_regnum.
840
841 * frame.c (get_frame_base): Force ID initialization.
842 (get_prev_frame): Move computation of the frame ID from here ...
843 (get_frame_id): ... to here.
844 (legacy_get_prev_frame): Mark the frame ID as valid.
845 * frame.h (struct frame_info): Add field "id_p".
846
847 2003-03-30 Mark Kettenis <kettenis@gnu.org>
848
849 * i386-tdep.c (i386_store_struct_return): Removed.
850 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
851
852 2003-03-30 Andrew Cagney <cagney@redhat.com>
853
854 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
855 * gdbarch.h, gdbarch.c: Regenerate.
856 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
857 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
858 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
859 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
860 * i386-tdep.c (i386_gdbarch_init): Ditto.
861 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
862 * cris-tdep.c (cris_gdbarch_init): Ditto.
863 * vax-tdep.c (vax_gdbarch_init): Ditto.
864 * s390-tdep.c (s390_gdbarch_init): Ditto.
865 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
866 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
867 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
868 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
869 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
870 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
871 * sparc-tdep.c (sparc_gdbarch_init): Update.
872 * sh-tdep.c (sh_gdbarch_init): Update.
873 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
874 * mips-tdep.c (mips_gdbarch_init): Update.
875 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
876 * ia64-tdep.c (ia64_gdbarch_init): Update.
877 * frv-tdep.c (frv_gdbarch_init): Update.
878 * avr-tdep.c (avr_gdbarch_init): Update.
879 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
880 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
881 instead of when push_dummy_call is not available.
882
883 2003-03-30 Andrew Cagney <cagney@redhat.com>
884
885 * infttrace.c: Include "gdbthread.h".
886 (parent_attach_all): Fix function signature.
887 (call_ptrace): Update call.
888 * Makefile.in (infttrace.o): Update dependencies.
889
890 2003-03-30 Andrew Cagney <cagney@redhat.com>
891
892 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
893 PUSH_RETURN_ADDRESS.
894 * gdbarch.h, gdbarch.c: Regenerate.
895 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
896 * x86-64-tdep.c (x86_64_init_abi): Update.
897 * v850-tdep.c (v850_gdbarch_init): Update.
898 * sparc-tdep.c (sparc_gdbarch_init): Update.
899 * sh-tdep.c (sh_gdbarch_init): Update.
900 * s390-tdep.c (s390_gdbarch_init): Update.
901 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
902 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
903 * mips-tdep.c (mips_gdbarch_init): Update.
904 * mcore-tdep.c (mcore_gdbarch_init): Update.
905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
906 * ia64-tdep.c (ia64_gdbarch_init): Update.
907 * i386-tdep.c (i386_gdbarch_init): Update.
908 * h8300-tdep.c (h8300_gdbarch_init): Update.
909 * frv-tdep.c (frv_gdbarch_init): Update.
910 * cris-tdep.c (cris_gdbarch_init): Update.
911 * avr-tdep.c (avr_gdbarch_init): Update.
912 * arm-tdep.c (arm_gdbarch_init): Update.
913 * valops.c (hand_function_call): Update.
914
915 2003-03-29 Andrew Cagney <cagney@redhat.com>
916
917 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
918 sizeof_call_dummy_words.
919 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
920 define.
921 * gdbarch.h: Regenerate.
922
923 2003-03-29 Andrew Cagney <cagney@redhat.com>
924
925 * infttrace.h: New file.
926 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
927 (hpread_get_textlow): Detect an uninitialized dn_bufp.
928 (hpread_read_doc_function_type): Detect an initialized type1.
929 (hpread_quick_traverse): Initialize mod_name_string.
930 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
931 (som_solib_get_solib_by_pc): Declare.
932 (so_lib_thread_start_addr): Declare.
933 (no_shared_libraries): Declare.
934 * somread.c (init_import_symbols): Make static. Add forward
935 declaration.
936 * config/pa/nm-hppah.h: Include "infttrace.h" for
937 parent_attach_all.
938 (hppa_insert_hw_watchpoint): Declare.
939 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
940 * hppah-nat.c: Include "gdb_string.h".
941 (parent_attach_all): Delete extern declaration, moved to
942 "infttrace.h".
943 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
944 int.
945 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
946 * Makefile.in (infttrace_h): Define.
947 (hpread.o): Update dependencies.
948 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
949 * hppa-hpux-tdep.c: Include "gdb_string.h".
950 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
951 * infrun.c (handle_inferior_event): Always initialize
952 stepped_after_stopped_by_watchpoint. Add default and remove
953 fallthrough in switch statement.
954 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
955 parameter to int.
956 (hppa_remove_hw_watchpoint): Ditto.
957
958 2003-03-29 Andrew Cagney <cagney@redhat.com>
959
960 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
961 offset.
962
963 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
964
965 * arm-tdep.c (arm_push_arguments): Delete.
966 (struct stack_item): New type.
967 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
968 (arm_store_struct_return): Delte.
969 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
970 arm_push_arguments or arm_store_struct_return.
971
972 2003-03-28 Andrew Cagney <cagney@redhat.com>
973
974 * Makefile.in (d10v-tdep.o): Update dependencies.
975 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
976 * d10v-tdep.c: Include "remote.h".
977 (target_resume_hook): Delete extern declaration.
978 (target_wait_loop_hook): Ditto.
979 (tdisassemble_command): Eliminate assignment in "if" conditional.
980 (d10v_ts2_register_sim_regno): Eliminate call to
981 legacy_register_sim_regno.
982 (d10v_ts3_register_sim_regno): Ditto.
983
984 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
985
986 * thread.c: Reindented.
987 * lin-lwp.c: Ditto.
988 * linux-proc.c: Ditto.
989
990 2003-03-28 Bob Rossi <bob_rossi@cox.net>
991
992 * MAINTAINERS (write after approval): Add myself.
993
994 2003-03-27 Theodore A. Roth <troth@openavr.org>
995
996 * objc-exp.y: Add missing semi-colons.
997
998 2003-03-27 Andrew Cagney <cagney@redhat.com>
999
1000 * regcache.c (write_sp): Delete function and references.
1001 * inferior.h (write_sp): Delete declaration.
1002 * valops.c (hand_function_call): Replace write_sp with
1003 TARGET_WRITE_SP.
1004 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
1005 (sparc_pop_frame): Ditto.
1006
1007 2003-03-27 Andrew Cagney <cagney@redhat.com>
1008
1009 * NEWS: Mention removal of support for hppa*-*-bsd* and
1010 hppa*-*-osf* natives, and hppa*-*-pro* target.
1011 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
1012 * config/pa/xm-pa.h: Obsolete file.
1013 * config/pa/xm-hppab.h: Obsolete file.
1014 * config/pa/nm-hppab.h: Obsolete file.
1015 * config/pa/tm-hppab.h: Obsolete file.
1016 * config/pa/tm-hppao.h: Obsolete file.
1017 * config/pa/nm-hppao.h: Obsolete file.
1018 * config/pa/tm-pro.h: Obsolete file.
1019 * config/pa/hppaosf.mt: Obsolete file.
1020 * config/pa/hppaosf.mh: Obsolete file.
1021 * config/pa/hppapro.mt: Obsolete file.
1022 * config/pa/hppabsd.mt: Obsolete file.
1023 * config/pa/hppabsd.mh: Obsolete file.
1024 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
1025 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
1026 hppa*-*-osf*.
1027
1028 2003-03-27 Andrew Cagney <cagney@redhat.com>
1029
1030 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
1031 push_arguments. Don't set push_return_address or write_sp.
1032 (d10v_push_dummy_call): Replace d10v_push_arguments.
1033 (d10v_push_return_address, d10v_write_sp): Delete function,
1034 handled by push_dummy_call.
1035
1036 2003-03-26 Andrew Cagney <cagney@redhat.com>
1037
1038 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
1039 (push_dummy_call): New pure multi-arch replacement with gdbarch,
1040 regcache and dummy_addr parameters.
1041 * gdbarch.h, gdbarch.c: Re-generate.
1042 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
1043 available; assume it will handle stack alignment and return
1044 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
1045 legacy_push_arguments.
1046 (legacy_push_arguments): Rename default_push_arguments.
1047 * value.h (legacy_push_arguments): Rename default_push_arguments.
1048 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
1049 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1050 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1051 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1052 * config/i386/tm-symmetry.h: Update.
1053 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1054 * x86-64-tdep.c (x86_64_init_abi): Update.
1055 * v850-tdep.c (v850_gdbarch_init): Update.
1056 * sparc-tdep.c (sparc_gdbarch_init): Update.
1057 * sh-tdep.c (sh_gdbarch_init): Update.
1058 * s390-tdep.c (s390_gdbarch_init): Update.
1059 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1060 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1061 * mips-tdep.c (mips_gdbarch_init): Update.
1062 * mcore-tdep.c (mcore_gdbarch_init): Update.
1063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1064 * ia64-tdep.c (ia64_gdbarch_init): Update.
1065 * i386-tdep.c (i386_gdbarch_init): Update.
1066 * hppa-tdep.c (hppa_gdbarch_init): Update.
1067 * h8300-tdep.c (h8300_gdbarch_init): Update.
1068 * frv-tdep.c (frv_gdbarch_init): Update.
1069 * d10v-tdep.c (d10v_gdbarch_init): Update.
1070 * cris-tdep.c (cris_gdbarch_init): Update.
1071 * avr-tdep.c (avr_gdbarch_init): Update.
1072 * arm-tdep.c (arm_gdbarch_init): Update.
1073 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1074 * alpha-tdep.c (alpha_gdbarch_init): Update.
1075
1076 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1077
1078 * signals/signals.c (do_target_signal_to_host): Correct realtime
1079 signal range test.
1080
1081 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1082
1083 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
1084 (struct sal_chain, map_catch_names): Remove.
1085 (catch_exception_command_1): Don't call
1086 handle_gnu_4_16_catch_command.
1087
1088 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1089
1090 From Mark Dettinger <dettinge@de.ibm.com>:
1091 * dwarf2cfi.c (read_2u): Increment pointer by two.
1092
1093 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1094
1095 * signals/signals.c: Fix typos in last change.
1096
1097 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1098
1099 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
1100 not already defined. Use __SIGRTMIN if available.
1101 (target_signal_from_host): Remove SIGRTMIN block.
1102 (do_target_signal_to_host): Remove SIGRTMIN block; check that
1103 the signal is within the realtime range.
1104
1105 2003-03-25 Adam Fedor <fedor@gnu.org>
1106
1107 * Makefile.in (infrun.o): Add $(language_h)
1108 * infrun.c (handle_inferior_event): Use skip_language_trampoline
1109 for language specific trampolines.
1110 * language.h (struct language_defn): Add skip_trampoline.
1111 (skip_language_trampoline): Declare.
1112 * language.c (unk_lang_trampoline, skip_language_trampoline):
1113 New functions.
1114 (unknown_language_defn, auto_language_defn, local_language_defn):
1115 Add ukn_lang_trampoline.
1116 * ada-lang.c (ada_language_defn): Add NULL for language
1117 specific skip_trampoline.
1118 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
1119 scm-lang.c: Likewise.
1120 * objc-lang.c (objc_skip_trampoline): New function.
1121 (objc_language_defn): Add objc_skip_trampoline.
1122
1123 2003-03-25 Andrew Cagney <cagney@redhat.com>
1124
1125 * frame.c (get_prev_frame): Delay validating a frame's ID -
1126 non-NULL, didn't go backwards - until an attempt to unwind it to
1127 the previous frame.
1128
1129 2003-03-25 Andrew Cagney <cagney@redhat.com>
1130
1131 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
1132 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
1133 * gdbarch.h, gdbarch.c: Re-generate.
1134 * config/sparc/tm-sparc.h
1135 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
1136 * sparc-tdep.c (sparc_gdbarch_init): Set
1137 deprecated_extra_stack_alignment_needed.
1138 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
1139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
1140 extra_stack_alignment_needed.
1141 * v850-tdep.c (v850_gdbarch_init): Ditto.
1142 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1143 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1144 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1145 * cris-tdep.c (cris_gdbarch_init): Ditto.
1146 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1147 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1148
1149 2003-03-25 Andrew Cagney <cagney@redhat.com>
1150
1151 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
1152 STORE_STRUCT_RETURN.
1153 * gdbarch.h, gdbarch.c: Regenerate.
1154 * d10v-tdep.c (d10v_store_struct_return): Delete function.
1155 (d10v_push_arguments): Set the struct return register.
1156 (d10v_gdbarch_init): Update.
1157 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1158 * x86-64-tdep.c (x86_64_init_abi): Update.
1159 * vax-tdep.c (vax_gdbarch_init): Update.
1160 * v850-tdep.c (v850_gdbarch_init): Update.
1161 * sparc-tdep.c (sparc_gdbarch_init): Update.
1162 * sh-tdep.c (sh_gdbarch_init): Update.
1163 * s390-tdep.c (s390_gdbarch_init): Update.
1164 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1165 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1166 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1167 * mips-tdep.c (mips_gdbarch_init): Update.
1168 * mcore-tdep.c (mcore_gdbarch_init): Update.
1169 * m68k-tdep.c (m68k_gdbarch_init): Update.
1170 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1171 * ia64-tdep.c (ia64_gdbarch_init): Update.
1172 * i386-tdep.c (i386_gdbarch_init): Update.
1173 * hppa-tdep.c (hppa_gdbarch_init): Update.
1174 * h8300-tdep.c (h8300_gdbarch_init): Update.
1175 * frv-tdep.c (frv_gdbarch_init): Update.
1176 * cris-tdep.c (cris_gdbarch_init): Update.
1177 * avr-tdep.c (avr_gdbarch_init): Update.
1178 * arm-tdep.c (arm_gdbarch_init): Update.
1179 * alpha-tdep.c (alpha_gdbarch_init): Update.
1180
1181 2003-03-25 Andrew Cagney <cagney@redhat.com>
1182
1183 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
1184 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
1185 CALL_DUMMY_STACK_ADJUST with a predicate variable.
1186 * gdbarch.h, gdbarch.c: Regenerate.
1187 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1188 call_dummy_stack_adjust_p.
1189 * vax-tdep.c (vax_gdbarch_init): Ditto.
1190 * v850-tdep.c (v850_gdbarch_init): Ditto.
1191 * sh-tdep.c (sh_gdbarch_init): Ditto.
1192 * s390-tdep.c (s390_gdbarch_init): Ditto.
1193 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1194 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1195 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1196 * mips-tdep.c (mips_gdbarch_init): Ditto.
1197 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1198 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1200 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1201 * i386-tdep.c (i386_gdbarch_init): Ditto.
1202 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1203 * frv-tdep.c (frv_gdbarch_init): Ditto.
1204 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1205 * cris-tdep.c (cris_gdbarch_init): Ditto.
1206 * avr-tdep.c (avr_gdbarch_init): Ditto.
1207 * arm-tdep.c (arm_gdbarch_init): Ditto.
1208 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1209 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1210 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
1211 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1212 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
1213 call_dummy_stack_adjust_p.
1214 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
1215 (CALL_DUMMY_STACK_ADJUST): Delete macro.
1216 * sparc-tdep.c (sparc32_push_arguments): Update.
1217 * valops.c (hand_function_call): Update.
1218
1219 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
1220
1221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
1222 set_gdbarch_char_signed.
1223
1224 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
1225
1226 PR cli/548
1227 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
1228
1229 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
1230
1231 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
1232 (_initialize_arm_tdep): Don't set tm_print_insn.
1233
1234 2003-03-24 Adam Fedor <fedor@gnu.org>
1235
1236 * Makefile.in (YYOBJ): Add objc-exp.tab.o
1237 * objc-lang.h: Add multiple inclusion protection.
1238 (start_msglist, add_msglist, end_msglist): Additional declarations.
1239
1240 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
1241
1242 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
1243 value was renamed to ARM_FLOAT_SOFT_FPA.
1244
1245 2003-03-23 Andrew Cagney <cagney@redhat.com>
1246
1247 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
1248 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
1249 * gdbarch.h, gdbarch.c: Regenerate.
1250 * valops.c (hand_function_call): Update.
1251 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1252 * frame.c (legacy_saved_regs_this_id): Update.
1253 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
1254 * dummy-frame.h: Update.
1255 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
1256 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1257 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
1258 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
1259 * config/m68k/tm-sun3.h: Update.
1260 * blockframe.c (inside_main_func, frame_chain_valid): Update.
1261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1262 * x86-64-tdep.c (x86_64_init_abi): Update.
1263 * vax-tdep.c (vax_gdbarch_init): Update.
1264 * v850-tdep.c (v850_gdbarch_init): Update.
1265 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
1266 * sh-tdep.c (sh_gdbarch_init): Update.
1267 * s390-tdep.c (s390_gdbarch_init): Update.
1268 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1269 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
1270 (frame_get_saved_regs): Update.
1271 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1272 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1273 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1274 * mips-tdep.c (mips_gdbarch_init): Update.
1275 * mcore-tdep.c (mcore_gdbarch_init): Update.
1276 * m68k-tdep.c (m68k_gdbarch_init): Update.
1277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1278 * ia64-tdep.c (ia64_gdbarch_init): Update.
1279 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
1280 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1281 (i386_interix_back_one_frame): Update.
1282 * hppa-tdep.c (hppa_gdbarch_init): Update.
1283 (hppa_init_extra_frame_info): Update.
1284 * h8300-tdep.c (h8300_gdbarch_init): Update.
1285 * frv-tdep.c (frv_gdbarch_init): Update.
1286 * cris-tdep.c (cris_gdbarch_init): Update.
1287 * avr-tdep.c (avr_gdbarch_init): Update.
1288 * arm-tdep.c (arm_gdbarch_init): Update.
1289 * alpha-tdep.c (alpha_gdbarch_init): Update.
1290
1291 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1292
1293 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
1294 (arm_get_fp_model): Declare.
1295 * arm-tdep.c (fp_model_strings): New string array.
1296 (arm_fp_model, current_fp_model): New variables.
1297 (arm_get_fp_model): New function.
1298 (arm_set_fp): New function.
1299 (set_fp_model_sfunc): New function.
1300 (show_fp_model): New function.
1301 (_initialize_arm_tdep): Add new command to set/show the FPU.
1302 (arm_extract_return_value): Use arm_get_fp_model.
1303 (arm_store_return_value): Likewise.
1304 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
1305 to initialize the floating-point data types.
1306 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
1307 model is FPA.
1308
1309 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1310
1311 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
1312 the current setting of each value.
1313 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
1314 new_set and new_show. Use add_setshow_cmd_full and
1315 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
1316 commands and add new version as subcommands of "set/show arm".
1317
1318 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1319
1320 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
1321 (set_arm_command, show_arm_command): New functions.
1322 (_initialize_arm_tdep): Add them.
1323 (num_disassembly_options): Renamed from num_flavor_options.
1324 (valid_disassembly_styles): Renamed from valid_flavors.
1325 (disassembly_style): Renamed from disassembly_flavor.
1326 (set_disassembly_style_sfunc): Renamed from
1327 set_disassembly_flavor_sfunc.
1328 (set_disassembly_style): Renamed from set_disassembly_flavor.
1329 (arm_othernames): Updated.
1330 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
1331 command. Add "set/show arm disassembly" commands. Deprecate
1332 "othernames" command.
1333
1334 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1335
1336 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
1337 (arm-tdep.o): Depend on elf_arm_h.
1338
1339 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1340
1341 * Makefile.in (coff_internal_h): Define.
1342 (arm-tdep.o): Update dependencies.
1343
1344 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1345
1346 * arm-tdep.c (prologue_cache): Delete.
1347 (check_prologue_cache, save_prologue_cache): Delete.
1348 (arm_scan_prologue): Don't check or update the prologue_cache.
1349 (arm_gdb_arch_init): Don't initialize it.
1350 (_initialize_arm_tdep): Likewise.
1351
1352 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
1353
1354 * MAINTAINERS (tui): Maintainer of tui code.
1355
1356 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
1357
1358 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
1359 (i386-cygwin-tdep.o): Add dependencies.
1360 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
1361 * i386-cygwin-tdep.c: New file.
1362 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
1363 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
1364
1365 2003-03-20 Andrew Cagney <cagney@redhat.com>
1366
1367 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
1368 (handle_inferior_event): Remove code calling
1369 DYNAMIC_TRAMPOLINE_NEXTPC.
1370
1371 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
1372 already has a full path.
1373
1374 * main.c (gdb_main): Return 1.
1375 (captured_main): Call error to report an invalid interpreter.
1376
1377 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1378 * alpha-osf1-tdep.c: Include "gdb_string.h".
1379
1380 2003-03-19 J. Brobecker <brobecker@gnat.com>
1381
1382 Continuing work to convert the hppa targets to multiarch partial.
1383
1384 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
1385 method, now that hppa_push_dummy_frame has a conformant prototype.
1386 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
1387 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
1388 for the switch to multiarch partial.
1389
1390 2003-03-19 Kevin Buettner <kevinb@redhat.com>
1391
1392 * mdebugread.c (parse_symbol): For stEnd, we're done counting
1393 when iss is issNull.
1394
1395 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1396
1397 * mips-tdep.c (mips_register_name): Fix fencepost error involving
1398 NUM_REGS bounds check.
1399
1400 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1401
1402 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
1403 * mips-tdep.c (gdb_assert.h): Include.
1404 (mips_generic_reg_names, mips_processor_reg_names): Make static.
1405 (mips_register_name): Handle integer registers explicitly. Add
1406 bounds checking.
1407 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
1408 (mips_lsi33k_reg_names): Don't list integer registers; they're
1409 handled by mips_register_name() now.
1410 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
1411 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
1412 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
1413 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
1414 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
1415
1416 2003-03-18 Andrew Cagney <cagney@redhat.com>
1417
1418 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
1419 a void pointer.
1420 * gdbtypes.h (print_scalar_formatted): Update declaration.
1421 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
1422
1423 2003-03-18 J. Brobecker <brobecker@gnat.com>
1424
1425 * infrun.c (observer.h): Add #include.
1426 (normal_stop): Add call to observer_notify_normal_stop.
1427 * Makefile.in (infrun.o): Add dependency on observer.h.
1428
1429 2003-03-18 J. Brobecker <brobecker@gnat.com>
1430
1431 Continuing work to convert the hppa targets to multiarch partial.
1432 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
1433 parameter. Reformat comment.
1434 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
1435 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
1436 to match new profile.
1437
1438 2003-03-18 J. Brobecker <brobecker@gnat.com>
1439
1440 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
1441 appear to be working in any case.
1442
1443 2003-03-18 J. Brobecker <brobecker@gnat.com>
1444
1445 * observer.c (observer_test_first_observer): New static variable.
1446 (observer_test_second_observer): Likewise.
1447 (observer_test_third_observer): Likewise.
1448 (observer_test_first_notification_function): New static function.
1449 (observer_test_second_notification_function): Likewise.
1450 (observer_test_third_notification_function): Likewise.
1451
1452 2003-03-17 J. Brobecker <brobecker@gnat.com>
1453
1454 * hppa-tdep.c (gdb_assert.h): Add missing #include.
1455 * somsolib.c (gdb_assert.h): Likewise.
1456 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
1457 (somsolib.o): Likewise.
1458
1459 2003-03-17 Andrew Cagney <cagney@redhat.com>
1460
1461 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
1462 BFD. Simplify setting of di.endian.
1463
1464 2003-03-17 Andrew Cagney <cagney@redhat.com>
1465
1466 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
1467 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
1468
1469 From Elena Zannoni <ezannoni@redhat.com>
1470 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
1471 vector and floating-point parameters.
1472 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
1473 convention.
1474 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
1475
1476 2003-03-17 Fernando Nasser <fnasser@redhat.com>
1477
1478 * MAINTAINERS: Remove my name from several maintainership roles.
1479
1480 2003-03-17 Andrew Cagney <cagney@redhat.com>
1481
1482 Fix frame off-by-one bug.
1483 * frame-unwind.h (frame_this_id_ftype): Replace
1484 frame_unwind_id_ftype.
1485 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
1486 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
1487 with "prev_register".
1488 * frame-unwind.c (frame_unwind_find_by_pc): Return
1489 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
1490 comment.
1491 * dummy-frame.c (cached_find_dummy_frame): Delete function.
1492 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
1493 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
1494 (dummy_frame_unwind): Update.
1495 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1496 sentinel_frame_register_unwind.
1497 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
1498 (sentinel_frame_unwinder): Update.
1499 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1500 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
1501 * frame.c (create_sentinel_frame): Update. Initialize
1502 "prologue_cache" instead of "unwind_cache".
1503 (frame_register_unwind): Call this frame's prev_register with the
1504 next frame and this frame's prologue cache.
1505 (get_prev_frame): Simplify. Always call prev frame's this_id with
1506 this frame and prev frame's prologue cache. Document that this
1507 call is shifted one to the left when compared to the
1508 frame_register_unwind call.
1509 (legacy_saved_regs_prev_register): Replace
1510 frame_saved_regs_register_unwind.
1511 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
1512 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
1513 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1514 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
1515 (d10v_frame_unwind): Update.
1516 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
1517 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
1518 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
1519 "saved_regs" with "this_saved_regs".
1520
1521 2003-03-16 Andrew Cagney <cagney@redhat.com>
1522
1523 * frame.c (frame_pop): Don't call target_store_registers. Fix
1524 problem reported by Mark Kettenis.
1525
1526 2003-03-16 Mark Kettenis <kettenis@gnu.org>
1527
1528 * i386-tdep.c (i386_register_type): Renamed from
1529 i386_register_virtual_type. Adjust function signature.
1530 (i386_gdbarch_init): Set register_type instead of
1531 deprecated_max_register_raw_size,
1532 deprecated_max_register_virtual_size and register_virtual_type.
1533
1534 2003-03-14 Andrew Cagney <cagney@redhat.com>
1535
1536 * frame.c (get_prev_frame): When a legacy frame, always call
1537 legacy_get_prev_frame. Simplify unwind code using assumption that
1538 the unwinder is new.
1539 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
1540 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
1541 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
1542
1543 2003-03-14 Andrew Cagney <cagney@redhat.com>
1544
1545 * frame.c (get_saved_register): Delete function.
1546 * frame.h (get_saved_register): Delete declaration.
1547 * xstormy16-tdep.c: Update comment.
1548 * regcache.h: Update comments.
1549 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
1550 get_saved_register and extract_address, use
1551 frame_read_unsigned_register.
1552 (sparc_frame_saved_pc): Ditto.
1553 (sparc_get_saved_register): Instead of get_saved_register, use
1554 frame_register.
1555 (sparc_pop_frame): Ditto.
1556 * findvar.c: Update comments.
1557 (value_of_register): Call frame_register instead of
1558 get_saved_register.
1559 (value_from_register): Ditto.
1560 * config/sparc/tm-sparc.h: Update comment.
1561 * breakpoint.c: Update comment.
1562
1563 2003-03-14 Andrew Cagney <cagney@redhat.com>
1564
1565 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
1566 GET_SAVED_REGISTER.
1567 * gdbarch.h, gdbarch.c: Re-generate.
1568 * frame.h: Update comments.
1569 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1570 * x86-64-tdep.c (x86_64_init_abi): Update.
1571 * sparc-tdep.c (sparc_gdbarch_init): Update.
1572 * sh-tdep.c (sh_gdbarch_init): Update.
1573 * mips-tdep.c (mips_gdbarch_init): Update.
1574 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1575 * cris-tdep.c (cris_gdbarch_init): Update.
1576 * ia64-tdep.c (ia64_gdbarch_init): Update.
1577 * frame.c (frame_register): Update.
1578 (get_saved_register): Update.
1579 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
1580
1581 2003-03-13 Andrew Cagney <cagney@redhat.com>
1582
1583 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
1584 * gdbarch.h, gdbarch.c: Regenerate.
1585 * valops.c (hand_function_call): Update comment.
1586 * stack.c (return_command): Update comment.
1587 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
1588 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
1589 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1590 * x86-64-tdep.c (x86_64_init_abi): Update.
1591 * vax-tdep.c (vax_gdbarch_init): Update.
1592 * v850-tdep.c (v850_gdbarch_init): Update.
1593 * sparc-tdep.c (sparc_gdbarch_init): Update.
1594 * sh-tdep.c (sh_gdbarch_init): Update.
1595 * s390-tdep.c (s390_gdbarch_init): Update.
1596 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1597 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1598 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1599 * mips-tdep.c (mips_gdbarch_init): Update.
1600 * mcore-tdep.c (mcore_gdbarch_init): Update.
1601 * m68k-tdep.c (m68k_gdbarch_init): Update.
1602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1603 * ia64-tdep.c (ia64_gdbarch_init): Update.
1604 * i386-tdep.c (i386_gdbarch_init): Update.
1605 * hppa-tdep.c (hppa_gdbarch_init): Update.
1606 * h8300-tdep.c (h8300_gdbarch_init): Update.
1607 * frv-tdep.c (frv_gdbarch_init): Update.
1608 * cris-tdep.c (cris_gdbarch_init): Update.
1609 * avr-tdep.c (avr_gdbarch_init): Update.
1610 * arm-tdep.c (arm_gdbarch_init): Update.
1611 * alpha-tdep.c (alpha_gdbarch_init): Update.
1612
1613 2003-03-13 Andrew Cagney <cagney@redhat.com>
1614
1615 * frame.c (legacy_frame_p): New function.
1616 (get_prev_frame): Use legacy_frame_p.
1617 * frame.h (legacy_frame_p): Declare.
1618
1619 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1620
1621 * MAINTAINERS (write after approval): Alphabetically
1622 listing corrected.
1623
1624 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1625
1626 * MAINTAINERS (write after approval): Add myself.
1627
1628 2003-03-12 Andrew Cagney <cagney@redhat.com>
1629
1630 * frame.c (get_prev_frame): Rename the frame parameter to
1631 "this_frame".
1632 (get_next_frame, legacy_get_prev_frame): Ditto.
1633
1634 2003-03-12 Andrew Cagney <cagney@redhat.com>
1635
1636 * frame.c (get_current_frame): Check target_has_registers before
1637 checking target_has_stack.
1638 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
1639 instead of deprecated_selected_frame.
1640 * findvar.c (value_of_register): Pass "frame", not
1641 deprecated_selected_frame, to value_of_builtin_reg.
1642
1643 2003-03-12 Andrew Cagney <cagney@redhat.com>
1644
1645 * regcache.c (regcache_cooked_write_signed): New function.
1646 (regcache_cooked_write_unsigned): New function.
1647 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
1648 (regcache_cooked_read_signed): Fix regnum in range assertion.
1649 * regcache.h (regcache_cooked_write_signed): Declare.
1650 (regcache_cooked_write_unsigned): Declare.
1651
1652 2003-03-12 Andrew Cagney <cagney@redhat.com>
1653
1654 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1655 * gdbarch.h, gdbarch.c: Re-generate.
1656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1657 * x86-64-tdep.h: Update.
1658 * x86-64-tdep.c (x86_64_init_abi): Update.
1659 * v850-tdep.c (v850_gdbarch_init): Update.
1660 * sparc-tdep.c (sparc_gdbarch_init): Update.
1661 * sh-tdep.c (sh_gdbarch_init): Update.
1662 * s390-tdep.c (s390_gdbarch_init): Update.
1663 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1664 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1665 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1666 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1667 * mips-tdep.c (mips_gdbarch_init): Update.
1668 * mcore-tdep.c (mcore_gdbarch_init): Update.
1669 * m68k-tdep.c (m68k_gdbarch_init): Update.
1670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1671 * ia64-tdep.c (ia64_gdbarch_init): Update.
1672 * i386-tdep.c (i386_gdbarch_init): Update.
1673 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1674 * hppa-tdep.c (hppa_gdbarch_init): Update.
1675 * h8300-tdep.c (h8300_gdbarch_init): Update.
1676 * frv-tdep.c (frv_gdbarch_init): Update.
1677 * cris-tdep.c (cris_gdbarch_init): Update.
1678 * avr-tdep.c (avr_gdbarch_init): Update.
1679 * arm-tdep.c (arm_gdbarch_init): Update.
1680 * alpha-tdep.c (alpha_gdbarch_init): Update.
1681 * sh-tdep.c (sh_init_extra_frame_info): Update.
1682 (sh64_init_extra_frame_info): Update.
1683 * ns32knbsd-nat.c (frame_num_args): Update.
1684 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1685 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1686 (xstormy16_frame_chain_valid): Update.
1687 * vax-tdep.c (vax_saved_pc_after_call): Update.
1688 * v850-tdep.c (v850_frame_chain): Update.
1689 (v850_pop_frame): Update.
1690 (v850_init_extra_frame_info): Update.
1691 * sparc-tdep.c (setup_arbitrary_frame): Update.
1692 * ns32k-tdep.c (umax_frame_num_args): Update.
1693 * s390-tdep.c (s390_pop_frame_regular): Update.
1694 * mn10300-tdep.c (mn10300_frame_chain): Update.
1695 (mn10300_pop_frame_regular): Update.
1696 (mn10300_init_extra_frame_info): Update.
1697 * mips-tdep.c (mips_init_frame_pc_first): Update.
1698 (mips_frame_chain): Update.
1699 (mips_pop_frame): Update.
1700 * mcore-tdep.c (mcore_frame_chain): Update.
1701 (mcore_pop_frame): Update.
1702 (mcore_init_extra_frame_info): Update.
1703 * arch-utils.c (init_frame_pc_default): Update.
1704 * m68k-tdep.c (isi_frame_num_args): Update.
1705 (delta68_frame_num_args): Update.
1706 (news_frame_num_args): Update.
1707 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1708 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1709 (alpha_frame_chain): Update.
1710 (alpha_pop_frame): Update.
1711 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1712 (hppa_init_extra_frame_info): Update.
1713 (hppa_frame_chain): Update.
1714 (hppa_frame_chain_valid): Update.
1715 * cris-tdep.c (cris_init_extra_frame_info): Update.
1716 * avr-tdep.c (avr_init_extra_frame_info): Update.
1717 * arm-tdep.c (arm_frame_chain_valid): Update.
1718 (arm_init_extra_frame_info): Update.
1719 (arm_pop_frame): Update.
1720 * frame.c (frame_pc_unwind): Update.
1721 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1722 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1723 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1724 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1725 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1726 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1727
1728 2003-03-12 Andrew Cagney <cagney@redhat.com>
1729
1730 Eliminate the need for POP_FRAME.
1731 * frame.c (do_frame_unwind_register): New function.
1732 (frame_pop): When no POP_FRAME, pop the frame using register
1733 unwind and a scratch regcache.
1734 (frame_saved_regs_pop): Delete function.
1735 (trad_frame_unwinder): Update.
1736 * d10v-tdep.c (d10v_frame_pop): Delete function.
1737 (d10v_frame_unwind): Update.
1738 * sentinel-frame.c (sentinel_frame_pop): Delete function.
1739 (sentinel_frame_unwinder): Update.
1740 * dummy-frame.c (dummy_frame_pop): Delete function.
1741 (dummy_frame_unwind): Update.
1742 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1743 (struct frame_unwind): Update.
1744
1745 2003-03-11 Kevin Buettner <kevinb@redhat.com>
1746
1747 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1748 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1749 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1750 Do range checks on register number obtained from debugging info.
1751 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1752 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
1753 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1754 mapping function.
1755 (do_fp_register_row): Fix typo which caused double type to be
1756 used when attempting to unpack a float.
1757
1758 2003-03-11 J. Brobecker <brobecker@gnat.com>
1759
1760 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1761
1762 2003-03-11 Andrew Cagney <cagney@redhat.com>
1763
1764 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1765 frame. Problem found by Corinna Vinschen.
1766
1767 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
1768
1769 * doublest.c (floatformat_from_length): Accept also
1770 the real size of 'long double' type.
1771
1772 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
1773
1774 From Klee Dienes <kdienes@apple.com>:
1775 * breakpoint.c (bpstat_copy): Copy the command lines as well
1776 as the old value, to match what is freed in bpstat_clear.
1777
1778 2003-03-10 David Carlton <carlton@math.stanford.edu>
1779
1780 * minsyms.c (add_minsym_to_hash_table): Replace
1781 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1782 (compare_minimal_symbols, compact_minimal_symbols)
1783 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1784 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1785 of DEPRECATED_SYMBOL_MATCHES_NAME.
1786 (lookup_minimal_symbol_solib_trampoline): Ditto.
1787
1788 2003-03-10 Andrew Cagney <cagney@redhat.com>
1789
1790 * regcache.h (regcache_cooked_read_ftype): Define.
1791 (regcache_save, regcache_restore): Add a cooked_read parameter.
1792 * regcache.c (regcache_save, regcache_restore): Update.
1793 (do_cooked_read): New function.
1794 (regcache_cpy): Pass do_cooked_read to regcache_save and
1795 regcache_restore.
1796
1797 2003-03-10 Andrew Cagney <cagney@redhat.com>
1798
1799 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1800 * gdbarch.h, gdbarch.c: Re-generate.
1801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1802 * x86-64-tdep.h: Update.
1803 * x86-64-tdep.c (x86_64_init_abi): Update.
1804 * v850-tdep.c (v850_gdbarch_init): Update.
1805 * sparc-tdep.c (sparc_gdbarch_init): Update.
1806 * sh-tdep.c (sh_gdbarch_init): Update.
1807 * s390-tdep.c (s390_gdbarch_init): Update.
1808 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1809 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1810 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1811 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1812 * mips-tdep.c (mips_gdbarch_init): Update.
1813 * mcore-tdep.c (mcore_gdbarch_init): Update.
1814 * m68k-tdep.c (m68k_gdbarch_init): Update.
1815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1816 * ia64-tdep.c (ia64_gdbarch_init): Update.
1817 * i386-tdep.c (i386_gdbarch_init): Update.
1818 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1819 * hppa-tdep.c (hppa_gdbarch_init): Update.
1820 * h8300-tdep.c (h8300_gdbarch_init): Update.
1821 * frv-tdep.c (frv_gdbarch_init): Update.
1822 * cris-tdep.c (cris_gdbarch_init): Update.
1823 * avr-tdep.c (avr_gdbarch_init): Update.
1824 * arm-tdep.c (arm_gdbarch_init): Update.
1825 * alpha-tdep.c (alpha_gdbarch_init): Update.
1826 * sh-tdep.c (sh_init_extra_frame_info): Update.
1827 (sh64_init_extra_frame_info): Update.
1828 * ns32knbsd-nat.c (frame_num_args): Update.
1829 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1830 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1831 (xstormy16_frame_chain_valid): Update.
1832 * vax-tdep.c (vax_saved_pc_after_call): Update.
1833 * v850-tdep.c (v850_frame_chain): Update.
1834 (v850_pop_frame): Update.
1835 (v850_init_extra_frame_info): Update.
1836 * sparc-tdep.c (setup_arbitrary_frame): Update.
1837 * ns32k-tdep.c (umax_frame_num_args): Update.
1838 * s390-tdep.c (s390_pop_frame_regular): Update.
1839 * mn10300-tdep.c (mn10300_frame_chain): Update.
1840 (mn10300_pop_frame_regular): Update.
1841 (mn10300_init_extra_frame_info): Update.
1842 * mips-tdep.c (mips_init_frame_pc_first): Update.
1843 (mips_frame_chain): Update.
1844 (mips_pop_frame): Update.
1845 * mcore-tdep.c (mcore_frame_chain): Update.
1846 (mcore_pop_frame): Update.
1847 (mcore_init_extra_frame_info): Update.
1848 * arch-utils.c (init_frame_pc_default): Update.
1849 * m68k-tdep.c (isi_frame_num_args): Update.
1850 (delta68_frame_num_args): Update.
1851 (news_frame_num_args): Update.
1852 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1853 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1854 (alpha_frame_chain): Update.
1855 (alpha_pop_frame): Update.
1856 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1857 (hppa_init_extra_frame_info): Update.
1858 (hppa_frame_chain): Update.
1859 (hppa_frame_chain_valid): Update.
1860 * cris-tdep.c (cris_init_extra_frame_info): Update.
1861 * avr-tdep.c (avr_init_extra_frame_info): Update.
1862 * arm-tdep.c (arm_frame_chain_valid): Update.
1863 (arm_init_extra_frame_info): Update.
1864 (arm_pop_frame): Update.
1865 * frame.c (frame_pc_unwind): Update.
1866 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1867 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1868 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1869 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1870 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1871 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1872
1873 2003-03-10 Andrew Cagney <cagney@redhat.com>
1874
1875 * gdbarch.sh (gdbarch_unwind_pc): New method.
1876 * gdbarch.h, gdbarch.c: Regenerate.
1877 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
1878 but use read_pc and FRAME_SAVED_PC as fall backs.
1879 (frame_saved_regs_pc_unwind): Delete function.
1880 (trad_frame_unwinder): Update.
1881 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1882 (struct frame_unwind): Update.
1883 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1884 (dummy_frame_unwind): Update.
1885 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1886 (sentinel_frame_unwinder): Update.
1887 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1888 (d10v_frame_unwind): Update.
1889 (d10v_unwind_pc): New function.
1890 (d10v_gdbarch_init): Set unwind_pc.
1891
1892 2003-03-10 Andrew Cagney <cagney@redhat.com>
1893
1894 * gdbarch.h: Re-generate.
1895
1896 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1897 PC.
1898 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1899 the PC register.
1900
1901 2003-03-08 Mark Kettenis <kettenis@gnu.org>
1902
1903 * gdbarch.sh (save_dummy_frame_tos): Add comment.
1904
1905 2003-03-08 Andrew Cagney <cagney@redhat.com>
1906
1907 * cli-out.c: Update copyright.
1908 (cli_out_data): Define typedef. Use instead of ui_out_data.
1909
1910 2003-03-08 Andrew Cagney <cagney@redhat.com>
1911
1912 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1913 the result.
1914
1915 2003-03-07 Andrew Cagney <cagney@redhat.com>
1916
1917 * gdbarch.sh: Don't generate two macro definitions when an
1918 undefined macro taking no arguments.
1919 * gdbarch.h: Regenerate.
1920
1921 2002-03-07 Michal Ludvig <mludvig@suse.cz>
1922
1923 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1924 (x86_64_unwind_dummy_id): New functions.
1925 (x86_64_init_abi): Register these two new functions.
1926
1927 2003-03-07 Michal Ludvig <mludvig@suse.cz>
1928
1929 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1930 (x86_64_skip_prologue): Move prologue detection to
1931 separate function.
1932 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1933
1934 2003-03-05 Andrew Cagney <cagney@redhat.com>
1935
1936 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1937 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1938 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1939 to use unwind_dummy_id when a dummy frame.
1940 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1941 predicate.
1942 * gdbarch.h, gdbarch.c: Regneerate.
1943
1944 2003-03-05 Andrew Cagney <cagney@redhat.com>
1945
1946 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1947 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1948 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1949 values.
1950
1951 2003-03-05 Andrew Cagney <cagney@redhat.com>
1952
1953 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1954 (struct d10v_unwind_cache): Delete field "frameless". Replace
1955 "next_addr" with "sp_offset". Add "r11_offset".
1956 (d10v_frame_unwind_cache): Update.
1957 (prologue_find_regs): Update. When "mv r11, sp", save the
1958 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1959 RN was saved in r11_offset.
1960
1961 2003-03-05 Andrew Cagney <cagney@redhat.com>
1962
1963 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1964 cached PC value in the next frame.
1965
1966 2003-03-05 Andrew Cagney <cagney@redhat.com>
1967
1968 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1969 "id_unwind_cache" with "id".
1970 (frame_id_unwind): Delete declaration.
1971 * frame.c (frame_id_unwind): Delete function.
1972 (get_prev_frame): Call the frame id unwind method directly. Store
1973 the returned next frame's ID value in NEXT_FRAME. Note that there
1974 is a problem with the wrong unwind ID being called with the wrong
1975 unwind cache.
1976
1977 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1978
1979 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1980
1981 2003-03-05 James Ingham <jingham@apple.com>
1982 Daniel Jacobowitz <drow@mvista.com>
1983
1984 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1985 (auto_cp_abi): New variable.
1986 (current_cp_abi, num_cp_abis): Make static.
1987 (CP_ABI_MAX): Define.
1988 (cp_abis): Turn into an array.
1989 (value_virtual_fn_field): Fix formatting.
1990 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1991 takes a pointer.
1992 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1993 (list_cp_abis, _initialize_cp_abi): New functions.
1994 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1995 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1996 switch_to_cp_abi. Update prototype for register_cp_abi.
1997 * Makefile.in (cp-abi.o): Update dependencies.
1998 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1999 instead of switch_to_cp_abi.
2000 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
2001 register_cp_abi.
2002 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
2003 register_cp_abi.
2004 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
2005
2006 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
2007
2008 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
2009 * dwarf2loc.c: Include "regcache.h".
2010 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
2011 register_size.
2012 * Makefile.in (dwarf2loc.o): Update dependencies.
2013
2014 2003-03-04 Theodore A. Roth <troth@openavr.org>
2015
2016 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
2017 number of io registers reported by remote target is not a multiple of
2018 step.
2019
2020 2003-03-04 David Carlton <carlton@math.stanford.edu>
2021
2022 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
2023 (lookup_symbol_aux_psymtabs): Update call to
2024 lookup_partial_symbol.
2025 (lookup_transparent_type, find_main_psymtab)
2026 (make_symbol_overload_list): Ditto.
2027
2028 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
2029
2030 * MAINTAINERS (Write after approval): Update my email address.
2031
2032 2003-03-03 Andrew Cagney <cagney@redhat.com>
2033
2034 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
2035 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
2036 predicate. Replace MAX_REGISTER_RAW_SIZE.
2037 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
2038 MAX_REGISTER_VIRTUAL_SIZE.
2039 * regcache.c (legacy_max_register_raw_size): New function.
2040 (legacy_max_register_virtual_size): New function.
2041 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
2042 (MAX_REGISTER_RAW_SIZE): Define.
2043 (legacy_max_register_raw_size): Declare.
2044 (legacy_max_register_virtual_size): Declare.
2045 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2046 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
2047 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2048 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
2049 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2050 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
2051 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2052 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2053 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2054 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2055 * vax-tdep.c (vax_gdbarch_init): Update.
2056 * v850-tdep.c (v850_gdbarch_init): Update.
2057 * sparc-tdep.c (sparc_gdbarch_init): Update.
2058 * sh-tdep.c (sh_gdbarch_init): Update.
2059 * s390-tdep.c (s390_gdbarch_init): Update.
2060 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2061 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2062 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2063 * mips-tdep.c (mips_gdbarch_init): Update.
2064 * mcore-tdep.c (mcore_gdbarch_init): Update.
2065 * m68k-tdep.c (m68k_gdbarch_init): Update.
2066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2067 * ia64-tdep.c (ia64_gdbarch_init): Update.
2068 * i386-tdep.c (i386_gdbarch_init): Update.
2069 * hppa-tdep.c (hppa_gdbarch_init): Update.
2070 * h8300-tdep.c (h8300_gdbarch_init): Update.
2071 * frv-tdep.c (frv_gdbarch_init): Update.
2072 * cris-tdep.c (cris_gdbarch_init): Update.
2073 * avr-tdep.c (avr_gdbarch_init): Update.
2074 * arm-tdep.c (arm_gdbarch_init): Update.
2075 * alpha-tdep.c (alpha_gdbarch_init): Update.
2076 * d10v-tdep.c (d10v_gdbarch_init): Do not set
2077 max_register_raw_size or max_register_virtual_size.
2078
2079 2003-03-03 David Carlton <carlton@math.stanford.edu>
2080
2081 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
2082 SYMBOL_MATCHES_NAME, add comment.
2083 (SYMBOL_MATCHES_NATURAL_NAME): New.
2084 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
2085 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
2086 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
2087 * symtab.c (lookup_partial_symbol): Use
2088 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
2089 unhelpful comment.
2090 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
2091 SYMBOL_MATCHES_NAME.
2092 Fix for PR c++/33.
2093
2094 2003-03-03 David Carlton <carlton@math.stanford.edu>
2095
2096 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
2097 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
2098 by regexp matching against SYMBOL_NATURAL_NAME.
2099
2100 2003-03-03 David Carlton <carlton@math.stanford.edu>
2101
2102 * linespec.c (find_method): Extract code into collect_methods.
2103 (collect_methods): New.
2104
2105 2003-03-02 Mark Kettenis <kettenis@gnu.org>
2106
2107 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
2108 get_frame_base.
2109
2110 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
2111 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2112
2113 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
2114
2115 * arch-utils.c (generic_register_byte): Fix to use the loop index
2116 and not regnum when summing the size of all registers up to regnum.
2117
2118 2003-03-01 Andrew Cagney <cagney@redhat.com>
2119
2120 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
2121 FRAME_INIT_SAVED_REGS.
2122 * gdbarch.h, gdbarch.c: Regenerate.
2123 * stack.c (frame_info): Update.
2124 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
2125 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
2126 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
2127 * ns32k-tdep.c (ns32k_pop_frame): Update.
2128 * mips-tdep.c (mips_pop_frame): Update.
2129 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
2130 * ia64-tdep.c (ia64_frame_chain): Update.
2131 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
2132 (ia64_frameless_function_invocation): Update.
2133 (ia64_init_extra_frame_info): Update.
2134 (ia64_pop_frame_regular): Update.
2135 * frame.h (struct frame_info): Update comment.
2136 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
2137 * frame.c (frame_saved_regs_register_unwind): Update.
2138 (frame_saved_regs_register_unwind): Update.
2139 (deprecated_generic_get_saved_register): Update.
2140 * cris-tdep.c: Update comment.
2141 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
2142 Rename macro.
2143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2144 * x86-64-tdep.c (x86_64_init_abi): Update.
2145 * vax-tdep.c (vax_gdbarch_init): Update.
2146 * v850-tdep.c (v850_gdbarch_init): Update.
2147 * sparc-tdep.c (sparc_gdbarch_init): Update.
2148 * sh-tdep.c (sh_gdbarch_init): Update.
2149 * s390-tdep.c (s390_gdbarch_init): Update.
2150 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2151 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2152 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2153 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2154 * mips-tdep.c (mips_gdbarch_init): Update.
2155 * mcore-tdep.c (mcore_gdbarch_init): Update.
2156 * m68k-tdep.c (m68k_gdbarch_init): Update.
2157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2158 * ia64-tdep.c (ia64_gdbarch_init): Update.
2159 * i386-tdep.c (i386_gdbarch_init): Update.
2160 * frv-tdep.c (frv_gdbarch_init): Update.
2161 * avr-tdep.c (avr_gdbarch_init): Update.
2162 * arm-tdep.c (arm_gdbarch_init): Update.
2163 * alpha-tdep.c (alpha_gdbarch_init): Update.
2164
2165 2003-03-01 Andrew Cagney <cagney@redhat.com>
2166
2167 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
2168 option enum and switch. When no windows, set the interpreter to
2169 INTERP_CONSOLE.
2170
2171 2003-03-01 Andrew Cagney <cagney@redhat.com>
2172
2173 * main.c (captured_main): Replace magic option characters with an
2174 enum.
2175
2176 2003-03-01 Andrew Cagney <cagney@redhat.com>
2177
2178 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
2179 INIT_EXTRA_FRAME_INFO.
2180 * gdbarch.h, gdbarch.c: Regenerate.
2181 * arm-tdep.c: Update comments.
2182 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
2183 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
2184 * frame.h, avr-tdep.c: Ditto.
2185 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
2186 (create_new_frame, legacy_get_prev_frame): Ditto.
2187 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2188 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
2190 deprecated_init_extra_frame_info instead of init_extra_frame_info.
2191 * x86-64-tdep.c (x86_64_init_abi): Ditto.
2192 * v850-tdep.c (v850_gdbarch_init): Ditto.
2193 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2194 * sh-tdep.c (sh_gdbarch_init): Ditto.
2195 * s390-tdep.c (s390_gdbarch_init): Ditto.
2196 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
2197 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2198 * mips-tdep.c (mips_gdbarch_init): Ditto.
2199 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2200 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2201 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2202 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2203 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2204 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2205 * frv-tdep.c (frv_gdbarch_init): Ditto.
2206 * cris-tdep.c (cris_gdbarch_init): Ditto.
2207 * avr-tdep.c (avr_gdbarch_init): Ditto.
2208 * arm-tdep.c (arm_gdbarch_init): Ditto.
2209 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2210 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2211
2212 2003-03-01 Andrew Cagney <cagney@redhat.com>
2213
2214 * gdbarch.sh (register_type): New function with predicate.
2215 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
2216 * gdbarch.h, gdbarch.c: Re-generate.
2217 * arch-utils.c (generic_register_byte): Use generic_register_size.
2218 (generic_register_size): When available, use
2219 gdbarch_register_type.
2220 * regcache.c (init_regcache_descr): When available, initialize the
2221 register type array using gdbarch_register_type. If the
2222 architecture supplies gdbarch_register_type, do not use the legacy
2223 regcache layout.
2224 * d10v-tdep.c (d10v_register_type): Replace
2225 d10v_register_virtual_type.
2226 (d10v_gdbarch_init): Set register_type instead of
2227 register_virtual_type.
2228
2229 2003-03-01 Andrew Cagney <cagney@redhat.com>
2230
2231 * Makefile.in (ax-gdb.o): Update dependencies.
2232 * ax-gdb.c: Include "regcache.h".
2233 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
2234 * findvar.c (value_of_register): Ditto.
2235 * infcmd.c (default_print_registers_info): Ditto.
2236
2237 2003-03-01 Mark Kettenis <kettenis@gnu.org>
2238
2239 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
2240 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2241
2242 2003-03-01 Mark Kettenis <kettenis@gnu.org>
2243
2244 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
2245 of STREQ.
2246
2247 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
2248
2249 * Makefile.in (dwarf2loc.o): Update dependencies.
2250 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
2251 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
2252 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
2253 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
2254 (locexpr_tracepoint_var_ref): New function.
2255 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
2256
2257 2003-02-28 Andrew Cagney <cagney@redhat.com>
2258
2259 * regcache.c (register_size): New function.
2260 * regcache.h (register_size): Declare
2261 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
2262 max_register_size instead of MAX_REGISTER_RAW_SIZE.
2263
2264 2003-02-28 David Carlton <carlton@math.stanford.edu>
2265
2266 * linespec.c (decode_compound): Extract code into find_method.
2267 (find_method): New.
2268
2269 2003-02-28 J. Brobecker <brobecker@gnat.com>
2270
2271 * Makefile.in: Add rules to build and link in observer.o.
2272
2273 2003-02-27 J. Brobecker <brobecker@gnat.com>
2274
2275 * observer.c: Minor comments edits.
2276
2277 2003-02-27 J. Brobecker <brobecker@gnat.com>
2278
2279 * observer.h, observer.c: New file.
2280
2281 2003-02-27 Andrew Cagney <cagney@redhat.com>
2282
2283 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
2284
2285 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
2286
2287 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
2288 (M6812_OP_STS_EXT): Likewise.
2289 (m6811_prologue): Use the above to recognize prologue.
2290 (m6812_prologue): Likewise.
2291
2292 2003-02-27 David Carlton <carlton@math.stanford.edu>
2293
2294 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
2295 SYMBOL_PRINT_NAME.
2296 (compare_psymbols): Ditto.
2297 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
2298
2299 2003-02-27 Michael Snyder <msnyder@redhat.com>
2300
2301 * f-lang.c (build_fortran_types): New function.
2302 (_initialize_f_language): Gdbarch-register built-in fortran types.
2303 * doublest.c (extract_floating): Fix warning text.
2304
2305 2003-02-27 Andrew Cagney <cagney@redhat.com>
2306
2307 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
2308 predicate. Replaces PUSH_DUMMY_FRAME.
2309 * gdbarch.h, gdbarch.c: Regnerate.
2310 * valops.c (hand_function_call): Update. Call
2311 generic_push_dummy_frame directly.
2312 * vax-tdep.c (vax_gdbarch_init): Update.
2313 * sparc-tdep.c (sparc_gdbarch_init): Update.
2314 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2315 * m68k-tdep.c (m68k_gdbarch_init): Update.
2316 * hppa-tdep.c (hppa_gdbarch_init): Update.
2317 * alpha-tdep.c (alpha_gdbarch_init): Update.
2318 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2319 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2320 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
2321 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
2322 push_dummy_frame to generic_push_dummy_frame.
2323 * v850-tdep.c (v850_gdbarch_init): Ditto.
2324 * sh-tdep.c (sh_gdbarch_init): Ditto.
2325 * s390-tdep.c (s390_gdbarch_init): Ditto.
2326 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2327 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2328 * mips-tdep.c (mips_gdbarch_init): Ditto.
2329 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2331 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2332 * i386-tdep.c (i386_gdbarch_init): Ditto.
2333 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2334 * frv-tdep.c (frv_gdbarch_init): Ditto.
2335 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2336 * cris-tdep.c (cris_gdbarch_init): Ditto.
2337 * avr-tdep.c (avr_gdbarch_init): Ditto.
2338 * arm-tdep.c (arm_gdbarch_init): Ditto.
2339
2340 2003-02-26 Kevin Buettner <kevinb@redhat.com>
2341
2342 * mips-tdep.c (show_mips_abi): New function.
2343 (_initialize_mips_tdep): Use show_mips_abi() to implement the
2344 command ``show mips abi''.
2345
2346 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
2347
2348 From Elena Zannoni <ezannoni@redhat.com>
2349 * dbxread.c (process_one_symbol): Only record line 0 if one or
2350 more sline entries have been seen for the function.
2351
2352 2003-02-26 Michael Chastain <mec@shout.net>
2353
2354 * configure: Regenerate with autoconf 000227.
2355
2356 2003-02-26 Michael Chastain <mec@shout.net>
2357
2358 Close PR build/660.
2359 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
2360 for old libc5/glibc.
2361 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
2362
2363 2003-02-26 Kris Warkentin <kewarken@qnx.com>
2364
2365 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
2366 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
2367
2368 2003-02-26 Michael Chastain <mec@shout.net>
2369
2370 * configure.in: New variable HAVE_UINTPTR_T.
2371 * configure, config.in: Regenerated.
2372
2373 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
2374
2375 Fix PR build/1097.
2376 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
2377
2378 2003-02-25 Andrew Cagney <cagney@redhat.com>
2379
2380 * frame.c (get_prev_frame): Add comment on check for
2381 inside_entry_func. Only check for inside_entry_file when not a
2382 dummy and not a sentinel. Check that the new frame is not inner
2383 to the old frame.
2384
2385 2003-02-25 Andrew Cagney <cagney@redhat.com>
2386
2387 * frame.c (frame_debug): New variable.
2388 (_initialize_frame): Add "set/show debug frame" command.
2389 (get_prev_frame): When frame_debug, print reason why unwind
2390 failed.
2391
2392 2003-02-25 Michael Chastain <mec@shout.net>
2393
2394 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
2395 to avoid uintptr_t definition problems.
2396
2397 2003-02-25 David Carlton <carlton@math.stanford.edu>
2398
2399 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
2400 (SYMBOL_LINKAGE_NAME): Ditto.
2401 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
2402 SYMBOL_LINKAGE_NAME.
2403 (struct general_symbol_info): Expand comment.
2404 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
2405 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
2406 (SYMBOL_MATCHES_REGEXP): Ditto.
2407 * symtab.c (symbol_natural_name): New function.
2408 * objfiles.h: Replace all uses of SYMBOL_NAME by
2409 DEPRECATED_SYMBOL_NAME.
2410 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
2411 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
2412 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
2413 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
2414 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
2415 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
2416 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
2417 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
2418 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
2419 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
2420 * ada-exp.y: Ditto.
2421 * ada-exp.y: Update copyright.
2422 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
2423 * cp-valprint.c: Ditto.
2424
2425 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
2426
2427 * infptrace.c (detach): Do not flag error if ptrace detach fails
2428 and errno is set to ESRCH.
2429
2430 2003-02-24 Andrew Cagney <cagney@redhat.com>
2431
2432 * infptrace.c (udot_info): Change type of udot_off to long. Use
2433 paddr when printing udot_off's value.
2434
2435 2003-02-24 David Carlton <carlton@math.stanford.edu>
2436
2437 * symtab.c (make_symbol_overload_list): Only read in partial
2438 symtabs containing a matching partial symbol.
2439
2440 2003-02-24 David Carlton <carlton@math.stanford.edu>
2441
2442 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
2443 do the comparison, not strcmp.
2444 * symfile.c (compare_psymbols): Ditto.
2445 * defs.h: Declare strcmp_iw_ordered.
2446 * utils.c (strcmp_iw_ordered): New function.
2447
2448 2003-02-24 Jim Blandy <jimb@redhat.com>
2449
2450 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
2451 support, shared libs): Remove my name from here, to better reflect
2452 reality.
2453
2454 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2455
2456 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
2457 (target_ops): Add to_have_continuable_watchpoint.
2458 * target.c (update_current_target): Add INHERIT line for
2459 to_have_continuable_watchpoint.
2460 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
2461 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
2462 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
2463 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
2464
2465 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
2466
2467 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
2468 maintainership.
2469
2470 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2471
2472 * solib.c (solib_open): Call target defined search function after
2473 failing with solib-search-path.
2474 * solist.h (target_so_ops): Add find_and_open_solib function hook and
2475 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2476
2477 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2478
2479 * MAINTAINERS: Add myself to Write After section.
2480
2481 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
2482
2483 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
2484
2485 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
2486
2487 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
2488 (m68hc11_add_reggroups): New function.
2489 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
2490 (m68hc11_gdbarch_init): Install the reggroups.
2491 (_initialize_m68hc11_tdep): Initialize them.
2492
2493 2003-02-21 James E Wilson <wilson@tuliptree.org>
2494
2495 * MAINTAINERS: Update my email address.
2496
2497 2003-02-21 David Carlton <carlton@math.stanford.edu>
2498
2499 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
2500
2501 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
2502
2503 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
2504 * symtab.h: Add opaque declarations of struct axs_value and
2505 struct agent_expr.
2506 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
2507 (struct location_funcs): New type.
2508 (struct symbol): Add "loc" to aux_value.
2509 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
2510 * dwarf2read.c: Include "dwarf2expr.h".
2511 (dwarf2_symbol_mark_computed): New function.
2512 (read_func_scope): Use it.
2513 (var_decode_location): New function.
2514 (new_symbol): Use it.
2515 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
2516
2517 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
2518 (dwarf2expr_h, dwarf2loc_h): New variables.
2519 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
2520 (dwarf2expr.o, dwarf2loc.o): New rules.
2521 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
2522 * buildsym.c (finish_block): Handle LOC_COMPUTED and
2523 LOC_COMPUTED_ARG.
2524 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2525 * m2-exp.y (yylex): Likewise.
2526 * printcmd.c (address_info, print_frame_args): Likewise.
2527 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
2528 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2529 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
2530 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
2531 * symtab.c (lookup_block_symbol): Likewise.
2532
2533 2003-02-20 Adam Fedor <fedor@gnu.org>
2534
2535 * symtab.h: Remove objc_specific struct
2536 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
2537 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
2538 Have language_objc use cplus_specific struct.
2539
2540 2003-02-20 Tom Tromey <tromey@redhat.com>
2541
2542 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
2543 TYPE_NAME, when printing a String value. PR java/1075.
2544
2545 2003-02-20 Adam Fedor <fedor@gnu.org>
2546
2547 * objc-lang.h (find_methods): Remove declaration.
2548 * objc-lang.c (find_methods): Make static.
2549
2550 2003-02-20 Christopher Faylor <cgf@redhat.com>
2551
2552 * win32-nat.c (get_image_name): Check return value from
2553 ReadProcessMemory.
2554 (child_xfer_memory): Ditto.
2555
2556 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2557
2558 * configure.in (TARGET_SYSTEM_ROOT): Set default to
2559 ${exec_prefix}/${target_alias}/sys-root. Match explicit
2560 '${exec_prefix}' (in addition to the expansion thereof) as
2561 relocatable.
2562 * configure: Rebuilt.
2563
2564 2003-02-20 David Carlton <carlton@math.stanford.edu>
2565
2566 * symtab.c (search_symbols): Revert the search_symbols part of my
2567 2002-12-23 patch. Add comment.
2568
2569 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2570
2571 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
2572 * dbxread.c (elfstab_build_psymtabs): Don't call
2573 install_minimal_symbols.
2574 (stabsect_build_psymtabs): Likewise.
2575 * elfread.c (elf_symfile_read): Call install_minimal_symbols
2576 earlier.
2577 * somread.c (som_symfile_read): Call install_minimal_symbols
2578 and do_cleanups earlier.
2579 * nlmread.c (nlm_symfile_read): Likewise.
2580 * mdebugread.c (elfmdebug_build_psymtabs): Call
2581 install_minimal_symbols and make appropriate cleanups.
2582
2583 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2584
2585 * solib.c (reload_shared_libraries): New function.
2586 (_initialize_solib): Add callbacks for ``set solib-search-path''
2587 and ``set solib-absolute-prefix''.
2588
2589 2003-02-20 David Carlton <carlton@math.stanford.edu>
2590
2591 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
2592 expand comment.
2593 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
2594 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
2595 * ada-typeprint.c (ada_typedef_print): Ditto.
2596 * ax-gdb.c (gen_var_ref): Ditto.
2597 * breakpoint.c (print_one_breakpoint): Ditto.
2598 * buildsym.c (finish_block): Ditto.
2599 * c-valprint.c (c_val_print): Ditto.
2600 * expprint.c (print_subexp): Ditto.
2601 * findvar.c (locate_var_value): Ditto.
2602 * infcmd.c (jump_command): Ditto.
2603 * linespec.c (decode_line_2, decode_compound): Ditto.
2604 * maint.c (maintenance_translate_address): Ditto.
2605 * objc-lang.c (compare_selectors, compare_classes): Ditto.
2606 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
2607 Ditto.
2608 * p-valprint.c (pascal_val_print): Ditto.
2609 * stabsread.c (define_symbol): Ditto.
2610 * stack.c (print_frame, frame_info, print_block_frame_locals)
2611 (print_frame_arg_vars, return_command): Ditto.
2612 * symfile.c (compare_symbols, compare_psymbols): Ditto.
2613 * symmisc.c (print_symbol): Ditto.
2614 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
2615 (compare_search_syms, print_symbol_info, print_msymbol_info)
2616 (rbreak_command): Ditto.
2617 * tracepoint.c (tracepoints_info): Ditto.
2618 * typeprint.c (typedef_print): Ditto.
2619 * valops.c (value_of_variable, hand_function_call): Ditto.
2620 * cli/cli-cmds.c (edit_command, list_command): Ditto.
2621 * ada-typeprint.c: Update Copyright.
2622 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
2623 * tracepoint.c, cli/cli-cmds.c: Ditto.
2624
2625 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2626
2627 * frame.c (generic_unwind_get_saved_register): Make non-static.
2628 * frame.h (generic_unwind_get_saved_register): Declare.
2629 * mips-tdep.c (read_next_frame_reg): Fetch register from
2630 current regcache when frame is NULL.
2631 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
2632 that must be NULL.
2633 (mips_get_saved_register): Call generic_unwind_get_saved_register()
2634 instead of frame_register_unwind().
2635
2636 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2637
2638 * remote-sim.c (gdbsim_insert_breakpoint)
2639 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
2640 code.
2641
2642 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2643
2644 * remote.c (_initialize_remote): Add commands "set/show remote
2645 hardware-watchpoint-limit" and "set/show remote
2646 hardware-breakpoint-limit".
2647 (remote_hw_watchpoint_limit): Initialize to -1.
2648 (remote_hw_breakpoint_limit): Ditto.
2649 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
2650
2651 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
2652
2653 * coff-pe-read.c: New file - support reading of minimal symbols from a
2654 portable executable using the export table.
2655 * coff-pe-read.h: New file.
2656 * coffread.c: Include coff-pe-read.h.
2657 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
2658 debugging symbols found.
2659 * Makefile.in (SFILES): Add coff-pe-read.o.
2660 (coff_pe_read_h): Define.
2661 (COMMON_OBS): Add coff-pe-read.o.
2662 (coffread.o): Add coff_pe_read_h dependency.
2663 (coff-pe-read.o): New target.
2664
2665 2003-02-19 David Carlton <carlton@math.stanford.edu>
2666
2667 * Makefile.in (SFILES): Add block.c.
2668 (block_h): New.
2669 (COMMON_OBS): Add block.o.
2670 (block.o): New.
2671 (x86-64-tdep.o): Add $(block_h).
2672 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
2673 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
2674 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
2675 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
2676 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
2677 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
2678 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
2679 * value.h: Add opaque declaration for struct block.
2680 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
2681 * ada-lang.h: Ditto.
2682 * x86-64-tdep.c: #include "block.h"
2683 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
2684 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
2685 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
2686 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
2687 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
2688 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
2689 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
2690 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
2691 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
2692 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
2693 * symtab.c (block_function): Ditto.
2694 (contained_in): Ditto.
2695 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
2696 block.h. Add opaque declaration for struct block.
2697 * symtab.h: Move block_function and contained_in declarations to
2698 block.h. Add opaque declarations for struct block, struct
2699 blockvector.
2700 (struct block): Move to block.h.
2701 (struct blockvector): Ditto.
2702 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2703 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2704 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2705 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2706 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2707 Ditto.
2708 * block.c: New file.
2709 * block.h: New file.
2710
2711 2003-02-19 Theodore A. Roth <troth@openavr.org>
2712
2713 * avr-tdep.c (avr_extract_return_value): Remove function.
2714 (avr_store_return_value): Remove function.
2715 (avr_extract_struct_value_address): Remove function.
2716 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2717
2718 2003-02-19 Andrew Cagney <ac131313@redhat.com>
2719
2720 * rs6000-tdep.c: Include "gdb_assert.h".
2721 (registers_e500): Add "acc" and "spefscr".
2722 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2723 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2724 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
2725 really is "r0".
2726 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2727
2728 2003-02-18 Keith Seitz <keiths@redhat.com>
2729
2730 * Makefile.in: Add gdbtk-interps.c.
2731
2732 2003-02-18 Kevin Buettner <kevinb@redhat.com>
2733
2734 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2735 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2736
2737 2003-02-18 Andrew Cagney <cagney@redhat.com>
2738
2739 * symtab.h (struct objfile): Add opaque declaration.
2740
2741 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
2742
2743 From Jim Ingham <jingham@apple.com>:
2744 * dbxread.c (process_one_symbol): Use last_function_start rather
2745 than function_start_offset to find the real beginning of the
2746 current function. The latter is just the text section offset on
2747 some systems, the former is always the real function start.
2748
2749 2003-02-17 Andrew Cagney <cagney@redhat.com>
2750
2751 * configure.in: Revert ${target} != ${host}.
2752
2753 2003-02-17 Andrew Cagney <ac131313@redhat.com>
2754
2755 * configure.in (Makefile): Use the test ${target} != ${host},
2756 instead of the absence of the "nm.h" file, to determine of the
2757 configuration non-native.
2758 * configure: Regenerate.
2759
2760 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
2761
2762 From Brian Ford <ford@vss.fsi.com>
2763
2764 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2765 conditionalize tui_active test.
2766 (lookup_cmd_1): Ditto.
2767
2768 2003-02-14 Mark Kettenis <kettenis@gnu.org>
2769
2770 * configure.in: Add check for _etext.
2771 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2772 available.
2773 * config.in, configure: regenerated.
2774
2775 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
2776
2777 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2778
2779 2003-02-14 Andrew Cagney <ac131313@redhat.com>
2780
2781 * main.c (tui_version): Delete variable.
2782 (captured_main): When --tui, set interpreter_p to "tui" instead of
2783 enabling tui_version.
2784 * printcmd.c (display_command) [TUI]: Test tui_active instead of
2785 tui_version.
2786 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2787 * cli/cli-cmds.c (disassemble_command): Ditto.
2788 * defs.h (tui_version): Delete declaration.
2789 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2790 (tui-interp.o): Add rules.
2791 (SUBDIR_TUI_OBS): Add "tui-interp.o".
2792
2793 2003-02-14 Christopher Faylor <cgf@redhat.com>
2794
2795 * win32-nat.c (register_loaded_dll): Correctly set address range for
2796 just-loaded dll.
2797
2798 2003-02-12 Jason Molenda (jmolenda@apple.com)
2799
2800 * symmisc.c (print_objfile_statistics): Include information about
2801 the number of psymtabs and symtabs in each object file.
2802
2803 2003-02-13 Keith R Seitz <keiths@redhat.com>
2804
2805 * main.h (struct captured_main_args): Add interpreter_p.
2806 * main.c (captured_main): Initialize interpreter_p from context.
2807 * gdb.c (main): Set interpreter_p argument.
2808 * Makefile.in (gdb.o): Add dependency for interps.h.
2809
2810 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2811
2812 * event-top.c (cli_command_loop): Delete declaration.
2813 (_initialize_event_loop): Delete function setting event_loop_hook.
2814 * event-top.h (cli_command_loop): Declare. Update copyright.
2815 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
2816 * interps.c (current_interp_command_loop): When event_loop_p, call
2817 cli_command_loop.
2818
2819 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2820
2821 * interps.h (interp_command_loop_ftype): Change return type to
2822 void.
2823
2824 2003-02-12 Michal Ludvig <mludvig@suse.cz>
2825
2826 * x86-64-tdep.c (x86_64_extract_return_value)
2827 (x86_64_store_return_value): Use regcache instead of regbuf.
2828 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2829 * x86-64-linux-nat.c (fill_gregset): Use regcache.
2830
2831 2003-02-11 Andrew Cagney <ac131313@redhat.com>
2832
2833 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2834 * aclocal.m4: Regenerate.
2835 * configure: Regenerate.
2836
2837 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2838 TCL_LD_SEARCH_FLAGS.
2839
2840 2003-02-10 Michal Ludvig <mludvig@suse.cz>
2841
2842 * dwarf2cfi.c: Reindented.
2843
2844 2003-02-09 Andrew Cagney <ac131313@redhat.com>
2845
2846 * interps.c (clear_interpreter_hooks): Convert function definition
2847 to ISO C.
2848
2849 2003-02-07 David Carlton <carlton@math.stanford.edu>
2850
2851 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2852
2853 2003-02-07 Kevin Buettner <kevinb@redhat.com>
2854
2855 * gdbtypes.h (struct main_type): Move ``length'' field from here...
2856 (struct type): ...to here.
2857 (TYPE_LENGTH): Adjust to reflect different location of ``length''
2858 field.
2859 * gdbtypes.c (make_qualified_type): Set length on newly created type.
2860 (replace_type): Set length on all type variants for a given type.
2861
2862 2003-02-07 Andrew Cagney <ac131313@redhat.com>
2863
2864 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2865 <sys/stat.h>.
2866 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2867
2868 2003-02-06 Andrew Cagney <ac131313@redhat.com>
2869
2870 * Makefile.in (symm-nat.o): Update dependencies.
2871 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2872 (lynx-nat.o, ia64-linux-nat.): Ditto.
2873 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2874 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2875 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2876
2877 * Makefile.in (inflow_h): Define.
2878 (procfs.o, inflow.o, procfs.o): Update dependencies.
2879 * inftarg.c (child_stop): Delete extern declaration of
2880 inferior_process_group. Include "inflow.h".
2881 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
2882 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2883 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
2884 (our_process_group, inferior_process_group): Extern declarations.
2885
2886 * procfs.c: Include "gdb_assert.h".
2887
2888 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2889 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2890 * jv-typeprint.c (java_type_print_base): Ditto.
2891 * typeprint.c (typedef_print): Eliminate STREQ.
2892 * cli/cli-script.c (define_command, define_command): Ditto.
2893 * main.c (captured_main): Ditto.
2894 * values.c (lookup_internalvar): Ditto.
2895 * utils.c (safe_strerror, parse_escape): Eliminate assignment
2896 within `if' conditional.
2897 * linespec.c (decode_line_2): Ditto.
2898 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2899 (bfd_openw_with_cleanup): Ditto.
2900
2901 2003-02-07 Mark Kettenis <kettenis@gnu.org>
2902
2903 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2904 legacy_extract_return_value and store_return_value to
2905 legacy_return_value.
2906
2907 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
2908
2909 * win32-nat.c (get_relocated_section_addrs): New function. Find
2910 section load addresses for symbol handling in relocated DLLs.
2911 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2912
2913 2003-02-05 Fred Fish <fnf@intrinsity.com>
2914
2915 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2916 '=' and '!='.
2917 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2918 with '&' and '=='.
2919 (angel_RDI_info): Ditto.
2920 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2921 with '&' and '!='.
2922 (threads_continue_all_with_signals): Ditto.
2923
2924 2003-02-05 Jim Ingham <jingham@apple.com>
2925 Keith Seitz <keiths@redhat.com>
2926 Elena Zannoni <ezannoni@redhat.com>
2927 Andrew Cagney <ac131313@redhat.com>
2928
2929 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2930 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2931 (SUBDIR_MI_OBS): Add "mi-interp.o".
2932 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2933 (SFILES): Add "interps.c".
2934 (COMMON_OBS): Add "interps.o".
2935 (interps_h, mi_main_h): Define.
2936 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2937 (mi-main.o, main.o, event-top.o): Update dependencies.
2938 * cli/cli-interp.c: New file.
2939 * interps.h, interps.c: New files.
2940 * top.c: (gdb_init): Don't install the default interpreter, handed
2941 by captured_main.
2942 * main.c: Include "interps.h".
2943 (interpreter_p): Note that it should malloc'ed.
2944 (captured_command_loop): Call current_interp_command_loop.
2945 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2946 xfree and xstrdup when updating interpreter_p. Install the
2947 default interpreter. Add hack to stop mi1's copyright notice
2948 being encoded.
2949 * event-top.h (gdb_setup_readline): Declare.
2950 (gdb_disable_readline): Declare.
2951 * event-top.c: Include "interps.h".
2952 (display_gdb_prompt): Call current_interp_display_prompt_p.
2953 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2954 gdb_stdlog, and gdb_stdtarg.
2955 (_initialize_event_loop): Don't call gdb_setup_readline.
2956 * cli-out.c (cli_out_set_stream): New function.
2957 * cli-out.h (cli_out_set_stream): Declare.
2958
2959 2003-02-06 Mark Kettenis <kettenis@gnu.org>
2960
2961 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2962 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2963 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2964 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2965 config/i386/i386v42mp.mt: Removed.
2966
2967 2003-02-05 Mark Kettenis <kettenis@gnu.org>
2968
2969 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2970 GDB_OSABI_SOLARIS.
2971
2972 2003-02-05 Michael Chastain <mec@shout.net>
2973
2974 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2975 2.12.1 and earlier versions.
2976
2977 2003-02-05 Andrew Cagney <ac131313@redhat.com>
2978
2979 Remove orphaned hosts, targets and files.
2980 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2981 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2982 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2983 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2984 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2985 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2986 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2987 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2988 * config/sparc/tm-sp64sim.h: Delete.
2989 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2990 hosts.
2991 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2992 mips*-dec-mach3* targets.
2993
2994 2003-02-04 Michael Chastain <mec@shout.net>
2995
2996 * NEWS: Fix typo: sepcifying -> specifying.
2997
2998 2003-02-04 Michael Chastain <mec@shout.net>
2999
3000 * dwarfread.c: Add documentation on the state of dwarf-1,
3001 looking towards obsoletion.
3002
3003 2003-02-03 Michael Chastain <mec@shout.net>
3004
3005 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
3006 gdb/testsuite/gdb.c++/pr-1023.exp.
3007
3008 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3009
3010 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
3011 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
3012
3013 * utils.c (init_page_info): Delete reference to MPW in comments.
3014 * main.c (captured_main): Delete #ifdef MPW.
3015
3016 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3017
3018 * NEWS: Note that the m32r-*-elf* is obsolete.
3019 * monitor.c (monitor_expect): Obsolete reference to m32r.
3020 * configure.tgt: Mark m32r-*-elf* as obsolete.
3021 * MAINTAINERS: Mark m32k as obsolete.
3022 * m32r-rom.c: Obsolete file.
3023 * config/m32r/m32r.mt: Obsolete file.
3024 * config/m32r/tm-m32r.h: Obsolete file.
3025 * m32r-stub.c: Obsolete file.
3026 * m32r-tdep.c: Obsolete file.
3027
3028 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3029
3030 * NEWS: Mention that the z8k-zilog-none is obsolete.
3031 * MAINTAINERS: Mark z8k as obsolete.
3032 * configure.tgt: Obsolete the z8k-*-coff* target.
3033 * config/z8k/z8k.mt: Obsolete file.
3034 * config/z8k/tm-z8k.h: Obsolete file.
3035 * z8k-tdep.c: Obsolete file.
3036
3037 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3038
3039 * NEWS: Mention that the mn10200-elf is obsolete.
3040 * configure.tgt: Obsolete mn10200-*-* target.
3041 * breakpoint.c (update_breakpoints_after_exec): Update comment to
3042 mention that the mn10200 is obsolete.
3043 * breakpoint.h: Ditto.
3044 * MAINTAINERS: Mark the mn10200-elf as obsolete.
3045 * config/mn10200/mn10200.mt: Obsolete file.
3046 * config/mn10200/tm-mn10200.h: Obsolete file.
3047 * mn10200-tdep.c: Obsolete file.
3048
3049 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3050
3051 * MAINTAINERS: Mark h8500 as obsolete.
3052 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
3053 * findvar.c (value_from_register): Ditto.
3054 * h8500-tdep.c: Mark file as obsolete.
3055 * config/h8500/h8500.mt: Ditto.
3056 * config/h8500/tm-h8500.h: Ditto.
3057 * NEWS: Mention that h8500 is obsolete.
3058
3059 2003-02-04 David Carlton <carlton@math.stanford.edu>
3060
3061 * objfiles.c (allocate_objfile): Always set name. Add comment at
3062 start of function.
3063 * jv-lang.c (get_dynamics_objfile): Add comment.
3064
3065 2003-02-04 David Carlton <carlton@math.stanford.edu>
3066
3067 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
3068 * printcmd.c (build_address_symbolic): Replace uses of
3069 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
3070 SYMBOL_NAME, and asm_demangle.
3071 Update copyright.
3072
3073 2003-02-04 David Carlton <carlton@math.stanford.edu>
3074
3075 * linespec.c (decode_compound): Extract code into
3076 lookup_prefix_sym.
3077 (lookup_prefix_sym): New function.
3078
3079 2003-02-04 David Carlton <carlton@math.stanford.edu>
3080
3081 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
3082 FLOAT_COERCION_BADNESS.
3083 * gdbtypes.c (rank_one_type): Replace all uses of
3084 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
3085
3086 2003-02-04 Jim Blandy <jimb@redhat.com>
3087
3088 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
3089 section, let dwarf_macinfo_section point to it, not
3090 dwarf_loc_section.
3091
3092 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
3093
3094 Pointed out by Anton Blanchard <anton@samba.org>.
3095 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
3096 (ppc_linux_at_sigtramp_return_path): Use it.
3097
3098 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
3099
3100 * defs.h (streq): Add prototype.
3101 * utils.c (streq): New function.
3102
3103 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
3104 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
3105 * mdebugread.c (new_symbol): Likewise.
3106 * stabsread.c (define_symbol): Likewise.
3107 * coffread.c (process_coff_symbol): Likewise.
3108 * dwarfread.c (new_symbol): Likewise.
3109
3110 * minsyms.c (prim_record_minimal_symbol_and_info): Use
3111 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
3112 here.
3113 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
3114 SYMBOL_INIT_DEMANGLED_NAME.
3115 * objfiles.c: Include "hashtab.h".
3116 (allocate_objfile): Call htab_set_functions_ex for the
3117 demangled_names_hash.
3118 (free_objfile): Call htab_delete for the demangled_names_hash.
3119 * objfiles.h (struct htab): Add declaration.
3120 (struct objfile): Add demangled_names_hash.
3121 * symfile.c: Include "hashtab.h".
3122 (reread_symbols): Call htab_delete for the demangled_names_hash.
3123 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
3124 SYMBOL_NAME in the bcache.
3125 * symtab.c: Include "hashtab.h". Update comments.
3126 (create_demangled_names_hash, symbol_set_names): New functions.
3127 (symbol_find_demangled_name): New function, broken out from
3128 symbol_init_demangled_names.
3129 (symbol_init_demangled_names): Use it.
3130 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
3131 (SYMBOL_SET_NAMES): New macro.
3132 (symbol_set_names): Add prototype.
3133
3134 2003-02-03 Jim Blandy <jimb@redhat.com>
3135
3136 Use a single, consistent representation for an empty minimal
3137 symbol table in an objfile.
3138 * objfiles.c (terminate_minimal_symbol_table): New function.
3139 (allocate_objfile): Call it.
3140 * objfiles.h (terminate_minimal_symbol_table): New declaration.
3141 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
3142 non-NULL.
3143 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
3144 objfile has minimal symbols, compare minimal_symbol_count to zero,
3145 instead of comparing msymbols with NULL.
3146 * objfiles.c (have_minimal_symbols): Same.
3147 * solib-sunos.c (solib_add_common_symbols): Call
3148 terminate_minimal_symbol_table.
3149 * symfile.c (reread_symbols): Same.
3150
3151 2003-02-03 Kevin Buettner <kevinb@redhat.com>
3152
3153 * s390-tdep.c (s390_address_class_type_flags)
3154 (s390_address_class_type_flags_to_name)
3155 (s390_address_class_name_to_type_flags): New functions.
3156 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
3157 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
3158
3159 2003-02-03 Michael Snyder <msnyder@redhat.com>
3160
3161 * arm-tdep.c: Fix spell-o in comment.
3162
3163 2003-02-03 Michal Ludvig <mludvig@suse.cz>
3164
3165 * dwarf2cfi.c (pointer_encoding): Added new parameter.
3166 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
3167 error messages to contain BFD filename.
3168
3169 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
3170
3171 Fix PR gdb/742 gdb/743 gdb/877
3172 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
3173 (do_mixed_source_and_assembly): Use
3174 make_cleanup_ui_out_tuple_begin_end and
3175 make_cleanup_ui_out_tuple_begin_end.
3176 (do_mixed_source_and_assembly): Ditto.
3177 * thread.c (do_captured_list_thread_ids): Ditto.
3178 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
3179 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
3180 ui_out_tuple_end): Delete prototypes.
3181 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
3182 ui_out_list_end, ui_out_tuple_end): Delete.
3183
3184 From Kevin Buettner <kevinb@redhat.com>:
3185 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
3186 * ui-out.c (make_cleanup_ui_out_table_begin_end)
3187 (do_cleanup_table_end): New functions.
3188 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
3189 Use cleanups to invoke_ui_out_tuple_end().
3190 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3191 * cli/cli-setshow.c (cmd_show_list): Use
3192 make_cleanup_ui_out_tuple_begin_end.
3193
3194 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3195
3196 * frame.c (frame_unwind_register): New function.
3197 (frame_unwind_unsigned_register): Use.
3198 (frame_unwind_signed_register): Use.
3199 (frame_read_register): New function.
3200 * frame.h (frame_unwind_register): Declare.
3201 (frame_read_register): Declare.
3202
3203 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
3204 and frame_unwind_register instead of read_memory, write_register
3205 and deprecated_write_register_bytes.
3206
3207 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3208
3209 * frame.h: Note that namelen can be negative.
3210 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
3211 NAME's length.
3212
3213 * NEWS: Mention that the d10v's `regs' command is deprecated.
3214 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
3215 (d10v_print_registers_info): New function.
3216 (show_regs): Call d10v_print_registers_info.
3217 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
3218
3219 2003-02-02 Mark Kettenis <kettenis@gnu.org>
3220
3221 * stack.c (print_frame_info): Restore call to annotate_frame_begin
3222 lost in the previous patch.
3223
3224 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3225
3226 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
3227 * stack.c (print_frame_info_base): Output complete FRAME tuple
3228 for synthesized frames.
3229
3230 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3231
3232 * mips-nat.c (zerobuf): Delete.
3233 (fetch_inferior_registers): Alloc local zerobuf.
3234 (fetch_core_registers): Alloc local zerobuf.
3235 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
3236 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
3237 * thread-db.c (thread_db_store_registers): Ditto.
3238 * sh-tdep.c (sh_do_register): Ditto.
3239 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3240 * remote-sim.c (gdbsim_store_register): Ditto.
3241 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3242 * remote-e7000.c (fetch_regs_from_dump): Ditto.
3243 * monitor.c (monitor_supply_register): Ditto.
3244 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
3245 * mips-nat.c (fetch_inferior_registers): Ditto.
3246 * m68klinux-nat.c (fetch_register): Ditto.
3247 * lynx-nat.c (fetch_inferior_registers): Ditto.
3248 (fetch_inferior_registers): Ditto.
3249 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
3250 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3251 (hpux_thread_store_registers): Ditto.
3252 * hppah-nat.c (fetch_register): Ditto.
3253 * hppab-nat.c (fetch_register): Ditto.
3254 * hppa-tdep.c (pa_register_look_aside): Ditto.
3255 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
3256 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
3257
3258 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3259
3260 * gdbarch.sh: Explictly specify all method levels. When a
3261 variable with an empty level, provide a non-multi-arch default.
3262 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
3263 * gdbarch.h: Re-generate.
3264 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
3265 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
3266
3267 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3268
3269 * defs.h (host_pointer_to_address): Delete declaration.
3270 (address_to_host_pointer): Delete declaration.
3271 * utils.c (host_pointer_to_address): Delete function.
3272 (address_to_host_pointer): Delete function.
3273 * procfs.c (procfs_address_to_host_pointer): New function.
3274 * procfs.c (proc_set_watchpoint): Use.
3275 (procfs_can_use_hw_breakpoint): Update comments.
3276 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
3277 (som_solib_add): Use.
3278 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
3279 * hppa-tdep.c (unwind_command): Use.
3280
3281 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3282
3283 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
3284 strlen d_name.
3285
3286 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
3287 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
3288 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
3289 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
3290 (define_symbol): Update.
3291 * symfile.c (generic_load): Remove references to nindy.
3292 * symtab.c: Remove references to nindy.
3293
3294 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3295
3296 * infcmd.c (print_float_info): Delete code conditional on
3297 FLOAT_INFO.
3298 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
3299 * config/m68k/nm-apollo68b.h: Ditto.
3300 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
3301 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
3302 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
3303
3304 2003-02-01 Mark Kettenis <kettenis@gnu.org>
3305
3306 * config/i386/tm-i386os9k.h: Removed.
3307
3308 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
3309 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
3310 they're identical to i[3456]86-*-sysv* now.
3311 * config/i386/i386v32.mh: Removed.
3312 * config/i386/xm-i386v32.h: Removed.
3313 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
3314
3315 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
3316
3317 * config/i386/i386dgux.mh: Removed.
3318 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
3319
3320 * configure.in: Fix typo.
3321 * configure: Regenerated.
3322
3323 2003-01-31 David Carlton <carlton@math.stanford.edu>
3324
3325 * dwarf2read.c (dwarf2_locate_sections): Set
3326 dwarf_ranges_section.
3327
3328 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3329
3330 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
3331 * utils.c: Update comments documenting legitimate uses of PTR.
3332
3333 * utils.c: Re-indent.
3334
3335 * config/djgpp/fnchange.lst: Delete nindy files.
3336 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
3337 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
3338 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
3339 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
3340 * nindy-share/README, nindy-share/Onindy.c: Delete files.
3341 * nindy-tdep.c, nindy-share/Makefile: Delete files.
3342 * Makefile.in (init.c): Remove nindy references.
3343 (saber_gdb): Delete rule.
3344 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
3345 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
3346 and a68v-nat.c.
3347 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
3348 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
3349 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
3350 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
3351 nindy-share/stop.h.
3352 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
3353 * saber.suppress: Delete file.
3354
3355 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
3356
3357 * dbxread.c (stabs_data): New static variable.
3358 (fill_symbuf): Support an in-memory buffer for stabs data.
3359 (stabs_seek): New function.
3360 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
3361 (read_ofile_symtab): Use stabs_seek.
3362 (elfstab_build_psymtabs): Take an asection* instead of
3363 an offset and size. Relocate the stabs data if necessary.
3364 Save the section* for dbx_psymtab_to_symtab.
3365 * dwarf2read.c: Add section variables for each debug section.
3366 (dwarf2_locate_sections): Fill them in.
3367 (dwarf2_read_section): Take an asection* argument.
3368 Relocate the section contents if necessary.
3369 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
3370 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
3371 it to dwarf2_read_section.
3372 (dwarf2_build_frame_info): Update callers.
3373 * elfread.c (elf_symfile_read): Update call to
3374 elfstab_build_psymtabs.
3375 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
3376 (DBX_STAB_SECTION): New macro.
3377 * stabsread.h (elfstab_build_psymtabs): Update prototype.
3378 * symfile.c (symfile_dummy_outputs): New function.
3379 (symfile_relocate_debug_section): New function.
3380 * symfile.h (symfile_relocate_debug_section): Add prototype.
3381
3382 2003-01-31 Richard Henderson <rth@redhat.com>
3383
3384 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
3385 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
3386 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
3387 * alpha-tdep.c (alpha_register_name): Add "unique".
3388 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
3389 (ALPHA_UNIQUE_REGNUM): New.
3390 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
3391
3392 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3393
3394 * README: Remove reference to Ericsson 1800 monitor.
3395 * Makefile.in (remote-es.o): Delete rule.
3396 (ALLDEPFILES): Delete remote-es.c.
3397 * remote-es.c: Delete file.
3398 * config/m68k/es1800.mt: Delete file.
3399 * config/djgpp/fnchange.lst: Update.
3400 * configure.tgt: Delete m68*-ericsson-* target.
3401
3402 2003-01-31 Adam Fedor <fedor@gnu.org>
3403
3404 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
3405 Remove duplicate/shadowing variable of same name.
3406
3407 2003-01-30 Jim Blandy <jimb@redhat.com>
3408
3409 * symfile.c (find_separate_debug_file): Assert that the objfile's
3410 directory name we compute ends with a slash, and then assume that
3411 that's so everywhere we use it.
3412
3413 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
3414
3415 * valops.c (value_assign): Flush frame cache after stores to memory
3416 also.
3417
3418 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3419
3420 * Makefile.in (mon960-rom.o): Delete rule.
3421 * mon960-rom.c: Delete file.
3422
3423 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3424
3425 * d10v-tdep.c: Include "frame-unwind.h".
3426 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
3427 list.
3428 (next_addr, uses_frame): Delete.
3429 (struct d10v_unwind_cache): Define.
3430 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
3431 Use info instead of next_addr and uses_frame globals.
3432 (d10v_frame_init_saved_regs): Delete function.
3433 (d10v_init_extra_frame_info): Delete function.
3434 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
3435 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
3436 init_frame_pc or frame_saved_pc.
3437 (d10v_pop_frame): Delete function.
3438 (do_d10v_pop_frame): Delete function.
3439 (d10v_frame_chain): Delete function.
3440 (d10v_frame_chain_valid): Delete function.
3441 (d10v_frame_pc_unwind): New function.
3442 (d10v_frame_id_unwind): New function.
3443 (saved_regs_unwinder): New function.
3444 (d10v_frame_register_unwind): New function.
3445 (d10v_frame_pop): New function.
3446 (d10v_frame_unwind): New variable.
3447 (d10v_frame_p): New function.
3448 (d10v_frame_saved_pc): Delete function.
3449 * Makefile.in (d10v-tdep.o): Update dependencies.
3450
3451 2003-01-30 J. Brobecker <brobecker@gnat.com>
3452
3453 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
3454 causing some regressions due to a change in the default value
3455 for this macro.
3456
3457 2003-01-29 Richard Henderson <rth@redhat.com>
3458 Elena Zannoni <ezannoni@redhat.com>
3459 Daniel Jacobowitz <drow@mvista.com>
3460
3461 Fix PR gdb/961.
3462 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
3463 variables.
3464 (RANGES_SECTION): New.
3465 (dwarf_ranges_buffer): New variable.
3466 (struct comp_unit_head): Add member "die".
3467 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
3468 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
3469 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
3470 (dwarf2_locate_sections): Likewise.
3471 (dwarf2_build_psymtabs): Read .debug_ranges.
3472 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
3473 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
3474 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
3475 Look for DW_AT_ranges and return the bounding box.
3476
3477 2003-01-29 Brian Ford <ford@vss.fsi.com>
3478
3479 * win32-nat.c (cygwin_pid): Removed as unused.
3480 (child_attach): Try fall back to Cygwin pid.
3481
3482 2003-01-29 Jim Blandy <jimb@redhat.com>
3483
3484 * objfiles.h (struct objfile): Doc fix.
3485
3486 2003-01-29 Andrew Cagney <ac131313@redhat.com>
3487
3488 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
3489 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
3490 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
3491 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
3492 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
3493 (FRAME_SAVED_PC): Change to a function with predicate.
3494 * gdbarch.h, gdbarch.c: Re-generate.
3495
3496 2003-01-28 Andrew Cagney <ac131313@redhat.com>
3497
3498 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
3499
3500 * complaints.c (complain): Delete function.
3501 * complaints.h (struct deprecated_complaint): Delete definition.
3502 (complain): Delete declaration.
3503
3504 2003-01-28 Kevin Buettner <kevinb@redhat.com>
3505
3506 * mips-tdep.c (mips_init_extra_frame_info): Return early for
3507 dummy frames.
3508
3509 2003-01-27 Andrew Cagney <ac131313@redhat.com>
3510
3511 * sentinel-frame.h, sentinel-frame.c: New files.
3512 * Makefile.in (frame.o): Update dependencies.
3513 (SFILES): Add sentinel-frame.c.
3514 (sentinel_frame_h): Define.
3515 (COMMON_OBS): Add sentinel-frame.o.
3516 (sentinel-frame.o): Specify dependencies.
3517 * frame.c: Include "sentinel-frame.h".
3518 (frame_register_unwind): Rewrite assuming that there is always a a
3519 ->next frame.
3520 (frame_register, generic_unwind_get_saved_register): Ditto.
3521 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
3522 (create_sentinel_frame, unwind_to_current_frame): New functions.
3523 (get_current_frame): Rewrite using create_sentinel_frame and
3524 unwind_to_current_frame. When possible, always create a frame.
3525 (create_new_frame): Set next to the sentinel frame.
3526 (get_next_frame): Rewrite. Don't go below the level 0 frame.
3527 (deprecated_update_frame_pc_hack): Update the next frame's PC and
3528 ID cache when necessary.
3529 (frame_saved_regs_id_unwind): Use frame_relative_level.
3530 (deprecated_generic_get_saved_register): Use frame_relative_level,
3531 get_frame_saved_regs, get_frame_pc, get_frame_base and
3532 get_next_frame.
3533 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
3534 frame_register.
3535
3536 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3537
3538 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
3539
3540 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3541
3542 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
3543 (maintenance_set_profile_cmd): Use error () instead of warning ().
3544
3545 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3546
3547 * configure.in: Check that -pg works if using --enable-profiling.
3548 Check for monstartup and _mcleanup regardless of --enable-profiling.
3549 * maint.c: Check for monstartup and _mcleanup before using them.
3550 * config.in: Regenerated.
3551 * configure: Regenerated.
3552
3553 2003-01-24 Nick Clifton <nickc@redhat.com>
3554
3555 * Add sh2e support:
3556
3557 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
3558
3559 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
3560 (sh2e_show_regs): New.
3561 (sh_gdbarch_init): Handle bfd_mach_sh2e.
3562 * config/sh/tm-sh.h: Added sh2e to comments.
3563
3564 2003-01-23 Jim Blandy <jimb@redhat.com>
3565
3566 * symfile.c (syms_from_objfile): Don't print the "(no debugging
3567 symbols found)" message here; we haven't checked for a separate
3568 debug info file yet, so we don't know yet.
3569 (symbol_file_add_with_addrs_or_offsets): Print it here, after
3570 we've looked everywhere. Also, there's no need to print a special
3571 message when we're loading the separate debug info file: the one
3572 symbol_file_add prints is fine.
3573
3574 2003-01-23 Alexander Larsson <alexl@redhat.com>
3575 Jim Blandy <jimb@redhat.com>
3576
3577 Add support for executables whose debug info has been separated
3578 out into a separate file, leaving only a link behind.
3579 * objfiles.h (struct objfile): New fields: separate_debug_objfile
3580 and separate_debug_objfile_backlink.
3581 (put_objfile_before): New declaration.
3582 * symfile.c: #include "filenames.h".
3583 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
3584 debug info in a separate file, read that, too. Save the addrs
3585 argument, so we can use it again to read the separated debug info;
3586 syms_from_objfile modifies the table we pass it.
3587 (reread_symbols): After re-reading an objfile, call
3588 reread_separate_symbols to refresh its separate debug info
3589 objfile, if it has one.
3590 (reread_separate_symbols, find_separate_debug_file,
3591 get_debug_link_info, separate_debug_file_exists): New functions.
3592 (debug_file_directory): New global var.
3593 (_initialize_symfile): Initialize debug_file_directory, and
3594 provide the new `set debug-file-directory' command to let the user
3595 change it.
3596 * objfiles.c (free_objfile): If this objfile has its debug info in
3597 a separate objfile, free that one too. If this is itself a
3598 separate debug info objfile, clear our parent's backlink.
3599 (put_objfile_before): New function.
3600 * utils.c (gnu_debuglink_crc32): New function.
3601 * defs.h (gnu_debuglink_crc32): New declaration.
3602 * Makefile.in (symfile.o): Note dependency on "filenames.h".
3603 * configure.in: Handle --with-separate-debug-dir config option.
3604 * acinclude.m4 (AC_DEFINE_DIR): New macro.
3605 * acconfig.h (DEBUGDIR): New macro.
3606 * configure, aclocal.m4, config.in: Regenerated.
3607
3608 2003-01-22 Jim Blandy <jimb@redhat.com>
3609
3610 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
3611 like the old symbol_file_add, but taking new arguments: you can
3612 now pass in either a `struct section_addr_info' list to say where
3613 each section is loaded, or a `struct section_offsets' table. Pass
3614 these new arguments through to syms_from_objfile as appropriate.
3615 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
3616 with the appropriate quiescent values for the new arguments.
3617
3618 * symfile.c: #include "gdb_assert.h".
3619 (syms_from_objfile): Add the ability to pass in a section offset
3620 table directly, as an alternative to the section_addr_info table.
3621 Document arguments better.
3622 (symbol_file_add): Pass extra arguments to syms_from_objfile.
3623 * symfile.h (syms_from_objfile): Update declaration.
3624 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
3625 syms_from_objfile.
3626 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
3627
3628 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
3629
3630 Original patch by Tom Tromey <tromey@cygnus.com> and
3631 Jason Molenda <jmolenda@apple.com>.
3632 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
3633 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
3634 * NEWS: Mention profiling.
3635 * configure.in (--enable-gdbtk): Fix typo.
3636 (--enable-profiling): New. Set PROFILE_CFLAGS.
3637 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
3638 Fill in function.
3639 (profiling_state): New variable.
3640 (mcleanup_wrapper): New function.
3641 (_initialize_maint): Remove NOTYET, fix call to
3642 add_setshow_boolean_cmd for "maint set profile".
3643 * configure: Regenerated.
3644
3645 2003-01-21 Martin M. Hunt <hunt@redhat.com>
3646
3647 * Makefile.in (install-gdbtk): Install PNG images too.
3648
3649 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3650
3651 * exec.c (text_start): Delete global variable.
3652 (exec_file_attach): Make text_start local to the function.
3653 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
3654 * valops.c (hand_function_call): Delete code that handles
3655 BEFORE_TEXT_END and AFTER_TEXT_END.
3656 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
3657 of CALL_DUMMY_LOCATION.
3658 * gdbarch.c: Regenerate.
3659 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
3660 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
3661 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
3662 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
3663 (text_end): Delete extern declaration.
3664
3665 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3666
3667 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
3668 * blockframe.c (backtrace_below_main): Move to "frame.c".
3669 (frame_chain_valid): Delete check for backtrace_below_main.
3670 (_initialize_blockframe): Delete initialization, move ``set
3671 backtrace-below-main'' command to "frame.c".
3672 (do_flush_frames_sfunc): Delete function.
3673 * frame.c: Include "command.h" and "gdbcmd.h".
3674 (frame_type_from_pc): New function.
3675 (create_new_frame): Use frame_type_from_pc.
3676 (legacy_get_prev_frame): New function.
3677 (get_prev_frame): Rewrite. When an old style frame, call
3678 legacy_get_prev_frame. Otherwize, unwind the PC first.
3679 (_initialize_frame): Add ``set backtrace-below-main'' command.
3680 * Makefile.in (frame.o): Update dependencies.
3681
3682 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3683
3684 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
3685 DEPRECATED_REGISTERS_INFO.
3686
3687 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3688
3689 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
3690 Maintainers'. Update `Various Maintainers'.
3691
3692 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3693
3694 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
3695 * gdbarch.sh (POP_FRAME): Change to function with predicate.
3696 Suppress actual parameters when `-'.
3697 * gdbarch.h, gdbarch.c: Regenerate.
3698
3699 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3700
3701 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3702 code handling dummy frames.
3703
3704 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3705
3706 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3707 (struct frame_unwind): Add field pop.
3708 * frame.h (frame_pop): Declare.
3709 * frame.c (frame_saved_regs_pop): New function.
3710 (trad_frame_unwinder): Add frame_saved_regs_pop.
3711 (frame_pop): New function.
3712 * dummy-frame.c (dummy_frame_pop): New function.
3713 (discard_innermost_dummy): New function.
3714 (generic_pop_dummy_frame): Use discard_innermost_dummy.
3715 (dummy_frame_unwind): Add dummy_frame_pop.
3716 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3717 * valops.c (hand_function_call): Ditto.
3718 * stack.c (return_command): Ditto.
3719
3720 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3721
3722 * cris-tdep.c: Fix function declaration indentation.
3723 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3724 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3725 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3726 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3727 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3728 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3729
3730 2003-01-18 Michael Chastain <mec@shout.net>
3731
3732 * README (Unpacking and Installation -- quick overview):
3733 Warn against ".../gdb-5.3/gdb/configure".
3734
3735 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3736
3737 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3738 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3739 (struct frame_unwind): Declare opaque.
3740 (dummy_frame_p): Declare function.
3741 * dummy-frame.c (dummy_frame_id_unwind): Make static.
3742 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3743 * dummy-frame.c: Include "frame-unwind.h".
3744 (dummy_frame_p): New function.
3745 (dummy_frame_unwind): New variable.
3746 * frame.c: Include "frame-unwind.h".
3747 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3748 to use the new unwind field.
3749 (set_unwind_by_pc): Delete function.
3750 (create_new_frame, get_prev_frame): Set unwind field using
3751 frame_unwind_find_by_pc.
3752 (trad_frame_unwind, trad_frame_unwinder): New variables.
3753 * frame.h (trad_frame_unwind): Declare variable.
3754 (frame_id_unwind_ftype): Delete declaration.
3755 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3756 (struct frame_unwind): Declare opaque.
3757 (struct frame_info): Replace the fields id_unwind, pc_unwind and
3758 register_unwind with a single unwind pointer.
3759 * frame-unwind.h, frame-unwind.c: New files.
3760 * Makefile.in (SFILES): Add frame-unwind.c.
3761 (frame_unwind_h): Define.
3762 (COMMON_OBS): Add frame-unwind.o.
3763 (frame-unwind.o): Specify dependencies.
3764 (frame.o, dummy-frame.o): Update dependencies.
3765
3766 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3767
3768 * ada-valprint.c: Eliminate PTR.
3769 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3770 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3771 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3772 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3773 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3774 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3775 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3776
3777 2003-01-17 Andrew Cagney <ac131313@redhat.com>
3778
3779 * main.c (captured_main): Don't use PTR.
3780 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3781 * gdbtypes.c (lookup_primitive_typename): Ditto.
3782 (lookup_struct_elt_type): Ditto.
3783 * f-valprint.c (info_common_command): Ditto.
3784 (list_all_visible_commons): Ditto.
3785 * jv-typeprint.c (java_type_print_base): Ditto.
3786
3787 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3788 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3789 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
3790 i386-interix-nat.c and i386-interix-tdep.c. Rename
3791 m68klinux-nat.c and m68klinux-tdep.c. Rename
3792 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
3793 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
3794 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3795 * main.c (captured_main): Use xfree, not free.
3796
3797 2003-01-16 Andrew Cagney <ac131313@redhat.com>
3798
3799 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3800 ID back using a parameter.
3801 * frame.c (frame_id_unwind): Update call.
3802 (frame_saved_regs_id_unwind): Update.
3803 * dummy-frame.c (dummy_frame_id_unwind): Update function.
3804 * dummy-frame.h (struct frame_id): Add opaque declaration.
3805 (dummy_frame_id_unwind): Update declaration.
3806
3807 2003-01-15 Andrew Cagney <ac131313@redhat.com>
3808
3809 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3810
3811 2003-01-15 Stephen P. Smith <ischis2@cox.net>
3812
3813 * MAINTAINERS (Stephen P. Smith): Updated email address.
3814
3815 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
3816
3817 Fix PR gdb/898
3818 * breakpoint.c (until_break_command): Add new argument. Use it to
3819 decide whether to stop only at the current frame or not.
3820 * breakpoint.h (until_break_command): Update prototype.
3821 * infcmd.c (until_command): Add new argument to until_break_command
3822 call.
3823 (advance_command): New function.
3824 (_initialize_infcmd): Update help string for 'until' command.
3825 Add new 'advance' command.
3826
3827 2003-01-14 David Carlton <carlton@math.stanford.edu>
3828
3829 * linespec.c (decode_line_1): Normalize comments.
3830 (set_flags): Ditto.
3831 (locate_first_half): Ditto.
3832 (decode_compound): Ditto.
3833 (symtab_from_filename): Ditto.
3834 (decode_all_digits): Ditto.
3835 (decode_dollar): Ditto.
3836 (find_methods): Ditto.
3837 (find_toplevel_char): Ditto.
3838
3839 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3840
3841 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3842 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3843 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3844 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3845 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3846 * language.c, language.h, m32r-tdep.c: Update copyright.
3847 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3848 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3849 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3850 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3851 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3852 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3853
3854 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3855
3856 * stabsread.h (process_later, resolve_cfront_continuation):
3857 Obsolete.
3858 Update copyright years.
3859 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3860 Update copyright year.
3861 * dbxread.c(struct cont_elem): Obsolete.
3862 (process_later, process_now): Obsolete functions.
3863 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3864 Update copyright year.
3865 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3866 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3867 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3868 (parse_partial_symbols): Obsolete cfront support.
3869 * stabsread.c
3870 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3871 macros.
3872 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3873 read_cfront_baseclasses, read_cfront_member_functions,
3874 resolve_cfront_continuation,read_cfront_static_fields,
3875 copy_cfront_struct_fields): Obsolete functions.
3876 (define_symbol, read_one_struct_field): Obsolete cfront support.
3877 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3878 Update Copyright year.
3879
3880 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3881
3882 * stack.c (print_frame_info, print_stack_frame_base_stub,
3883 print_stack_frame_base, show_and_print_stack_frame_stub,
3884 show_and_print_stack_frame, print_only_stack_frame_stub,
3885 print_only_stack_frame): Delete functions.
3886 (print_stack_frame_stub): Call print_frame_info instead of
3887 print_frame_info_base.
3888 (print_frame_info_base): Rename to print_frame_info.
3889 (backtrace_command_1): Call print_frame_info, instead of
3890 print_frame_info_base.
3891 (current_frame_command): Call print_stack_frame, instead of
3892 print_only_stack_frame.
3893 (frame_command): Call print_stack_frame, instead of
3894 show_and_print_stack_frame.
3895 (up_command): Ditto.
3896 (down_command): Ditto.
3897 * frame.h (print_only_stack_frame): Delete prototype.
3898 * infrun.c (normal_stop): Call print_stack_frame, instead of
3899 show_and_print_stack_frame.
3900 * thread.c (info_threads_command): Call print_stack_frame, instead
3901 of print_only_stack_frame.
3902
3903 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3904
3905 * README (Graphical interface to GDB): Update URL. Point at
3906 gdb/links/.
3907
3908 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
3909 version match.
3910
3911 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3912
3913 * symtab.c (find_pc_sect_line): Don't consider end-of-function
3914 lines.
3915
3916 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3917
3918 * thread-db.c (attach_thread): Prototype.
3919 (struct private_thread_info): Remove lwpid. Add thread handle (th),
3920 thread information (ti), and valid flags (th_valid, ti_valid).
3921 (attach_thread): Move target_pid_to_str call to after the thread
3922 is added to GDB's list. Initialize the cache.
3923 (thread_get_info_callback, thread_db_map_id2thr)
3924 (thread_db_get_info): New functions.
3925 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3926 (thread_db_store_registers, thread_db_thread_alive)
3927 (thread_db_get_thread_local_address): Use them.
3928 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3929 of calling error() for threads in unknown state.
3930
3931 (clear_lwpid_callback): New function.
3932 (thread_db_resume): Use it to clear the cache.
3933
3934 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3935
3936 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3937 (resume_callback): Remove dead code.
3938
3939 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3940
3941 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3942 predicate.
3943 * gdbarch.h, gdbarch.c: Regenerate.
3944 * stack.c (frame_info): Only initialize the saved registers when
3945 FRAME_INIT_SAVED_REGS_P.
3946 * frame.c (frame_saved_regs_register_unwind): Assert
3947 FRAME_INIT_SAVED_REGS_P.
3948 (deprecated_generic_get_saved_register): Ditto.
3949
3950 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3951
3952 * source.c (openp): Squelch warning about "filename".
3953
3954 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3955
3956 * source.c (openp): If the file does not exist don't necessarily
3957 search the path.
3958
3959 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3960
3961 Fix PR gdb/872.
3962 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3963 (integer_types_same_name_p): New function.
3964 (rank_one_type): Use it.
3965 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3966
3967 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3968
3969 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3970 variables.
3971 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3972 * configure.in: Add --with-sysroot.
3973 * configure: Regenerated.
3974 * main.c (gdb_sysroot): New variable.
3975 (captured_main): Initialize gdb_sysroot.
3976 * defs.h (gdb_sysroot): New extern declaration.
3977 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3978
3979 2003-01-12 Michael Chastain <mec@shout.net>
3980
3981 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3982
3983 2003-01-12 Michael Chastain <mec@shout.net>
3984
3985 * top.c (print_gdb_version): Bump copyright year to 2003.
3986
3987 2003-01-12 David Carlton <carlton@bactrian.org>
3988
3989 * linespec.c (symtab_from_filename): Rename variable 's' to
3990 'file_symtab'.
3991
3992 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3993
3994 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3995 dummy frame.
3996 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3997
3998 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3999
4000 * d10v-tdep.c: Include "gdb_assert.h".
4001 (d10v_store_return_value): Rewrite to match current interface.
4002 (d10v_extract_struct_value_address): Ditto.
4003 (d10v_extract_return_value): Ditto.
4004 (d10v_gdbarch_init): Set store_restore_value,
4005 extract_struct_value_address and extract_return_value.
4006
4007 2003-01-12 J. Brobecker <brobecker@gnat.com>
4008
4009 * hpread.c (set_namestring): New procedure replacing the
4010 SET_NAMESTRING macro.
4011 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
4012 by calls to set_namestring.
4013
4014 2003-01-11 J. Brobecker <brobecker@gnat.com>
4015
4016 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
4017 a compilation warning.
4018 (hpread_process_one_debug_symbol): Likewise.
4019
4020 2003-01-10 David Carlton <carlton@math.stanford.edu>
4021
4022 * linespec.c (decode_line_1): Rename variable 's' to
4023 'file_symtab'.
4024 (decode_all_digits): Rename argument 's' to 'file_symtab'.
4025 (decode_dollar): Ditto.
4026 (decode_variable): Ditto.
4027 (symbol_found): Ditto.
4028
4029 2003-01-09 Michael Chastain <mec@shout.net>
4030
4031 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
4032
4033 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
4034
4035 * win32-nat.c (set_process_privilege): New function.
4036 (child_attach): Call set_process_privilege() to enable the
4037 SE_DEBUG_NAME user privilege if available in process token.
4038
4039 2003-01-10 J. Brobecker <brobecker@gnat.com>
4040
4041 * hpread.c (hpread_process_one_debug_symbol): Fix a small
4042 compilation error in the previous revision.
4043
4044 2003-01-09 David Carlton <carlton@math.stanford.edu>
4045
4046 * linespec.c: Update copyright.
4047
4048 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
4049
4050 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
4051 than inferior_ptid.
4052 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
4053
4054 2003-01-09 Andrew Cagney <ac131313@redhat.com>
4055
4056 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
4057 Update comments.
4058 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
4059 (frame_saved_regs_zalloc): Update.
4060 (frame_saved_regs_register_unwind): Update.
4061 (create_new_frame): Update.
4062 (get_prev_frame): Update.
4063 (frame_extra_info_zalloc): Update.
4064 (deprecated_get_frame_saved_regs): Update.
4065 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
4066 * cris-tdep.c: Update comment.
4067
4068 * somsolib.h: Fix function indentation.
4069 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
4070 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
4071 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
4072 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
4073 * somsolib.c, inftarg.c: Remove assignment in if conditional.
4074
4075 * infrun.c (follow_fork): Use ISO C definition.
4076 * expprint.c (print_subexp): Use xfree instead of free.
4077 * charset.c: Include "gdb_string.h" instead of <string.h>.
4078 (register_iconv_charsets): Use ISO C definition.
4079 (host_charset, target_charset): Ditto.
4080 * Makefile.in (charset.o): Update dependencies.
4081 (mi-cmd-env.o): Update dependencies.
4082
4083 2003-01-08 Andrew Cagney <cagney@redhat.com>
4084
4085 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
4086 get_frame_base.
4087
4088 2003-01-08 Andrew Cagney <ac131313@redhat.com>
4089
4090 * gdb_mbuild.sh: Add --keep option. When specified, keep the
4091 build directories. Save edited gdb output in Mbuild.log. If a
4092 build fails, remove any final GDB executable.
4093
4094 2003-01-08 Andrew Cagney <ac131313@redhat.com>
4095
4096 * gdb_mbuild.sh: Edit the output of `maint print architecture'
4097 replacing hex constants with function names and stripping leading
4098 file name directory prefixes.
4099
4100 2003-01-08 Andrew Cagney <cagney@redhat.com>
4101
4102 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
4103 get_frame_base.
4104
4105 2003-01-08 David Carlton <carlton@math.stanford.edu>
4106
4107 * linespec.c (decode_line_1): Move code into decode_variable.
4108 (decode_variable): New function.
4109
4110 2003-01-08 Andrew Cagney <ac131313@redhat.com>
4111
4112 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
4113
4114 2003-01-08 Andrew Cagney <cagney@redhat.com>
4115
4116 * cris-tdep.c (cris_frame_init_saved_regs): Use
4117 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
4118 saved_regs buffer.
4119 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
4120 (sh64_nofp_frame_init_saved_regs): Ditto.
4121 (sh_fp_frame_init_saved_regs): Ditto.
4122 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
4123 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4124 * mcore-tdep.c (analyze_dummy_frame): Ditto.
4125 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4126
4127 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
4128
4129 * minsyms.c (lookup_minimal_symbol): Update comment.
4130 (lookup_minimal_symbol_text): Update comment. Use the hash table.
4131 (lookup_minimal_symbol_solib_trampoline): Likewise.
4132
4133 2003-01-08 Andrew Cagney <cagney@redhat.com>
4134
4135 * d10v-tdep.c (d10v_init_extra_frame_info): Use
4136 frame_relative_level.
4137
4138 * alpha-tdep.c: Use get_frame_extra_info.
4139 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4140 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
4141 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4142 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
4143
4144 * alpha-tdep.c: Use get_next_frame.
4145 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4146 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4147 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
4148 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
4149 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
4150 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
4151 * xstormy16-tdep.c: Ditto.
4152
4153 2003-01-07 Andrew Cagney <cagney@redhat.com>
4154
4155 * alpha-tdep.c: Use get_frame_base.
4156 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4157 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4158 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4159 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4160 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
4161 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4162 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
4163 * config/sparc/tm-sparc.h: Ditto.
4164
4165 2003-01-07 Andrew Cagney <cagney@redhat.com>
4166
4167 * frame.c (deprecated_get_frame_context): New function.
4168 (deprecated_set_frame_context): New function.
4169 * frame.h (deprecated_get_frame_context): Declare.
4170 (deprecated_set_frame_context): Declare.
4171 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
4172 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
4173
4174 2003-01-07 Andrew Cagney <cagney@redhat.com>
4175
4176 * frame.c (deprecated_set_frame_next_hack): New function.
4177 (deprecated_set_frame_prev_hack): New function.
4178 * frame.h (deprecated_set_frame_next_hack): Declare.
4179 (deprecated_set_frame_prev_hack): Declare.
4180 * mcore-tdep.c (analyze_dummy_frame): Use
4181 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
4182 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4183
4184 2003-01-07 David Carlton <carlton@math.stanford.edu>
4185
4186 * linespec.c (decode_line_1): Move code into decode_dollar.
4187 (decode_dollar): New function.
4188
4189 2003-01-07 Andrew Cagney <cagney@redhat.com>
4190
4191 * arm-tdep.c (arm_init_extra_frame_info): Use
4192 deprecated_update_frame_base_hack.
4193 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
4194 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4195 (fix_frame_pointer): Ditto.
4196 (mn10300_analyze_prologue): Ditto.
4197
4198 2003-01-07 Andrew Cagney <cagney@redhat.com>
4199
4200 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
4201 extra_info using frame_extra_info_zalloc.
4202 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4203 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
4204 (sh64_init_extra_frame_info): Ditto.
4205 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
4206 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
4207 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4208 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
4209 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
4210 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
4211 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
4212 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
4213 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
4214 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
4215 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4216 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
4217
4218 * mn10300-tdep.c (analyze_dummy_frame): Use
4219 deprecated_set_frame_extra_info_hack.
4220 * mcore-tdep.c (analyze_dummy_frame): Ditto.
4221
4222 2003-01-07 J. Brobecker <brobecker@gnat.com>
4223
4224 * mdebugread.c (parse_symbol): Skip stProc entries which storage
4225 class is not scText. These do not define "real" procedures.
4226 (parse_partial_symbols): Likewise.
4227
4228 2003-01-06 Michael Snyder <msnyder@redhat.com>
4229
4230 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
4231
4232 2003-01-06 Andrew Cagney <ac131313@redhat.com>
4233
4234 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
4235 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
4236 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
4237 deprecated_frame_xmalloc_with_cleanup.
4238 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
4239 deprecated_frame_xmalloc.
4240 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
4241 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
4242
4243 2003-01-06 Andrew Cagney <cagney@redhat.com>
4244
4245 * x86-64-linux-tdep.c: Include "osabi.h".
4246 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
4247
4248 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
4249
4250 2003-01-06 Andrew Cagney <cagney@redhat.com>
4251
4252 * MAINTAINERS (Target Instruction Set Architectures): Update
4253 arm-elf. Can be built with -Werror, has been multiarched.
4254
4255 * value.h (unpack_long): Make buffer parameter constant.
4256 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
4257 * scm-lang.h (scm_parse): Ditto.
4258 * defs.h (extract_typed_address, extract_address): Ditto.
4259 (extract_long_unsigned_integer): Ditto.
4260 * inferior.h (unsigned_pointer_to_address): Ditto.
4261 (signed_pointer_to_address): Ditto.
4262 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
4263 * gdbarch.h, gdbarch.c: Regenerate.
4264 * findvar.c (extract_long_unsigned_integer): Update.
4265 (extract_address): Update.
4266 (extract_typed_address): Update.
4267 (unsigned_pointer_to_address): Update.
4268 * values.c (unpack_long): Update.
4269 (unpack_double): Update.
4270 (unpack_pointer): Update.
4271 (unpack_field_as_long): Update.
4272 * d10v-tdep.c (d10v_pointer_to_address): Update.
4273 * avr-tdep.c (avr_pointer_to_address): Update.
4274 * scm-lang.c (scm_unpack): Update.
4275 * findvar.c (signed_pointer_to_address): Update.
4276
4277 2003-01-06 Michal Ludvig <mludvig@suse.cz>
4278
4279 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
4280 since it is in i386-tdep.c.
4281
4282 2003-01-06 J. Brobecker <brobecker@gnat.com>
4283
4284 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
4285 failure introduced in the previous change.
4286
4287 2003-01-05 Michael Chastain <mec@shout.net>
4288
4289 * README: Remove references to deleted remote-*.c files:
4290 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
4291 remote-nrom.c, remote-os9k.c, remote-udi.c.
4292
4293 2003-01-05 Mark Kettenis <kettenis@gnu.org>
4294
4295 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
4296 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
4297 i386_get_longjmp_target.
4298
4299 2003-01-05 Andrew Cagney <ac131313@redhat.com>
4300
4301 * arm-tdep.c (prologue_cache): Change to a pointer.
4302 (_initialize_arm_tdep): Allocate prologue_cache.
4303 (check_prologue_cache): Update.
4304 (save_prologue_cache): Update.
4305 (arm_gdbarch_init): Update.
4306
4307 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4308
4309 * stabsread.c (update_method_name_from_physname): Call complaint()
4310 instead of error.
4311
4312 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4313
4314 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
4315 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
4316 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
4317
4318 * blockframe.c: Include "gdbcmd.h" and "command.h".
4319 (backtrace_below_main): New variable.
4320 (file_frame_chain_valid, func_frame_chain_valid)
4321 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
4322 (generic_func_frame_chain_valid): Remove functions.
4323 (frame_chain_valid, do_flush_frames_sfunc): New functions.
4324 (_initialize_blockframe): New function.
4325 * Makefile.in (blockframe.o): Update dependencies.
4326 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
4327 comment. Call frame_chain_valid ().
4328 * frame.h: Remove old prototypes. Add prototype for
4329 frame_chain_valid and update comments to match.
4330 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
4331 Remove old comment.
4332 * gdbarch.h: Regenerated.
4333 * gdbarch.c: Regenerated.
4334
4335 * alpha-tdep.c (alpha_gdbarch_init): Don't call
4336 set_gdbarch_frame_chain_valid.
4337 * avr-tdep.c (avr_gdbarch_init): Likewise.
4338 * cris-tdep.c (cris_gdbarch_init): Likewise.
4339 * frv-tdep.c (frv_gdbarch_init): Likewise.
4340 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4341 * i386-tdep.c (i386_svr4_init_abi): Likewise.
4342 (i386_nw_init_abi): Likewise.
4343 (i386_gdbarch_init): Likewise.
4344 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4346 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4347 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
4348 * mips-tdep.c (mips_gdbarch_init): Likewise.
4349 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4350 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
4351 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4352 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4353 * s390-tdep.c (s390_gdbarch_init): Likewise.
4354 * sh-tdep.c (sh_gdbarch_init): Likewise.
4355 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4356 * v850-tdep.c (v850_gdbarch_init): Likewise.
4357 * vax-tdep.c (vax_gdbarch_init): Likewise.
4358 * x86-64-tdep.c (x86_64_init_abi): Likewise.
4359
4360 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
4361 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
4362 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
4363 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
4364 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
4365 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
4366 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
4367 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
4368
4369 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4370
4371 * Makefile.in (acconfig_h): Remove incorrect macro.
4372 (config_h): Define.
4373 (osabi.o): Update dependencies.
4374 * configure.tgt: Set gdb_osabi based on target triplet.
4375 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
4376 * configure: Regenerated.
4377 * config.in: Regenerated.
4378 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
4379 (GDB_OSABI_DEFAULT): Define if not already defined.
4380 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
4381 (set_osabi_string): New variables.
4382 (gdbarch_register_osabi): Add new OS ABI to
4383 gdb_osabi_available_names.
4384 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
4385 (set_osabi, show_osabi): New functions.
4386 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
4387
4388 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4389
4390 * arch-utils.c (gdbarch_info_init): Set osabi to
4391 GDB_OSABI_UNINITIALIZED.
4392 * gdbarch.sh: Add osabi to struct gdbarch and to struct
4393 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
4394 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
4395 * gdbarch.c: Regenerated.
4396 * gdbarch.h: Regenerated.
4397 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
4398 there's no BFD.
4399 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
4400 * osabi.h (enum gdb_osabi): Move to defs.h.
4401 (gdbarch_init_osabi): Update prototype.
4402 * defs.h (enum gdb_osabi): Moved here.
4403 * Makefile.in: Update dependencies.
4404
4405 * alpha-tdep.h: Don't include "osabi.h".
4406 (struct gdbarch_tdep): Remove osabi member.
4407 * alpha-tdep.c: Include "osabi.h".
4408 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4409 iterate over arches. Update call to gdbarch_init_osabi.
4410 (alpha_dump_tdep): Don't dump osabi.
4411 * alpha-linux-tdep.c: Include "osabi.h".
4412 * alpha-osf1-tdep.c: Include "osabi.h".
4413 * alphafbsd-tdep.c: Include "osabi.h".
4414 * alphanbsd-tdep.c: Include "osabi.h".
4415
4416 * arm-tdep.h: Don't include "osabi.h".
4417 (struct gdbarch_tdep): Remove osabi member.
4418 * arm-tdep.c: Include "osabi.h".
4419 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4420 iterate over arches. Update call to gdbarch_init_osabi.
4421 (arm_dump_tdep): Don't dump osabi.
4422 * arm-linux-tdep.c: Include "osabi.h".
4423 * armnbsd-tdep.c: Include "osabi.h".
4424
4425 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
4426 Update call to gdbarch_init_osabi.
4427
4428 * i386-tdep.h: Don't include "osabi.h".
4429 (struct gdbarch_tdep): Remove osabi member.
4430 * i386-tdep.c: Include "osabi.h".
4431 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4432 iterate over arches. Update call to gdbarch_init_osabi.
4433 (i386_dump_tdep): Don't dump osabi.
4434 * i386-linux-tdep.c: Include "osabi.h".
4435 * i386-sol2-tdep.c: Include "osabi.h".
4436 * i386bsd-tdep.c: Include "osabi.h".
4437 * i386gnu-tdep.c: Include "osabi.h".
4438 * i386ly-tdep.c: Include "osabi.h".
4439 * i386nbsd-tdep.c: Include "osabi.h".
4440 * i386obsd-tdep.c: Include "osabi.h".
4441
4442 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
4443 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4444 check osabi when iterating over arches. Update call to
4445 gdbarch_init_osabi.
4446 (mips_dump_tdep): Don't dump osabi.
4447
4448 * ns32k-tdep.h: Don't include "osabi.h".
4449 (struct gdbarch_tdep): Remove.
4450 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
4451 gdbarch_lookup_osabi. Don't iterate over arches. Don't
4452 allocate tdep. Update call to gdbarch_init_osabi.
4453 (ns32k_dump_tdep): Remove.
4454 (_initialize_ns32k_tdep): Update call to gdbarch_register.
4455 * ns32knbsd-tdep.c: Include "osabi.h".
4456
4457 * ppc-tdep.h: Don't include "osabi.h".
4458 (struct gdbarch_tdep): Remove osabi member.
4459 * rs6000-tdep.c: Include "osabi.h".
4460 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
4461 osabi when iterating over arches. Update call to
4462 gdbarch_init_osabi.
4463 (rs6000_dump_tdep): Don't dump osabi.
4464 * ppc-linux-tdep.c: Include "osabi.h".
4465 * ppcnbsd-tdep.c: Include "osabi.h".
4466
4467 * sh-tdep.h: Don't include "osabi.h".
4468 (struct gdbarch_tdep): Remove osabi member.
4469 * sh-tdep.c: Include "osabi.h".
4470 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4471 iterate over arches. Update call to gdbarch_init_osabi.
4472 (sh_dump_tdep): Don't dump osabi.
4473 * shnbsd-tdep.c: Include "osabi.h".
4474
4475 * sparc-tdep.c: Include "osabi.h".
4476 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4477 iterate over arches. Update call to gdbarch_init_osabi.
4478 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
4479 tdep structure.
4480
4481 * vax-tdep.h: Don't include "osabi.h".
4482 (struct gdbarch_tdep): Remove.
4483 * vax-tdep.c: Include "osabi.h".
4484 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4485 iterate over arches. Don't allocate tdep. Update call
4486 to gdbarch_init_osabi.
4487 (vax_dump_tdep): Remove.
4488 (_initialize_vax_tdep): Update call to gdbarch_register.
4489
4490 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4491
4492 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
4493 entirely.
4494 (breakpoint_re_set_one): Don't fetch the value for a disabled
4495 watchpoint.
4496
4497 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4498
4499 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
4500 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
4501 (COERCE_FLOAT_TO_DOUBLE): Remove.
4502 * gdbarch.c: Regenerate.
4503 * gdbarch.h: Regenerate.
4504 * Makefile.in: Remove value_h from gdbarch_h.
4505 * valops.c (coerce_float_to_double): New variable.
4506 (default_coerce_float_to_double): Remove.
4507 (standard_coerce_float_to_double): Remove.
4508 (value_arg_coerce): Use coerce_float_to_double.
4509 (_initialize_valops): Add "set coerce-float-to-double".
4510 * value.h (default_coerce_float_to_double): Remove prototype.
4511 (standard_coerce_float_to_double): Remove prototype.
4512
4513 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
4514 prototyped.
4515 * mdebugread.c (parse_symbol): Likewise.
4516 * stabsread.c (define_symbol): Mark all functions as prototyped.
4517
4518 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
4519 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
4520 set_gdbarch_coerce_float_to_double.
4521 * arm-tdep.c (arm_gdbarch_init): Likewise.
4522 * frv-tdep.c (frv_gdbarch_init): Likewise.
4523 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
4524 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
4525 * mips-tdep.c (mips_gdbarch_init): Likewise.
4526 (mips_coerce_float_to_double): Remove.
4527 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4528 (rs6000_coerce_float_to_double): Remove.
4529 * s390-tdep.c (s390_gdbarch_init): Likewise.
4530 * sh-tdep.c (sh_gdbarch_init): Likewise.
4531 (sh_coerce_float_to_double): Remove.
4532 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4533 (sparc_coerce_float_to_double): Remove.
4534 * v850-tdep.c (v850_gdbarch_init): Likewise.
4535 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4536 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4537 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
4538 (hppa_coerce_float_to_double): Remove prototype.
4539 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4540
4541 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4542
4543 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
4544
4545 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4546
4547 Suggested by Stewart Brown <sb24@avaya.com>:
4548 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
4549 in recursive calls. Handle TYPE_CODE_TYPEDEF.
4550 (c_type_print_varspec_suffix): Likewise.
4551
4552 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4553
4554 * configure.in: Don't set and AC_SUBST SUBDIRS.
4555 * configure: Regenerated.
4556
4557 * configure.in: Remove code dealing with shared libraries.
4558 * Makefile.in: Remove HLDFLAGS and HLDENV.
4559 * configure: Regenerated.
4560
4561 2003-01-04 Andrew Cagney <ac131313@redhat.com>
4562
4563 * frame.c (deprecated_frame_xmalloc): New function.
4564 (deprecated_set_frame_saved_regs_hack): New function.
4565 (deprecated_set_frame_extra_info_hack): New function.
4566 * frame.h (deprecated_frame_xmalloc): Declare.
4567 (deprecated_set_frame_saved_regs_hack): Declare.
4568 (deprecated_set_frame_extra_info_hack): Declare.
4569
4570 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4571
4572 * configure.in: Move code that provides the --enable-gdbtk option
4573 right after the code that handles the --enable-tui option, and
4574 polish it somewhat.
4575 * configure: Regenerated.
4576
4577 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
4578 AC_CHECK_FUNCS and remove the old check for pread64.
4579 * acinclude.m4 (AC_GNU_SOURCE): New macro.
4580 * acconfig.h (_GNU_SOURCE): Add.
4581 (HAVE_PREAD64): Remove.
4582 * configure, aclocal.m4, config.in: Regenerated.
4583
4584 2003-01-03 Andrew Cagney <ac131313@redhat.com>
4585
4586 * alpha-tdep.c: Use get_frame_saved_regs.
4587 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4588 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4589 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
4590 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
4591 * vax-tdep.c, xstormy16-tdep.c: Ditto.
4592
4593 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4594
4595 * configure.in: Remove all use of the SUBDIRS variable; add
4596 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
4597 code providing the --enable-multi-ice option, and move it right in
4598 front of the code that checks whether gdbserver is supported.
4599 Polish that too.
4600 * configure: Regenerated.
4601 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
4602 @SUBDIRS@.
4603
4604 2003-01-03 Andrew Cagney <cagney@redhat.com>
4605
4606 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4607 * avr-tdep.c, cris-tdep.c: Ditto.
4608 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4609 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4610
4611 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4612
4613 * configure.in: Remove --enable-netrom option.
4614 * configure: Regenerated.
4615
4616 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4617
4618 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4619 declaration for `struct re_pattern_buffer' instead.
4620 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
4621
4622 2003-01-03 J. Brobecker <brobecker@gnat.com>
4623
4624 * mdebugread.c (parse_symbol): Count until the stEnd matching
4625 the structure name.
4626
4627 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4628
4629 * configure.in: Remove --with-cpu option.
4630 subscripts. Remove evil changequotes here.
4631 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
4632 * config.in, configure: Regenerated.
4633
4634 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4635 * configure.in: Cleanup section that sources GDB and BFD configure
4636 subscripts. Remove evil changequotes here.
4637 * config.in, configure: Regenerated.
4638
4639 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4640
4641 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4642 frame accessor methods.
4643 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4644 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4645 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
4646 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
4647 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4648 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4649 * z8k-tdep.c: Ditto.
4650
4651 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4652
4653 * configure.in: Remove UI_OUT configuration code.
4654 * ada-lang.c: Update assuming UI_OUT is always true.
4655 * Makefile.in (UIOUT_CFLAGS): Remove.
4656 * configure: Regenerated.
4657 * TODO: Remove blurb about elimination of -DUI_OUT.
4658
4659 * configure.in: Move code that provides the --enable-gdbcli,
4660 --enable-gdbmi options right before the code that handles the
4661 --enable-tui option. Polish a bit.
4662 * configure: Regenerated.
4663
4664 * configure.in: Rewrite check for GNU regex and the
4665 --without-included regex option, and move it into the "Checks for
4666 library functions" section. This makes us use the system regex
4667 again by default on systems with version 2 of the GNU C library.
4668 This was apparently broken.
4669 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
4670 * acconfig.h (USE_INCLUDED_REGEX): Remove.
4671 * config.in, configure: Regenerated.
4672
4673 * configure.in: Move code that provides the --enable-tui option
4674 before the "Checks for libraries" section. Polish the code
4675 somewhat and set need_curses to yes if we build the TUI. Rewrite
4676 code that looks for a library providing termcap functionality to
4677 match more closely what's done in the Readline library, and move
4678 it into to the "Checks for libraries" section.
4679 * configure: Regenerated.
4680 * Makefile.in (TERMCAP): Remove variable.
4681 * config/i386/go32.mh (TERMCAP): Remove variable.
4682
4683 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4684
4685 * MAINTAINERS: Mention gdb_mbuild.sh.
4686 * gdb_mbuild.sh: Rewrite.
4687
4688 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4689
4690 * configure.in: Fix typo in last change.
4691 * config.in, configure: Regenerated.
4692
4693 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4694
4695 * valarith.c (value_binop): Delete obsolete code and comments.
4696 * configure.host: Ditto.
4697 * buildsym.h (make_blockvector): Ditto.
4698 * buildsym.c (make_blockvector): Ditto.
4699 * defs.h (enum language): Ditto.
4700 (chill_demangle): Ditto.
4701 * elfread.c (elf_symtab_read): Ditto.
4702 * dwarfread.c (CHILL_PRODUCER): Ditto.
4703 (set_cu_language): Ditto.
4704 (handle_producer): Ditto.
4705 * expprint.c (print_subexp): Ditto.
4706 * gdbtypes.c (chill_varying_type): Ditto.
4707 * gdbtypes.h (builtin_type_chill_bool): Ditto.
4708 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4709 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4710 (chill_varying_type): Ditto.
4711 * language.h (_LANG_chill): Ditto.
4712 * language.c (binop_result_type, integral_type): Ditto.
4713 (character_type, string_type, structured_type): Ditto.
4714 (lang_bool_type, binop_type_check): Ditto.
4715 * stabsread.h (os9k_stabs): Ditto.
4716 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4717 (define_symbol, read_type, read_struct_fields): Ditto.
4718 (read_array_type, read_enum_type, read_huge_number): Ditto.
4719 (read_range_type, start_stabs): Ditto.
4720 * symfile.c (init_filename_language_table): Ditto.
4721 (add_psymbol_with_dem_name_to_list): Ditto.
4722 * symtab.c (symbol_init_language_specific): Ditto.
4723 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4724 * symtab.h (struct general_symbol_info): Ditto.
4725 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4726 * typeprint.c (typedef_print): Ditto.
4727 * utils.c (fprintf_symbol_filtered): Ditto.
4728 * valops.c (value_cast, search_struct_field, value_slice): Delete
4729 obsolete code.
4730 (varying_to_slice): Delete function.
4731 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4732 (varying_to_slice): Delete declaration.
4733 * MAINTAINERS: Update.
4734
4735 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4736
4737 * configure.in: Reorganize "Checks for library functions section"
4738 a bit. Remove check for `btowc' and `isascii' functions.
4739 * configure: Regenerated.
4740
4741 * acconfig.h (_MSE_INT_H): Remove.
4742 * configure.in: Create "Checks for header files" section, and move
4743 appropriate tests there. Don't check for objlist.h, wchar.h,
4744 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
4745 misdetection fix. Also add "Checks for types", "Checks for
4746 compiler characteristics" and "Checks for library functions"
4747 sections.
4748 * config.in, configure: Regenerated.
4749
4750 * configure.in: Create "Checks for programs" section, and move
4751 appropriate tests there.
4752
4753 2003-01-01 Mark Kettenis <kettenis@gnu.org>
4754
4755 * configure.in: Create "Checks for libraries" section, and move
4756 appropriate tests there. Cleanup check for wctype in libw. Use
4757 AC_SEARCH_LIBS to see whether we need libsocket.
4758 * configure: Regenerated.
4759
4760 For older changes see ChangeLog-2002
4761 \f
4762 Local Variables:
4763 mode: change-log
4764 left-margin: 8
4765 fill-column: 74
4766 version-control: never
4767 End:
This page took 0.128818 seconds and 4 git commands to generate.