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