]> Git Repo - binutils.git/blame - gdb/ChangeLog
* symtab.c (completion_list_objc_symbol): New function.
[binutils.git] / gdb / ChangeLog
CommitLineData
69636828
AF
12003-05-18 Adam Fedor <[email protected]>
2
3 * symtab.c (completion_list_objc_symbol): New function.
4 (make_symbol_completion_list): Use it to add ObjC symbols
5 when looking though the list.
6 (language_search_unquoted_string): New function.
7 (make_file_symbol_completion_list): Use it.
8
55baeb84
AS
92003-05-18 Andreas Schwab <[email protected]>
10
d0b45d99
AS
11 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
12 dependencies.
13 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
14 as m68k_linux_extract_return_value.
15 (DEPRECATED_STORE_RETURN_VALUE): Define as
16 m68k_linux_store_return_value.
17 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
18 m68k_linux_extract_struct_value_address.
19 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
20 get_next_frame, get_frame_base, get_frame_pc.
21 (m68k_linux_frame_saved_pc): Use get_frame_base.
22 (m68k_linux_extract_return_value): New function.
23 (m68k_linux_store_return_value): New function.
24 (m68k_linux_extract_struct_value_address): New function.
25 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
26
55baeb84
AS
27 * c-exp.y (typebase): Remove duplicate occurence of
28 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
29 of lookup_signed_typename.
30
b6b08ebf
MK
312003-05-18 Mark Kettenis <[email protected]>
32
33 * dwarf2loc.c (find_location_expression): Change type of second
34 argument to `size_t *'.
35 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
36 for size variable.
37
5ad1c190
DC
382003-05-18 David Carlton <[email protected]>
39
40 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
41 'linkage_name'. Add comment.
42 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
43 'linkage_name'.
44 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
45 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
46 (lookup_block_symbol): Ditto.
47
b8b527c5
AC
482003-05-16 Andrew Cagney <[email protected]>
49
50 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
51 * gdbarch.h, gdbarch.c: Re-generate.
52 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
53 * TODO (REGISTER_BYTES): Delete reference.
54 * alpha-tdep.c (alpha_gdbarch_init): Update.
55 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
56 * x86-64-tdep.c (x86_64_init_abi): Update.
57 * vax-tdep.c (vax_gdbarch_init): Update.
58 * v850-tdep.c (v850_gdbarch_init): Update.
59 * sparc-tdep.c (sparc_gdbarch_init): Update.
60 * sh-tdep.c (sh_gdbarch_init): Update.
61 * s390-tdep.c (s390_gdbarch_init): Update.
62 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
63 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
64 (ns32k_gdbarch_init_32382): Update.
65 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
66 * mcore-tdep.c (mcore_gdbarch_init): Update.
67 * m68k-tdep.c (m68k_gdbarch_init): Update.
68 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
69 * ia64-tdep.c (ia64_gdbarch_init): Update.
70 * i386-tdep.c (i386_gdbarch_init): Update.
71 * i386-linux-tdep.c (i386_linux_init_abi): Update.
72 * hppa-tdep.c (hppa_gdbarch_init): Update.
73 * h8300-tdep.c (h8300_gdbarch_init): Update.
74 * frv-tdep.c (frv_gdbarch_init): Update.
75 * cris-tdep.c (cris_gdbarch_init): Update.
76 * avr-tdep.c (avr_gdbarch_init): Update.
77 * arm-tdep.c (arm_gdbarch_init): Update.
78 * sparc-tdep.c (sparc_pop_frame): Update.
79 * rs6000-tdep.c (rs6000_pop_frame): Update.
80 * remote.c (init_remote_state): Update.
81 (remote_prepare_to_store): Update.
82 * remote-vx.c (vx_prepare_to_store): Update.
83 * remote-sds.c (sds_fetch_registers): Update.
84 (sds_prepare_to_store): Update.
85 * remote-array.c: Update.
86 * regcache.c (init_legacy_regcache_descr): Update.
87 (init_regcache_descr): Update.
88 * mips-tdep.c (mips_eabi_extract_return_value): Update.
89 (mips_o64_extract_return_value): Update.
90 * irix5-nat.c (fetch_core_registers): Update.
91 * irix4-nat.c (fetch_core_registers): Update.
92 * i386-tdep.h: Update.
93 * hppa-tdep.c (pa_do_registers_info): Update.
94 (pa_do_strcat_registers_info): Update.
95 * cris-tdep.c (cris_register_bytes_ok): Update.
96 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
97 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
98 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
99 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
100 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
101 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
102 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
103 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
104 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
105 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
106 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
107 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
108 (REGISTER_BYTES_OK): Update.
109 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
110 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
111
ee2842e2
ILT
1122003-05-16 Ian Lance Taylor <[email protected]>
113
114 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
115 (vax_print_insn, print_insn_arg): Remove static functions.
116 (vax_gdbarch_init): Call set_gdbarch_print_insn with
117 print_insn_vax from opcodes library.
118 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
119
973177d3
AC
1202003-05-15 Andrew Cagney <[email protected]>
121
aaab4dba
AC
122 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
123 * target.h (memory_breakpoint_from_pc): Delete declaration.
124 * mem-break.c (memory_breakpoint_from_pc): Delete function.
125 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
126 * monitor.c (monitor_insert_breakpoint): Use
127 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
128 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
129 * gdbarch.h, gdbarch.c: Re-generate.
130 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
131 (sparc_gdbarch_init): Set breakpoint_from_pc to
132 sparc_breakpoint_from_pc.
133 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
134 (BREAKPOINT_FROM_PC): Define.
135 (sparc_breakpoint_from_pc): Declare.
136 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
137 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
138 (BREAKPOINT_FROM_PC): Define.
139 (BREAKPOINT): Delete macro.
140 * target.h: Update comment.
141 * s390-tdep.c (s390_gdbarch_init): Update comments.
142 * remote.c: Update comments.
143 * remote-mips.c: Update comments.
144 * proc-api.c (write_with_trace): Do not check for a breakpoint.
145 * mem-break.c: Update comment.
146 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
147 (ia64_memory_insert_breakpoint): Update.
148 * config/sparc/tm-sparc.h: Update comment.
149 * config/pa/tm-hppa64.h: Update comment.
150 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
151 (rs6000_breakpoint_from_pc): Update.
152 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
153 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
154 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
155 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
156 (mips_breakpoint_from_pc): Update.
157 (mips_dump_tdep): Update.
158
e06963ff
AC
159 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
160 * minsyms.c (lookup_minimal_symbol): Inline
161 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
162
973177d3
AC
163 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
164 * p-valprint.c (pascal_object_print_value_fields): Ditto.
165 * p-lang.c (pascal_printstr): Ditto.
166 * objc-lang.c (objc_printstr): Ditto.
167 * m2-lang.c (m2_printstr): Ditto.
168 * jv-valprint.c (java_print_value_fields): Ditto.
169 * f-lang.c (f_printstr): Ditto.
170 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
171 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
172 for repeat_count_threshold.
173 * Makefile.in (cp-valprint.o): Update dependencies.
174
5ea2bd7f
JJ
1752003-05-15 Jeff Johnston <[email protected]>
176
177 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
178 (examine_prologue): Support looking through leaf functions, knowing
179 they start with mov r2,r12. Support skipping over indirect stores
180 of the input registers. Upon hitting a non-nop branch instruction
181 or predicated instruction, bail out by setting lim_pc to the current
182 pc value in the loop. At the end, if the lim_pc value is still
183 beyond our calculated value and we have trust_limit set,
184 use the lim_pc value.
185
cc8c88f3
AC
1862003-05-15 Andrew Cagney <[email protected]>
187
188 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
189 generic_find_dummy_frame.
190 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
191 (deprecated_generic_find_dummy_frame): Update.
192 (deprecated_read_register_dummy): Update.
193 * frame.c (deprecated_generic_get_saved_register): Update.
194
909cd28e
TR
1952003-05-15 Theodore A. Roth <[email protected]>
196
197 * avr-tdep.c (avr_breakpoint_from_pc): New function.
198 (avr_gdbarch_init): Set breakpoint_from_pc method.
199
b923b08d
AC
2002003-05-15 Andrew Cagney <[email protected]>
201
202 * regcache.c (build_regcache): Set deprecated_register_valid
203 directly.
204 (deprecated_grub_regcache_for_register_valid): Delete function.
205 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
206 declaration.
207
ae2f03ac
EZ
2082003-05-15 David Carlton <[email protected]>
209
210 Committed by Elena Zannoni <[email protected]>
211 * symtab.c (lookup_symbol_aux): Delete calls to
212 lookup_symbol_aux_minsyms.
213 (lookup_symbol_aux_minsyms): Comment out function and
214 prototype. Delete lookup by mangled name.
215
18ec9831
KB
2162003-05-14 Kevin Buettner <[email protected]>
217
218 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
219 correctly indicate an empty stack and ``stack_allocated'' to the
220 indicate the number of elements initially allocated.
221 (dwarf_expr_grow_stack): Simplify method for computing new
222 stack size. Don't loop infinitely if ``stack_len'' is zero.
223 (execute_stack_op): Move ``ctx->in_reg'' initialization
224 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
225 be used in conjuction with DW_OP_piece. Revise error message
226 accordingly.
227
de18ac1f
TR
2282003-05-14 Theodore A. Roth <[email protected]>
229
230 * MAINTAINERS: Update my email address.
231 * avr-tdep.c: Ditto.
232
176620f1
EZ
2332003-05-14 Elena Zannoni <[email protected]>
234
235 * symtab.h (enum domain_enum): Rename from namespace_enum.
236 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
237 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
238 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
239 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
240 TYPES_NAMESPACE, METHODS_NAMESPACE.
241 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
242 (struct symbol, struct partial_symbol): Rename field
243 'namespace_enum namespace' to 'domain_enum domain'.
244 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
245 Delete old define kludge for namespace.
246
247 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
248 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
249 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
250 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
251 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
252 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
253 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
254 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
255 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
256 occurrences of the above.
257
b7f31508
ILT
2582003-05-14 Ian Lance Taylor <[email protected]>
259
260 * Makefile.in (install-only): Use $(SHELL) when running
261 mkinstalldirs.
262
2fdbdd39
ILT
2632003-05-13 Ian Lance Taylor <[email protected]>
264
a208d82c
ILT
265 * MAINTAINERS (write after approval): Add myself.
266
2fdbdd39
ILT
267 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
268 second and third arguments.
269 * ser-tcp.c (_initialize_ser_tcp): Likewise.
270 * ser-unix.c (_initialize_ser_hardwire): Likewise.
271
fbd9dcd3
AC
2722003-05-13 Andrew Cagney <[email protected]>
273
274 * defs.h (store_address): Delete declaration.
275 findvar.c (store_address): Delete function.
276 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
277 store_unsigned_integer.
278 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
279 * v850-tdep.c (v850_push_arguments): Ditto.
280 * sparc-tdep.c (sparc_get_saved_register): Ditto.
281 * sh-tdep.c (sh64_get_saved_register): Ditto.
282 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
283 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
284 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
285 (mips_get_saved_register): Ditto.
286 * ia64-tdep.c (ia64_get_saved_register): Ditto.
287 (find_func_descr, ia64_push_arguments): Ditto.
288 * i386-tdep.c (i386_push_arguments): Ditto.
289 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
290 * frv-tdep.c (frv_push_arguments): Ditto.
291 * frame.c (legacy_saved_regs_prev_register): Ditto.
292 (deprecated_generic_get_saved_register): Ditto.
293 * findvar.c (unsigned_address_to_pointer): Ditto.
294 * dwarf2read.c (dwarf2_const_value): Ditto.
295 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
296 * alpha-tdep.c (alpha_push_arguments): Ditto.
297
6760f9e6
JB
2982003-05-12 J. Brobecker <[email protected]>
299
300 * NEWS: Mention that the hppa-hpux port has been partially
301 multiarched (32bit ABIT only, so far).
302
30e221b4
AC
3032003-05-11 Andrew Cagney <[email protected]>
304
305 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
306 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
307 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
308 sim/testsuite/sim/arm/misaligned2.ms, and
309 sim/testsuite/sim/arm/misaligned3.ms.
310 * disasm.h (struct ui_file): Add opaque struct declaration.
311 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
312 * frame.h (struct ui_file): Ditto.
313
dea7f9ba
MK
3142003-05-11 Mark Kettenis <[email protected]>
315
316 * value.h: Pretty print.
317
01986c48
MK
3182003-05-10 Mark Kettenis <[email protected]>
319
320 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
321
123a958e
AC
3222003-05-08 Andrew Cagney <[email protected]>
323
324 * regcache.h (max_register_size): Delete declaration.
325 * regcache.c (max_register_size): Delete function.
326 (struct regcache_descr): Delete field "max_register_size".
327 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
328 registers fit in MAX_REGISTER_SIZE.
329 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
330 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
331 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
332 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
333 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
334 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
335 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
336 * dve3900-rom.c, hppa-tdep.c: Ditto.
337
eb294659
DC
3382003-05-08 David Carlton <[email protected]>
339
340 * valops.c (push_word): Fix typo.
341
d9d9c31f
AC
3422003-05-08 Andrew Cagney <[email protected]>
343
344 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
345 * gdbarch.h: Re-generate.
346 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
347 (legacy_max_register_raw_size): Delete declaration.
348 * regcache.c (legacy_max_register_raw_size): Delete function.
349 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
350 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
351 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
352 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
353 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
354 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
355 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
356 * findvar.c, dwarf2cfi.c: Ditto.
357
22540ece
AC
3582003-05-08 Andrew Cagney <[email protected]>
359
360 * mips-tdep.c (read_signed_register): New function, moved to here
361 from "regcache.c".
362 (read_signed_register_pid): Ditto.
363 * regcache.c (read_signed_register_pid): Delete function, moved to
364 "mips-tdep.c".
365 (read_signed_register): Ditto.
366 * regcache.h (read_signed_register): Delete declaration.
367 (read_signed_register_pid): Delete declaration.
368
0c92afe8
AC
3692003-05-08 Andrew Cagney <[email protected]>
370
371 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
372 * gdbarch.h: Re-generate.
373 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
374 (legacy_max_register_virtual_size): Delete declaration.
375 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
376 * d10v-tdep.c (d10v_print_registers_info): Ditto.
377 * tracepoint.c (memrange_sortmerge): Ditto.
378 * sparc-tdep.c (sparc_print_registers): Ditto.
379 * regcache.c (legacy_max_register_virtual_size): Delete function.
380
6037b830
JB
3812002-05-08 J. Brobecker <[email protected]>
382
383 * fork-child.c (escape_bang_in_quoted_argument): New function.
384 (fork_inferior): Escape '!' characters in quoted arguments
385 only when needed.
386
5d62c8b1
JB
3872003-05-08 J. Brobecker <[email protected]>
388
389 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
390 the language of the CU is not currently supported by GDB.
391
20a0e81d
JB
3922003-05-08 J. Brobecker <[email protected]>
393
394 * defs.h (language): Add language_minimal enum value.
395 * c-lang.c (minimal_language_defn): New language definition.
396 (_initialize_c_language): Add the new minimal language to the list
397 of languages known to GDB.
398
710ee10a
KB
3992003-05-08 Kevin Buettner <[email protected]>
400
401 * frame.c (get_frame_type): Don't attempt to lazily initialize
402 frame's unwinder for legacy frames.
403
1750fa04
AC
4042003-05-07 Andrew Cagney <[email protected]>
405
406 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
407 and "regcache" parameters.
408 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
409
ddf9f258
JJ
4102003-05-07 Jeff Johnston <[email protected]>
411
412 * dwarf2read.c (dwarf_decode_lines): Only use output of
413 check_cu_functions() when calling record_line(). Do not update
414 the current address.
415
87767c29
AC
4162003-05-07 Andrew Cagney <[email protected]>
417
418 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
419 code.
420
5e7b2f39
JB
4212003-05-07 Jim Blandy <[email protected]>
422
423 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
424 'maint info symtabs' and 'maint info psymtabs'.
425 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
426 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
427 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
428 Declarations updated.
429 * maint.c (maintenance_list_command): Delete.
430 (_initialize_maint_cmds): Update calls to add_cmd.
431 * gdbcmd.h (maintenancelistlist): Delete declaration.
432 * cli/cli-cmds.c (maintenancelistlist): Delete.
433 (init_cmd_lists): Don't initialize it.
434 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
435
f6684c31
AC
4362003-05-07 Andrew Cagney <[email protected]>
437
438 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
439 "regcache".
440 (d10v_print_registers_info): Update.
441 (d10v_dmap_register, d10v_imap_register): Delete functions.
442 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
443 and "imap_register".
444 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
445 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
446 * arch-utils.c (generic_remote_translate_xfer_address): Add
447 "regcache" and "gdbarch" parameters.
448 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
449 parameter. Change class to multi-arch.
450 * gdbarch.h, gdbarch.c: Re-generate.
451 * remote.c (remote_xfer_memory): Use
452 gdbarch_remote_translate_xfer_address.
453
e4846b08
JJ
4542003-05-07 Jeff Johnston <[email protected]>
455
456 * infrun.c (prev_pc): Move declaration ahead of proceed().
457 (proceed): Refresh prev_pc value before resuming.
458 (stop_stepping): Remove code to refresh prev_pc.
459
6b71b8ac
KW
4602003-05-06 Kris Warkentin <[email protected]>
461
462 * nto-tdep.c: Removed stray comment.
463
47979a4b
KW
4642003-05-06 Kris Warkentin <[email protected]>
465
466 * i386-nto-tdep.c: Fix old K&R function definitions.
467 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
468 Also change add_show_from_set() call to add_setshow_cmd().
469 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
470
00905d52
AC
4712003-05-05 Andrew Cagney <[email protected]>
472
473 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
474 (fprint_dummy_frames): New function.
475 (maintenance_print_dummy_frames): New function.
476 (_initialize_dummy_frame): Add command "maint print dummy-frames".
477 * frame.c (fprint_frame_id): Make global.
478 * frame.h (fprint_frame_id): Declare.
479 * Makefile.in (dummy-frame.o): Update dependencies.
480
b1e29e33
AC
4812003-05-05 Andrew Cagney <[email protected]>
482
483 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
484 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
485 SIZEOF_CALL_DUMMY_WORDS.
486 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
487 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
488 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
489 CALL_DUMMY_BREAKPOINT_OFFSET.
490 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
491 CALL_DUMMY_START_OFFSET.
492 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
493 * gdbarch.h, gdbarch.c: Re-generate.
494 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
495 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
496 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
497 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
498 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
499 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
500 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
501 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
502 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
503 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
504 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
505 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
506 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
507 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
508 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
509
5102003-05-05 Kris Warkentin <[email protected]>
511
512 * configure.tgt: Add i[3456]86-*-nto*.
513 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
514 * nto-tdep.c: New file. Neutrino target support routines.
515 * nto-tdep.h: New file. Neutrino target header.
516 * config/tm-qnxnto.h: New file.
517 * config/i386/i386nto.mt: New file.
518 * config/i386/tm-i386nto.h: New file.
b1e29e33 519
0ce3d317
AC
5202003-05-04 Andrew Cagney <[email protected]>
521
522 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
523 (load_infrun_state): Ditto.
524 (struct thread_info): Drop "prev_func_name" field.
525 * thread.c (load_infrun_state): Update.
526 (save_infrun_state): Update.
527 * infrun.c (prev_func_name): Delete variable.
528 (init_wait_for_inferior): Do not clear prev_func_name.
529 (stop_stepping, keep_going, context_switch): Do not swap
530 prev_func_name.
531 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
532 instead of PC_IN_SIGTRAMP.
533
46654a5b
AC
5342003-05-04 Andrew Cagney <[email protected]>
535
536 * sentinel-frame.c (sentinel_frame_prev_register): Replace
537 REGISTER_BYTE with register_offset_hack.
538 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
539 that REGISTER_BYTE is consistent with the regcache.
540 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
541 * gdbarch.h, gdbarch.c: Regenerate.
542
14b08c1b
MK
5432003-05-04 Mark Kettenis <[email protected]>
544
04c8243f
MK
545 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
546 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
547
14b08c1b
MK
548 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
549
c7a11e01
JB
5502003-05-03 J. Brobecker <[email protected]>
551
552 From Thierry Schneider <[email protected]>
553 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
554 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
555 (mi-cmd-symbol.o): Add rule.
556
7043d8dc
AC
5572003-05-03 Andrew Cagney <[email protected]>
558
559 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
560 comments noteing that it replaces the old FIX_CALL_DUMMY code.
561 * gdbarch.h, gdbarch.c: Re-generate.
562 * d10v-tdep.c (d10v_push_dummy_code): New function.
563 (d10v_gdbarch_init): Set push_dummy_code.
564 * infcall.c (legacy_push_dummy_code): New function.
565 (generic_push_dummy_code): New function.
566 (push_dummy_code): New function.
567 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
568 instead of dummy_addr, to push_dummy_call. Move call to
569 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
570 switch.
571 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
572
92bf2b80
AC
5732003-05-03 Andrew Cagney <[email protected]>
574
575 * disasm.h (print_insn): Declare.
576 * disasm.c (init_gdb_disassemble_info): New function.
577 (gdb_disassembly): Call init_gdb_disassemble_info.
578 (gdb_print_insn): New function.
579 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
580 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
581 * mcore-tdep.c: Include "disasm.h"
582 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
583 * d10v-tdep.c: Include "disasm.h".
584 (display_trace): Call gdb_print_insn, instead of print_insn.
585 (print_insn): Delete function.
586 * printcmd.c: Include "disasm.h".
587 (print_insn): Delete function.
588 (print_formatted): Call gdb_print_insn, instead of print_insn.
589 * Makefile.in (printcmd.o): Update dependencies.
590 (mcore-tdep.o, d10v-tdep.o): Ditto.
591
27d94c49
AC
5922003-05-02 Andrew Cagney <[email protected]>
593
82de1e5b
AC
594 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
595 PC_REGNUM, re-indent.
596 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
597 PC_REGNUM isn't set.
598
27d94c49
AC
599 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
600 * gdbarch.h, gdbarch.c: Re-generate.
601 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
602 register_virtual_size, pc_regnum, or register_bytes.
603 (D10V_PC_REGNUM): Rename _PC_REGNUM.
604 (d10v_register_type): Use D10V_PC_REGNUM.
605 (d10v_print_registers_info, d10v_read_pc): Ditto.
606 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
607 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
608
a9c0dc7f
DC
6092003-05-02 David Carlton <[email protected]>
610
611 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
612 the name with mstrsave.
613
e33d66ec
EZ
6142003-05-02 Elena Zannoni <[email protected]>
615
616 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
617 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
618 (host_charset_name, target_charset_name): New vars for use by
619 set/show commands.
620 (host_charset_enum, target_charset_enum): New enums for set/show
621 commands.
622 (set_charset_sfunc, set_host_charset_sfunc,
623 set_target_charset_sfunc): New functions.
624 (set_host_charset, set_target_charset): Make static.
625 (list_charsets, set_host_charset_command,
626 set_target_charset_command): Delete functions.
627 (show_charset_command): Rewrite as....
628 (show_charset): Hook this up with the set/show command mechanism.
629 (_initialize_charset): Change names of charsets to match the
630 set/show enums. Use host_charset_name and target_charset_name.
631 Use set/show mechanism for charset, host-charset, target-charset
632 commands. Do not make 'show host-charset' and 'show
633 target-charset' be aliases of 'show charset'.
634
635 * charset.h (set_host_charset, set_target_charset): Don't export,
636 they are not used outside the file.
637
2b6fd0d8
AC
6382003-05-01 Andrew Cagney <[email protected]>
639
640 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
641 (gdb_disassembly): Make "di" non static, always initialize and
642 cleanup. Always use dis_asm_read_memory.
643 (gdb_dis_asm_read_memory): Delete function.
644
6ae2f580
AC
6452003-05-01 Andrew Cagney <[email protected]>
646
647 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
648 (d10v_gdbarch_init): Set frame_align instead of stack_align.
649
810ecf9f
AC
6502003-04-30 Andrew Cagney <[email protected]>
651
652 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
653 "tm_print_insn_info".
654 (TARGET_PRINT_INSN_INFO): Delete macro.
655 (dis_asm_read_memory): Delete function declaration.
656 (dis_asm_memory_error, dis_asm_print_address): Ditto.
657 (tm_print_insn_info): Delete variable definition.
658 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
659 * gdbarch.h, gdbarch.c: Re-generate.
660 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
661 "deprecated_tm_print_insn_info".
662 * mcore-tdep.c (mcore_dump_insn): Ditto.
663 * mips-tdep.c (mips_gdbarch_init): Ditto.
664 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
665 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
666 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
667 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
668 instead of TARGET_PRINT_INSN_INFO, add comment.
669 * s390-tdep.c (s390_get_frame_info): Instead of
670 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
671 (s390_check_function_end, s390_is_sigreturn): Ditto.
672 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
673 (dis_asm_memory_error, dis_asm_print_address): Ditto.
674 * disasm.c: Include "gdbcore.h".
675 (_initialize_disasm): New function, initialize
676 "deprecated_tm_print_insn_info".
677 (deprecated_tm_print_insn_info): New variable.
678 (dis_asm_read_memory): Moved from "corefile.c", made static.
679 (dis_asm_print_address, dis_asm_memory_error): Ditto.
680 * Makefile.in (disasm.o): Update dependencies.
681
07020390
AC
6822003-04-30 Andrew Cagney <[email protected]>
683
684 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
685
a9fa03de
AF
6862003-04-29 Adam Fedor <[email protected]>
687
688 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
689 * infcall.c (find_function_addr): Make non-static.
690 * infcall.h (find_function_addr): Declare.
691 * Makefile.in (eval.o): Update dependencies.
692
1bae87b9
AF
6932003-04-28 Adam Fedor <[email protected]>
694
695 * symtab.c (symbol_find_demangled_name): Check for and demangle
696 ObjC symbols.
697 (symbol_init_demangled_name): Init for language_objc as well.
698
0ba6dca9
AC
6992003-04-28 Andrew Cagney <[email protected]>
700
701 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
702 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
703 * gdbarch.h, gdbarch.c: Re-generate.
704 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
705 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
706 * inferior.h (deprecated_read_fp): Rename read_fp.
707 (generic_target_read_fp): Delete declaration.
708 * regcache.c (generic_target_read_fp): Delete function.
709 (deprecated_read_fp): Replace read_fp, use
710 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
711 * d10v-tdep.c (d10v_read_fp): Delete function.
712 (d10v_gdbarch_init): Do not set deprecated_read_fp.
713
714 * sparc-tdep.c (sparc_gdbarch_init): Do not set
715 deprecated_target_read_fp to generic_target_read_fp.
716 * sh-tdep.c (sh_gdbarch_init): Ditto.
717 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
718 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
719 * frv-tdep.c (frv_gdbarch_init): Ditto.
720
721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
722 deprecated_fp_regnum.
723 * x86-64-tdep.c (x86_64_init_abi): Ditto.
724 * vax-tdep.c (vax_gdbarch_init): Ditto.
725 * v850-tdep.c (v850_gdbarch_init): Ditto.
726 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
727 * sh-tdep.c (sh_gdbarch_init): Ditto.
728 * s390-tdep.c (s390_gdbarch_init): Ditto.
729 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
730 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
731 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
732 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
734 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
735 * i386-tdep.c (i386_gdbarch_init): Ditto.
736 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
737 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
738 * frv-tdep.c (frv_gdbarch_init): Ditto.
739 * cris-tdep.c (cris_gdbarch_init): Ditto.
740 * avr-tdep.c (avr_gdbarch_init): Ditto.
741 * arm-tdep.c (arm_gdbarch_init): Ditto.
742 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
743
744 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
745 * v850-tdep.c (v850_gdbarch_init): Ditto.
746 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
747 * sh-tdep.c (sh_gdbarch_init): Ditto.
748 * s390-tdep.c (s390_gdbarch_init): Ditto.
749 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
750 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
751 * mips-tdep.c (mips_gdbarch_init): Ditto.
752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
753 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
754 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
755 * frv-tdep.c (frv_gdbarch_init): Ditto.
756 * avr-tdep.c (avr_gdbarch_init): Ditto.
757 * arm-tdep.c (arm_gdbarch_init): Ditto.
758
759 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
760 DEPRECATED_FP_REGNUM.
761 (vax_push_dummy_frame, vax_pop_frame): Ditto.
762 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
763 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
764 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
765 (sparc32_register_virtual_type): Ditto.
766 * sh-tdep.c (sh64_frame_chain): Ditto.
767 (sh64_get_saved_register, sh64_pop_frame): Ditto.
768 (sh_nofp_frame_init_saved_regs): Ditto.
769 (sh64_nofp_frame_init_saved_regs): Ditto.
770 (sh_fp_frame_init_saved_regs): Ditto.
771 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
772 * remote-e7000.c (fetch_regs_from_dump): Ditto.
773 * procfs.c (procfs_fetch_registers): Ditto.
774 (procfs_store_registers): Ditto.
775 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
776 (store_inferior_registers, fetch_core_registers): Ditto.
777 (fetch_kcore_registers, clear_regs): Ditto.
778 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
779 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
780 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
781 * nlm/i386.c (do_status): Ditto.
782 * mipsv4-nat.c (supply_gregset): Ditto.
783 * mips-tdep.c: Ditto for comments.
784 * mips-nat.c (fetch_inferior_registers): Ditto.
785 (store_inferior_registers, fetch_core_registers): Ditto.
786 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
787 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
788 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
789 (i386_do_pop_frame, i386_register_type): Ditto.
790 * hppa-tdep.c (hppa_frame_chain): Ditto.
791 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
792 (hppa_pop_frame, hppa_read_fp): Ditto.
793 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
794 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
795 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
796 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
797 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
798 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
799 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
800 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
801 * blockframe.c: Ditto for comments.
802 * arch-utils.h: Ditto for comments.
803 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
804 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
805 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
806 * alpha-tdep.h: Ditto for comments.
807 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
808 (alpha_cannot_store_register): Ditto.
809 (alpha_push_dummy_frame): Ditto.
810 * alpha-nat.c (supply_gregset): Ditto.
811
812 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
813 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
814 * config/sparc/tm-sparc.h: Update comment.
815
816 * hppa-tdep.c (hppa_init_extra_frame_info): Use
817 deprecated_read_fp instead of TARGET_READ_FP.
818 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
819 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
820 * sparc-tdep.c (sparc_init_extra_frame_info): Use
821 deprecated_read_fp instead of read_fp.
822 * s390-tdep.c (s390_push_arguments): Ditto.
823 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
824 * frame.h: Ditto in comments.
825 * frame.c (legacy_get_prev_frame): Ditto.
826 * dummy-frame.c (dummy_frame_this_id): Ditto.
827 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
828
d7a27068
AC
8292003-04-28 Andrew Cagney <[email protected]>
830
831 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
832 * gdbarch.h, gdbarch.c: Re-generate.
833 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
834 * vax-tdep.c (_initialize_vax_tdep): Update.
835 * v850-tdep.c (_initialize_v850_tdep): Update.
836 * sparc-tdep.c (_initialize_sparc_tdep): Update.
837 * s390-tdep.c (_initialize_s390_tdep): Update.
838 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
839 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
840 * mips-tdep.c (_initialize_mips_tdep): Update.
841 * mcore-tdep.c (_initialize_mcore_tdep): Update.
842 * m68k-tdep.c (_initialize_m68k_tdep): Update.
843 * ia64-tdep.c (_initialize_ia64_tdep): Update.
844 * hppa-tdep.c (_initialize_hppa_tdep): Update.
845 * h8300-tdep.c (_initialize_h8300_tdep): Update.
846 * frv-tdep.c (_initialize_frv_tdep): Update.
847 * cris-tdep.c (cris_delayed_get_disassembler): Update.
848 (_initialize_cris_tdep): Update.
849 * arch-utils.c (legacy_print_insn): Update.
850 * alpha-tdep.c (_initialize_alpha_tdep): Update.
851
d2630e69
AF
8522003-04-26 Adam Fedor <[email protected]>
853
854 * linespec.c (decode_objc): New function to decode ObjC calls
855 (decode_line_1): Check for ObjC calls (using decode_objc)
856 * Makefile (linespec.o): Update dependencies.
857
3086aeae
DJ
8582003-04-26 Daniel Jacobowitz <[email protected]>
859
860 * breakpoint.h (struct breakpoint_ops): New.
861 (struct breakpoint): Add ops member.
862
863 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
864 (mention): Use new breakpoint ops member.
865 (set_raw_breakpoint): Initialize ops field to NULL.
866 (print_exception_catchpoint, print_one_exception_catchpoint)
867 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
868 (gnu_v3_exception_catchpoint_ops): New.
869 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
870
1fbec6c3
AF
8712003-04-25 Adam Fedor <[email protected]>
872
873 * Makefile.in (COMMON_OBS): Add objc-lang.o
874
0ef21242
AC
8752003-04-25 Andrew Cagney <[email protected]>
876
877 * d10v-tdep.c (print_insn): Delete function.
878 (display_trace): Use TARGET_PRINT_INSN.
879 (_initialize_d10v_tdep): Do not set tm_print_insn.
880 (d10v_gdbarch_init): Set print_insn.
881
f75493ed
AC
8822003-04-25 Andrew Cagney <[email protected]>
883
884 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
885 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
886 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
887 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
888 (nr_dmap_regs, a0_regnum): ... new functions.
889 (d10v_print_registers_info): Use a0_regnum, use register_size.
890 (d10v_register_byte): Delete function.
891 (d10v_register_raw_size): Delete function.
892 (d10v_register_type): Use a0_regnum.
893 (d10v_print_registers_info): Use a0_regnum.
894 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
895 (d10v_gdbarch_init): Do not set register_byte or
896 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
897 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
898 extract_address.
899 (trace_command): Use XCALLOC.
900 (print_insn): Delete reference to tm_print_insn.
901 (saved_regs_unwinder): Use store_unsigned_integer instead of
902 store_address.
903 * frame.h (FRAME_OBSTACK_CALLOC): Define
904
2202b100
DC
9052003-04-25 David Carlton <[email protected]>
906
907 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
908
4e45ca2e
AF
9092003-04-24 Adam Fedor <[email protected]>
910
911 * objc-lang.c: Include "valprint.h"
912 * Makefile.in (objc-lang.o): Update dependencies.
913
93de3e7f
AF
9142003-04-24 Adam Fedor <[email protected]>
915
916 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
917 architecture dependant compilation and mark as unimplemented
918 (until they get put in the gdbarch vector).
919
0f20eeea
DC
9202003-04-23 David Carlton <[email protected]>
921
922 * cp-support.c (cp_find_first_component): Accept 'operator' in
923 more locations.
924
74cfe982
AC
9252003-04-23 Andrew Cagney <[email protected]>
926
927 * infcall.c (call_function_by_hand): Eliminate redundant
928 indentation. Move "saved_async" and "old_cleanups" to where they
929 are needed.
930
52557533
AC
9312003-04-23 Andrew Cagney <[email protected]>
932
933 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
934 and "buffer". Move the "name" code to where it is needed.
935
158775de
AC
9362003-04-23 Andrew Cagney <[email protected]>
937
938 * infcall.c (call_function_by_hand): Move variables "start_sp",
939 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
940 code to ON_STACK switch branch.
941
ebc7896c
AC
9422003-04-23 Andrew Cagney <[email protected]>
943
944 * infcall.c (call_function_by_hand): Make declaration of "i",
945 "sal", "bpt" and "old_sp" more local to their use. Delete #if
946 lint.
947
d727590f
AC
9482003-04-23 Andrew Cagney <[email protected]>
949
950 * infcall.c (call_function_by_hand): Delete variable
951 "n_method_args". Localize "param_type"'s declaration to the loop
952 that it is used. Reinstate code assigning to said variable -
953 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
954 Rationalize code using "param_type".
955
d585e13a
AC
9562003-04-22 Andrew Cagney <[email protected]>
957
958 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
959 compute the breakpoint address. Only call FIX_CALL_DUMMY when
960 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
961 to DEPRECATED_PUSH_RETURN_ADDRESS.
962
051caad9
KB
9632003-04-22 Kevin Buettner <[email protected]>
964
965 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
966 on the DWARF2 register number prior to fetching a register.
967
77296879
JB
9682003-04-22 J. Brobecker <[email protected]>
969
970 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
971 Update all the tests using SOFT_FLOAT considering the fact that
972 this macro was always set to 0.
973 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
974 considering the fact that this macro was always set to 0.
975 * hppa-tdep.h (hppa_store_return_value): Likewise.
976 (hppa_extract_return_value): Likewise.
977
4252f1df
JB
9782003-04-22 J. Brobecker <[email protected]>
979
980 * config/pa/tm-hppa.h: Remove obsolete code, was used by
981 the hppa-pro target only.
982
14604c6b
JB
9832003-04-21 J. Brobecker <[email protected]>
984
985 Ongoing multi-arch conversion effort for HP/UX:
986 * config/pa/tm-hppa.h: Move all macro that are no longer
987 defined now that GDB_MULTI_ARCH is now set to 1 from here...
988 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
989
77eb01d1
JB
9902003-04-21 J. Brobecker <[email protected]>
991
992 * config/pa/tm-hppa.h: Obsolete a section that was only used
993 for hppa-pro.
994
61995b3b
JB
9952003-04-21 J. Brobecker <[email protected]>
996
997 Ongoing multi-arch conversion for HP/UX.
998 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
999 if already defined (allows hppa64 to stay non-multiarched for now).
1000 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
1001
4aa79dcc
AC
10022003-04-21 Andrew Cagney <[email protected]>
1003
1004 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
1005
0f751ff2
AC
10062003-04-21 Andrew Cagney <[email protected]>
1007
1008 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
1009 "i386_num_mmx_regs".
1010
04714b91
AC
10112003-04-21 Andrew Cagney <[email protected]>
1012
1013 * infcall.c: New file.
1014 * infcall.h: New file.
1015 * valarith.c: Include "infcall.h".
1016 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
1017 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
1018 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
1019 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
1020 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
1021 (SFILES): Add "infcall.c"
1022 (COMMON_OBS): Add "infcall.o".
1023 (infcall.o): Specify dependencies.
1024 * value.h (call_function_by_hand): Delete declaration.
1025 * inferior.h (run_stack_dummy): Delete declaration.
1026 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
1027 (run_stack_dummy): Move to "infcall.c", merged into
1028 call_function_by_hand.
1029 * valops.c (call_function_by_hand): Moved to "infcall.c".
1030 (find_function_addr, value_arg_coerce): Ditto.
1031 (unwindonsignal_p, coerce_float_to_double): Ditto.
1032 (_initialize_valops): Move "set/show coerce-float-to-double", and
1033 "set/show unwindonsignal" commands to "infcall.c".
1034 * v850-tdep.c, target.h: Update comments.
1035 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
1036 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
1037 (sh64_init_extra_frame_info): Update comments.
1038 * mn10300-tdep.c: Update comments.
1039 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
1040 * config/sparc/tm-sparc.h: Update comments.
1041 * breakpoint.h: Update comments.
1042 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
1043 * arm-tdep.c: Update comment.
1044
f9d3c2a8
MK
10452003-04-19 Mark Kettenis <[email protected]>
1046
c40e1eab
MK
1047 * i386-tdep.c (i386_num_register_names): New variable.
1048 (i386_num_mmx_regs): Renamed from mmx_num_regs.
1049 (MM0_REGNUM): Remove redundant parentheses in define.
1050 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
1051 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
1052 i386_mxcsr_regnum_p): Remove redundant parentheses.
1053 (i386_register_name): Use i386_num_register_names.
1054
94ea66b3
MK
1055 * i386-tdep.c (i386_extract_return_value,
1056 i386_store_return_value): Correct check for availability of
1057 floating-point registers.
1058
54299a1d
MK
1059 * i386-tdep.c (i386_frame_num_args): Remove function.
1060 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
1061
c86c27af
MK
1062 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
1063 mmx_regnum_to_fp_regnum. Adjust all callers.
1064
f9d3c2a8
MK
1065 * i386-tdep.c (i386_get_longjmp_target): Use
1066 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
1067 and TARGET_CHAR_BIT. Use extract_typed_address instead of
1068 extract_address.
1069
94ba74a9
MK
10702003-04-19 Mark Kettenis <[email protected]>
1071
1072 * core-regset.c: Update comments to reflect reality. Re-order
1073 includes.
1074 (fetch_core_registers): Use switch instead of if. Remove
1075 redundant prototype.
1076
4074e13c
JB
10772003-04-18 Jim Blandy <[email protected]>
1078
1079 * s390-tdep.c (s390_frame_align): New function.
1080 (s390_gdbarch_init): Register it with the gdbarch object.
1081
e3ab4aba
RH
10822003-04-17 Richard Henderson <[email protected]>
1083
1084 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
1085
627bf7c1
EZ
10862003-04-17 Michael Snyder <[email protected]>
1087 Karen Bennet <[email protected]>
1088
1089 Committed by Elena Zannoni <[email protected]>
1090 * gdb_gcore.sh: New script to create a core dump of a process.
1091
514621a9
EZ
10922003-04-17 Elena Zannoni <[email protected]>
1093
1094 * values.c (value_being_returned): Don't fetch the return
1095 value if the return type is void.
1096
b4acd559
JJ
10972003-04-17 Jeff Johnston <[email protected]>
1098
1099 * thread-db.c: Reindented.
1100
530b167e
JJ
11012003-04-17 Jeff Johnston <[email protected]>
1102
1103 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
1104 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
1105 as types.
1106
ab9fe00e
KB
11072003-04-16 Kevin Buettner <[email protected]>
1108
610a3745 1109 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
1110 the size of ``long double'' to 16, instead of 8.
1111
e64a344c
MK
11122003-04-16 Mark Kettenis <[email protected]>
1113
1114 * i386-linux-nat.c: Add some whitespace to make things more
1115 readable.
1116 (fetch_register, store_register, fetch_inferior_registers,
1117 store_inferior_registers): Get rid of assignment in if-statement.
1118 (store_register): Fix typo in error message.
1119
25d41031
AC
11202003-04-16 Andrew Cagney <[email protected]>
1121
1122 * utils.c (xmmalloc): Always allocate something, matches
1123 libiberty/xmalloc's semantics.
1124 (xmrealloc, xmcalloc): Ditto.
1125
c50901fd
AC
11262003-04-16 Andrew Cagney <[email protected]>
1127
1128 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
1129 update comments.
1130 (get_frame_type): Initialize unwind and type when needed.
1131 (get_frame_id, frame_register_unwind): Ditto.
1132
f81824a9
AC
11332003-04-16 Andrew Cagney <[email protected]>
1134
1135 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
1136 obsolete.
1137 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
1138 * sparcl-stub.c: Obsolete file.
1139 * config/sparc/tm-sparclet.h: Obsolete file.
1140 * sparclet-stub.c: Obsolete file.
1141 * sparclet-rom.c: Obsolete file.
1142 * sparcl-tdep.c: Obsolete file.
1143 * config/sparc/tm-sparclite.h: Obsolete file.
1144 * config/sparc/sparclite.mt: Obsolete file.
1145 * config/sparc/sparclet.mt: Obsolete file.
1146 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
1147 sparc86x-*-* obsolete.
1148
9219021c
DC
11492003-04-15 David Carlton <[email protected]>
1150
1151 * Makefile.in (SFILES): Add cp-namespace.c.
1152 (COMMON_OBS): Add cp-namespace.o.
1153 (block.o): Depend on gdb_obstack_h and cp_support_h.
1154 (buildsym.o): Depend on cp_support_h.
1155 (cp-namespace.o): New.
1156 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
1157 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
1158 (dwarf2read.o): Depend on cp_support_h.
1159 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
1160 * dwarf2read.c (process_die): Set processing_has_namespace_info,
1161 processing_current_namespace.
1162 (read_namespace): Update processing_current_namespace; check for
1163 anonymous namespaces.
1164 (dwarf2_name): New function.
1165 (dwarf2_extension): Ditto.
1166 * cp-support.h: Update copyright, contributors.
1167 Add inclusion guards.
1168 Add opaque declaration for structs obstack, block, symbol.
1169 (struct using_direct): New struct.
1170 Add declarations for cp_find_first_component,
1171 cp_entire_prefix_len, processing_has_namespace_info,
1172 processing_current_namespace, cp_is_anonymous,
1173 cp_add_using_directive, cp_initialize_namespace,
1174 cp_finalize_namespace, cp_set_block_scope,
1175 cp_scan_for_anonymous_namespaces.
1176 * cp-namespace.c: New file.
1177 * cp-support.c: Update copyright.
1178 Include ctype.h, gdb_assert.h, gdbcmd.h.
1179 New variable maint_cplus_cmd_list.
1180 (cp_find_first_component): New function.
1181 (cp_entire_prefix_len, maint_cplus_command)
1182 (first_component_command, _initialize_cp_support): Ditto.
1183 * buildsym.c: Include cp-support.h.
1184 New variable using_list.
1185 (add_symbol_to_list): Check for anonymous namespaces.
1186 (finish_block): Set block's scope.
1187 (start_symtab): Initialize C++ namespace support.
1188 (end_symtab): Finalize C++ namespace support.
1189 * block.h: Add opaque declarations for structs
1190 block_namespace_info, using_direct, and obstack.
1191 Add declarations for block_set_scope and block_set_using.
1192 (struct block): Add 'language_specific' member.
1193 (BLOCK_NAMESPACE): New macro.
1194 * block.c: Include gdb_obstack.h and cp-support.h.
1195 (struct block_namespace_info): New struct.
1196 (block_set_scope): New function.
1197 (block_set_using, block_initialize_namespace): Ditto.
1198
d5a921c9
KB
11992003-04-14 Kevin Buettner <[email protected]>
1200
1201 * solib-svr4.c (svr4_have_link_map_offsets): New function.
1202 (locate_base): Return early if there aren't any link map offsets.
1203 (svr4_solib_create_inferior_hook): Warn if shared library support
1204 is unavailable.
1205
d2a52b27
DC
12062003-04-14 David Carlton <[email protected]>
1207
1208 * symtab.c (symbol_set_names): Add prefix when storing Java names
1209 in hash table. Fix for PR java/1039.
1210
980cae7a
DC
12112003-04-14 David Carlton <[email protected]>
1212
1213 * symtab.c (symbol_set_names): Rename 'name' arg to
1214 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
1215 * symtab.h: Change 'name' argument in declaration of
1216 symbol_set_names to 'linkage_name'.
1217 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
1218
e227b13c
AC
12192003-04-14 Andrew Cagney <[email protected]>
1220
1221 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
1222 return the fully sign-extended register value.
1223 (get_frame_pointer): Ditto.
1224 (mips_pop_frame): Initialize "proc_desc" after checking for a
1225 dummy frame.
1226
36712a20
AC
12272003-04-14 Andrew Cagney <[email protected]>
1228
1229 * mips-tdep.c (mips_push_dummy_frame): Delete function.
1230 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
1231 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
1232 (mips_push_register): Delete function.
1233 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
1234 PUSH_FP_REGNUM.
1235
44ea7b70
JB
12362003-04-14 Jim Blandy <[email protected]>
1237
1238 * symmisc.c: #include "gdb_regex.h".
1239 (maintenance_list_symtabs, maintenance_list_psymtabs): New
1240 functions.
1241 * maint.c (maintenance_list_command): New function.
1242 (_initialize_maint_cmds): Register the above as commands.
1243 * symtab.h (maintenance_list_symtabs,
1244 maintenance_list_psymtabs): New declarations.
1245 * cli/cli-cmds.c (maintenancelistlist): New variable.
1246 (init_cmd_lists): Initialize it.
1247 * cli/cli-cmds.h (maintenancelistlist): New declaration.
1248 * gdbcmd.h (maintenancelistlist): New declaration.
1249 * Makefile.in (symmisc.o): Update dependencies.
1250
2d0c7962
EZ
12512003-04-14 Elena Zannoni <[email protected]>
1252
1253 * s390-nat.c: Include asm/types.h for addr_t.
1254
1947a811
CV
12552003-04-14 Corinna Vinschen <[email protected]>
1256
1257 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
1258 actually incoming type.
1259
adb616d7
AC
12602003-04-13 Andrew Cagney <[email protected]>
1261
1262 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
1263 get_next_frame and get_frame_saved_regs.
1264
9b5e151c
AC
12652003-04-13 Andrew Cagney <[email protected]>
1266
1267 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
1268 of gdbarch_num_regs.
1269
ef6e7e13
AC
12702003-04-13 Andrew Cagney <[email protected]>
1271
1272 * frame.h: Mention what replaced what in "struct frame_info".
1273 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
1274 deprecated_update_frame_base_hack and
1275 deprecated_update_frame_pc_hack.
1276 * hppa-tdep.c: Ditto.
1277
61fbb938
DJ
12782003-04-13 Daniel Jacobowitz <[email protected]>
1279
1280 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
1281 to read_reg and update its comment. Remove regnum member.
1282 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
1283 Don't call read_reg when setting in_reg. Call read_reg to get
1284 the frame base if it's in a register. Return the register number
1285 on the stack instead of in the context. Remove extra arguments
1286 to read_reg.
1287 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
1288 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
1289 the register number on the expression stack.
1290 (needs_frame_read_reg): Remove extra arguments.
1291
0d53c4c4
DJ
12922003-04-13 Daniel Jacobowitz <[email protected]>
1293
1294 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
1295 made non-static.
1296 (execute_stack_op): All callers updated.
1297 * dwarf2expr.h: Add prototype for dwarf2_read_address.
1298 * dwarf2loc.c (find_location_expression): New function.
1299 (dwarf_expr_frame_base): Call it.
1300 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
1301 (dwarf2_tracepoint_var_ref): New function, broken out from
1302 locexpr_tracepoint_var_ref.
1303 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
1304 Make static.
1305 (loclist_read_variable, loclist_read_needs_frame): New functions.
1306 (loclist_describe_location, loclist_tracepoint_var_ref): New
1307 functions.
1308 (dwarf2_loclist_funcs): New struct location_funcs.
1309 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
1310 (struct dwarf2_locexpr_baton): Add comments.
1311 (dwarf2_loclist_funcs): New extern.
1312 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
1313 base_address and base_known.
1314 (dwarf_loc_buffer): New variable.
1315 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
1316 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
1317 (dwarf2_has_info): Initialize dwarf_loc_offset.
1318 (dwarf2_build_psymtabs): Read in .debug_loc.
1319 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
1320 DWARF_LOC_SIZE.
1321 (psymtab_to_symtab_1): Likewise. Move base address calculation
1322 here, from...
1323 (dwarf2_get_pc_bounds): ... here. Use the base address from
1324 cu_header.
1325 (dwarf2_symbol_mark_computed): Handle location lists.
1326
6aca59a3
DJ
13272003-04-13 Daniel Jacobowitz <[email protected]>
1328
1329 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
1330 if the linkage name demangled successfully.
1331
aca1fcd0
MK
13322003-04-13 Mark Kettenis <[email protected]>
1333
97095916
MK
1334 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
1335 disassmbly_flavour): Removed.
1336
aca1fcd0
MK
1337 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
1338
562a961f
MK
13392003-04-13 Mark Kettenis <[email protected]>
1340
1341 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
1342
bd013d54
AC
13432003-04-12 Andrew Cagney <[email protected]>
1344
1345 * frame.h (struct frame_info): Move definition from here ...
1346 * frame.c (struct frame_info): ... to here.
1347
167ef8b1
AC
13482003-04-12 Andrew Cagney <[email protected]>
1349
1350 * gdbthread.h (save_infrun_state): Delete parameter
1351 "prev_func_start".
1352 (struct thread_info): Delete field "prev_func_start".
1353 (load_infrun_state): Ditto.
1354 * thread.c (load_infrun_state, save_infrun_state): Update.
1355 * infrun.c (prev_func_start): Delete variable.
1356 (context_switch, init_wait_for_inferior): Update.
1357 (stop_stepping, keep_going): Update.
1358
da3331ec
AC
13592003-04-12 Andrew Cagney <[email protected]>
1360
1361 * gdbarch.sh: Add missing opaque declarations.
1362 * gdbarch.h: Regnerate.
1363 * symtab.h: Add missing opaque declarations.
1364 * value.h, target.h, symfile.h, stabsread.h: Ditto.
1365 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
1366 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
1367 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
1368 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
1369 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
1370 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
1371 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
1372 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
1373 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
1374 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
1375 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
1376 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
1377
18adea3f
AC
13782003-04-11 Andrew Cagney <[email protected]>
1379
1380 * frame.c (get_frame_id): Return this frame's "id".
1381 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
1382 function start.
1383 (legacy_saved_regs_this_id): Replace function body with
1384 internal-error.
1385 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
1386 FRAME_OBSTACK_ZALLOC.
1387 (create_new_frame): Mark the frame ID as valid.
1388
2252e863
AO
13892003-04-11 Alexandre Oliva <[email protected]>
1390
1391 * Makefile.in (libbfd_h): Added missing setting.
1392 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
1393 according to the selected ABI.
1394
a8245ab8
JJ
13952003-04-11 Jeff Johnston <[email protected]>
1396
1397 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
1398
6913c89a
AC
13992003-04-11 Andrew Cagney <[email protected]>
1400
1401 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
1402 SAVED_PC_AFTER_CALL.
1403 * gdbarch.h, gdbarch.c: Regenerate.
1404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1405 * x86-64-tdep.c (x86_64_init_abi): Update.
1406 * vax-tdep.c (vax_gdbarch_init): Update.
1407 * v850-tdep.c (v850_gdbarch_init): Update.
1408 * sparc-tdep.c (sparc_gdbarch_init): Update.
1409 * sh-tdep.c (sh_gdbarch_init): Update.
1410 * s390-tdep.c (s390_gdbarch_init): Update.
1411 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1412 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1413 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1414 * mips-tdep.c (mips_gdbarch_init): Update.
1415 * mcore-tdep.c (mcore_gdbarch_init): Update.
1416 * m68k-tdep.c (m68k_gdbarch_init): Update.
1417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1418 * ia64-tdep.c (ia64_gdbarch_init): Update.
1419 (ia64_saved_pc_after_call): Update declaration.
1420 * i386ly-tdep.c (i386lynx_init_abi): Update.
1421 * i386-tdep.c (i386_gdbarch_init): Update.
1422 * hppa-tdep.c (hppa_gdbarch_init): Update.
1423 * h8300-tdep.c (h8300_gdbarch_init): Update.
1424 * frv-tdep.c (frv_gdbarch_init): Update.
1425 * cris-tdep.c (cris_gdbarch_init): Update.
1426 * avr-tdep.c (avr_gdbarch_init): Update.
1427 * arm-tdep.c (arm_gdbarch_init): Update.
1428 * alpha-tdep.c (alpha_gdbarch_init): Update.
1429 * ns32knbsd-nat.c (frame_num_args): Update.
1430 * ns32k-tdep.c (umax_frame_num_args): Update.
1431 * mips-tdep.c (mips_init_frame_pc_first): Update.
1432 * infrun.c (step_over_function): Update.
1433 * i386-linux-tdep.c (skip_hurd_resolver): Update.
1434 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
1435 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1436 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1437 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1438 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1439 * arm-linux-tdep.c (skip_hurd_resolver): Update.
1440 * arch-utils.c (init_frame_pc_default): Update.
1441 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1442 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
1443 declaration.
1444
38edeab8
AC
14452003-04-11 Andrew Cagney <[email protected]>
1446
1447 * i387-tdep.c: Update copyright.
1448 (i387_to_double): Delete function.
1449 (double_to_i387): Delete function.
1450
81f8a206
AC
14512003-04-10 Andrew Cagney <[email protected]>
1452
1453 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
1454 frame's function's address. Simplify.
1455 (d10v_frame_unwind_cache): Check that the frame's function is
1456 non-zero.
1457
6e691f7a
JB
14582003-04-10 Jim Blandy <[email protected]>
1459
1460 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
1461 call to set_gdbarch_deprecated_push_arguments.
1462
7f78e237
AC
14632003-04-10 Andrew Cagney <[email protected]>
1464
1465 * frame.c (fprint_frame_id): New function.
1466 (fprint_frame_type, fprint_frame): New function.
1467 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
1468 (create_sentinel_frame, get_frame_id): Ditto.
1469 (frame_id_p, frame_id_eq): Ditto.
1470 (frame_id_inner, create_new_frame): Ditto.
1471 (legacy_get_prev_frame, get_prev_frame): Ditto.
1472 (deprecated_update_frame_pc_hack): Ditto.
1473 (frame_register_unwind): Ditto.
1474 (deprecated_update_frame_base_hack): Ditto.
1475
f870b49b
CV
14762003-04-10 Corinna Vinschen <[email protected]>
1477
1478 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
1479 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
1480 frame_chain function.
1481 * Makefile.in: Add dependencies due to above change.
1482
7c86889b
CV
14832003-04-10 Corinna Vinschen <[email protected]>
1484
1485 * blockframe.c (legacy_frame_chain_valid): Move call to
1486 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
1487 inside_entry_file.
1488
d0a55772
AC
14892003-04-09 Andrew Cagney <[email protected]>
1490
1491 * frame.h (struct frame_id): Replace "pc" and "base" with
1492 "stack_addr" and "code_addr". Update comments.
1493 (frame_id_build): Update parameter names and comment.
1494 (struct frame_info): Replace "id_p" and "id" with "this_id".
1495 * dummy-frame.c (dummy_frame_this_id): Update.
1496 * breakpoint.c (print_one_breakpoint): Update.
1497 * frame.c (get_frame_id): Update.
1498 (get_frame_base, frame_id_build): Update.
1499 (create_sentinel_frame, legacy_get_prev_frame): Update.
1500 (deprecated_update_frame_base_hack): Update.
1501 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
1502 (frame_id_inner): Ditto.
1503
ac16bf07
AC
15042003-04-09 Andrew Cagney <[email protected]>
1505
1506 * defs.h (gdb_print_host_address): Make "addr" parameter a
1507 pointer constant.
1508 * utils.c (gdb_print_host_address): Update.
1509
366cfc9e
KB
15102003-04-09 Kevin Buettner <[email protected]>
1511
1512 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
1513 register number for R0 is 0.
1514
cd983b5c
JB
15152003-04-09 J. Brobecker <[email protected]>
1516
1517 * frame.h (struct gdbarch): Add opaque structure definition
1518 to avoid a compilation warning on LynxOS 4.0.
1519
d1340264
AC
15202003-04-09 Andrew Cagney <[email protected]>
1521
1522 * frame.h (struct frame_info): Delete field "pc". Replace
1523 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
1524 structure.
1525 * frame.c (frame_pc_unwind): Update.
1526 (create_sentinel_frame): Do not set "pc".
1527 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
1528 (get_frame_pc): Call frame_pc_unwind.
1529 (deprecated_update_frame_pc_hack): Update.
1530 (create_new_frame): Use "pc" not "->pc".
1531
90a6fffb
AC
15322003-04-09 Andrew Cagney <[email protected]>
1533
1534 * frame.c (get_frame_id): Eliminate code updating "frame".
1535 (legacy_get_prev_frame): Ditto.
1536 (get_frame_base): Return id.base directly.
1537 (deprecated_update_frame_base_hack): Update "id.base".
1538 * frame.h (struct frame_info): Delete field "frame".
1539
2fbce691
AC
15402003-04-09 Andrew Cagney <[email protected]>
1541
1542 * NEWS: Mention that the "Sequent family" is obsolete.
1543 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
1544 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1545 * configure.host: Obsolete i[3456]86-sequent-bsd*,
1546 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1547 * config/i386/tm-ptx4.h: Obsolete file.
1548 * config/i386/tm-ptx.h: Obsolete file.
1549 * symm-tdep.c: Obsolete file.
1550 * config/i386/symmetry.mt: Obsolete file.
1551 * config/i386/tm-symmetry.h: Obsolete file.
1552 * symm-nat.c: Obsolete file.
1553 * config/i386/nm-symmetry.h: Obsolete file.
1554 * config/i386/xm-symmetry.h: Obsolete file.
1555 * config/i386/symmetry.mh: Obsolete file.
1556 * config/i386/nm-ptx4.h: Obsolete file.
1557 * config/i386/ptx4.mh: Obsolete file.
1558 * config/i386/ptx.mt: Obsolete file.
1559 * config/i386/ptx.mh: Obsolete file.
1560 * config/i386/xm-ptx4.h: Obsolete file.
1561 * config/i386/xm-ptx.h: Obsolete file.
1562
78c43945
AC
15632003-04-09 Andrew Cagney <[email protected]>
1564
1565 Obsolete mips*-*-mach3*.
1566 * NEWS: Mention that mips*-*-mach3* is obsolete.
1567 * m3-nat.c: Obsolete file.
1568 * config/nm-m3.h: Obsolete file.
1569 * config/mips/tm-mipsm3.h: Obsolete file.
1570 * config/mips/mipsm3.mt: Obsolete file.
1571 * config/mips/mipsm3.mh: Obsolete file.
1572 * config/mips/xm-mipsm3.h: Obsolete file.
1573 * mipsm3-nat.c: Obsolete file.
1574 * configure.host: Obsolete mips-dec-mach3*.
1575 * configure.tgt: Obsolete mips*-*-mach3*.
1576
f1908289
AC
15772003-04-09 Andrew Cagney <[email protected]>
1578
1579 * doublest.h: Update copyright.
1580 (deprecated_store_floating, deprecated_extract_floating): Rename
1581 store_floating and extract_floating. Update comments.
1582 * doublest.c: Update copyright.
1583 (extract_floating_by_length): Replace extract_floating.
1584 (store_floating_by_length): Replace store_floating.
1585 (deprecated_extract_floating): New function.
1586 (deprecated_store_floating): New function.
1587 (extract_typed_floating): Call extract_floating_by_length.
1588 (store_typed_floating): Call store_floating_by_length.
1589 * x86-64-tdep.c (x86_64_store_return_value): Update.
1590 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
1591 (sh64_extract_return_value): Update.
1592 (sh_sh4_register_convert_to_virtual): Update.
1593 (sh_sh64_register_convert_to_virtual): Update.
1594 (sh_sh4_register_convert_to_raw): Update.
1595 (sh_sh64_register_convert_to_raw): Update.
1596 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
1597 (rs6000_register_convert_to_raw): Update.
1598 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
1599 (ia64_register_convert_to_raw): Update.
1600 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
1601 (REGISTER_CONVERT_TO_VIRTUAL): Update.
1602 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
1603 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
1604 (alpha_register_convert_to_raw): Update.
1605
4443bd83
AC
16062003-04-08 Andrew Cagney <[email protected]>
1607
1608 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
1609 * gdbarch.h, gdbarch.c: Re-generate.
1610 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
1611 (d10v_gdbarch_init): Do not set saved_pc_after_call.
1612 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
1613 conditionally, use frame_pc_unwind as an alternative. Add
1614 comments.
1615 * arch-utils.c (init_frame_pc_default): Only call
1616 SAVED_PC_AFTER_CALL when available.
1617
c0236d92
EZ
16182003-04-08 Elena Zannoni <[email protected]>
1619
1620 * infrun.c (stop_soon): Rename from stop_soon_quietly.
1621 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
1622 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
1623 (start_remote): Ditto.
1624 (handle_inferior_event): Ditto.
1625 (save_inferior_status): Ditto.
1626 (restore_inferior_status): Ditto.
1627 * infcmd.c (attach_command): Ditto.
1628 * fork-child.c (startup_inferior): Ditto.
1629 * inferior.h (stop_soon): Rename from stop_soon_quietly.
1630 * alpha-tdep.c (heuristic_proc_start): Ditto.
1631 * mips-tdep.c (heuristic_proc_start): Ditto.
1632 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
1633 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1634 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1635 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
1636 * remote-vx.c (vx_create_inferior): Ditto.
1637
16382003-04-08 Elena Zannoni <[email protected]>
1639
1640 * infrun.c (stop_soon_quietly): Make it an enum, to better
1641 override the default behavior of handle_inferior_event.
1642 (clear_proceed_status): Update uses of stop_soon_quietly to
1643 reflect that it is now an enum.
1644 (start_remote): Ditto.
1645 (handle_inferior_event): Change logic a bit if stop_soon_quietly
1646 is set to handle the new GNU/Linux kernel behavior for
1647 attach/sigstop. Update uses of stop_soon_quietly.
1648 * inferior.h (enum stop_kind): New enum.
1649 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
1650 Reset normal handle_inferior_event behavior, afterwards.
1651 * fork-child.c (startup_inferior): Update.
1652 * alpha-tdep.c (heuristic_proc_start): Update.
1653 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1654 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
1655 * solib-osf.c (osf_solib_create_inferior_hook): Update.
1656 * solib-irix.c (irix_solib_create_inferior_hook): Update.
1657 * remote-vx.c (vx_create_inferior): Update.
1658 * mips-tdep.c (heuristic_proc_start): Update.
1659
1211bce3
EZ
16602003-04-07 Elena Zannoni <[email protected]>
1661
1662 * disasm.c (dump_insns): Move variables inside loop, or they will
1663 be freed more than once, causing wild memory corruptions.
1664 (gdb_disassembly): Look for the substring "-thread",
1665 instead of "-threads" in the target name, to make sure to find
1666 the 'multi-thread' target. Also, make sure we do the right thing
1667 with the "core" target.
1668
f0ef6b29
KB
16692003-04-07 Kevin Buettner <[email protected]>
1670
1671 * mips-tdep.c (mips_print_fp_register): New function, created from
1672 do_fp_register_row(). Registers are now (also) printed as hex.
1673 Only one register is printed per row.
1674 (mips_print_register, do_fp_register_row): Print floating point
1675 registers with mips_print_fp_register().
1676
8cf71652
AC
16772003-04-06 Andrew Cagney <[email protected]>
1678
5e488a7b
AC
1679 * valprint.h (inspect_it): Add extern declaration.
1680 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
1681 (selectors_info, classes_info): Ditto.
1682 (find_objc_msgcall): Fix indentation.
1683 (objc_printstr): Delete extern declarations.
1684
8cf71652
AC
1685 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
1686
e6ba3bc9
AC
16872003-04-06 Andrew Cagney <[email protected]>
1688
1689 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
1690 Update comment.
1691 * frame.c (legacy_saved_regs_this_id): Update.
1692 (legacy_get_prev_frame): Update.
1693 * xstormy16-tdep.c: Update comment.
1694 * sparc-tdep.c (sparc_frame_chain): Update comment.
1695 * blockframe.c (legacy_frame_chain_valid): Update.
1696
55e1d7e7
AC
16972003-04-06 Andrew Cagney <[email protected]>
1698
996179ee
AC
1699 * valprint.c (val_print_type_code_int): Delete #ifdef
1700 PRINT_TYPELESS_INTEGER code.
1701
55e1d7e7
AC
1702 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
1703 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
1704 multi-arch definition.
1705 * gdbarch.h: Re-generate.
1706
43bd9a9e
AC
17072003-04-05 Andrew Cagney <[email protected]>
1708
1709 Eliminate FRAME_FIND_SAVED_REGS.
1710 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1711 Change FSR parameter to a pointer.
1712 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
1713 Assume FSR parameter is a pointer.
1714 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1715 Make fsr a pointer.
1716 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
1717 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
1718 saved_regs a pointer.
1719 (hppa_frame_saved_pc): Ditto.
1720 (find_dummy_frame_regs): Make frame_saved_regs a pointer
1721 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
1722 pointer.
1723 (restore_pc_queue): Make fsr a pointer.
1724 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
1725 (hppa_frame_chain): Make saved_regs a pointer, call
1726 hppa_frame_init_saved_regs.
1727 * sparc-tdep.c: Include "gdb_assert.h".
1728 (sparc_frame_find_saved_regs): Replace internal_error with
1729 gdb_assert.
1730 * remote-vxsparc.c (vx_read_register): Delete reference to
1731 FRAME_FIND_SAVED_REGS.
1732 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
1733 * gdbarch.h: Regenerate.
1734 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
1735 (deprecated_get_frame_saved_regs): Delete declaration.
1736 (struct frame_saved_regs): Delete definition.
1737 * frame.c (deprecated_get_frame_saved_regs): Delete function.
1738 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
1739 (hppa_frame_find_saved_regs): Delete declaration.
1740 (FRAME_FIND_SAVED_REGS): Delete macro.
1741 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
1742 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
1743 FRAME_FIND_SAVED_REGS in comment.
1744
be41e9f4
AC
17452003-04-05 Andrew Cagney <[email protected]>
1746
1747 * frame.c (frame_func_unwind, get_frame_func): New functions.
1748 * frame.h (get_frame_func, frame_func_unwind): Declare.
1749 (struct frame_info): Add field "prev_func" for caching the
1750 previous frame's function address.
1751 * arm-tdep.c (arm_frameless_function_invocation): Combine
1752 get_pc_function_start and get_frame_pc into get_frame_func.
1753 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
1754 (sh64_nofp_frame_init_saved_regs): Ditto.
1755 * s390-tdep.c (s390_function_start): Ditto.
1756 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
1757 (rs6000_frameless_function_invocation): Ditto.
1758 (rs6000_frame_saved_pc): Ditto.
1759 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
1760 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
1761 * i386-tdep.c (i386_frameless_signal_p): Ditto.
1762 (i386_frame_init_saved_regs): Ditto.
1763 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
1764 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
1765 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
1766 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1767 * blockframe.c (frameless_look_for_prologue): Ditto.
1768
a01dd7cc
AC
17692003-04-05 Andrew Cagney <[email protected]>
1770
1771 * frame.c (legacy_get_prev_frame): Link prev to next at the
1772 function start. Update comments.
1773
5e5592e6
AC
17742003-04-05 Andrew Cagney <[email protected]>
1775
1776 * frame.c (get_frame_id): Update comment.
1777 (legacy_get_prev_frame): Update comment.
1778 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
1779 * gdbarch.h: Regenerate.
1780 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
1781 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
1782
6fba5002
AC
17832003-04-05 Andrew Cagney <[email protected]>
1784
1785 * stack.c (print_frame_info): Use get_frame_pc.
1786
7df05f2b
AC
17872003-04-04 Andrew Cagney <[email protected]>
1788
1789 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
1790 the frame's type from the unwinder.
1791 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
1792 (create_new_frame, legacy_get_prev_frame): When the unwinder's
1793 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
1794 (get_frame_base_address): Use get_frame_type.
1795 (get_frame_locals_address, get_frame_args_address): Ditto.
1796 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
1797 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
1798 (struct frame_info): Add comment explaining why the frame contains
1799 a "type" field.
1800 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
1801 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
1802 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
1803 NORMAL_FRAME.
1804 * frame-unwind.h: Include "frame.h".
1805 (struct frame_unwind): Add "type" field.
1806 * Makefile.in (frame_unwind_h): Add $(frame_h).
1807
11889732
AC
18082003-04-04 Andrew Cagney <[email protected]>
1809
1810 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
1811 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
1812 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
1813 get_frame_base.
1814 (d10v_unwind_dummy_id): Use frame_id_build.
1815 * frame.c (find_frame_sal): Use get_frame_pc.
1816 (create_new_frame): Use deprecated_update_frame_pc_hack and
1817 deprecated_update_frame_base_hack.
1818 (create_sentinel_frame): Add comment about ->pc going away.
1819 (get_prev_frame): Add comment about ->pc going away.
1820 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
1821 frame_id_build, deprecated_update_frame_pc_hack and
1822 deprecated_update_frame_base_hack.
1823 (select_frame): Use get_frame_pc.
1824 (legacy_saved_regs_this_id): Use frame_id_build.
1825
50c46a0d
EZ
18262003-04-04 Elena Zannoni <[email protected]>
1827
1828 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
1829 signed integer case.
1830 (classify_argument): Handle enumerations and references.
1831
50bbdbd9
AC
18322003-04-04 Andrew Cagney <[email protected]>
1833
1834 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
1835 ID to NULL.
1836
36018d2e
AF
18372003-04-01 Adam Fedor <[email protected]>
1838
1839 * gdb/objc-lang.c (selectors_info): Replace calls to
1840 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
1841 SYMBOL_NATURAL_NAME.
1842 (classes_info, find_methods): Likewise.
1843
35cec841
KB
18442003-04-03 Kevin Buettner <[email protected]>
1845
1846 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
1847 ``mach'' to the value determined by bfd_default_set_arch_mach().
1848
43136899
BR
18492003-04-02 Bob Rossi <[email protected]>
1850
1851 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
1852 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
1853 (mi-cmd-file.o): Update dependencies.
1854
040b99fd
KB
18552003-04-01 Kevin Buettner <[email protected]>
1856
1857 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1858 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
1859
9a3d7dfd
AF
18602003-04-01 Adam Fedor <[email protected]>
1861
1862 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
1863 * language.h (struct language_defn): Add la_demangle.
1864 (language_demangle): Declare.
1865 * language.c (language_demangle): New function.
1866 (unk_lang_demangle): Likewise.
1867 (unknown_language_defn, auto_language_defn, local_language_defn):
1868 Add ukn_lang_demangle.
1869 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
1870 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
1871 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
1872 (cplus_language_defn): Add cplus_demangle for la_demangle element.
1873 * jv-lang.c (java_demangle): New function
1874 (java_language_defn): Use it for la_demangle element.
1875 * objc-lang.c (objc_demangle): Add options argument
1876 (objc_language_defn): Use objc_demangle for la_demangle element.
1877 * maint.c (maintenance_demangle): Replace switch with
1878 call to language_demangle.
1879 * utils.c (fprintf_symbol_filtered): Likewise.
1880
5e074003
AC
18812003-04-01 Andrew Cagney <[email protected]>
1882
1883 * printcmd.c (print_frame_nameless_args): Delete #ifdef
1884 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
1885 PRINT_TYPELESS_INTEGER.
1886 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
1887 PUSH_RETURN_ADDRESS.
1888
270cb5d6
AC
18892003-04-01 Andrew Cagney <[email protected]>
1890
1891 * Makefile.in (d10v-tdep.o): Update dependencies.
1892 * d10v-tdep.c: Include "frame-base.h".
1893 (d10v_frame_unwind): Make constant.
1894 (d10v_frame_base_address): New function.
1895 (d10v_frame_base): New variable.
1896 (d10v_gdbarch_init): Set frame_base default.
1897 (struct d10v_unwind_cache): Add the field "prev_sp". Update
1898 comment for base.
1899 (d10v_frame_unwind_cache): Set and use "prev_sp".
1900 (d10v_frame_this_id): Use the previous frame's inner most stack
1901 address and this frame's func address for the frame ID. Use
1902 frame_id_build. Don't analyze beyond the current instruction.
1903
6bfb3e36
AC
19042003-04-01 Andrew Cagney <[email protected]>
1905
1906 * frame.h (get_frame_locals_address, get_frame_args_address):
1907 Refer to the base address, instead of the address of the first
1908 local or parameter.
1909
da62e633
AC
19102003-04-01 Andrew Cagney <[email protected]>
1911
1912 Add frame debug info addresses:
1913 * frame-base.c: New file.
1914 * frame-base.h: New file.
1915 * frame.h (struct frame_base): Add opaque declaration.
1916 (get_frame_base): Update comment.
1917 (get_frame_base_address): Declare.
1918 (get_frame_locals_address): Declare.
1919 (get_frame_args_address): Declare.
1920 (struct frame_info): Add "base" and "base_cache". Update
1921 comments on the unwinder.
1922 * frame.c: Include "frame-base.h".
1923 (get_frame_locals_address): New function.
1924 (get_frame_base_address): New function.
1925 (get_frame_args_address): New function.
1926 * findvar.c (read_var_value): Use get_frame_locals_address and
1927 get_frame_args_address.
1928 * stack.c (frame_info): Use get_frame_locals_address and
1929 get_frame_args_address.
1930 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
1931 moved to "frame-base.c".
1932 * printcmd.c (print_frame_nameless_args): Ditto.
1933 * symtab.h (address_class): Update comments.
1934 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
1935 get_frame_base_address.
1936 * dwarf2expr.c (execute_stack_op): Ditto.
1937 * Makefile.in (frame_base_h): Define.
1938 (frame.o): Update dependencies.
1939 (frame-base.o): Add dependencies.
1940 (SFILES): Add frame-base.c.
1941 (COMMON_OBS): Add frame-base.o.
1942
3d30e9c2
AC
19432003-04-01 Andrew Cagney <[email protected]>
1944
1945 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
1946 CALL_DUMMY_LENGTH): Ditto.
1947 * gdbarch.c: Re-generate.
1948 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
1949 (CALL_DUMMY_LENGTH): Delete macro.
1950 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
1951 * arm-tdep.c (arm_gdbarch_init): Ditto.
1952 * avr-tdep.c (avr_gdbarch_init): Ditto.
1953 * cris-tdep.c (cris_gdbarch_init): Ditto.
1954 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1955 * frv-tdep.c (frv_gdbarch_init): Ditto.
1956 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1957 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1958 * i386-tdep.c (i386_gdbarch_init): Ditto.
1959 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1961 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1962 * mips-tdep.c (mips_gdbarch_init): Ditto.
1963 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1964 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1965 * s390-tdep.c (s390_gdbarch_init): Ditto.
1966 * sh-tdep.c (sh_gdbarch_init): Ditto.
1967 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1968 * v850-tdep.c (v850_gdbarch_init): Ditto.
1969 * vax-tdep.c (vax_gdbarch_init): Ditto.
1970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1971
ce0c7262
CV
19722003-04-01 Corinna Vinschen <[email protected]>
1973
1974 * frame.c (get_prev_frame): Disable call to inside_entry_file().
1975
73dd234f
AC
19762003-04-01 Andrew Cagney <[email protected]>
1977
1978 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
1979 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1980 * gdbarch.h, gdbarch.c: Re-generate.
1981 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1982 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1983 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1984 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1985 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1986 * infcmd.c (run_stack_dummy): Simplify assuming
1987 CALL_DUMMY_BREAKPOINT_OFFSET_P.
1988 * infrun.c (handle_inferior_event): Ditto.
1989 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1990 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
1991 * arm-tdep.c (arm_gdbarch_init): Ditto.
1992 * avr-tdep.c (avr_gdbarch_init): Ditto.
1993 * cris-tdep.c (cris_gdbarch_init): Ditto.
1994 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1995 * frv-tdep.c (frv_gdbarch_init): Ditto.
1996 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1997 * i386-tdep.c (i386_gdbarch_init): Ditto.
1998 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1999 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2000 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2001 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2002 * mips-tdep.c (mips_gdbarch_init): Ditto.
2003 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2004 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2005 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2006 * s390-tdep.c (s390_gdbarch_init): Ditto.
2007 * sh-tdep.c (sh_gdbarch_init): Ditto.
2008 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2009 * v850-tdep.c (v850_gdbarch_init): Ditto.
2010 * vax-tdep.c (vax_gdbarch_init): Ditto.
2011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2012
97606a13
DJ
20132003-04-01 Daniel Jacobowitz <[email protected]>
2014
2015 * symfile.c (symfile_relocate_debug_section): Update call to
2016 bfd_simple_get_relocated_section_contents.
2017
e8ab51f7
AC
20182003-03-31 Andrew Cagney <[email protected]>
2019
2020 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
2021 * gdbarch.h, gdbarch.c: Regenerate.
2022 * inferior.h (FIX_CALL_DUMMY): Delete macro.
2023 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
2024 available.
2025 * frame.h (generic_fix_call_dummy): Delete declaration.
2026 * dummy-frame.h: Update comment.
2027 * dummy-frame.c (generic_fix_call_dummy): Delete function.
2028 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2029 fix_call_dummy.
2030 * sh-tdep.c (sh_gdbarch_init): Ditto.
2031 * s390-tdep.c (s390_gdbarch_init): Ditto.
2032 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2033 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2034 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2035 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2036 * i386-tdep.c (i386_gdbarch_init): Ditto.
2037 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2038 * frv-tdep.c (frv_gdbarch_init): Ditto.
2039 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2040 * cris-tdep.c (cris_gdbarch_init): Ditto.
2041 * avr-tdep.c (avr_gdbarch_init): Ditto.
2042 * arm-tdep.c (arm_gdbarch_init): Ditto.
2043
018d1b48
JB
20442003-03-31 J. Brobecker <[email protected]>
2045
2046 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
2047 (INIT_FRAME_AP): Likewise.
2048 (EXTRA_FRAME_INFO): Likewise.
2049
e9a2674e
AC
20502003-03-31 Andrew Cagney <[email protected]>
2051
2052 * gdbarch.sh: Include "symfile.h".
2053 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
2054 * gdbarch.h, gdbarch.c: Re-generate.
2055 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
2056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2057 call_dummy_address, the default is at entry_point_address.
2058 * v850-tdep.c (v850_gdbarch_init): Ditto.
2059 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2060 * sh-tdep.c (sh_gdbarch_init): Ditto.
2061 * s390-tdep.c (s390_gdbarch_init): Ditto.
2062 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2063 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2064 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2065 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2066 * i386-tdep.c (i386_gdbarch_init): Ditto.
2067 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2068 * frv-tdep.c (frv_gdbarch_init): Ditto.
2069 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2070 * cris-tdep.c (cris_gdbarch_init): Ditto.
2071 * arm-tdep.c (arm_gdbarch_init): Ditto.
2072
e8a8712a
AC
20732003-03-31 Andrew Cagney <[email protected]>
2074
2075 * gdbarch.sh (CALL_DUMMY_P): Delete.
2076 * gdbarch.h, gdbarch.c: Re-generate.
2077 * inferior.h (CALL_DUMMY_P): Delete macro.
2078 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2079 * vax-tdep.c (vax_gdbarch_init): Update.
2080 * v850-tdep.c (v850_gdbarch_init): Update.
2081 * sparc-tdep.c (sparc_gdbarch_init): Update.
2082 * sh-tdep.c (sh_gdbarch_init): Update.
2083 * s390-tdep.c (s390_gdbarch_init): Update.
2084 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2085 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2086 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2087 * mips-tdep.c (mips_gdbarch_init): Update.
2088 * mcore-tdep.c (mcore_gdbarch_init): Update.
2089 * m68k-tdep.c (m68k_gdbarch_init): Update.
2090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2091 * ia64-tdep.c (ia64_gdbarch_init): Update.
2092 * i386-tdep.c (i386_gdbarch_init): Update.
2093 * h8300-tdep.c (h8300_gdbarch_init): Update.
2094 * frv-tdep.c (frv_gdbarch_init): Update.
2095 * d10v-tdep.c (d10v_gdbarch_init): Update.
2096 * cris-tdep.c (cris_gdbarch_init): Update.
2097 * breakpoint.c (deprecated_frame_in_dummy): Update.
2098 * avr-tdep.c (avr_gdbarch_init): Update.
2099 * alpha-tdep.c (alpha_gdbarch_init): Update.
2100 * arm-tdep.c (arm_gdbarch_init): Update.
2101 * dummy-frame.c (dummy_frame_this_id): Update comments.
2102 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
2103 * frame.c (legacy_get_prev_frame): Ditto.
2104 * valops.c (call_function_by_hand): Delete function.
2105 (hand_function_call): Rename to call_function_by_hand
2106
ed234cf8
AC
21072003-03-30 Andrew Cagney <[email protected]>
2108
2109 2002-11-10 Klee Dienes <[email protected]>
2110 * value.h (struct value): Update comment.
2111
06c77151
AC
21122003-03-30 Andrew Cagney <[email protected]>
2113
6c2b5168
AC
2114 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
2115 D10V_FP_REGNUM.
2116 (d10v_gdbarch_init): Do not set fp_regnum.
2117
06c77151
AC
2118 * frame.c (get_frame_base): Force ID initialization.
2119 (get_prev_frame): Move computation of the frame ID from here ...
2120 (get_frame_id): ... to here.
2121 (legacy_get_prev_frame): Mark the frame ID as valid.
2122 * frame.h (struct frame_info): Add field "id_p".
2123
97a1a11c
MK
21242003-03-30 Mark Kettenis <[email protected]>
2125
2126 * i386-tdep.c (i386_store_struct_return): Removed.
2127 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
2128
6c0e89ed
AC
21292003-03-30 Andrew Cagney <[email protected]>
2130
2131 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
2132 * gdbarch.h, gdbarch.c: Regenerate.
2133 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
2134 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2135 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2136 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2137 * i386-tdep.c (i386_gdbarch_init): Ditto.
2138 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2139 * cris-tdep.c (cris_gdbarch_init): Ditto.
2140 * vax-tdep.c (vax_gdbarch_init): Ditto.
2141 * s390-tdep.c (s390_gdbarch_init): Ditto.
2142 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2143 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2144 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2145 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
2146 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2147 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
2148 * sparc-tdep.c (sparc_gdbarch_init): Update.
2149 * sh-tdep.c (sh_gdbarch_init): Update.
2150 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2151 * mips-tdep.c (mips_gdbarch_init): Update.
2152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2153 * ia64-tdep.c (ia64_gdbarch_init): Update.
2154 * frv-tdep.c (frv_gdbarch_init): Update.
2155 * avr-tdep.c (avr_gdbarch_init): Update.
2156 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
2157 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
2158 instead of when push_dummy_call is not available.
2159
f7dd6af2
AC
21602003-03-30 Andrew Cagney <[email protected]>
2161
2162 * infttrace.c: Include "gdbthread.h".
2163 (parent_attach_all): Fix function signature.
2164 (call_ptrace): Update call.
2165 * Makefile.in (infttrace.o): Update dependencies.
2166
28f617b3
AC
21672003-03-30 Andrew Cagney <[email protected]>
2168
2169 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
2170 PUSH_RETURN_ADDRESS.
2171 * gdbarch.h, gdbarch.c: Regenerate.
2172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2173 * x86-64-tdep.c (x86_64_init_abi): Update.
2174 * v850-tdep.c (v850_gdbarch_init): Update.
2175 * sparc-tdep.c (sparc_gdbarch_init): Update.
2176 * sh-tdep.c (sh_gdbarch_init): Update.
2177 * s390-tdep.c (s390_gdbarch_init): Update.
2178 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2179 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2180 * mips-tdep.c (mips_gdbarch_init): Update.
2181 * mcore-tdep.c (mcore_gdbarch_init): Update.
2182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2183 * ia64-tdep.c (ia64_gdbarch_init): Update.
2184 * i386-tdep.c (i386_gdbarch_init): Update.
2185 * h8300-tdep.c (h8300_gdbarch_init): Update.
2186 * frv-tdep.c (frv_gdbarch_init): Update.
2187 * cris-tdep.c (cris_gdbarch_init): Update.
2188 * avr-tdep.c (avr_gdbarch_init): Update.
2189 * arm-tdep.c (arm_gdbarch_init): Update.
2190 * valops.c (hand_function_call): Update.
2191
4d628cd7
AC
21922003-03-29 Andrew Cagney <[email protected]>
2193
2194 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
2195 sizeof_call_dummy_words.
2196 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
2197 define.
2198 * gdbarch.h: Regenerate.
2199
65e82032
AC
22002003-03-29 Andrew Cagney <[email protected]>
2201
2202 * infttrace.h: New file.
2203 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
2204 (hpread_get_textlow): Detect an uninitialized dn_bufp.
2205 (hpread_read_doc_function_type): Detect an initialized type1.
2206 (hpread_quick_traverse): Initialize mod_name_string.
2207 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
2208 (som_solib_get_solib_by_pc): Declare.
2209 (so_lib_thread_start_addr): Declare.
2210 (no_shared_libraries): Declare.
2211 * somread.c (init_import_symbols): Make static. Add forward
2212 declaration.
2213 * config/pa/nm-hppah.h: Include "infttrace.h" for
2214 parent_attach_all.
2215 (hppa_insert_hw_watchpoint): Declare.
2216 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
2217 * hppah-nat.c: Include "gdb_string.h".
2218 (parent_attach_all): Delete extern declaration, moved to
2219 "infttrace.h".
2220 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
2221 int.
2222 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
2223 * Makefile.in (infttrace_h): Define.
2224 (hpread.o): Update dependencies.
2225 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
2226 * hppa-hpux-tdep.c: Include "gdb_string.h".
2227 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
2228 * infrun.c (handle_inferior_event): Always initialize
2229 stepped_after_stopped_by_watchpoint. Add default and remove
2230 fallthrough in switch statement.
2231 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
2232 parameter to int.
2233 (hppa_remove_hw_watchpoint): Ditto.
2234
2c3bbe77
AC
22352003-03-29 Andrew Cagney <[email protected]>
2236
2237 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
2238 offset.
2239
2dd604e7
RE
22402003-03-29 Richard Earnshaw <[email protected]>
2241
2242 * arm-tdep.c (arm_push_arguments): Delete.
2243 (struct stack_item): New type.
2244 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
2245 (arm_store_struct_return): Delte.
2246 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
2247 arm_push_arguments or arm_store_struct_return.
2248
e8933a55
AC
22492003-03-28 Andrew Cagney <[email protected]>
2250
2251 * Makefile.in (d10v-tdep.o): Update dependencies.
2252 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
2253 * d10v-tdep.c: Include "remote.h".
2254 (target_resume_hook): Delete extern declaration.
2255 (target_wait_loop_hook): Ditto.
2256 (tdisassemble_command): Eliminate assignment in "if" conditional.
2257 (d10v_ts2_register_sim_regno): Eliminate call to
2258 legacy_register_sim_regno.
2259 (d10v_ts3_register_sim_regno): Ditto.
2260
6949171e
JJ
22612003-03-28 Jeff Johnston <[email protected]>
2262
2263 * thread.c: Reindented.
2264 * lin-lwp.c: Ditto.
2265 * linux-proc.c: Ditto.
2266
98c7071f
BR
22672003-03-28 Bob Rossi <[email protected]>
2268
2269 * MAINTAINERS (write after approval): Add myself.
2270
5edc9ca6
TR
22712003-03-27 Theodore A. Roth <[email protected]>
2272
2273 * objc-exp.y: Add missing semi-colons.
2274
378bfd1b
AC
22752003-03-27 Andrew Cagney <[email protected]>
2276
2277 * regcache.c (write_sp): Delete function and references.
2278 * inferior.h (write_sp): Delete declaration.
2279 * valops.c (hand_function_call): Replace write_sp with
2280 TARGET_WRITE_SP.
2281 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
2282 (sparc_pop_frame): Ditto.
2283
56056df7
AC
22842003-03-27 Andrew Cagney <[email protected]>
2285
2286 * NEWS: Mention removal of support for hppa*-*-bsd* and
2287 hppa*-*-osf* natives, and hppa*-*-pro* target.
2288 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
2289 * config/pa/xm-pa.h: Obsolete file.
2290 * config/pa/xm-hppab.h: Obsolete file.
2291 * config/pa/nm-hppab.h: Obsolete file.
2292 * config/pa/tm-hppab.h: Obsolete file.
2293 * config/pa/tm-hppao.h: Obsolete file.
2294 * config/pa/nm-hppao.h: Obsolete file.
2295 * config/pa/tm-pro.h: Obsolete file.
2296 * config/pa/hppaosf.mt: Obsolete file.
2297 * config/pa/hppaosf.mh: Obsolete file.
2298 * config/pa/hppapro.mt: Obsolete file.
2299 * config/pa/hppabsd.mt: Obsolete file.
2300 * config/pa/hppabsd.mh: Obsolete file.
2301 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
2302 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
2303 hppa*-*-osf*.
2304
5873a88d
AC
23052003-03-27 Andrew Cagney <[email protected]>
2306
2307 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
2308 push_arguments. Don't set push_return_address or write_sp.
2309 (d10v_push_dummy_call): Replace d10v_push_arguments.
2310 (d10v_push_return_address, d10v_write_sp): Delete function,
2311 handled by push_dummy_call.
2312
b81774d8
AC
23132003-03-26 Andrew Cagney <[email protected]>
2314
2315 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
2316 (push_dummy_call): New pure multi-arch replacement with gdbarch,
2317 regcache and dummy_addr parameters.
2318 * gdbarch.h, gdbarch.c: Re-generate.
2319 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
2320 available; assume it will handle stack alignment and return
2321 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
2322 legacy_push_arguments.
2323 (legacy_push_arguments): Rename default_push_arguments.
2324 * value.h (legacy_push_arguments): Rename default_push_arguments.
2325 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
2326 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2327 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2328 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2329 * config/i386/tm-symmetry.h: Update.
2330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2331 * x86-64-tdep.c (x86_64_init_abi): Update.
2332 * v850-tdep.c (v850_gdbarch_init): Update.
2333 * sparc-tdep.c (sparc_gdbarch_init): Update.
2334 * sh-tdep.c (sh_gdbarch_init): Update.
2335 * s390-tdep.c (s390_gdbarch_init): Update.
2336 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2337 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2338 * mips-tdep.c (mips_gdbarch_init): Update.
2339 * mcore-tdep.c (mcore_gdbarch_init): Update.
2340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2341 * ia64-tdep.c (ia64_gdbarch_init): Update.
2342 * i386-tdep.c (i386_gdbarch_init): Update.
2343 * hppa-tdep.c (hppa_gdbarch_init): Update.
2344 * h8300-tdep.c (h8300_gdbarch_init): Update.
2345 * frv-tdep.c (frv_gdbarch_init): Update.
2346 * d10v-tdep.c (d10v_gdbarch_init): Update.
2347 * cris-tdep.c (cris_gdbarch_init): Update.
2348 * avr-tdep.c (avr_gdbarch_init): Update.
2349 * arm-tdep.c (arm_gdbarch_init): Update.
2350 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2351 * alpha-tdep.c (alpha_gdbarch_init): Update.
2352
f541410f
DJ
23532003-03-26 Daniel Jacobowitz <[email protected]>
2354
2355 * signals/signals.c (do_target_signal_to_host): Correct realtime
2356 signal range test.
2357
69f567ae
DJ
23582003-03-26 Daniel Jacobowitz <[email protected]>
2359
2360 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
2361 (struct sal_chain, map_catch_names): Remove.
2362 (catch_exception_command_1): Don't call
2363 handle_gnu_4_16_catch_command.
2364
d5d14a5a
DJ
23652003-03-26 Daniel Jacobowitz <[email protected]>
2366
2367 From Mark Dettinger <[email protected]>:
2368 * dwarf2cfi.c (read_2u): Increment pointer by two.
2369
bdd73e22
DJ
23702003-03-26 Daniel Jacobowitz <[email protected]>
2371
2372 * signals/signals.c: Fix typos in last change.
2373
960cb555
DJ
23742003-03-26 Daniel Jacobowitz <[email protected]>
2375
2376 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
2377 not already defined. Use __SIGRTMIN if available.
2378 (target_signal_from_host): Remove SIGRTMIN block.
2379 (do_target_signal_to_host): Remove SIGRTMIN block; check that
2380 the signal is within the realtime range.
2381
f636b87d
AF
23822003-03-25 Adam Fedor <[email protected]>
2383
2384 * Makefile.in (infrun.o): Add $(language_h)
2385 * infrun.c (handle_inferior_event): Use skip_language_trampoline
2386 for language specific trampolines.
2387 * language.h (struct language_defn): Add skip_trampoline.
2388 (skip_language_trampoline): Declare.
2389 * language.c (unk_lang_trampoline, skip_language_trampoline):
2390 New functions.
2391 (unknown_language_defn, auto_language_defn, local_language_defn):
2392 Add ukn_lang_trampoline.
2393 * ada-lang.c (ada_language_defn): Add NULL for language
2394 specific skip_trampoline.
2395 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
2396 scm-lang.c: Likewise.
2397 * objc-lang.c (objc_skip_trampoline): New function.
2398 (objc_language_defn): Add objc_skip_trampoline.
2399
28f617b3 24002003-03-25 Andrew Cagney <[email protected]>
270c3b1d
AC
2401
2402 * frame.c (get_prev_frame): Delay validating a frame's ID -
2403 non-NULL, didn't go backwards - until an attempt to unwind it to
2404 the previous frame.
2405
f933a9c5
AC
24062003-03-25 Andrew Cagney <[email protected]>
2407
2408 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
2409 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
2410 * gdbarch.h, gdbarch.c: Re-generate.
2411 * config/sparc/tm-sparc.h
2412 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
2413 * sparc-tdep.c (sparc_gdbarch_init): Set
2414 deprecated_extra_stack_alignment_needed.
2415 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
2416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
2417 extra_stack_alignment_needed.
2418 * v850-tdep.c (v850_gdbarch_init): Ditto.
2419 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2420 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2421 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2422 * cris-tdep.c (cris_gdbarch_init): Ditto.
2423 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2424 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2425
4183d812
AC
24262003-03-25 Andrew Cagney <[email protected]>
2427
2428 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
2429 STORE_STRUCT_RETURN.
2430 * gdbarch.h, gdbarch.c: Regenerate.
2431 * d10v-tdep.c (d10v_store_struct_return): Delete function.
2432 (d10v_push_arguments): Set the struct return register.
2433 (d10v_gdbarch_init): Update.
2434 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2435 * x86-64-tdep.c (x86_64_init_abi): Update.
2436 * vax-tdep.c (vax_gdbarch_init): Update.
2437 * v850-tdep.c (v850_gdbarch_init): Update.
2438 * sparc-tdep.c (sparc_gdbarch_init): Update.
2439 * sh-tdep.c (sh_gdbarch_init): Update.
2440 * s390-tdep.c (s390_gdbarch_init): Update.
2441 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2442 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2443 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2444 * mips-tdep.c (mips_gdbarch_init): Update.
2445 * mcore-tdep.c (mcore_gdbarch_init): Update.
2446 * m68k-tdep.c (m68k_gdbarch_init): Update.
2447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2448 * ia64-tdep.c (ia64_gdbarch_init): Update.
2449 * i386-tdep.c (i386_gdbarch_init): Update.
2450 * hppa-tdep.c (hppa_gdbarch_init): Update.
2451 * h8300-tdep.c (h8300_gdbarch_init): Update.
2452 * frv-tdep.c (frv_gdbarch_init): Update.
2453 * cris-tdep.c (cris_gdbarch_init): Update.
2454 * avr-tdep.c (avr_gdbarch_init): Update.
2455 * arm-tdep.c (arm_gdbarch_init): Update.
2456 * alpha-tdep.c (alpha_gdbarch_init): Update.
2457
1bf6d5cc
AC
24582003-03-25 Andrew Cagney <[email protected]>
2459
2460 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
2461 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
2462 CALL_DUMMY_STACK_ADJUST with a predicate variable.
2463 * gdbarch.h, gdbarch.c: Regenerate.
2464 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2465 call_dummy_stack_adjust_p.
2466 * vax-tdep.c (vax_gdbarch_init): Ditto.
2467 * v850-tdep.c (v850_gdbarch_init): Ditto.
2468 * sh-tdep.c (sh_gdbarch_init): Ditto.
2469 * s390-tdep.c (s390_gdbarch_init): Ditto.
2470 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2471 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2472 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2473 * mips-tdep.c (mips_gdbarch_init): Ditto.
2474 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2475 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2476 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2477 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2478 * i386-tdep.c (i386_gdbarch_init): Ditto.
2479 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2480 * frv-tdep.c (frv_gdbarch_init): Ditto.
2481 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2482 * cris-tdep.c (cris_gdbarch_init): Ditto.
2483 * avr-tdep.c (avr_gdbarch_init): Ditto.
2484 * arm-tdep.c (arm_gdbarch_init): Ditto.
2485 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2486 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2487 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
2488 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2489 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
2490 call_dummy_stack_adjust_p.
2491 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
2492 (CALL_DUMMY_STACK_ADJUST): Delete macro.
2493 * sparc-tdep.c (sparc32_push_arguments): Update.
2494 * valops.c (hand_function_call): Update.
2495
71c08af0
CV
24962003-03-25 Corinna Vinschen <[email protected]>
2497
2498 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
2499 set_gdbarch_char_signed.
2500
30757f90
RE
25012003-03-25 Richard Earnshaw <[email protected]>
2502
2503 PR cli/548
2504 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
2505
03d48a7d
RE
25062003-03-25 Richard Earnshaw <[email protected]>
2507
2508 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
2509 (_initialize_arm_tdep): Don't set tm_print_insn.
2510
2cf6873c
AF
25112003-03-24 Adam Fedor <[email protected]>
2512
2513 * Makefile.in (YYOBJ): Add objc-exp.tab.o
2514 * objc-lang.h: Add multiple inclusion protection.
2515 (start_msglist, add_msglist, end_msglist): Additional declarations.
2516
17c0759e
RE
25172003-03-24 Richard Earnshaw <[email protected]>
2518
2519 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
2520 value was renamed to ARM_FLOAT_SOFT_FPA.
2521
618ce49f
AC
25222003-03-23 Andrew Cagney <[email protected]>
2523
2524 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
2525 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
2526 * gdbarch.h, gdbarch.c: Regenerate.
2527 * valops.c (hand_function_call): Update.
2528 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2529 * frame.c (legacy_saved_regs_this_id): Update.
2530 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
2531 * dummy-frame.h: Update.
2532 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
2533 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2534 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
2535 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
2536 * config/m68k/tm-sun3.h: Update.
2537 * blockframe.c (inside_main_func, frame_chain_valid): Update.
2538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2539 * x86-64-tdep.c (x86_64_init_abi): Update.
2540 * vax-tdep.c (vax_gdbarch_init): Update.
2541 * v850-tdep.c (v850_gdbarch_init): Update.
2542 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
2543 * sh-tdep.c (sh_gdbarch_init): Update.
2544 * s390-tdep.c (s390_gdbarch_init): Update.
2545 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2546 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
2547 (frame_get_saved_regs): Update.
2548 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2549 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2550 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2551 * mips-tdep.c (mips_gdbarch_init): Update.
2552 * mcore-tdep.c (mcore_gdbarch_init): Update.
2553 * m68k-tdep.c (m68k_gdbarch_init): Update.
2554 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2555 * ia64-tdep.c (ia64_gdbarch_init): Update.
2556 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
2557 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2558 (i386_interix_back_one_frame): Update.
2559 * hppa-tdep.c (hppa_gdbarch_init): Update.
2560 (hppa_init_extra_frame_info): Update.
2561 * h8300-tdep.c (h8300_gdbarch_init): Update.
2562 * frv-tdep.c (frv_gdbarch_init): Update.
2563 * cris-tdep.c (cris_gdbarch_init): Update.
2564 * avr-tdep.c (avr_gdbarch_init): Update.
2565 * arm-tdep.c (arm_gdbarch_init): Update.
2566 * alpha-tdep.c (alpha_gdbarch_init): Update.
2567
fd50bc42
RE
25682003-03-22 Richard Earnshaw <[email protected]>
2569
2570 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
2571 (arm_get_fp_model): Declare.
2572 * arm-tdep.c (fp_model_strings): New string array.
2573 (arm_fp_model, current_fp_model): New variables.
2574 (arm_get_fp_model): New function.
2575 (arm_set_fp): New function.
2576 (set_fp_model_sfunc): New function.
2577 (show_fp_model): New function.
2578 (_initialize_arm_tdep): Add new command to set/show the FPU.
2579 (arm_extract_return_value): Use arm_get_fp_model.
2580 (arm_store_return_value): Likewise.
2581 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
2582 to initialize the floating-point data types.
2583 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
2584 model is FPA.
2585
26304000
RE
25862003-03-22 Richard Earnshaw <[email protected]>
2587
2588 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
2589 the current setting of each value.
2590 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
2591 new_set and new_show. Use add_setshow_cmd_full and
2592 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
2593 commands and add new version as subcommands of "set/show arm".
2594
afd7eef0
RE
25952003-03-22 Richard Earnshaw <[email protected]>
2596
2597 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
2598 (set_arm_command, show_arm_command): New functions.
2599 (_initialize_arm_tdep): Add them.
2600 (num_disassembly_options): Renamed from num_flavor_options.
2601 (valid_disassembly_styles): Renamed from valid_flavors.
2602 (disassembly_style): Renamed from disassembly_flavor.
2603 (set_disassembly_style_sfunc): Renamed from
2604 set_disassembly_flavor_sfunc.
2605 (set_disassembly_style): Renamed from set_disassembly_flavor.
2606 (arm_othernames): Updated.
2607 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
2608 command. Add "set/show arm disassembly" commands. Deprecate
2609 "othernames" command.
2610
299a7944
RE
26112003-03-22 Richard Earnshaw <[email protected]>
2612
2613 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
2614 (arm-tdep.o): Depend on elf_arm_h.
2615
c1dac9e6
RE
26162003-03-22 Richard Earnshaw <[email protected]>
2617
2618 * Makefile.in (coff_internal_h): Define.
2619 (arm-tdep.o): Update dependencies.
2620
2702d96c
RE
26212003-03-22 Richard Earnshaw <[email protected]>
2622
2623 * arm-tdep.c (prologue_cache): Delete.
2624 (check_prologue_cache, save_prologue_cache): Delete.
2625 (arm_scan_prologue): Don't check or update the prologue_cache.
2626 (arm_gdb_arch_init): Don't initialize it.
2627 (_initialize_arm_tdep): Likewise.
2628
27d5d74b
SC
26292003-03-21 Stephane Carrez <[email protected]>
2630
2631 * MAINTAINERS (tui): Maintainer of tui code.
2632
1762d96d
CV
26332003-03-21 Corinna Vinschen <[email protected]>
2634
2635 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
2636 (i386-cygwin-tdep.o): Add dependencies.
2637 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
2638 * i386-cygwin-tdep.c: New file.
2639 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
2640 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
2641
4c2e2391
AC
26422003-03-20 Andrew Cagney <[email protected]>
2643
f20d38b7
AC
2644 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
2645 (handle_inferior_event): Remove code calling
2646 DYNAMIC_TRAMPOLINE_NEXTPC.
2647
0022b738
AC
2648 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
2649 already has a full path.
2650
864dbc90
AC
2651 * main.c (gdb_main): Return 1.
2652 (captured_main): Call error to report an invalid interpreter.
2653
4c2e2391
AC
2654 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2655 * alpha-osf1-tdep.c: Include "gdb_string.h".
2656
5ef7553b
JB
26572003-03-19 J. Brobecker <[email protected]>
2658
2659 Continuing work to convert the hppa targets to multiarch partial.
2660
2661 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
2662 method, now that hppa_push_dummy_frame has a conformant prototype.
2663 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
2664 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
2665 for the switch to multiarch partial.
2666
7bde8967
KB
26672003-03-19 Kevin Buettner <[email protected]>
2668
2669 * mdebugread.c (parse_symbol): For stEnd, we're done counting
2670 when iss is issNull.
2671
b006a9e9
KB
26722003-03-18 Kevin Buettner <[email protected]>
2673
2674 * mips-tdep.c (mips_register_name): Fix fencepost error involving
2675 NUM_REGS bounds check.
2676
5e2e9765
KB
26772003-03-18 Kevin Buettner <[email protected]>
2678
2679 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
2680 * mips-tdep.c (gdb_assert.h): Include.
2681 (mips_generic_reg_names, mips_processor_reg_names): Make static.
2682 (mips_register_name): Handle integer registers explicitly. Add
2683 bounds checking.
2684 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
2685 (mips_lsi33k_reg_names): Don't list integer registers; they're
2686 handled by mips_register_name() now.
2687 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
2688 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
2689 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
2690 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
2691 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
2692
a2867626
AC
26932003-03-18 Andrew Cagney <[email protected]>
2694
2695 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
2696 a void pointer.
2697 * gdbtypes.h (print_scalar_formatted): Update declaration.
2698 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
2699
06600e06
JB
27002003-03-18 J. Brobecker <[email protected]>
2701
2702 * infrun.c (observer.h): Add #include.
2703 (normal_stop): Add call to observer_notify_normal_stop.
2704 * Makefile.in (infrun.o): Add dependency on observer.h.
2705
7daf4f5b
JB
27062003-03-18 J. Brobecker <[email protected]>
2707
2708 Continuing work to convert the hppa targets to multiarch partial.
2709 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
2710 parameter. Reformat comment.
2711 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
2712 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
2713 to match new profile.
2714
3371ccc0
JB
27152003-03-18 J. Brobecker <[email protected]>
2716
2717 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
2718 appear to be working in any case.
2719
4fbe891e
JB
27202003-03-18 J. Brobecker <[email protected]>
2721
2722 * observer.c (observer_test_first_observer): New static variable.
2723 (observer_test_second_observer): Likewise.
2724 (observer_test_third_observer): Likewise.
2725 (observer_test_first_notification_function): New static function.
2726 (observer_test_second_notification_function): Likewise.
2727 (observer_test_third_notification_function): Likewise.
2728
a7ff40e7
JB
27292003-03-17 J. Brobecker <[email protected]>
2730
2731 * hppa-tdep.c (gdb_assert.h): Add missing #include.
2732 * somsolib.c (gdb_assert.h): Likewise.
2733 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
2734 (somsolib.o): Likewise.
2735
26ca4152
AC
27362003-03-17 Andrew Cagney <[email protected]>
2737
2738 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
2739 BFD. Simplify setting of di.endian.
2740
0a613259
AC
27412003-03-17 Andrew Cagney <[email protected]>
2742
2743 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
2744 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
2745
2746 From Elena Zannoni <[email protected]>
2747 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
2748 vector and floating-point parameters.
2749 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
2750 convention.
2751 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
2752
1132738f
FN
27532003-03-17 Fernando Nasser <[email protected]>
2754
2755 * MAINTAINERS: Remove my name from several maintainership roles.
2756
6dc42492
AC
27572003-03-17 Andrew Cagney <[email protected]>
2758
2759 Fix frame off-by-one bug.
2760 * frame-unwind.h (frame_this_id_ftype): Replace
2761 frame_unwind_id_ftype.
2762 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
2763 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
2764 with "prev_register".
2765 * frame-unwind.c (frame_unwind_find_by_pc): Return
2766 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
2767 comment.
2768 * dummy-frame.c (cached_find_dummy_frame): Delete function.
2769 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
2770 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
2771 (dummy_frame_unwind): Update.
2772 * sentinel-frame.c (sentinel_frame_prev_register): Replace
2773 sentinel_frame_register_unwind.
2774 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
2775 (sentinel_frame_unwinder): Update.
2776 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
2777 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
2778 * frame.c (create_sentinel_frame): Update. Initialize
2779 "prologue_cache" instead of "unwind_cache".
2780 (frame_register_unwind): Call this frame's prev_register with the
2781 next frame and this frame's prologue cache.
2782 (get_prev_frame): Simplify. Always call prev frame's this_id with
2783 this frame and prev frame's prologue cache. Document that this
2784 call is shifted one to the left when compared to the
2785 frame_register_unwind call.
2786 (legacy_saved_regs_prev_register): Replace
2787 frame_saved_regs_register_unwind.
2788 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
2789 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
2790 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
2791 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
2792 (d10v_frame_unwind): Update.
2793 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
2794 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
2795 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
2796 "saved_regs" with "this_saved_regs".
2797
efd710d6
AC
27982003-03-16 Andrew Cagney <[email protected]>
2799
2800 * frame.c (frame_pop): Don't call target_store_registers. Fix
2801 problem reported by Mark Kettenis.
2802
4e259f09
MK
28032003-03-16 Mark Kettenis <[email protected]>
2804
2805 * i386-tdep.c (i386_register_type): Renamed from
2806 i386_register_virtual_type. Adjust function signature.
2807 (i386_gdbarch_init): Set register_type instead of
2808 deprecated_max_register_raw_size,
2809 deprecated_max_register_virtual_size and register_virtual_type.
2810
055bb976
AC
28112003-03-14 Andrew Cagney <[email protected]>
2812
2813 * frame.c (get_prev_frame): When a legacy frame, always call
2814 legacy_get_prev_frame. Simplify unwind code using assumption that
2815 the unwinder is new.
2816 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
2817 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
2818 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
2819
ac2adee5
AC
28202003-03-14 Andrew Cagney <[email protected]>
2821
2822 * frame.c (get_saved_register): Delete function.
2823 * frame.h (get_saved_register): Delete declaration.
2824 * xstormy16-tdep.c: Update comment.
2825 * regcache.h: Update comments.
2826 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
2827 get_saved_register and extract_address, use
2828 frame_read_unsigned_register.
2829 (sparc_frame_saved_pc): Ditto.
2830 (sparc_get_saved_register): Instead of get_saved_register, use
2831 frame_register.
2832 (sparc_pop_frame): Ditto.
2833 * findvar.c: Update comments.
2834 (value_of_register): Call frame_register instead of
2835 get_saved_register.
2836 (value_from_register): Ditto.
2837 * config/sparc/tm-sparc.h: Update comment.
2838 * breakpoint.c: Update comment.
2839
129c1cd6
AC
28402003-03-14 Andrew Cagney <[email protected]>
2841
2842 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
2843 GET_SAVED_REGISTER.
2844 * gdbarch.h, gdbarch.c: Re-generate.
2845 * frame.h: Update comments.
2846 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2847 * x86-64-tdep.c (x86_64_init_abi): Update.
2848 * sparc-tdep.c (sparc_gdbarch_init): Update.
2849 * sh-tdep.c (sh_gdbarch_init): Update.
2850 * mips-tdep.c (mips_gdbarch_init): Update.
2851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2852 * cris-tdep.c (cris_gdbarch_init): Update.
2853 * ia64-tdep.c (ia64_gdbarch_init): Update.
2854 * frame.c (frame_register): Update.
2855 (get_saved_register): Update.
2856 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
2857
749b82f6
AC
28582003-03-13 Andrew Cagney <[email protected]>
2859
2860 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
2861 * gdbarch.h, gdbarch.c: Regenerate.
2862 * valops.c (hand_function_call): Update comment.
2863 * stack.c (return_command): Update comment.
2864 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
2865 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
2866 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2867 * x86-64-tdep.c (x86_64_init_abi): Update.
2868 * vax-tdep.c (vax_gdbarch_init): Update.
2869 * v850-tdep.c (v850_gdbarch_init): Update.
2870 * sparc-tdep.c (sparc_gdbarch_init): Update.
2871 * sh-tdep.c (sh_gdbarch_init): Update.
2872 * s390-tdep.c (s390_gdbarch_init): Update.
2873 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2874 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2875 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2876 * mips-tdep.c (mips_gdbarch_init): Update.
2877 * mcore-tdep.c (mcore_gdbarch_init): Update.
2878 * m68k-tdep.c (m68k_gdbarch_init): Update.
2879 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2880 * ia64-tdep.c (ia64_gdbarch_init): Update.
2881 * i386-tdep.c (i386_gdbarch_init): Update.
2882 * hppa-tdep.c (hppa_gdbarch_init): Update.
2883 * h8300-tdep.c (h8300_gdbarch_init): Update.
2884 * frv-tdep.c (frv_gdbarch_init): Update.
2885 * cris-tdep.c (cris_gdbarch_init): Update.
2886 * avr-tdep.c (avr_gdbarch_init): Update.
2887 * arm-tdep.c (arm_gdbarch_init): Update.
2888 * alpha-tdep.c (alpha_gdbarch_init): Update.
2889
1594fa56
AC
28902003-03-13 Andrew Cagney <[email protected]>
2891
2892 * frame.c (legacy_frame_p): New function.
2893 (get_prev_frame): Use legacy_frame_p.
2894 * frame.h (legacy_frame_p): Declare.
2895
7717fda3
V
28962003-03-13 D. Venkatasubramanian <[email protected]>
2897
2898 * MAINTAINERS (write after approval): Alphabetically
2899 listing corrected.
2900
0c67cbe9
V
29012003-03-13 D. Venkatasubramanian <[email protected]>
2902
2903 * MAINTAINERS (write after approval): Add myself.
2904
03febf99
AC
29052003-03-12 Andrew Cagney <[email protected]>
2906
2907 * frame.c (get_prev_frame): Rename the frame parameter to
2908 "this_frame".
2909 (get_next_frame, legacy_get_prev_frame): Ditto.
2910
0a1e1ca1
AC
29112003-03-12 Andrew Cagney <[email protected]>
2912
2913 * frame.c (get_current_frame): Check target_has_registers before
2914 checking target_has_stack.
2915 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
2916 instead of deprecated_selected_frame.
2917 * findvar.c (value_of_register): Pass "frame", not
2918 deprecated_selected_frame, to value_of_builtin_reg.
2919
a66a9c23
AC
29202003-03-12 Andrew Cagney <[email protected]>
2921
2922 * regcache.c (regcache_cooked_write_signed): New function.
2923 (regcache_cooked_write_unsigned): New function.
2924 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
2925 (regcache_cooked_read_signed): Fix regnum in range assertion.
2926 * regcache.h (regcache_cooked_write_signed): Declare.
2927 (regcache_cooked_write_unsigned): Declare.
2928
8bedc050
AC
29292003-03-12 Andrew Cagney <[email protected]>
2930
2931 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
2932 * gdbarch.h, gdbarch.c: Re-generate.
2933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2934 * x86-64-tdep.h: Update.
2935 * x86-64-tdep.c (x86_64_init_abi): Update.
2936 * v850-tdep.c (v850_gdbarch_init): Update.
2937 * sparc-tdep.c (sparc_gdbarch_init): Update.
2938 * sh-tdep.c (sh_gdbarch_init): Update.
2939 * s390-tdep.c (s390_gdbarch_init): Update.
2940 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2941 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2942 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2943 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2944 * mips-tdep.c (mips_gdbarch_init): Update.
2945 * mcore-tdep.c (mcore_gdbarch_init): Update.
2946 * m68k-tdep.c (m68k_gdbarch_init): Update.
2947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2948 * ia64-tdep.c (ia64_gdbarch_init): Update.
2949 * i386-tdep.c (i386_gdbarch_init): Update.
2950 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2951 * hppa-tdep.c (hppa_gdbarch_init): Update.
2952 * h8300-tdep.c (h8300_gdbarch_init): Update.
2953 * frv-tdep.c (frv_gdbarch_init): Update.
2954 * cris-tdep.c (cris_gdbarch_init): Update.
2955 * avr-tdep.c (avr_gdbarch_init): Update.
2956 * arm-tdep.c (arm_gdbarch_init): Update.
2957 * alpha-tdep.c (alpha_gdbarch_init): Update.
2958 * sh-tdep.c (sh_init_extra_frame_info): Update.
2959 (sh64_init_extra_frame_info): Update.
2960 * ns32knbsd-nat.c (frame_num_args): Update.
2961 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
2962 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
2963 (xstormy16_frame_chain_valid): Update.
2964 * vax-tdep.c (vax_saved_pc_after_call): Update.
2965 * v850-tdep.c (v850_frame_chain): Update.
2966 (v850_pop_frame): Update.
2967 (v850_init_extra_frame_info): Update.
2968 * sparc-tdep.c (setup_arbitrary_frame): Update.
2969 * ns32k-tdep.c (umax_frame_num_args): Update.
2970 * s390-tdep.c (s390_pop_frame_regular): Update.
2971 * mn10300-tdep.c (mn10300_frame_chain): Update.
2972 (mn10300_pop_frame_regular): Update.
2973 (mn10300_init_extra_frame_info): Update.
2974 * mips-tdep.c (mips_init_frame_pc_first): Update.
2975 (mips_frame_chain): Update.
2976 (mips_pop_frame): Update.
2977 * mcore-tdep.c (mcore_frame_chain): Update.
2978 (mcore_pop_frame): Update.
2979 (mcore_init_extra_frame_info): Update.
2980 * arch-utils.c (init_frame_pc_default): Update.
2981 * m68k-tdep.c (isi_frame_num_args): Update.
2982 (delta68_frame_num_args): Update.
2983 (news_frame_num_args): Update.
2984 * ia64-tdep.c (ia64_pop_frame_regular): Update.
2985 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2986 (alpha_frame_chain): Update.
2987 (alpha_pop_frame): Update.
2988 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
2989 (hppa_init_extra_frame_info): Update.
2990 (hppa_frame_chain): Update.
2991 (hppa_frame_chain_valid): Update.
2992 * cris-tdep.c (cris_init_extra_frame_info): Update.
2993 * avr-tdep.c (avr_init_extra_frame_info): Update.
2994 * arm-tdep.c (arm_frame_chain_valid): Update.
2995 (arm_init_extra_frame_info): Update.
2996 (arm_pop_frame): Update.
2997 * frame.c (frame_pc_unwind): Update.
2998 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
2999 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3000 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3001 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3002 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3003 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3004
7a25a7c1
AC
30052003-03-12 Andrew Cagney <[email protected]>
3006
3007 Eliminate the need for POP_FRAME.
3008 * frame.c (do_frame_unwind_register): New function.
3009 (frame_pop): When no POP_FRAME, pop the frame using register
3010 unwind and a scratch regcache.
3011 (frame_saved_regs_pop): Delete function.
3012 (trad_frame_unwinder): Update.
3013 * d10v-tdep.c (d10v_frame_pop): Delete function.
3014 (d10v_frame_unwind): Update.
3015 * sentinel-frame.c (sentinel_frame_pop): Delete function.
3016 (sentinel_frame_unwinder): Update.
3017 * dummy-frame.c (dummy_frame_pop): Delete function.
3018 (dummy_frame_unwind): Update.
3019 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
3020 (struct frame_unwind): Update.
3021
2f38ef89
KB
30222003-03-11 Kevin Buettner <[email protected]>
3023
3024 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
3025 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
3026 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
3027 Do range checks on register number obtained from debugging info.
3028 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
3029 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
3030 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
3031 mapping function.
3032 (do_fp_register_row): Fix typo which caused double type to be
3033 used when attempting to unpack a float.
3034
552f4abf
JB
30352003-03-11 J. Brobecker <[email protected]>
3036
3037 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
3038
e0d2ae16
AC
30392003-03-11 Andrew Cagney <[email protected]>
3040
3041 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
3042 frame. Problem found by Corinna Vinschen.
3043
ddbfdd06
PM
30442003-03-11 Pierre Muller <[email protected]>
3045
3046 * doublest.c (floatformat_from_length): Accept also
3047 the real size of 'long double' type.
3048
088b2ddc 30492003-03-10 Daniel Jacobowitz <[email protected]>
31cc81e9 3050
088b2ddc 3051 From Klee Dienes <[email protected]>:
31cc81e9
DJ
3052 * breakpoint.c (bpstat_copy): Copy the command lines as well
3053 as the old value, to match what is freed in bpstat_clear.
3054
f56f77c1
DC
30552003-03-10 David Carlton <[email protected]>
3056
3057 * minsyms.c (add_minsym_to_hash_table): Replace
3058 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3059 (compare_minimal_symbols, compact_minimal_symbols)
3060 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
3061 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
3062 of DEPRECATED_SYMBOL_MATCHES_NAME.
3063 (lookup_minimal_symbol_solib_trampoline): Ditto.
3064
5602984a
AC
30652003-03-10 Andrew Cagney <[email protected]>
3066
3067 * regcache.h (regcache_cooked_read_ftype): Define.
3068 (regcache_save, regcache_restore): Add a cooked_read parameter.
3069 * regcache.c (regcache_save, regcache_restore): Update.
3070 (do_cooked_read): New function.
3071 (regcache_cpy): Pass do_cooked_read to regcache_save and
3072 regcache_restore.
3073
8bedc050
AC
30742003-03-10 Andrew Cagney <[email protected]>
3075
3076 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3077 * gdbarch.h, gdbarch.c: Re-generate.
3078 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3079 * x86-64-tdep.h: Update.
3080 * x86-64-tdep.c (x86_64_init_abi): Update.
3081 * v850-tdep.c (v850_gdbarch_init): Update.
3082 * sparc-tdep.c (sparc_gdbarch_init): Update.
3083 * sh-tdep.c (sh_gdbarch_init): Update.
3084 * s390-tdep.c (s390_gdbarch_init): Update.
3085 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3086 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3087 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3088 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3089 * mips-tdep.c (mips_gdbarch_init): Update.
3090 * mcore-tdep.c (mcore_gdbarch_init): Update.
3091 * m68k-tdep.c (m68k_gdbarch_init): Update.
3092 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3093 * ia64-tdep.c (ia64_gdbarch_init): Update.
3094 * i386-tdep.c (i386_gdbarch_init): Update.
3095 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3096 * hppa-tdep.c (hppa_gdbarch_init): Update.
3097 * h8300-tdep.c (h8300_gdbarch_init): Update.
3098 * frv-tdep.c (frv_gdbarch_init): Update.
3099 * cris-tdep.c (cris_gdbarch_init): Update.
3100 * avr-tdep.c (avr_gdbarch_init): Update.
3101 * arm-tdep.c (arm_gdbarch_init): Update.
3102 * alpha-tdep.c (alpha_gdbarch_init): Update.
3103 * sh-tdep.c (sh_init_extra_frame_info): Update.
3104 (sh64_init_extra_frame_info): Update.
3105 * ns32knbsd-nat.c (frame_num_args): Update.
3106 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
3107 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
3108 (xstormy16_frame_chain_valid): Update.
3109 * vax-tdep.c (vax_saved_pc_after_call): Update.
3110 * v850-tdep.c (v850_frame_chain): Update.
3111 (v850_pop_frame): Update.
3112 (v850_init_extra_frame_info): Update.
3113 * sparc-tdep.c (setup_arbitrary_frame): Update.
3114 * ns32k-tdep.c (umax_frame_num_args): Update.
3115 * s390-tdep.c (s390_pop_frame_regular): Update.
3116 * mn10300-tdep.c (mn10300_frame_chain): Update.
3117 (mn10300_pop_frame_regular): Update.
3118 (mn10300_init_extra_frame_info): Update.
3119 * mips-tdep.c (mips_init_frame_pc_first): Update.
3120 (mips_frame_chain): Update.
3121 (mips_pop_frame): Update.
3122 * mcore-tdep.c (mcore_frame_chain): Update.
3123 (mcore_pop_frame): Update.
3124 (mcore_init_extra_frame_info): Update.
3125 * arch-utils.c (init_frame_pc_default): Update.
3126 * m68k-tdep.c (isi_frame_num_args): Update.
3127 (delta68_frame_num_args): Update.
3128 (news_frame_num_args): Update.
3129 * ia64-tdep.c (ia64_pop_frame_regular): Update.
3130 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3131 (alpha_frame_chain): Update.
3132 (alpha_pop_frame): Update.
3133 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
3134 (hppa_init_extra_frame_info): Update.
3135 (hppa_frame_chain): Update.
3136 (hppa_frame_chain_valid): Update.
3137 * cris-tdep.c (cris_init_extra_frame_info): Update.
3138 * avr-tdep.c (avr_init_extra_frame_info): Update.
3139 * arm-tdep.c (arm_frame_chain_valid): Update.
3140 (arm_init_extra_frame_info): Update.
3141 (arm_pop_frame): Update.
3142 * frame.c (frame_pc_unwind): Update.
3143 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3144 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3145 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3146 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3147 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3148 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3149
12cc2063
AC
31502003-03-10 Andrew Cagney <[email protected]>
3151
3152 * gdbarch.sh (gdbarch_unwind_pc): New method.
3153 * gdbarch.h, gdbarch.c: Regenerate.
3154 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
3155 but use read_pc and FRAME_SAVED_PC as fall backs.
3156 (frame_saved_regs_pc_unwind): Delete function.
3157 (trad_frame_unwinder): Update.
3158 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
3159 (struct frame_unwind): Update.
3160 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
3161 (dummy_frame_unwind): Update.
3162 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
3163 (sentinel_frame_unwinder): Update.
3164 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
3165 (d10v_frame_unwind): Update.
3166 (d10v_unwind_pc): New function.
3167 (d10v_gdbarch_init): Set unwind_pc.
3168
ef840a37
AC
31692003-03-10 Andrew Cagney <[email protected]>
3170
a2ce2e56
AC
3171 * gdbarch.h: Re-generate.
3172
ef840a37
AC
3173 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
3174 PC.
3175 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
3176 the PC register.
3177
08f3424b
MK
31782003-03-08 Mark Kettenis <[email protected]>
3179
3180 * gdbarch.sh (save_dummy_frame_tos): Add comment.
3181
1248ede2
AC
31822003-03-08 Andrew Cagney <[email protected]>
3183
3184 * cli-out.c: Update copyright.
3185 (cli_out_data): Define typedef. Use instead of ui_out_data.
3186
f49bacc8
AC
31872003-03-08 Andrew Cagney <[email protected]>
3188
3189 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
3190 the result.
3191
9b05f993
AC
31922003-03-07 Andrew Cagney <[email protected]>
3193
3194 * gdbarch.sh: Don't generate two macro definitions when an
3195 undefined macro taking no arguments.
3196 * gdbarch.h: Regenerate.
3197
166f4c7b
ML
31982002-03-07 Michal Ludvig <[email protected]>
3199
3200 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
3201 (x86_64_unwind_dummy_id): New functions.
3202 (x86_64_init_abi): Register these two new functions.
3203
6d686a84
ML
32042003-03-07 Michal Ludvig <[email protected]>
3205
3206 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
3207 (x86_64_skip_prologue): Move prologue detection to
3208 separate function.
3209 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
3210
6314f104
AC
32112003-03-05 Andrew Cagney <[email protected]>
3212
3213 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
3214 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
3215 * frame.c (get_prev_frame): Restructure the frame ID unwind code
3216 to use unwind_dummy_id when a dummy frame.
3217 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
3218 predicate.
3219 * gdbarch.h, gdbarch.c: Regneerate.
3220
ceea5145
AC
32212003-03-05 Andrew Cagney <[email protected]>
3222
3223 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
3224 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
3225 Do not use d10v_read_sp or d10v_read_fp when obtaining register
3226 values.
3227
0d843116
AC
32282003-03-05 Andrew Cagney <[email protected]>
3229
3230 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
3231 (struct d10v_unwind_cache): Delete field "frameless". Replace
3232 "next_addr" with "sp_offset". Add "r11_offset".
3233 (d10v_frame_unwind_cache): Update.
3234 (prologue_find_regs): Update. When "mv r11, sp", save the
3235 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
3236 RN was saved in r11_offset.
3237
b2579786
AC
32382003-03-05 Andrew Cagney <[email protected]>
3239
3240 * frame.c (deprecated_update_frame_pc_hack): Also update the the
3241 cached PC value in the next frame.
3242
218e5956
AC
32432003-03-05 Andrew Cagney <[email protected]>
3244
3245 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
3246 "id_unwind_cache" with "id".
3247 (frame_id_unwind): Delete declaration.
3248 * frame.c (frame_id_unwind): Delete function.
3249 (get_prev_frame): Call the frame id unwind method directly. Store
3250 the returned next frame's ID value in NEXT_FRAME. Note that there
3251 is a problem with the wrong unwind ID being called with the wrong
3252 unwind cache.
3253
ed363b1b
DJ
32542003-03-05 Daniel Jacobowitz <[email protected]>
3255
3256 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
3257
fe1f4a5e
DJ
32582003-03-05 James Ingham <[email protected]>
3259 Daniel Jacobowitz <[email protected]>
3260
3261 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
3262 (auto_cp_abi): New variable.
3263 (current_cp_abi, num_cp_abis): Make static.
3264 (CP_ABI_MAX): Define.
3265 (cp_abis): Turn into an array.
3266 (value_virtual_fn_field): Fix formatting.
3267 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
3268 takes a pointer.
3269 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
3270 (list_cp_abis, _initialize_cp_abi): New functions.
3271 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
3272 declarations for cp_abis, num_cp_abis, current_cp_abi, and
3273 switch_to_cp_abi. Update prototype for register_cp_abi.
3274 * Makefile.in (cp-abi.o): Update dependencies.
3275 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
3276 instead of switch_to_cp_abi.
3277 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
3278 register_cp_abi.
3279 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
3280 register_cp_abi.
3281 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
3282
e4adbba9
DJ
32832003-03-05 Daniel Jacobowitz <[email protected]>
3284
3285 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
3286 * dwarf2loc.c: Include "regcache.h".
3287 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
3288 register_size.
3289 * Makefile.in (dwarf2loc.o): Update dependencies.
3290
91ccbfc1
TR
32912003-03-04 Theodore A. Roth <[email protected]>
3292
3293 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
3294 number of io registers reported by remote target is not a multiple of
3295 step.
3296
3d4e8fd2
DC
32972003-03-04 David Carlton <[email protected]>
3298
3299 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
3300 (lookup_symbol_aux_psymtabs): Update call to
3301 lookup_partial_symbol.
3302 (lookup_transparent_type, find_main_psymtab)
3303 (make_symbol_overload_list): Ditto.
3304
ed42d87b
KH
33052003-03-04 Kazu Hirata <[email protected]>
3306
3307 * MAINTAINERS (Write after approval): Update my email address.
3308
a0ed5532
AC
33092003-03-03 Andrew Cagney <[email protected]>
3310
3311 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
3312 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
3313 predicate. Replace MAX_REGISTER_RAW_SIZE.
3314 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
3315 MAX_REGISTER_VIRTUAL_SIZE.
3316 * regcache.c (legacy_max_register_raw_size): New function.
3317 (legacy_max_register_virtual_size): New function.
3318 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
3319 (MAX_REGISTER_RAW_SIZE): Define.
3320 (legacy_max_register_raw_size): Declare.
3321 (legacy_max_register_virtual_size): Declare.
3322 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3323 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
3324 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3325 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3326 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3327 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3328 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3329 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3330 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3332 * vax-tdep.c (vax_gdbarch_init): Update.
3333 * v850-tdep.c (v850_gdbarch_init): Update.
3334 * sparc-tdep.c (sparc_gdbarch_init): Update.
3335 * sh-tdep.c (sh_gdbarch_init): Update.
3336 * s390-tdep.c (s390_gdbarch_init): Update.
3337 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3338 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3339 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3340 * mips-tdep.c (mips_gdbarch_init): Update.
3341 * mcore-tdep.c (mcore_gdbarch_init): Update.
3342 * m68k-tdep.c (m68k_gdbarch_init): Update.
3343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3344 * ia64-tdep.c (ia64_gdbarch_init): Update.
3345 * i386-tdep.c (i386_gdbarch_init): Update.
3346 * hppa-tdep.c (hppa_gdbarch_init): Update.
3347 * h8300-tdep.c (h8300_gdbarch_init): Update.
3348 * frv-tdep.c (frv_gdbarch_init): Update.
3349 * cris-tdep.c (cris_gdbarch_init): Update.
3350 * avr-tdep.c (avr_gdbarch_init): Update.
3351 * arm-tdep.c (arm_gdbarch_init): Update.
3352 * alpha-tdep.c (alpha_gdbarch_init): Update.
3353 * d10v-tdep.c (d10v_gdbarch_init): Do not set
3354 max_register_raw_size or max_register_virtual_size.
3355
8e437497
DC
33562003-03-03 David Carlton <[email protected]>
3357
3358 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
3359 SYMBOL_MATCHES_NAME, add comment.
3360 (SYMBOL_MATCHES_NATURAL_NAME): New.
3361 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
3362 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
3363 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
3364 * symtab.c (lookup_partial_symbol): Use
3365 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
3366 unhelpful comment.
3367 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
3368 SYMBOL_MATCHES_NAME.
3369 Fix for PR c++/33.
3370
25120b0d
DC
33712003-03-03 David Carlton <[email protected]>
3372
3373 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
3374 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
3375 by regexp matching against SYMBOL_NATURAL_NAME.
3376
78a11fb4
DC
33772003-03-03 David Carlton <[email protected]>
3378
3379 * linespec.c (find_method): Extract code into collect_methods.
3380 (collect_methods): New.
3381
645dd519
MK
33822003-03-02 Mark Kettenis <[email protected]>
3383
b4700d91
MK
3384 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
3385 get_frame_base.
3386
645dd519
MK
3387 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
3388 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3389
0aa7e1aa
SC
33902003-03-02 Stephane Carrez <[email protected]>
3391
3392 * arch-utils.c (generic_register_byte): Fix to use the loop index
3393 and not regnum when summing the size of all registers up to regnum.
3394
f30ee0bc
AC
33952003-03-01 Andrew Cagney <[email protected]>
3396
3397 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
3398 FRAME_INIT_SAVED_REGS.
3399 * gdbarch.h, gdbarch.c: Regenerate.
3400 * stack.c (frame_info): Update.
3401 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
3402 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
3403 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
3404 * ns32k-tdep.c (ns32k_pop_frame): Update.
3405 * mips-tdep.c (mips_pop_frame): Update.
3406 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
3407 * ia64-tdep.c (ia64_frame_chain): Update.
3408 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
3409 (ia64_frameless_function_invocation): Update.
3410 (ia64_init_extra_frame_info): Update.
3411 (ia64_pop_frame_regular): Update.
3412 * frame.h (struct frame_info): Update comment.
3413 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
3414 * frame.c (frame_saved_regs_register_unwind): Update.
3415 (frame_saved_regs_register_unwind): Update.
3416 (deprecated_generic_get_saved_register): Update.
3417 * cris-tdep.c: Update comment.
3418 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
3419 Rename macro.
3420 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3421 * x86-64-tdep.c (x86_64_init_abi): Update.
3422 * vax-tdep.c (vax_gdbarch_init): Update.
3423 * v850-tdep.c (v850_gdbarch_init): Update.
3424 * sparc-tdep.c (sparc_gdbarch_init): Update.
3425 * sh-tdep.c (sh_gdbarch_init): Update.
3426 * s390-tdep.c (s390_gdbarch_init): Update.
3427 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3428 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3429 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3430 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3431 * mips-tdep.c (mips_gdbarch_init): Update.
3432 * mcore-tdep.c (mcore_gdbarch_init): Update.
3433 * m68k-tdep.c (m68k_gdbarch_init): Update.
3434 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3435 * ia64-tdep.c (ia64_gdbarch_init): Update.
3436 * i386-tdep.c (i386_gdbarch_init): Update.
3437 * frv-tdep.c (frv_gdbarch_init): Update.
3438 * avr-tdep.c (avr_gdbarch_init): Update.
3439 * arm-tdep.c (arm_gdbarch_init): Update.
3440 * alpha-tdep.c (alpha_gdbarch_init): Update.
3441
42fa7c0f
AC
34422003-03-01 Andrew Cagney <[email protected]>
3443
3444 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
3445 option enum and switch. When no windows, set the interpreter to
3446 INTERP_CONSOLE.
3447
49c7e338
AC
34482003-03-01 Andrew Cagney <[email protected]>
3449
3450 * main.c (captured_main): Replace magic option characters with an
3451 enum.
3452
e9582e71
AC
34532003-03-01 Andrew Cagney <[email protected]>
3454
3455 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
3456 INIT_EXTRA_FRAME_INFO.
3457 * gdbarch.h, gdbarch.c: Regenerate.
3458 * arm-tdep.c: Update comments.
3459 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
3460 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
3461 * frame.h, avr-tdep.c: Ditto.
3462 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
3463 (create_new_frame, legacy_get_prev_frame): Ditto.
3464 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3465 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3466 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
3467 deprecated_init_extra_frame_info instead of init_extra_frame_info.
3468 * x86-64-tdep.c (x86_64_init_abi): Ditto.
3469 * v850-tdep.c (v850_gdbarch_init): Ditto.
3470 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3471 * sh-tdep.c (sh_gdbarch_init): Ditto.
3472 * s390-tdep.c (s390_gdbarch_init): Ditto.
3473 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
3474 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3475 * mips-tdep.c (mips_gdbarch_init): Ditto.
3476 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3478 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3479 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3480 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3481 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3482 * frv-tdep.c (frv_gdbarch_init): Ditto.
3483 * cris-tdep.c (cris_gdbarch_init): Ditto.
3484 * avr-tdep.c (avr_gdbarch_init): Ditto.
3485 * arm-tdep.c (arm_gdbarch_init): Ditto.
3486 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3487 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3488
35cac7cf
AC
34892003-03-01 Andrew Cagney <[email protected]>
3490
3491 * gdbarch.sh (register_type): New function with predicate.
3492 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
3493 * gdbarch.h, gdbarch.c: Re-generate.
3494 * arch-utils.c (generic_register_byte): Use generic_register_size.
3495 (generic_register_size): When available, use
3496 gdbarch_register_type.
3497 * regcache.c (init_regcache_descr): When available, initialize the
3498 register type array using gdbarch_register_type. If the
3499 architecture supplies gdbarch_register_type, do not use the legacy
3500 regcache layout.
3501 * d10v-tdep.c (d10v_register_type): Replace
3502 d10v_register_virtual_type.
3503 (d10v_gdbarch_init): Set register_type instead of
3504 register_virtual_type.
3505
7b83296f
AC
35062003-03-01 Andrew Cagney <[email protected]>
3507
3508 * Makefile.in (ax-gdb.o): Update dependencies.
3509 * ax-gdb.c: Include "regcache.h".
3510 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
3511 * findvar.c (value_of_register): Ditto.
3512 * infcmd.c (default_print_registers_info): Ditto.
3513
eadc1c87
MK
35142003-03-01 Mark Kettenis <[email protected]>
3515
3516 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
3517 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3518
14143612
MK
35192003-03-01 Mark Kettenis <[email protected]>
3520
3521 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
3522 of STREQ.
3523
a55cc764
DJ
35242003-02-28 Daniel Jacobowitz <[email protected]>
3525
3526 * Makefile.in (dwarf2loc.o): Update dependencies.
3527 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
3528 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
3529 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
3530 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
3531 (locexpr_tracepoint_var_ref): New function.
3532 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
3533
08a617da
AC
35342003-02-28 Andrew Cagney <[email protected]>
3535
3536 * regcache.c (register_size): New function.
3537 * regcache.h (register_size): Declare
3538 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
3539 max_register_size instead of MAX_REGISTER_RAW_SIZE.
3540
4224873a
DC
35412003-02-28 David Carlton <[email protected]>
3542
3543 * linespec.c (decode_compound): Extract code into find_method.
3544 (find_method): New.
3545
ccdc5d7f
JB
35462003-02-28 J. Brobecker <[email protected]>
3547
3548 * Makefile.in: Add rules to build and link in observer.o.
3549
974e8ced
JB
35502003-02-27 J. Brobecker <[email protected]>
3551
3552 * observer.c: Minor comments edits.
3553
7a28f973
JB
35542003-02-27 J. Brobecker <[email protected]>
3555
3556 * observer.h, observer.c: New file.
3557
27cddce2
AC
35582003-02-27 Andrew Cagney <[email protected]>
3559
3560 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
3561
b94a41a1
SC
35622003-02-27 Stephane Carrez <[email protected]>
3563
3564 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
3565 (M6812_OP_STS_EXT): Likewise.
3566 (m6811_prologue): Use the above to recognize prologue.
3567 (m6812_prologue): Likewise.
3568
c8be8951
DC
35692003-02-27 David Carlton <[email protected]>
3570
3571 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
3572 SYMBOL_PRINT_NAME.
3573 (compare_psymbols): Ditto.
3574 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
3575
d05bb1fc
MS
35762003-02-27 Michael Snyder <[email protected]>
3577
4e845cd3
MS
3578 * f-lang.c (build_fortran_types): New function.
3579 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
3580 * doublest.c (extract_floating): Fix warning text.
3581
f3824013
AC
35822003-02-27 Andrew Cagney <[email protected]>
3583
3584 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
3585 predicate. Replaces PUSH_DUMMY_FRAME.
3586 * gdbarch.h, gdbarch.c: Regnerate.
3587 * valops.c (hand_function_call): Update. Call
3588 generic_push_dummy_frame directly.
3589 * vax-tdep.c (vax_gdbarch_init): Update.
3590 * sparc-tdep.c (sparc_gdbarch_init): Update.
3591 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3592 * m68k-tdep.c (m68k_gdbarch_init): Update.
3593 * hppa-tdep.c (hppa_gdbarch_init): Update.
3594 * alpha-tdep.c (alpha_gdbarch_init): Update.
3595 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3596 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3597 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
3598 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
3599 push_dummy_frame to generic_push_dummy_frame.
3600 * v850-tdep.c (v850_gdbarch_init): Ditto.
3601 * sh-tdep.c (sh_gdbarch_init): Ditto.
3602 * s390-tdep.c (s390_gdbarch_init): Ditto.
3603 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3604 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3605 * mips-tdep.c (mips_gdbarch_init): Ditto.
3606 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3607 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3608 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3609 * i386-tdep.c (i386_gdbarch_init): Ditto.
3610 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3611 * frv-tdep.c (frv_gdbarch_init): Ditto.
3612 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3613 * cris-tdep.c (cris_gdbarch_init): Ditto.
3614 * avr-tdep.c (avr_gdbarch_init): Ditto.
3615 * arm-tdep.c (arm_gdbarch_init): Ditto.
3616
ad188201
KB
36172003-02-26 Kevin Buettner <[email protected]>
3618
3619 * mips-tdep.c (show_mips_abi): New function.
3620 (_initialize_mips_tdep): Use show_mips_abi() to implement the
3621 command ``show mips abi''.
3622
6b37567a
JJ
36232003-02-26 Jeff Johnston <[email protected]>
3624
3625 From Elena Zannoni <[email protected]>
3626 * dbxread.c (process_one_symbol): Only record line 0 if one or
3627 more sline entries have been seen for the function.
3628
d3e0a5bf
MC
36292003-02-26 Michael Chastain <[email protected]>
3630
3631 * configure: Regenerate with autoconf 000227.
3632
18972eea
MC
36332003-02-26 Michael Chastain <[email protected]>
3634
3635 Close PR build/660.
3636 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
3637 for old libc5/glibc.
3638 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
3639
0bbde931
KW
36402003-02-26 Kris Warkentin <[email protected]>
3641
3642 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
3643 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
3644
27ca5dad
MC
36452003-02-26 Michael Chastain <[email protected]>
3646
3647 * configure.in: New variable HAVE_UINTPTR_T.
3648 * configure, config.in: Regenerated.
3649
6f88d630
DJ
36502003-02-26 Daniel Jacobowitz <[email protected]>
3651
3652 Fix PR build/1097.
3653 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
3654
b14185ce
AC
36552003-02-25 Andrew Cagney <[email protected]>
3656
3657 * frame.c (get_prev_frame): Add comment on check for
3658 inside_entry_func. Only check for inside_entry_file when not a
3659 dummy and not a sentinel. Check that the new frame is not inner
3660 to the old frame.
3661
ac2bd0a9
AC
36622003-02-25 Andrew Cagney <[email protected]>
3663
3664 * frame.c (frame_debug): New variable.
3665 (_initialize_frame): Add "set/show debug frame" command.
3666 (get_prev_frame): When frame_debug, print reason why unwind
3667 failed.
3668
b18a0fd2
MC
36692003-02-25 Michael Chastain <[email protected]>
3670
3671 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
3672 to avoid uintptr_t definition problems.
3673
22abf04a
DC
36742003-02-25 David Carlton <[email protected]>
3675
3676 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
3677 (SYMBOL_LINKAGE_NAME): Ditto.
3678 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
3679 SYMBOL_LINKAGE_NAME.
3680 (struct general_symbol_info): Expand comment.
3681 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
3682 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
3683 (SYMBOL_MATCHES_REGEXP): Ditto.
3684 * symtab.c (symbol_natural_name): New function.
3685 * objfiles.h: Replace all uses of SYMBOL_NAME by
3686 DEPRECATED_SYMBOL_NAME.
3687 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
3688 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
3689 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
3690 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
3691 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
3692 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
3693 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
3694 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
3695 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
3696 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
3697 * ada-exp.y: Ditto.
3698 * ada-exp.y: Update copyright.
3699 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
3700 * cp-valprint.c: Ditto.
3701
1a5848f6
JJ
37022003-02-25 Jeff Johnston <[email protected]>
3703
3704 * infptrace.c (detach): Do not flag error if ptrace detach fails
3705 and errno is set to ESRCH.
3706
7343d46a
AC
37072003-02-24 Andrew Cagney <[email protected]>
3708
3709 * infptrace.c (udot_info): Change type of udot_off to long. Use
3710 paddr when printing udot_off's value.
3711
49fa1dc2
DC
37122003-02-24 David Carlton <[email protected]>
3713
3714 * symtab.c (make_symbol_overload_list): Only read in partial
3715 symtabs containing a matching partial symbol.
3716
0fe19209
DC
37172003-02-24 David Carlton <[email protected]>
3718
3719 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
3720 do the comparison, not strcmp.
3721 * symfile.c (compare_psymbols): Ditto.
3722 * defs.h: Declare strcmp_iw_ordered.
3723 * utils.c (strcmp_iw_ordered): New function.
3724
8e3ee7b5
JB
37252003-02-24 Jim Blandy <[email protected]>
3726
3727 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
3728 support, shared libs): Remove my name from here, to better reflect
3729 reality.
3730
7df1a324
KW
37312003-02-24 Kris Warkentin <[email protected]>
3732
3733 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
3734 (target_ops): Add to_have_continuable_watchpoint.
3735 * target.c (update_current_target): Add INHERIT line for
3736 to_have_continuable_watchpoint.
3737 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
3738 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
3739 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
3740 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
3741
d1c76907
EZ
37422003-02-24 Elena Zannoni <[email protected]>
3743
3744 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
3745 maintainership.
3746
2610b0bf
KW
37472003-02-24 Kris Warkentin <[email protected]>
3748
f46169db
KW
3749 * solib.c (solib_open): Call target defined search function after
3750 failing with solib-search-path.
3751 * solist.h (target_so_ops): Add find_and_open_solib function hook and
3752 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 3753
9a3c34fe
KW
37542003-02-24 Kris Warkentin <[email protected]>
3755
f46169db 3756 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 3757
2417dd25
SC
37582003-02-23 Stephane Carrez <[email protected]>
3759
3760 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
3761
b631436b
SC
37622003-02-22 Stephane Carrez <[email protected]>
3763
3764 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
3765 (m68hc11_add_reggroups): New function.
3766 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
3767 (m68hc11_gdbarch_init): Install the reggroups.
3768 (_initialize_m68hc11_tdep): Initialize them.
3769
0aa8c1e4
JW
37702003-02-21 James E Wilson <[email protected]>
3771
3772 * MAINTAINERS: Update my email address.
3773
50ceaba5
DC
37742003-02-21 David Carlton <[email protected]>
3775
3776 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
3777
4c2df51b
DJ
37782003-02-21 Daniel Jacobowitz <[email protected]>
3779
3780 Based on a patch from Daniel Berlin ([email protected]).
3781 * symtab.h: Add opaque declarations of struct axs_value and
3782 struct agent_expr.
3783 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
3784 (struct location_funcs): New type.
3785 (struct symbol): Add "loc" to aux_value.
3786 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
3787 * dwarf2read.c: Include "dwarf2expr.h".
3788 (dwarf2_symbol_mark_computed): New function.
3789 (read_func_scope): Use it.
3790 (var_decode_location): New function.
3791 (new_symbol): Use it.
3792 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
3793
3794 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
3795 (dwarf2expr_h, dwarf2loc_h): New variables.
3796 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
3797 (dwarf2expr.o, dwarf2loc.o): New rules.
3798 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
3799 * buildsym.c (finish_block): Handle LOC_COMPUTED and
3800 LOC_COMPUTED_ARG.
3801 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3802 * m2-exp.y (yylex): Likewise.
3803 * printcmd.c (address_info, print_frame_args): Likewise.
3804 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
3805 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3806 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
3807 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
3808 * symtab.c (lookup_block_symbol): Likewise.
3809
5784d15e
AF
38102003-02-20 Adam Fedor <[email protected]>
3811
3812 * symtab.h: Remove objc_specific struct
3813 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
3814 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
3815 Have language_objc use cplus_specific struct.
3816
d4cad8db
TT
38172003-02-20 Tom Tromey <[email protected]>
3818
3819 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
3820 TYPE_NAME, when printing a String value. PR java/1075.
3821
2f9a90b4
AF
38222003-02-20 Adam Fedor <[email protected]>
3823
d38074a8 3824 * objc-lang.h (find_methods): Remove declaration.
2f9a90b4
AF
3825 * objc-lang.c (find_methods): Make static.
3826
6f17862b
CF
38272003-02-20 Christopher Faylor <[email protected]>
3828
3829 * win32-nat.c (get_image_name): Check return value from
3830 ReadProcessMemory.
3831 (child_xfer_memory): Ditto.
3832
715d1656
AO
38332003-02-20 Alexandre Oliva <[email protected]>
3834
3835 * configure.in (TARGET_SYSTEM_ROOT): Set default to
3836 ${exec_prefix}/${target_alias}/sys-root. Match explicit
3837 '${exec_prefix}' (in addition to the expansion thereof) as
3838 relocatable.
3839 * configure: Rebuilt.
3840
b1262a02
DC
38412003-02-20 David Carlton <[email protected]>
3842
3843 * symtab.c (search_symbols): Revert the search_symbols part of my
3844 2002-12-23 patch. Add comment.
3845
7134143f
DJ
38462002-02-20 Daniel Jacobowitz <[email protected]>
3847
3848 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
3849 * dbxread.c (elfstab_build_psymtabs): Don't call
3850 install_minimal_symbols.
3851 (stabsect_build_psymtabs): Likewise.
3852 * elfread.c (elf_symfile_read): Call install_minimal_symbols
3853 earlier.
3854 * somread.c (som_symfile_read): Call install_minimal_symbols
3855 and do_cleanups earlier.
3856 * nlmread.c (nlm_symfile_read): Likewise.
3857 * mdebugread.c (elfmdebug_build_psymtabs): Call
3858 install_minimal_symbols and make appropriate cleanups.
3859
cf466558
KB
38602003-02-20 Kevin Buettner <[email protected]>
3861
3862 * solib.c (reload_shared_libraries): New function.
3863 (_initialize_solib): Add callbacks for ``set solib-search-path''
3864 and ``set solib-absolute-prefix''.
3865
de5ad195
DC
38662003-02-20 David Carlton <[email protected]>
3867
3868 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
3869 expand comment.
3870 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
3871 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
3872 * ada-typeprint.c (ada_typedef_print): Ditto.
3873 * ax-gdb.c (gen_var_ref): Ditto.
3874 * breakpoint.c (print_one_breakpoint): Ditto.
3875 * buildsym.c (finish_block): Ditto.
3876 * c-valprint.c (c_val_print): Ditto.
3877 * expprint.c (print_subexp): Ditto.
3878 * findvar.c (locate_var_value): Ditto.
3879 * infcmd.c (jump_command): Ditto.
3880 * linespec.c (decode_line_2, decode_compound): Ditto.
3881 * maint.c (maintenance_translate_address): Ditto.
3882 * objc-lang.c (compare_selectors, compare_classes): Ditto.
3883 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
3884 Ditto.
3885 * p-valprint.c (pascal_val_print): Ditto.
3886 * stabsread.c (define_symbol): Ditto.
3887 * stack.c (print_frame, frame_info, print_block_frame_locals)
3888 (print_frame_arg_vars, return_command): Ditto.
3889 * symfile.c (compare_symbols, compare_psymbols): Ditto.
3890 * symmisc.c (print_symbol): Ditto.
3891 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
3892 (compare_search_syms, print_symbol_info, print_msymbol_info)
3893 (rbreak_command): Ditto.
3894 * tracepoint.c (tracepoints_info): Ditto.
3895 * typeprint.c (typedef_print): Ditto.
3896 * valops.c (value_of_variable, hand_function_call): Ditto.
3897 * cli/cli-cmds.c (edit_command, list_command): Ditto.
3898 * ada-typeprint.c: Update Copyright.
3899 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
3900 * tracepoint.c, cli/cli-cmds.c: Ditto.
3901
f796e4be
KB
39022003-02-20 Kevin Buettner <[email protected]>
3903
3904 * frame.c (generic_unwind_get_saved_register): Make non-static.
3905 * frame.h (generic_unwind_get_saved_register): Declare.
3906 * mips-tdep.c (read_next_frame_reg): Fetch register from
3907 current regcache when frame is NULL.
3908 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
3909 that must be NULL.
3910 (mips_get_saved_register): Call generic_unwind_get_saved_register()
3911 instead of frame_register_unwind().
3912
836cc9f4
AC
39132003-02-20 Andrew Cagney <[email protected]>
3914
3915 * remote-sim.c (gdbsim_insert_breakpoint)
3916 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
3917 code.
3918
501eef12
AC
39192003-02-20 Andrew Cagney <[email protected]>
3920
3921 * remote.c (_initialize_remote): Add commands "set/show remote
3922 hardware-watchpoint-limit" and "set/show remote
3923 hardware-breakpoint-limit".
3924 (remote_hw_watchpoint_limit): Initialize to -1.
3925 (remote_hw_breakpoint_limit): Ditto.
3926 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
3927
1b6bc7e0
CF
39282003-02-19 Raoul Gough <[email protected]>
3929
3930 * coff-pe-read.c: New file - support reading of minimal symbols from a
3931 portable executable using the export table.
3932 * coff-pe-read.h: New file.
3933 * coffread.c: Include coff-pe-read.h.
3934 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
3935 debugging symbols found.
3936 * Makefile.in (SFILES): Add coff-pe-read.o.
3937 (coff_pe_read_h): Define.
3938 (COMMON_OBS): Add coff-pe-read.o.
3939 (coffread.o): Add coff_pe_read_h dependency.
3940 (coff-pe-read.o): New target.
3941
fe898f56
DC
39422003-02-19 David Carlton <[email protected]>
3943
3944 * Makefile.in (SFILES): Add block.c.
3945 (block_h): New.
3946 (COMMON_OBS): Add block.o.
3947 (block.o): New.
3948 (x86-64-tdep.o): Add $(block_h).
3949 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
3950 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
3951 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
3952 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
3953 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
3954 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
3955 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
3956 * value.h: Add opaque declaration for struct block.
3957 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
3958 * ada-lang.h: Ditto.
3959 * x86-64-tdep.c: #include "block.h"
3960 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
3961 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
3962 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
3963 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
3964 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
3965 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
3966 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
3967 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
3968 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
3969 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
3970 * symtab.c (block_function): Ditto.
3971 (contained_in): Ditto.
3972 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
3973 block.h. Add opaque declaration for struct block.
3974 * symtab.h: Move block_function and contained_in declarations to
3975 block.h. Add opaque declarations for struct block, struct
3976 blockvector.
3977 (struct block): Move to block.h.
3978 (struct blockvector): Ditto.
3979 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
3980 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
3981 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
3982 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
3983 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
3984 Ditto.
3985 * block.c: New file.
3986 * block.h: New file.
3987
173345b5
TR
39882003-02-19 Theodore A. Roth <[email protected]>
3989
3990 * avr-tdep.c (avr_extract_return_value): Remove function.
3991 (avr_store_return_value): Remove function.
3992 (avr_extract_struct_value_address): Remove function.
3993 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
3994
338ef23d
AC
39952003-02-19 Andrew Cagney <[email protected]>
3996
3997 * rs6000-tdep.c: Include "gdb_assert.h".
3998 (registers_e500): Add "acc" and "spefscr".
3999 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
4000 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
4001 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
4002 really is "r0".
4003 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
4004
5412f5f3
KS
40052003-02-18 Keith Seitz <[email protected]>
4006
4007 * Makefile.in: Add gdbtk-interps.c.
4008
881324eb
KB
40092003-02-18 Kevin Buettner <[email protected]>
4010
4011 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
4012 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
4013
6a2f5abf
AC
40142003-02-18 Andrew Cagney <[email protected]>
4015
4016 * symtab.h (struct objfile): Add opaque declaration.
4017
54c7009d
EZ
40182003-02-18 Elena Zannoni <[email protected]>
4019
4020 From Jim Ingham <[email protected]>:
4021 * dbxread.c (process_one_symbol): Use last_function_start rather
4022 than function_start_offset to find the real beginning of the
4023 current function. The latter is just the text section offset on
4024 some systems, the former is always the real function start.
4025
7ee6d7eb
AC
40262003-02-17 Andrew Cagney <[email protected]>
4027
4028 * configure.in: Revert ${target} != ${host}.
4029
2846da9b
AC
40302003-02-17 Andrew Cagney <[email protected]>
4031
4032 * configure.in (Makefile): Use the test ${target} != ${host},
4033 instead of the absence of the "nm.h" file, to determine of the
4034 configuration non-native.
4035 * configure: Regenerate.
4036
3b27aeea
EZ
40372003-02-14 Elena Zannoni <[email protected]>
4038
4039 From Brian Ford <[email protected]>
4040
4041 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
4042 conditionalize tui_active test.
4043 (lookup_cmd_1): Ditto.
4044
b0b1c2c0
MK
40452003-02-14 Mark Kettenis <[email protected]>
4046
4047 * configure.in: Add check for _etext.
4048 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
4049 available.
4050 * config.in, configure: regenerated.
4051
8f05cde5
DJ
40522003-02-14 Daniel Jacobowitz <[email protected]>
4053
4054 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
4055
021e7609
AC
40562003-02-14 Andrew Cagney <[email protected]>
4057
4058 * main.c (tui_version): Delete variable.
4059 (captured_main): When --tui, set interpreter_p to "tui" instead of
4060 enabling tui_version.
4061 * printcmd.c (display_command) [TUI]: Test tui_active instead of
4062 tui_version.
4063 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
4064 * cli/cli-cmds.c (disassemble_command): Ditto.
4065 * defs.h (tui_version): Delete declaration.
4066 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
4067 (tui-interp.o): Add rules.
4068 (SUBDIR_TUI_OBS): Add "tui-interp.o".
4069
e325dcec
CF
40702003-02-14 Christopher Faylor <[email protected]>
4071
36ffb041 4072 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
4073 just-loaded dll.
4074
c4f90d87
JM
40752003-02-12 Jason Molenda ([email protected])
4076
4077 * symmisc.c (print_objfile_statistics): Include information about
4078 the number of psymtabs and symtabs in each object file.
4079
e46e5ccd
KS
40802003-02-13 Keith R Seitz <[email protected]>
4081
4082 * main.h (struct captured_main_args): Add interpreter_p.
4083 * main.c (captured_main): Initialize interpreter_p from context.
4084 * gdb.c (main): Set interpreter_p argument.
4085 * Makefile.in (gdb.o): Add dependency for interps.h.
4086
fe97fe9c
AC
40872003-02-12 Andrew Cagney <[email protected]>
4088
4089 * event-top.c (cli_command_loop): Delete declaration.
4090 (_initialize_event_loop): Delete function setting event_loop_hook.
4091 * event-top.h (cli_command_loop): Declare. Update copyright.
4092 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
4093 * interps.c (current_interp_command_loop): When event_loop_p, call
4094 cli_command_loop.
4095
1cdac4ef
AC
40962003-02-12 Andrew Cagney <[email protected]>
4097
4098 * interps.h (interp_command_loop_ftype): Change return type to
4099 void.
4100
48037ead
ML
41012003-02-12 Michal Ludvig <[email protected]>
4102
4103 * x86-64-tdep.c (x86_64_extract_return_value)
4104 (x86_64_store_return_value): Use regcache instead of regbuf.
4105 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
4106 * x86-64-linux-nat.c (fill_gregset): Use regcache.
4107
033afc63
AC
41082003-02-11 Andrew Cagney <[email protected]>
4109
4110 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
4111 * aclocal.m4: Regenerate.
4112 * configure: Regenerate.
4113
4114 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
4115 TCL_LD_SEARCH_FLAGS.
4116
40d02bca
ML
41172003-02-10 Michal Ludvig <[email protected]>
4118
4119 * dwarf2cfi.c: Reindented.
4120
11308a41
AC
41212003-02-09 Andrew Cagney <[email protected]>
4122
4123 * interps.c (clear_interpreter_hooks): Convert function definition
4124 to ISO C.
4125
e1c1c0f6
DC
41262003-02-07 David Carlton <[email protected]>
4127
4128 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
4129
ab5d3da6
KB
41302003-02-07 Kevin Buettner <[email protected]>
4131
4132 * gdbtypes.h (struct main_type): Move ``length'' field from here...
4133 (struct type): ...to here.
4134 (TYPE_LENGTH): Adjust to reflect different location of ``length''
4135 field.
4136 * gdbtypes.c (make_qualified_type): Set length on newly created type.
4137 (replace_type): Set length on all type variants for a given type.
4138
b8a92b82
AC
41392003-02-07 Andrew Cagney <[email protected]>
4140
4141 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
4142 <sys/stat.h>.
4143 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
4144
5cb316ef
AC
41452003-02-06 Andrew Cagney <[email protected]>
4146
2555fe1a
AC
4147 * Makefile.in (symm-nat.o): Update dependencies.
4148 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
4149 (lynx-nat.o, ia64-linux-nat.): Ditto.
4150 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
4151 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
4152 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
4153
44270758
AC
4154 * Makefile.in (inflow_h): Define.
4155 (procfs.o, inflow.o, procfs.o): Update dependencies.
4156 * inftarg.c (child_stop): Delete extern declaration of
4157 inferior_process_group. Include "inflow.h".
4158 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
4159 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
4160 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
4161 (our_process_group, inferior_process_group): Extern declarations.
4162
df8f7274
AC
4163 * procfs.c: Include "gdb_assert.h".
4164
5cb316ef
AC
4165 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4166 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
4167 * jv-typeprint.c (java_type_print_base): Ditto.
4168 * typeprint.c (typedef_print): Eliminate STREQ.
4169 * cli/cli-script.c (define_command, define_command): Ditto.
4170 * main.c (captured_main): Ditto.
4171 * values.c (lookup_internalvar): Ditto.
4172 * utils.c (safe_strerror, parse_escape): Eliminate assignment
4173 within `if' conditional.
4174 * linespec.c (decode_line_2): Ditto.
4175 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
4176 (bfd_openw_with_cleanup): Ditto.
4177
2a28ccea
MK
41782003-02-07 Mark Kettenis <[email protected]>
4179
4180 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
4181 legacy_extract_return_value and store_return_value to
4182 legacy_return_value.
4183
786b8124
CF
41842003-02-06 Raoul Gough <[email protected]>
4185
4186 * win32-nat.c (get_relocated_section_addrs): New function. Find
4187 section load addresses for symbol handling in relocated DLLs.
4188 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
4189
b871e4ec
FF
41902003-02-05 Fred Fish <[email protected]>
4191
4192 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
4193 '=' and '!='.
4194 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
4195 with '&' and '=='.
4196 (angel_RDI_info): Ditto.
4197 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
4198 with '&' and '!='.
4199 (threads_continue_all_with_signals): Ditto.
4200
4389a95a
AC
42012003-02-05 Jim Ingham <[email protected]>
4202 Keith Seitz <[email protected]>
4203 Elena Zannoni <[email protected]>
4204 Andrew Cagney <[email protected]>
4205
4206 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
4207 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
4208 (SUBDIR_MI_OBS): Add "mi-interp.o".
4209 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
4210 (SFILES): Add "interps.c".
4211 (COMMON_OBS): Add "interps.o".
4212 (interps_h, mi_main_h): Define.
4213 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
4214 (mi-main.o, main.o, event-top.o): Update dependencies.
4215 * cli/cli-interp.c: New file.
4216 * interps.h, interps.c: New files.
4217 * top.c: (gdb_init): Don't install the default interpreter, handed
4218 by captured_main.
4219 * main.c: Include "interps.h".
4220 (interpreter_p): Note that it should malloc'ed.
4221 (captured_command_loop): Call current_interp_command_loop.
4222 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
4223 xfree and xstrdup when updating interpreter_p. Install the
4224 default interpreter. Add hack to stop mi1's copyright notice
4225 being encoded.
4226 * event-top.h (gdb_setup_readline): Declare.
4227 (gdb_disable_readline): Declare.
4228 * event-top.c: Include "interps.h".
4229 (display_gdb_prompt): Call current_interp_display_prompt_p.
4230 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
4231 gdb_stdlog, and gdb_stdtarg.
4232 (_initialize_event_loop): Don't call gdb_setup_readline.
4233 * cli-out.c (cli_out_set_stream): New function.
4234 * cli-out.h (cli_out_set_stream): Declare.
4235
ff3b5810
MK
42362003-02-06 Mark Kettenis <[email protected]>
4237
4238 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
4239 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
4240 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
4241 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
4242 config/i386/i386v42mp.mt: Removed.
4243
5b729aa5
MK
42442003-02-05 Mark Kettenis <[email protected]>
4245
4246 * configure.tgt (*-*-solaris*): Set gdb_osabi to
4247 GDB_OSABI_SOLARIS.
4248
8cc15142
MC
42492003-02-05 Michael Chastain <[email protected]>
4250
4251 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
4252 2.12.1 and earlier versions.
4253
5aa5d4b9
AC
42542003-02-05 Andrew Cagney <[email protected]>
4255
4256 Remove orphaned hosts, targets and files.
4257 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
4258 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
4259 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
4260 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
4261 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
4262 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
4263 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
4264 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
4265 * config/sparc/tm-sp64sim.h: Delete.
4266 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
4267 hosts.
4268 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
4269 mips*-dec-mach3* targets.
4270
b68767c1
MC
42712003-02-04 Michael Chastain <[email protected]>
4272
4273 * NEWS: Fix typo: sepcifying -> specifying.
4274
5ae7ca1d
MC
42752003-02-04 Michael Chastain <[email protected]>
4276
4277 * dwarfread.c: Add documentation on the state of dwarf-1,
4278 looking towards obsoletion.
4279
d08a4280
MC
42802003-02-03 Michael Chastain <[email protected]>
4281
4282 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
4283 gdb/testsuite/gdb.c++/pr-1023.exp.
4284
e9be73e4
AC
42852003-02-04 Andrew Cagney <[email protected]>
4286
4287 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
4288 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
4289
4290 * utils.c (init_page_info): Delete reference to MPW in comments.
4291 * main.c (captured_main): Delete #ifdef MPW.
4292
05d57f6f
AC
42932003-02-04 Andrew Cagney <[email protected]>
4294
4295 * NEWS: Note that the m32r-*-elf* is obsolete.
4296 * monitor.c (monitor_expect): Obsolete reference to m32r.
4297 * configure.tgt: Mark m32r-*-elf* as obsolete.
4298 * MAINTAINERS: Mark m32k as obsolete.
4299 * m32r-rom.c: Obsolete file.
4300 * config/m32r/m32r.mt: Obsolete file.
4301 * config/m32r/tm-m32r.h: Obsolete file.
4302 * m32r-stub.c: Obsolete file.
4303 * m32r-tdep.c: Obsolete file.
4304
8b0e5691
AC
43052003-02-04 Andrew Cagney <[email protected]>
4306
4307 * NEWS: Mention that the z8k-zilog-none is obsolete.
4308 * MAINTAINERS: Mark z8k as obsolete.
4309 * configure.tgt: Obsolete the z8k-*-coff* target.
4310 * config/z8k/z8k.mt: Obsolete file.
4311 * config/z8k/tm-z8k.h: Obsolete file.
4312 * z8k-tdep.c: Obsolete file.
4313
67f16606
AC
43142003-02-04 Andrew Cagney <[email protected]>
4315
4316 * NEWS: Mention that the mn10200-elf is obsolete.
4317 * configure.tgt: Obsolete mn10200-*-* target.
4318 * breakpoint.c (update_breakpoints_after_exec): Update comment to
4319 mention that the mn10200 is obsolete.
4320 * breakpoint.h: Ditto.
4321 * MAINTAINERS: Mark the mn10200-elf as obsolete.
4322 * config/mn10200/mn10200.mt: Obsolete file.
4323 * config/mn10200/tm-mn10200.h: Obsolete file.
4324 * mn10200-tdep.c: Obsolete file.
4325
fd2299bd
AC
43262003-02-04 Andrew Cagney <[email protected]>
4327
4328 * MAINTAINERS: Mark h8500 as obsolete.
4329 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
4330 * findvar.c (value_from_register): Ditto.
4331 * h8500-tdep.c: Mark file as obsolete.
4332 * config/h8500/h8500.mt: Ditto.
4333 * config/h8500/tm-h8500.h: Ditto.
4334 * NEWS: Mention that h8500 is obsolete.
4335
eb9a305d
DC
43362003-02-04 David Carlton <[email protected]>
4337
4338 * objfiles.c (allocate_objfile): Always set name. Add comment at
4339 start of function.
4340 * jv-lang.c (get_dynamics_objfile): Add comment.
4341
406fc7fb
DC
43422003-02-04 David Carlton <[email protected]>
4343
4344 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
4345 * printcmd.c (build_address_symbolic): Replace uses of
4346 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
4347 SYMBOL_NAME, and asm_demangle.
4348 Update copyright.
4349
93d91629
DC
43502003-02-04 David Carlton <[email protected]>
4351
4352 * linespec.c (decode_compound): Extract code into
4353 lookup_prefix_sym.
4354 (lookup_prefix_sym): New function.
4355
1c5cb38e
DC
43562003-02-04 David Carlton <[email protected]>
4357
4358 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
4359 FLOAT_COERCION_BADNESS.
4360 * gdbtypes.c (rank_one_type): Replace all uses of
4361 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
4362
0cf824c9
JB
43632003-02-04 Jim Blandy <[email protected]>
4364
4365 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
4366 section, let dwarf_macinfo_section point to it, not
4367 dwarf_loc_section.
4368
a2d356b0
DJ
43692003-02-04 Daniel Jacobowitz <[email protected]>
4370
4371 Pointed out by Anton Blanchard <[email protected]>.
4372 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
4373 (ppc_linux_at_sigtramp_return_path): Use it.
4374
2de7ced7
DJ
43752003-02-04 Daniel Jacobowitz <[email protected]>
4376
4377 * defs.h (streq): Add prototype.
4378 * utils.c (streq): New function.
4379
4380 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
4381 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
4382 * mdebugread.c (new_symbol): Likewise.
4383 * stabsread.c (define_symbol): Likewise.
4384 * coffread.c (process_coff_symbol): Likewise.
4385 * dwarfread.c (new_symbol): Likewise.
4386
4387 * minsyms.c (prim_record_minimal_symbol_and_info): Use
4388 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
4389 here.
4390 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
4391 SYMBOL_INIT_DEMANGLED_NAME.
4392 * objfiles.c: Include "hashtab.h".
4393 (allocate_objfile): Call htab_set_functions_ex for the
4394 demangled_names_hash.
4395 (free_objfile): Call htab_delete for the demangled_names_hash.
4396 * objfiles.h (struct htab): Add declaration.
4397 (struct objfile): Add demangled_names_hash.
4398 * symfile.c: Include "hashtab.h".
4399 (reread_symbols): Call htab_delete for the demangled_names_hash.
4400 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
4401 SYMBOL_NAME in the bcache.
4402 * symtab.c: Include "hashtab.h". Update comments.
4403 (create_demangled_names_hash, symbol_set_names): New functions.
4404 (symbol_find_demangled_name): New function, broken out from
4405 symbol_init_demangled_names.
4406 (symbol_init_demangled_names): Use it.
4407 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
4408 (SYMBOL_SET_NAMES): New macro.
4409 (symbol_set_names): Add prototype.
4410
15831452
JB
44112003-02-03 Jim Blandy <[email protected]>
4412
4413 Use a single, consistent representation for an empty minimal
4414 symbol table in an objfile.
4415 * objfiles.c (terminate_minimal_symbol_table): New function.
4416 (allocate_objfile): Call it.
4417 * objfiles.h (terminate_minimal_symbol_table): New declaration.
4418 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
4419 non-NULL.
4420 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
4421 objfile has minimal symbols, compare minimal_symbol_count to zero,
4422 instead of comparing msymbols with NULL.
4423 * objfiles.c (have_minimal_symbols): Same.
4424 * solib-sunos.c (solib_add_common_symbols): Call
4425 terminate_minimal_symbol_table.
4426 * symfile.c (reread_symbols): Same.
4427
ffc65945
KB
44282003-02-03 Kevin Buettner <[email protected]>
4429
4430 * s390-tdep.c (s390_address_class_type_flags)
4431 (s390_address_class_type_flags_to_name)
4432 (s390_address_class_name_to_type_flags): New functions.
4433 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
4434 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
4435
f211c6d4
MS
44362003-02-03 Michael Snyder <[email protected]>
4437
4438 * arm-tdep.c: Fix spell-o in comment.
4439
659b0389
ML
44402003-02-03 Michal Ludvig <[email protected]>
4441
4442 * dwarf2cfi.c (pointer_encoding): Added new parameter.
4443 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
4444 error messages to contain BFD filename.
4445
3b31d625
EZ
44462003-02-02 Elena Zannoni <[email protected]>
4447
997b089a 4448 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
4449 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
4450 (do_mixed_source_and_assembly): Use
4451 make_cleanup_ui_out_tuple_begin_end and
4452 make_cleanup_ui_out_tuple_begin_end.
4453 (do_mixed_source_and_assembly): Ditto.
4454 * thread.c (do_captured_list_thread_ids): Ditto.
4455 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
4456 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
4457 ui_out_tuple_end): Delete prototypes.
4458 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
4459 ui_out_list_end, ui_out_tuple_end): Delete.
4460
4461 From Kevin Buettner <[email protected]>:
4462 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
4463 * ui-out.c (make_cleanup_ui_out_table_begin_end)
4464 (do_cleanup_table_end): New functions.
4465 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
4466 Use cleanups to invoke_ui_out_tuple_end().
4467 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
4468 * cli/cli-setshow.c (cmd_show_list): Use
4469 make_cleanup_ui_out_tuple_begin_end.
4470
5b181d62
AC
44712003-02-02 Andrew Cagney <[email protected]>
4472
4473 * frame.c (frame_unwind_register): New function.
4474 (frame_unwind_unsigned_register): Use.
4475 (frame_unwind_signed_register): Use.
4476 (frame_read_register): New function.
4477 * frame.h (frame_unwind_register): Declare.
4478 (frame_read_register): Declare.
4479
4480 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
4481 and frame_unwind_register instead of read_memory, write_register
4482 and deprecated_write_register_bytes.
4483
5f601589
AC
44842003-02-02 Andrew Cagney <[email protected]>
4485
4486 * frame.h: Note that namelen can be negative.
4487 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
4488 NAME's length.
4489
4490 * NEWS: Mention that the d10v's `regs' command is deprecated.
4491 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
4492 (d10v_print_registers_info): New function.
4493 (show_regs): Call d10v_print_registers_info.
4494 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
4495
6a3fe0a4
MK
44962003-02-02 Mark Kettenis <[email protected]>
4497
4498 * stack.c (print_frame_info): Restore call to annotate_frame_begin
4499 lost in the previous patch.
4500
075559bc
AC
45012003-02-01 Andrew Cagney <[email protected]>
4502
4503 From 2002-11-09 Jason Molenda ([email protected])
4504 * stack.c (print_frame_info_base): Output complete FRAME tuple
4505 for synthesized frames.
4506
6789195b
AC
45072003-02-02 Andrew Cagney <[email protected]>
4508
4509 * mips-nat.c (zerobuf): Delete.
4510 (fetch_inferior_registers): Alloc local zerobuf.
4511 (fetch_core_registers): Alloc local zerobuf.
4512 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
4513 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
4514 * thread-db.c (thread_db_store_registers): Ditto.
4515 * sh-tdep.c (sh_do_register): Ditto.
4516 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4517 * remote-sim.c (gdbsim_store_register): Ditto.
4518 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4519 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4520 * monitor.c (monitor_supply_register): Ditto.
4521 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
4522 * mips-nat.c (fetch_inferior_registers): Ditto.
4523 * m68klinux-nat.c (fetch_register): Ditto.
4524 * lynx-nat.c (fetch_inferior_registers): Ditto.
4525 (fetch_inferior_registers): Ditto.
4526 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
4527 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4528 (hpux_thread_store_registers): Ditto.
4529 * hppah-nat.c (fetch_register): Ditto.
4530 * hppab-nat.c (fetch_register): Ditto.
4531 * hppa-tdep.c (pa_register_look_aside): Ditto.
4532 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
4533 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
4534
e669114a
AC
45352003-02-01 Andrew Cagney <[email protected]>
4536
4537 * gdbarch.sh: Explictly specify all method levels. When a
4538 variable with an empty level, provide a non-multi-arch default.
4539 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
4540 * gdbarch.h: Re-generate.
4541 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
4542 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
4543
9a043c1d
AC
45442003-02-01 Andrew Cagney <[email protected]>
4545
4546 * defs.h (host_pointer_to_address): Delete declaration.
4547 (address_to_host_pointer): Delete declaration.
4548 * utils.c (host_pointer_to_address): Delete function.
4549 (address_to_host_pointer): Delete function.
4550 * procfs.c (procfs_address_to_host_pointer): New function.
4551 * procfs.c (proc_set_watchpoint): Use.
4552 (procfs_can_use_hw_breakpoint): Update comments.
4553 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
4554 (som_solib_add): Use.
4555 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
4556 * hppa-tdep.c (unwind_command): Use.
4557
7ca9f392
AC
45582003-02-01 Andrew Cagney <[email protected]>
4559
94bbfd30
AC
4560 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
4561 strlen d_name.
4562
7ca9f392
AC
4563 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
4564 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
4565 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
4566 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
4567 (define_symbol): Update.
4568 * symfile.c (generic_load): Remove references to nindy.
4569 * symtab.c: Remove references to nindy.
4570
31a85ea2
AC
45712003-02-01 Andrew Cagney <[email protected]>
4572
4573 * infcmd.c (print_float_info): Delete code conditional on
4574 FLOAT_INFO.
4575 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
4576 * config/m68k/nm-apollo68b.h: Ditto.
4577 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
4578 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
4579 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
4580
f6e85fc8
MK
45812003-02-01 Mark Kettenis <[email protected]>
4582
6015b6a0
MK
4583 * config/i386/tm-i386os9k.h: Removed.
4584
f7a30bdf
MK
4585 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
4586 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
4587 they're identical to i[3456]86-*-sysv* now.
4588 * config/i386/i386v32.mh: Removed.
4589 * config/i386/xm-i386v32.h: Removed.
4590 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
4591
28d52111
MK
4592 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
4593
4d3f6bce
MK
4594 * config/i386/i386dgux.mh: Removed.
4595 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
4596
f6e85fc8
MK
4597 * configure.in: Fix typo.
4598 * configure: Regenerated.
4599
53955967
DC
46002003-01-31 David Carlton <[email protected]>
4601
4602 * dwarf2read.c (dwarf2_locate_sections): Set
4603 dwarf_ranges_section.
4604
b1364885
AC
46052003-01-31 Andrew Cagney <[email protected]>
4606
8dbb1c65
AC
4607 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
4608 * utils.c: Update comments documenting legitimate uses of PTR.
4609
8731e58e
AC
4610 * utils.c: Re-indent.
4611
b1364885
AC
4612 * config/djgpp/fnchange.lst: Delete nindy files.
4613 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
4614 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
4615 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
4616 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
4617 * nindy-share/README, nindy-share/Onindy.c: Delete files.
4618 * nindy-tdep.c, nindy-share/Makefile: Delete files.
4619 * Makefile.in (init.c): Remove nindy references.
4620 (saber_gdb): Delete rule.
4621 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
4622 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
4623 and a68v-nat.c.
4624 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
4625 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
4626 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
4627 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
4628 nindy-share/stop.h.
4629 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
4630 * saber.suppress: Delete file.
4631
086df311
DJ
46322003-01-31 Daniel Jacobowitz <[email protected]>
4633
4634 * dbxread.c (stabs_data): New static variable.
4635 (fill_symbuf): Support an in-memory buffer for stabs data.
4636 (stabs_seek): New function.
4637 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
4638 (read_ofile_symtab): Use stabs_seek.
4639 (elfstab_build_psymtabs): Take an asection* instead of
4640 an offset and size. Relocate the stabs data if necessary.
4641 Save the section* for dbx_psymtab_to_symtab.
4642 * dwarf2read.c: Add section variables for each debug section.
4643 (dwarf2_locate_sections): Fill them in.
4644 (dwarf2_read_section): Take an asection* argument.
4645 Relocate the section contents if necessary.
4646 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
4647 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
4648 it to dwarf2_read_section.
4649 (dwarf2_build_frame_info): Update callers.
4650 * elfread.c (elf_symfile_read): Update call to
4651 elfstab_build_psymtabs.
4652 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
4653 (DBX_STAB_SECTION): New macro.
4654 * stabsread.h (elfstab_build_psymtabs): Update prototype.
4655 * symfile.c (symfile_dummy_outputs): New function.
4656 (symfile_relocate_debug_section): New function.
4657 * symfile.h (symfile_relocate_debug_section): Add prototype.
4658
87d1b352
RH
46592003-01-31 Richard Henderson <[email protected]>
4660
4661 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
4662 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
4663 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
4664 * alpha-tdep.c (alpha_register_name): Add "unique".
4665 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
4666 (ALPHA_UNIQUE_REGNUM): New.
4667 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
4668
c48861fb
AC
46692003-01-31 Andrew Cagney <[email protected]>
4670
4671 * README: Remove reference to Ericsson 1800 monitor.
4672 * Makefile.in (remote-es.o): Delete rule.
4673 (ALLDEPFILES): Delete remote-es.c.
4674 * remote-es.c: Delete file.
4675 * config/m68k/es1800.mt: Delete file.
4676 * config/djgpp/fnchange.lst: Update.
4677 * configure.tgt: Delete m68*-ericsson-* target.
4678
d764a824
AF
46792003-01-31 Adam Fedor <[email protected]>
4680
4681 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
4682 Remove duplicate/shadowing variable of same name.
4683
fe36c4f4
JB
46842003-01-30 Jim Blandy <[email protected]>
4685
4686 * symfile.c (find_separate_debug_file): Assert that the objfile's
4687 directory name we compute ends with a slash, and then assume that
4688 that's so everywhere we use it.
4689
cb741690
DJ
46902003-01-30 Daniel Jacobowitz <[email protected]>
4691
4692 * valops.c (value_assign): Flush frame cache after stores to memory
4693 also.
4694
96ee5227
AC
46952003-01-30 Andrew Cagney <[email protected]>
4696
4697 * Makefile.in (mon960-rom.o): Delete rule.
4698 * mon960-rom.c: Delete file.
4699
7f6104a9
AC
47002003-01-30 Andrew Cagney <[email protected]>
4701
4702 * d10v-tdep.c: Include "frame-unwind.h".
4703 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
4704 list.
4705 (next_addr, uses_frame): Delete.
4706 (struct d10v_unwind_cache): Define.
4707 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
4708 Use info instead of next_addr and uses_frame globals.
4709 (d10v_frame_init_saved_regs): Delete function.
4710 (d10v_init_extra_frame_info): Delete function.
4711 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
4712 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
4713 init_frame_pc or frame_saved_pc.
4714 (d10v_pop_frame): Delete function.
4715 (do_d10v_pop_frame): Delete function.
4716 (d10v_frame_chain): Delete function.
4717 (d10v_frame_chain_valid): Delete function.
4718 (d10v_frame_pc_unwind): New function.
4719 (d10v_frame_id_unwind): New function.
4720 (saved_regs_unwinder): New function.
4721 (d10v_frame_register_unwind): New function.
4722 (d10v_frame_pop): New function.
4723 (d10v_frame_unwind): New variable.
4724 (d10v_frame_p): New function.
4725 (d10v_frame_saved_pc): Delete function.
4726 * Makefile.in (d10v-tdep.o): Update dependencies.
4727
cad2e848
JB
47282003-01-30 J. Brobecker <[email protected]>
4729
4730 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
4731 causing some regressions due to a change in the default value
4732 for this macro.
4733
af34e669
DJ
47342003-01-29 Richard Henderson <[email protected]>
4735 Elena Zannoni <[email protected]>
4736 Daniel Jacobowitz <[email protected]>
4737
4738 Fix PR gdb/961.
4739 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
4740 variables.
4741 (RANGES_SECTION): New.
4742 (dwarf_ranges_buffer): New variable.
4743 (struct comp_unit_head): Add member "die".
4744 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
4745 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
4746 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
4747 (dwarf2_locate_sections): Likewise.
4748 (dwarf2_build_psymtabs): Read .debug_ranges.
4749 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
4750 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
4751 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
4752 Look for DW_AT_ranges and return the bounding box.
4753
baa93fa6
CF
47542003-01-29 Brian Ford <[email protected]>
4755
4756 * win32-nat.c (cygwin_pid): Removed as unused.
4757 (child_attach): Try fall back to Cygwin pid.
4758
c63f977f
JB
47592003-01-29 Jim Blandy <[email protected]>
4760
4761 * objfiles.h (struct objfile): Doc fix.
4762
d62d1979
AC
47632003-01-29 Andrew Cagney <[email protected]>
4764
4765 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
4766 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
4767 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
4768 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
4769 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
4770 (FRAME_SAVED_PC): Change to a function with predicate.
4771 * gdbarch.h, gdbarch.c: Re-generate.
4772
1ae18a04
AC
47732003-01-28 Andrew Cagney <[email protected]>
4774
52287340
AC
4775 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
4776
1ae18a04
AC
4777 * complaints.c (complain): Delete function.
4778 * complaints.h (struct deprecated_complaint): Delete definition.
4779 (complain): Delete declaration.
4780
f2c16bd6
KB
47812003-01-28 Kevin Buettner <[email protected]>
4782
4783 * mips-tdep.c (mips_init_extra_frame_info): Return early for
4784 dummy frames.
4785
a94dd1fd
AC
47862003-01-27 Andrew Cagney <[email protected]>
4787
4788 * sentinel-frame.h, sentinel-frame.c: New files.
4789 * Makefile.in (frame.o): Update dependencies.
4790 (SFILES): Add sentinel-frame.c.
4791 (sentinel_frame_h): Define.
4792 (COMMON_OBS): Add sentinel-frame.o.
4793 (sentinel-frame.o): Specify dependencies.
4794 * frame.c: Include "sentinel-frame.h".
4795 (frame_register_unwind): Rewrite assuming that there is always a a
4796 ->next frame.
4797 (frame_register, generic_unwind_get_saved_register): Ditto.
4798 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
4799 (create_sentinel_frame, unwind_to_current_frame): New functions.
4800 (get_current_frame): Rewrite using create_sentinel_frame and
4801 unwind_to_current_frame. When possible, always create a frame.
4802 (create_new_frame): Set next to the sentinel frame.
4803 (get_next_frame): Rewrite. Don't go below the level 0 frame.
4804 (deprecated_update_frame_pc_hack): Update the next frame's PC and
4805 ID cache when necessary.
4806 (frame_saved_regs_id_unwind): Use frame_relative_level.
4807 (deprecated_generic_get_saved_register): Use frame_relative_level,
4808 get_frame_saved_regs, get_frame_pc, get_frame_base and
4809 get_next_frame.
4810 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
4811 frame_register.
4812
5378adc4
DJ
48132003-01-27 Daniel Jacobowitz <[email protected]>
4814
4815 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
4816
51ee2ddc
DJ
48172003-01-27 Daniel Jacobowitz <[email protected]>
4818
4819 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
4820 (maintenance_set_profile_cmd): Use error () instead of warning ().
4821
d9feb4e7
DJ
48222003-01-27 Daniel Jacobowitz <[email protected]>
4823
4824 * configure.in: Check that -pg works if using --enable-profiling.
4825 Check for monstartup and _mcleanup regardless of --enable-profiling.
4826 * maint.c: Check for monstartup and _mcleanup before using them.
4827 * config.in: Regenerated.
4828 * configure: Regenerated.
4829
2d188dd3
NC
48302003-01-24 Nick Clifton <[email protected]>
4831
4832 * Add sh2e support:
4833
4834 2002-04-02 Elena Zannoni <[email protected]>
4835
4836 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
4837 (sh2e_show_regs): New.
4838 (sh_gdbarch_init): Handle bfd_mach_sh2e.
4839 * config/sh/tm-sh.h: Added sh2e to comments.
4840
cb3c37b2
JB
48412003-01-23 Jim Blandy <[email protected]>
4842
4843 * symfile.c (syms_from_objfile): Don't print the "(no debugging
4844 symbols found)" message here; we haven't checked for a separate
4845 debug info file yet, so we don't know yet.
4846 (symbol_file_add_with_addrs_or_offsets): Print it here, after
4847 we've looked everywhere. Also, there's no need to print a special
4848 message when we're loading the separate debug info file: the one
4849 symbol_file_add prints is fine.
4850
5b5d99cf
JB
48512003-01-23 Alexander Larsson <[email protected]>
4852 Jim Blandy <[email protected]>
4853
4854 Add support for executables whose debug info has been separated
4855 out into a separate file, leaving only a link behind.
4856 * objfiles.h (struct objfile): New fields: separate_debug_objfile
4857 and separate_debug_objfile_backlink.
4858 (put_objfile_before): New declaration.
4859 * symfile.c: #include "filenames.h".
4860 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
4861 debug info in a separate file, read that, too. Save the addrs
4862 argument, so we can use it again to read the separated debug info;
4863 syms_from_objfile modifies the table we pass it.
4864 (reread_symbols): After re-reading an objfile, call
4865 reread_separate_symbols to refresh its separate debug info
4866 objfile, if it has one.
4867 (reread_separate_symbols, find_separate_debug_file,
4868 get_debug_link_info, separate_debug_file_exists): New functions.
4869 (debug_file_directory): New global var.
4870 (_initialize_symfile): Initialize debug_file_directory, and
4871 provide the new `set debug-file-directory' command to let the user
4872 change it.
4873 * objfiles.c (free_objfile): If this objfile has its debug info in
4874 a separate objfile, free that one too. If this is itself a
4875 separate debug info objfile, clear our parent's backlink.
4876 (put_objfile_before): New function.
4877 * utils.c (gnu_debuglink_crc32): New function.
4878 * defs.h (gnu_debuglink_crc32): New declaration.
4879 * Makefile.in (symfile.o): Note dependency on "filenames.h".
4880 * configure.in: Handle --with-separate-debug-dir config option.
4881 * acinclude.m4 (AC_DEFINE_DIR): New macro.
4882 * acconfig.h (DEBUGDIR): New macro.
4883 * configure, aclocal.m4, config.in: Regenerated.
4884
7e8580c1
JB
48852003-01-22 Jim Blandy <[email protected]>
4886
7904e09f
JB
4887 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
4888 like the old symbol_file_add, but taking new arguments: you can
4889 now pass in either a `struct section_addr_info' list to say where
4890 each section is loaded, or a `struct section_offsets' table. Pass
4891 these new arguments through to syms_from_objfile as appropriate.
4892 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
4893 with the appropriate quiescent values for the new arguments.
4894
7e8580c1
JB
4895 * symfile.c: #include "gdb_assert.h".
4896 (syms_from_objfile): Add the ability to pass in a section offset
4897 table directly, as an alternative to the section_addr_info table.
4898 Document arguments better.
4899 (symbol_file_add): Pass extra arguments to syms_from_objfile.
4900 * symfile.h (syms_from_objfile): Update declaration.
4901 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
4902 syms_from_objfile.
4903 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
4904
d28f9cdf
DJ
49052003-01-22 Daniel Jacobowitz <[email protected]>
4906
4907 Original patch by Tom Tromey <[email protected]> and
4908 Jason Molenda <[email protected]>.
4909 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
4910 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
4911 * NEWS: Mention profiling.
4912 * configure.in (--enable-gdbtk): Fix typo.
4913 (--enable-profiling): New. Set PROFILE_CFLAGS.
4914 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
4915 Fill in function.
4916 (profiling_state): New variable.
4917 (mcleanup_wrapper): New function.
4918 (_initialize_maint): Remove NOTYET, fix call to
4919 add_setshow_boolean_cmd for "maint set profile".
4920 * configure: Regenerated.
4921
df21e465
MH
49222003-01-21 Martin M. Hunt <[email protected]>
4923
4924 * Makefile.in (install-gdbtk): Install PNG images too.
4925
73c1f219
AC
49262003-01-21 Andrew Cagney <[email protected]>
4927
4928 * exec.c (text_start): Delete global variable.
4929 (exec_file_attach): Make text_start local to the function.
4930 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
4931 * valops.c (hand_function_call): Delete code that handles
4932 BEFORE_TEXT_END and AFTER_TEXT_END.
4933 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
4934 of CALL_DUMMY_LOCATION.
4935 * gdbarch.c: Regenerate.
4936 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
4937 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
4938 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
4939 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
4940 (text_end): Delete extern declaration.
4941
eb4f72c5
AC
49422003-01-21 Andrew Cagney <[email protected]>
4943
4944 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
4945 * blockframe.c (backtrace_below_main): Move to "frame.c".
4946 (frame_chain_valid): Delete check for backtrace_below_main.
4947 (_initialize_blockframe): Delete initialization, move ``set
4948 backtrace-below-main'' command to "frame.c".
4949 (do_flush_frames_sfunc): Delete function.
4950 * frame.c: Include "command.h" and "gdbcmd.h".
4951 (frame_type_from_pc): New function.
4952 (create_new_frame): Use frame_type_from_pc.
4953 (legacy_get_prev_frame): New function.
4954 (get_prev_frame): Rewrite. When an old style frame, call
4955 legacy_get_prev_frame. Otherwize, unwind the PC first.
4956 (_initialize_frame): Add ``set backtrace-below-main'' command.
4957 * Makefile.in (frame.o): Update dependencies.
4958
778ce8cc
AC
49592003-01-19 Andrew Cagney <[email protected]>
4960
4961 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
4962 DEPRECATED_REGISTERS_INFO.
4963
01c193c8
AC
49642003-01-19 Andrew Cagney <[email protected]>
4965
4966 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
4967 Maintainers'. Update `Various Maintainers'.
4968
dedc2a2b
AC
49692003-01-19 Andrew Cagney <[email protected]>
4970
4971 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
4972 * gdbarch.sh (POP_FRAME): Change to function with predicate.
4973 Suppress actual parameters when `-'.
4974 * gdbarch.h, gdbarch.c: Regenerate.
4975
b7261c70
AC
49762003-01-19 Andrew Cagney <[email protected]>
4977
4978 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
4979 code handling dummy frames.
4980
dbe9fe58
AC
49812003-01-19 Andrew Cagney <[email protected]>
4982
4983 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
4984 (struct frame_unwind): Add field pop.
4985 * frame.h (frame_pop): Declare.
4986 * frame.c (frame_saved_regs_pop): New function.
4987 (trad_frame_unwinder): Add frame_saved_regs_pop.
4988 (frame_pop): New function.
4989 * dummy-frame.c (dummy_frame_pop): New function.
4990 (discard_innermost_dummy): New function.
4991 (generic_pop_dummy_frame): Use discard_innermost_dummy.
4992 (dummy_frame_unwind): Add dummy_frame_pop.
4993 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
4994 * valops.c (hand_function_call): Ditto.
4995 * stack.c (return_command): Ditto.
4996
570b8f7c
AC
49972003-01-18 Andrew Cagney <[email protected]>
4998
4999 * cris-tdep.c: Fix function declaration indentation.
5000 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
5001 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
5002 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
5003 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
5004 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
5005 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
5006
50072003-01-18 Michael Chastain <[email protected]>
eaec4d85
MC
5008
5009 * README (Unpacking and Installation -- quick overview):
5010 Warn against ".../gdb-5.3/gdb/configure".
5011
494cca16
AC
50122003-01-18 Andrew Cagney <[email protected]>
5013
5014 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
5015 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5016 (struct frame_unwind): Declare opaque.
5017 (dummy_frame_p): Declare function.
5018 * dummy-frame.c (dummy_frame_id_unwind): Make static.
5019 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5020 * dummy-frame.c: Include "frame-unwind.h".
5021 (dummy_frame_p): New function.
5022 (dummy_frame_unwind): New variable.
5023 * frame.c: Include "frame-unwind.h".
5024 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
5025 to use the new unwind field.
5026 (set_unwind_by_pc): Delete function.
5027 (create_new_frame, get_prev_frame): Set unwind field using
5028 frame_unwind_find_by_pc.
5029 (trad_frame_unwind, trad_frame_unwinder): New variables.
5030 * frame.h (trad_frame_unwind): Declare variable.
5031 (frame_id_unwind_ftype): Delete declaration.
5032 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
5033 (struct frame_unwind): Declare opaque.
5034 (struct frame_info): Replace the fields id_unwind, pc_unwind and
5035 register_unwind with a single unwind pointer.
5036 * frame-unwind.h, frame-unwind.c: New files.
5037 * Makefile.in (SFILES): Add frame-unwind.c.
5038 (frame_unwind_h): Define.
5039 (COMMON_OBS): Add frame-unwind.o.
5040 (frame-unwind.o): Specify dependencies.
5041 (frame.o, dummy-frame.o): Update dependencies.
5042
4efb68b1
AC
50432003-01-18 Andrew Cagney <[email protected]>
5044
5045 * ada-valprint.c: Eliminate PTR.
5046 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
5047 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
5048 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
5049 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
5050 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
5051 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
5052 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
5053
a84d24ee
AC
50542003-01-17 Andrew Cagney <[email protected]>
5055
762f08a3
AC
5056 * main.c (captured_main): Don't use PTR.
5057 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
5058 * gdbtypes.c (lookup_primitive_typename): Ditto.
5059 (lookup_struct_elt_type): Ditto.
5060 * f-valprint.c (info_common_command): Ditto.
5061 (list_all_visible_commons): Ditto.
5062 * jv-typeprint.c (java_type_print_base): Ditto.
5063
a84d24ee
AC
5064 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
5065 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
5066 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
5067 i386-interix-nat.c and i386-interix-tdep.c. Rename
5068 m68klinux-nat.c and m68klinux-tdep.c. Rename
5069 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
5070 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
5071 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
5072 * main.c (captured_main): Use xfree, not free.
5073
c170fb60
AC
50742003-01-16 Andrew Cagney <[email protected]>
5075
5076 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
5077 ID back using a parameter.
5078 * frame.c (frame_id_unwind): Update call.
5079 (frame_saved_regs_id_unwind): Update.
5080 * dummy-frame.c (dummy_frame_id_unwind): Update function.
5081 * dummy-frame.h (struct frame_id): Add opaque declaration.
5082 (dummy_frame_id_unwind): Update declaration.
5083
867f3898
AC
50842003-01-15 Andrew Cagney <[email protected]>
5085
5086 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
5087
40622be8 50882003-01-15 Stephen P. Smith <[email protected]>
de3a8c23 5089
40622be8 5090 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 5091
ae66c1fc
EZ
50922003-01-14 Elena Zannoni <[email protected]>
5093
997b089a 5094 Fix PR gdb/898
ae66c1fc
EZ
5095 * breakpoint.c (until_break_command): Add new argument. Use it to
5096 decide whether to stop only at the current frame or not.
5097 * breakpoint.h (until_break_command): Update prototype.
5098 * infcmd.c (until_command): Add new argument to until_break_command
5099 call.
5100 (advance_command): New function.
5101 (_initialize_infcmd): Update help string for 'until' command.
5102 Add new 'advance' command.
5103
a04257e6
DC
51042003-01-14 David Carlton <[email protected]>
5105
5106 * linespec.c (decode_line_1): Normalize comments.
5107 (set_flags): Ditto.
5108 (locate_first_half): Ditto.
5109 (decode_compound): Ditto.
5110 (symtab_from_filename): Ditto.
5111 (decode_all_digits): Ditto.
5112 (decode_dollar): Ditto.
5113 (find_methods): Ditto.
5114 (find_toplevel_char): Ditto.
5115
1bac305b
AC
51162003-01-13 Andrew Cagney <[email protected]>
5117
5118 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
5119 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
5120 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
5121 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
5122 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
5123 * language.c, language.h, m32r-tdep.c: Update copyright.
5124 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
5125 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
5126 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
5127 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
5128 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
5129 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
5130
25caa7a8
EZ
51312003-01-13 Elena Zannoni <[email protected]>
5132
5133 * stabsread.h (process_later, resolve_cfront_continuation):
5134 Obsolete.
5135 Update copyright years.
5136 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
5137 Update copyright year.
5138 * dbxread.c(struct cont_elem): Obsolete.
5139 (process_later, process_now): Obsolete functions.
5140 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
5141 Update copyright year.
5142 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
5143 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
5144 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
5145 (parse_partial_symbols): Obsolete cfront support.
5146 * stabsread.c
5147 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
5148 macros.
5149 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
5150 read_cfront_baseclasses, read_cfront_member_functions,
5151 resolve_cfront_continuation,read_cfront_static_fields,
5152 copy_cfront_struct_fields): Obsolete functions.
5153 (define_symbol, read_one_struct_field): Obsolete cfront support.
5154 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
5155 Update Copyright year.
5156
7789c6f5
EZ
51572003-01-13 Elena Zannoni <[email protected]>
5158
5159 * stack.c (print_frame_info, print_stack_frame_base_stub,
5160 print_stack_frame_base, show_and_print_stack_frame_stub,
5161 show_and_print_stack_frame, print_only_stack_frame_stub,
5162 print_only_stack_frame): Delete functions.
5163 (print_stack_frame_stub): Call print_frame_info instead of
5164 print_frame_info_base.
5165 (print_frame_info_base): Rename to print_frame_info.
5166 (backtrace_command_1): Call print_frame_info, instead of
5167 print_frame_info_base.
5168 (current_frame_command): Call print_stack_frame, instead of
5169 print_only_stack_frame.
5170 (frame_command): Call print_stack_frame, instead of
5171 show_and_print_stack_frame.
5172 (up_command): Ditto.
5173 (down_command): Ditto.
5174 * frame.h (print_only_stack_frame): Delete prototype.
5175 * infrun.c (normal_stop): Call print_stack_frame, instead of
5176 show_and_print_stack_frame.
5177 * thread.c (info_threads_command): Call print_stack_frame, instead
5178 of print_only_stack_frame.
5179
3f5a3016
AC
51802003-01-13 Andrew Cagney <[email protected]>
5181
d99ba314
AC
5182 * README (Graphical interface to GDB): Update URL. Point at
5183 gdb/links/.
5184
3f5a3016
AC
5185 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
5186 version match.
5187
083ae935
DJ
51882003-01-13 Daniel Jacobowitz <[email protected]>
5189
5190 * symtab.c (find_pc_sect_line): Don't consider end-of-function
5191 lines.
5192
5365276c
DJ
51932003-01-13 Daniel Jacobowitz <[email protected]>
5194
5195 * thread-db.c (attach_thread): Prototype.
5196 (struct private_thread_info): Remove lwpid. Add thread handle (th),
5197 thread information (ti), and valid flags (th_valid, ti_valid).
5198 (attach_thread): Move target_pid_to_str call to after the thread
5199 is added to GDB's list. Initialize the cache.
5200 (thread_get_info_callback, thread_db_map_id2thr)
5201 (thread_db_get_info): New functions.
5202 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
5203 (thread_db_store_registers, thread_db_thread_alive)
5204 (thread_db_get_thread_local_address): Use them.
5205 (thread_db_pid_to_str): Likewise. Return "Missing" instead
5206 of calling error() for threads in unknown state.
5207
5208 (clear_lwpid_callback): New function.
5209 (thread_db_resume): Use it to clear the cache.
5210
9fc30b6b
DJ
52112003-01-13 Daniel Jacobowitz <[email protected]>
5212
5213 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
5214 (resume_callback): Remove dead code.
5215
8f871025
AC
52162003-01-13 Andrew Cagney <[email protected]>
5217
5218 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
5219 predicate.
5220 * gdbarch.h, gdbarch.c: Regenerate.
5221 * stack.c (frame_info): Only initialize the saved registers when
5222 FRAME_INIT_SAVED_REGS_P.
5223 * frame.c (frame_saved_regs_register_unwind): Assert
5224 FRAME_INIT_SAVED_REGS_P.
5225 (deprecated_generic_get_saved_register): Ditto.
5226
3f565f1e
DJ
52272003-01-13 Daniel Jacobowitz <[email protected]>
5228
5229 * source.c (openp): Squelch warning about "filename".
5230
072b1022
DJ
52312003-01-13 Daniel Jacobowitz <[email protected]>
5232
5233 * source.c (openp): If the file does not exist don't necessarily
5234 search the path.
5235
973ccf8b
DJ
52362003-01-13 Daniel Jacobowitz <[email protected]>
5237
5238 Fix PR gdb/872.
5239 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
5240 (integer_types_same_name_p): New function.
5241 (rank_one_type): Use it.
5242 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
5243
030292b7
DJ
52442003-01-13 Daniel Jacobowitz <[email protected]>
5245
5246 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
5247 variables.
5248 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
5249 * configure.in: Add --with-sysroot.
5250 * configure: Regenerated.
5251 * main.c (gdb_sysroot): New variable.
5252 (captured_main): Initialize gdb_sysroot.
5253 * defs.h (gdb_sysroot): New extern declaration.
5254 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
5255
afb5d334
MC
52562003-01-12 Michael Chastain <[email protected]>
5257
5258 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
5259
751ceeb4
MC
52602003-01-12 Michael Chastain <[email protected]>
5261
5262 * top.c (print_gdb_version): Bump copyright year to 2003.
5263
94cd26f8
DC
52642003-01-12 David Carlton <[email protected]>
5265
5266 * linespec.c (symtab_from_filename): Rename variable 's' to
5267 'file_symtab'.
5268
1ce79225
AC
52692003-01-12 Andrew Cagney <[email protected]>
5270
5271 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
5272 dummy frame.
5273 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
5274
fa1fd571
AC
52752003-01-12 Andrew Cagney <[email protected]>
5276
5277 * d10v-tdep.c: Include "gdb_assert.h".
5278 (d10v_store_return_value): Rewrite to match current interface.
5279 (d10v_extract_struct_value_address): Ditto.
5280 (d10v_extract_return_value): Ditto.
5281 (d10v_gdbarch_init): Set store_restore_value,
5282 extract_struct_value_address and extract_return_value.
5283
68b8d23e
JB
52842003-01-12 J. Brobecker <[email protected]>
5285
5286 * hpread.c (set_namestring): New procedure replacing the
5287 SET_NAMESTRING macro.
5288 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
5289 by calls to set_namestring.
5290
52912003-01-11 J. Brobecker <[email protected]>
1fb309ea
JB
5292
5293 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
5294 a compilation warning.
5295 (hpread_process_one_debug_symbol): Likewise.
5296
88d262ca
DC
52972003-01-10 David Carlton <[email protected]>
5298
5299 * linespec.c (decode_line_1): Rename variable 's' to
5300 'file_symtab'.
5301 (decode_all_digits): Rename argument 's' to 'file_symtab'.
5302 (decode_dollar): Ditto.
5303 (decode_variable): Ditto.
5304 (symbol_found): Ditto.
5305
86669319
MC
53062003-01-09 Michael Chastain <[email protected]>
5307
5308 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
5309
616a9dc4
CV
53102003-01-07 Corinna Vinschen <[email protected]>
5311
5312 * win32-nat.c (set_process_privilege): New function.
5313 (child_attach): Call set_process_privilege() to enable the
5314 SE_DEBUG_NAME user privilege if available in process token.
5315
3269bcfa
JB
53162003-01-10 J. Brobecker <[email protected]>
5317
5318 * hpread.c (hpread_process_one_debug_symbol): Fix a small
5319 compilation error in the previous revision.
5320
2b0ee454
DC
53212003-01-09 David Carlton <[email protected]>
5322
5323 * linespec.c: Update copyright.
5324
b3ba1b44
DJ
53252003-01-09 Daniel Jacobowitz <[email protected]>
5326
5327 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
5328 than inferior_ptid.
5329 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
5330
4ef3f3be
AC
53312003-01-09 Andrew Cagney <[email protected]>
5332
479ab5a0
AC
5333 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
5334 Update comments.
5335 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
5336 (frame_saved_regs_zalloc): Update.
5337 (frame_saved_regs_register_unwind): Update.
5338 (create_new_frame): Update.
5339 (get_prev_frame): Update.
5340 (frame_extra_info_zalloc): Update.
5341 (deprecated_get_frame_saved_regs): Update.
5342 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
5343 * cris-tdep.c: Update comment.
5344
bde58177
AC
5345 * somsolib.h: Fix function indentation.
5346 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
5347 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
5348 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
5349 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
5350 * somsolib.c, inftarg.c: Remove assignment in if conditional.
5351
4ef3f3be
AC
5352 * infrun.c (follow_fork): Use ISO C definition.
5353 * expprint.c (print_subexp): Use xfree instead of free.
5354 * charset.c: Include "gdb_string.h" instead of <string.h>.
5355 (register_iconv_charsets): Use ISO C definition.
5356 (host_charset, target_charset): Ditto.
5357 * Makefile.in (charset.o): Update dependencies.
5358 (mi-cmd-env.o): Update dependencies.
5359
1c615f7a
AC
53602003-01-08 Andrew Cagney <[email protected]>
5361
5362 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
5363 get_frame_base.
5364
c9a1dc08
AC
53652003-01-08 Andrew Cagney <[email protected]>
5366
5367 * gdb_mbuild.sh: Add --keep option. When specified, keep the
5368 build directories. Save edited gdb output in Mbuild.log. If a
5369 build fails, remove any final GDB executable.
5370
dbad9d94
AC
53712003-01-08 Andrew Cagney <[email protected]>
5372
5373 * gdb_mbuild.sh: Edit the output of `maint print architecture'
5374 replacing hex constants with function names and stripping leading
5375 file name directory prefixes.
5376
8d357cca
AC
53772003-01-08 Andrew Cagney <[email protected]>
5378
5379 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
5380 get_frame_base.
5381
bca02a8a
DC
53822003-01-08 David Carlton <[email protected]>
5383
5384 * linespec.c (decode_line_1): Move code into decode_variable.
5385 (decode_variable): New function.
5386
7f8ab3a0
AC
53872003-01-08 Andrew Cagney <[email protected]>
5388
5389 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
5390
7b5849cc
AC
53912003-01-08 Andrew Cagney <[email protected]>
5392
5393 * cris-tdep.c (cris_frame_init_saved_regs): Use
5394 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
5395 saved_regs buffer.
5396 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5397 (sh64_nofp_frame_init_saved_regs): Ditto.
5398 (sh_fp_frame_init_saved_regs): Ditto.
5399 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
5400 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5401 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5402 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5403
72a5efb3
DJ
54042003-01-08 Daniel Jacobowitz <[email protected]>
5405
5406 * minsyms.c (lookup_minimal_symbol): Update comment.
5407 (lookup_minimal_symbol_text): Update comment. Use the hash table.
5408 (lookup_minimal_symbol_solib_trampoline): Likewise.
5409
11c02a10
AC
54102003-01-08 Andrew Cagney <[email protected]>
5411
aab3ea25
AC
5412 * d10v-tdep.c (d10v_init_extra_frame_info): Use
5413 frame_relative_level.
5414
da50a4b7
AC
5415 * alpha-tdep.c: Use get_frame_extra_info.
5416 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5417 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
5418 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5419 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
5420
11c02a10
AC
5421 * alpha-tdep.c: Use get_next_frame.
5422 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5423 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5424 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
5425 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
5426 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
5427 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
5428 * xstormy16-tdep.c: Ditto.
5429
1e2330ba
AC
54302003-01-07 Andrew Cagney <[email protected]>
5431
5432 * alpha-tdep.c: Use get_frame_base.
5433 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5434 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5435 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5436 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5437 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
5438 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5439 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
5440 * config/sparc/tm-sparc.h: Ditto.
5441
2d75187b
AC
54422003-01-07 Andrew Cagney <[email protected]>
5443
5444 * frame.c (deprecated_get_frame_context): New function.
5445 (deprecated_set_frame_context): New function.
5446 * frame.h (deprecated_get_frame_context): Declare.
5447 (deprecated_set_frame_context): Declare.
5448 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
5449 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
5450
483d36b2
AC
54512003-01-07 Andrew Cagney <[email protected]>
5452
5453 * frame.c (deprecated_set_frame_next_hack): New function.
5454 (deprecated_set_frame_prev_hack): New function.
5455 * frame.h (deprecated_set_frame_next_hack): Declare.
5456 (deprecated_set_frame_prev_hack): Declare.
5457 * mcore-tdep.c (analyze_dummy_frame): Use
5458 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
5459 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5460
14e91ac5
DC
54612003-01-07 David Carlton <[email protected]>
5462
5463 * linespec.c (decode_line_1): Move code into decode_dollar.
5464 (decode_dollar): New function.
5465
b0c6b05c
AC
54662003-01-07 Andrew Cagney <[email protected]>
5467
5468 * arm-tdep.c (arm_init_extra_frame_info): Use
5469 deprecated_update_frame_base_hack.
5470 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
5471 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5472 (fix_frame_pointer): Ditto.
5473 (mn10300_analyze_prologue): Ditto.
5474
a00a19e9
AC
54752003-01-07 Andrew Cagney <[email protected]>
5476
5477 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
5478 extra_info using frame_extra_info_zalloc.
5479 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5480 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
5481 (sh64_init_extra_frame_info): Ditto.
5482 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
5483 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
5484 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5485 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
5486 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
5487 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
5488 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
5489 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
5490 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
5491 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
5492 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5493 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
5494
5495 * mn10300-tdep.c (analyze_dummy_frame): Use
5496 deprecated_set_frame_extra_info_hack.
5497 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5498
1fb4c65b
JB
54992003-01-07 J. Brobecker <[email protected]>
5500
5501 * mdebugread.c (parse_symbol): Skip stProc entries which storage
5502 class is not scText. These do not define "real" procedures.
5503 (parse_partial_symbols): Likewise.
5504
9fe7d6bf
MS
55052003-01-06 Michael Snyder <[email protected]>
5506
5507 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
5508
f6c609c4
AC
55092003-01-06 Andrew Cagney <[email protected]>
5510
5511 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
5512 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
5513 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
5514 deprecated_frame_xmalloc_with_cleanup.
5515 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
5516 deprecated_frame_xmalloc.
5517 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
5518 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
5519
d995ff4b
AC
55202003-01-06 Andrew Cagney <[email protected]>
5521
84dc46cb
AC
5522 * x86-64-linux-tdep.c: Include "osabi.h".
5523 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
5524
d995ff4b
AC
5525 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
5526
66140c26
AC
55272003-01-06 Andrew Cagney <[email protected]>
5528
5529 * MAINTAINERS (Target Instruction Set Architectures): Update
5530 arm-elf. Can be built with -Werror, has been multiarched.
5531
5532 * value.h (unpack_long): Make buffer parameter constant.
5533 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
5534 * scm-lang.h (scm_parse): Ditto.
5535 * defs.h (extract_typed_address, extract_address): Ditto.
5536 (extract_long_unsigned_integer): Ditto.
5537 * inferior.h (unsigned_pointer_to_address): Ditto.
5538 (signed_pointer_to_address): Ditto.
5539 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
5540 * gdbarch.h, gdbarch.c: Regenerate.
5541 * findvar.c (extract_long_unsigned_integer): Update.
5542 (extract_address): Update.
5543 (extract_typed_address): Update.
5544 (unsigned_pointer_to_address): Update.
5545 * values.c (unpack_long): Update.
5546 (unpack_double): Update.
5547 (unpack_pointer): Update.
5548 (unpack_field_as_long): Update.
5549 * d10v-tdep.c (d10v_pointer_to_address): Update.
5550 * avr-tdep.c (avr_pointer_to_address): Update.
5551 * scm-lang.c (scm_unpack): Update.
5552 * findvar.c (signed_pointer_to_address): Update.
5553
b089b3da
ML
55542003-01-06 Michal Ludvig <[email protected]>
5555
5556 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
5557 since it is in i386-tdep.c.
5558
aff87235
JB
55592003-01-06 J. Brobecker <[email protected]>
5560
5561 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
5562 failure introduced in the previous change.
5563
34f5e845
MC
55642003-01-05 Michael Chastain <[email protected]>
5565
5566 * README: Remove references to deleted remote-*.c files:
5567 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
5568 remote-nrom.c, remote-os9k.c, remote-udi.c.
5569
28bcfd30
MK
55702003-01-05 Mark Kettenis <[email protected]>
5571
5572 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
5573 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
5574 i386_get_longjmp_target.
5575
15a5b3ee
AC
55762003-01-05 Andrew Cagney <[email protected]>
5577
5578 * arm-tdep.c (prologue_cache): Change to a pointer.
5579 (_initialize_arm_tdep): Allocate prologue_cache.
5580 (check_prologue_cache): Update.
5581 (save_prologue_cache): Update.
5582 (arm_gdbarch_init): Update.
5583
c263362b
DJ
55842003-01-04 Daniel Jacobowitz <[email protected]>
5585
5586 * stabsread.c (update_method_name_from_physname): Call complaint()
5587 instead of error.
5588
51603483
DJ
55892003-01-04 Daniel Jacobowitz <[email protected]>
5590
5591 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
5592 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
5593 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
5594
5595 * blockframe.c: Include "gdbcmd.h" and "command.h".
5596 (backtrace_below_main): New variable.
5597 (file_frame_chain_valid, func_frame_chain_valid)
5598 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
5599 (generic_func_frame_chain_valid): Remove functions.
5600 (frame_chain_valid, do_flush_frames_sfunc): New functions.
5601 (_initialize_blockframe): New function.
5602 * Makefile.in (blockframe.o): Update dependencies.
5603 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
5604 comment. Call frame_chain_valid ().
5605 * frame.h: Remove old prototypes. Add prototype for
5606 frame_chain_valid and update comments to match.
5607 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
5608 Remove old comment.
5609 * gdbarch.h: Regenerated.
5610 * gdbarch.c: Regenerated.
5611
5612 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5613 set_gdbarch_frame_chain_valid.
5614 * avr-tdep.c (avr_gdbarch_init): Likewise.
5615 * cris-tdep.c (cris_gdbarch_init): Likewise.
5616 * frv-tdep.c (frv_gdbarch_init): Likewise.
5617 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
5618 * i386-tdep.c (i386_svr4_init_abi): Likewise.
5619 (i386_nw_init_abi): Likewise.
5620 (i386_gdbarch_init): Likewise.
5621 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
5622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5623 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5624 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
5625 * mips-tdep.c (mips_gdbarch_init): Likewise.
5626 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5627 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
5628 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5629 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5630 * s390-tdep.c (s390_gdbarch_init): Likewise.
5631 * sh-tdep.c (sh_gdbarch_init): Likewise.
5632 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5633 * v850-tdep.c (v850_gdbarch_init): Likewise.
5634 * vax-tdep.c (vax_gdbarch_init): Likewise.
5635 * x86-64-tdep.c (x86_64_init_abi): Likewise.
5636
5637 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
5638 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
5639 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
5640 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
5641 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
5642 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
5643 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
5644 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
5645
b00a8037
DJ
56462002-01-04 Daniel Jacobowitz <[email protected]>
5647
5648 * Makefile.in (acconfig_h): Remove incorrect macro.
5649 (config_h): Define.
5650 (osabi.o): Update dependencies.
5651 * configure.tgt: Set gdb_osabi based on target triplet.
5652 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
5653 * configure: Regenerated.
5654 * config.in: Regenerated.
5655 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
5656 (GDB_OSABI_DEFAULT): Define if not already defined.
5657 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
5658 (set_osabi_string): New variables.
5659 (gdbarch_register_osabi): Add new OS ABI to
5660 gdb_osabi_available_names.
5661 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
5662 (set_osabi, show_osabi): New functions.
5663 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
5664
4be87837
DJ
56652003-01-04 Daniel Jacobowitz <[email protected]>
5666
5667 * arch-utils.c (gdbarch_info_init): Set osabi to
5668 GDB_OSABI_UNINITIALIZED.
5669 * gdbarch.sh: Add osabi to struct gdbarch and to struct
5670 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
5671 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
5672 * gdbarch.c: Regenerated.
5673 * gdbarch.h: Regenerated.
5674 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
5675 there's no BFD.
5676 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
5677 * osabi.h (enum gdb_osabi): Move to defs.h.
5678 (gdbarch_init_osabi): Update prototype.
5679 * defs.h (enum gdb_osabi): Moved here.
5680 * Makefile.in: Update dependencies.
5681
5682 * alpha-tdep.h: Don't include "osabi.h".
5683 (struct gdbarch_tdep): Remove osabi member.
5684 * alpha-tdep.c: Include "osabi.h".
5685 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5686 iterate over arches. Update call to gdbarch_init_osabi.
5687 (alpha_dump_tdep): Don't dump osabi.
5688 * alpha-linux-tdep.c: Include "osabi.h".
5689 * alpha-osf1-tdep.c: Include "osabi.h".
5690 * alphafbsd-tdep.c: Include "osabi.h".
5691 * alphanbsd-tdep.c: Include "osabi.h".
5692
5693 * arm-tdep.h: Don't include "osabi.h".
5694 (struct gdbarch_tdep): Remove osabi member.
5695 * arm-tdep.c: Include "osabi.h".
5696 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5697 iterate over arches. Update call to gdbarch_init_osabi.
5698 (arm_dump_tdep): Don't dump osabi.
5699 * arm-linux-tdep.c: Include "osabi.h".
5700 * armnbsd-tdep.c: Include "osabi.h".
5701
5702 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
5703 Update call to gdbarch_init_osabi.
5704
5705 * i386-tdep.h: Don't include "osabi.h".
5706 (struct gdbarch_tdep): Remove osabi member.
5707 * i386-tdep.c: Include "osabi.h".
5708 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5709 iterate over arches. Update call to gdbarch_init_osabi.
5710 (i386_dump_tdep): Don't dump osabi.
5711 * i386-linux-tdep.c: Include "osabi.h".
5712 * i386-sol2-tdep.c: Include "osabi.h".
5713 * i386bsd-tdep.c: Include "osabi.h".
5714 * i386gnu-tdep.c: Include "osabi.h".
5715 * i386ly-tdep.c: Include "osabi.h".
5716 * i386nbsd-tdep.c: Include "osabi.h".
5717 * i386obsd-tdep.c: Include "osabi.h".
5718
5719 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
5720 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5721 check osabi when iterating over arches. Update call to
5722 gdbarch_init_osabi.
5723 (mips_dump_tdep): Don't dump osabi.
5724
5725 * ns32k-tdep.h: Don't include "osabi.h".
5726 (struct gdbarch_tdep): Remove.
5727 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
5728 gdbarch_lookup_osabi. Don't iterate over arches. Don't
5729 allocate tdep. Update call to gdbarch_init_osabi.
5730 (ns32k_dump_tdep): Remove.
5731 (_initialize_ns32k_tdep): Update call to gdbarch_register.
5732 * ns32knbsd-tdep.c: Include "osabi.h".
5733
5734 * ppc-tdep.h: Don't include "osabi.h".
5735 (struct gdbarch_tdep): Remove osabi member.
5736 * rs6000-tdep.c: Include "osabi.h".
5737 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
5738 osabi when iterating over arches. Update call to
5739 gdbarch_init_osabi.
5740 (rs6000_dump_tdep): Don't dump osabi.
5741 * ppc-linux-tdep.c: Include "osabi.h".
5742 * ppcnbsd-tdep.c: Include "osabi.h".
5743
5744 * sh-tdep.h: Don't include "osabi.h".
5745 (struct gdbarch_tdep): Remove osabi member.
5746 * sh-tdep.c: Include "osabi.h".
5747 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5748 iterate over arches. Update call to gdbarch_init_osabi.
5749 (sh_dump_tdep): Don't dump osabi.
5750 * shnbsd-tdep.c: Include "osabi.h".
5751
5752 * sparc-tdep.c: Include "osabi.h".
5753 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5754 iterate over arches. Update call to gdbarch_init_osabi.
5755 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
5756 tdep structure.
5757
5758 * vax-tdep.h: Don't include "osabi.h".
5759 (struct gdbarch_tdep): Remove.
5760 * vax-tdep.c: Include "osabi.h".
5761 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5762 iterate over arches. Don't allocate tdep. Update call
5763 to gdbarch_init_osabi.
5764 (vax_dump_tdep): Remove.
5765 (_initialize_vax_tdep): Update call to gdbarch_register.
5766
a881cf8e
DJ
57672003-01-04 Daniel Jacobowitz <[email protected]>
5768
5769 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
5770 entirely.
5771 (breakpoint_re_set_one): Don't fetch the value for a disabled
5772 watchpoint.
5773
1e698235
DJ
57742003-01-04 Daniel Jacobowitz <[email protected]>
5775
5776 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
5777 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
5778 (COERCE_FLOAT_TO_DOUBLE): Remove.
5779 * gdbarch.c: Regenerate.
5780 * gdbarch.h: Regenerate.
5781 * Makefile.in: Remove value_h from gdbarch_h.
5782 * valops.c (coerce_float_to_double): New variable.
5783 (default_coerce_float_to_double): Remove.
5784 (standard_coerce_float_to_double): Remove.
5785 (value_arg_coerce): Use coerce_float_to_double.
5786 (_initialize_valops): Add "set coerce-float-to-double".
5787 * value.h (default_coerce_float_to_double): Remove prototype.
5788 (standard_coerce_float_to_double): Remove prototype.
5789
5790 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
5791 prototyped.
5792 * mdebugread.c (parse_symbol): Likewise.
5793 * stabsread.c (define_symbol): Mark all functions as prototyped.
5794
5795 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
5796 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
5797 set_gdbarch_coerce_float_to_double.
5798 * arm-tdep.c (arm_gdbarch_init): Likewise.
5799 * frv-tdep.c (frv_gdbarch_init): Likewise.
5800 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
5801 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
5802 * mips-tdep.c (mips_gdbarch_init): Likewise.
5803 (mips_coerce_float_to_double): Remove.
5804 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5805 (rs6000_coerce_float_to_double): Remove.
5806 * s390-tdep.c (s390_gdbarch_init): Likewise.
5807 * sh-tdep.c (sh_gdbarch_init): Likewise.
5808 (sh_coerce_float_to_double): Remove.
5809 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5810 (sparc_coerce_float_to_double): Remove.
5811 * v850-tdep.c (v850_gdbarch_init): Likewise.
5812 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5813 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5814 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
5815 (hppa_coerce_float_to_double): Remove prototype.
5816 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5817
f436a26a
DJ
58182003-01-04 Daniel Jacobowitz <[email protected]>
5819
5820 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
5821
248f8055
DJ
58222003-01-04 Daniel Jacobowitz <[email protected]>
5823
5824 Suggested by Stewart Brown <[email protected]>:
5825 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
5826 in recursive calls. Handle TYPE_CODE_TYPEDEF.
5827 (c_type_print_varspec_suffix): Likewise.
5828
72cfdc76
MK
58292003-01-04 Mark Kettenis <[email protected]>
5830
bfd260bb
MK
5831 * configure.in: Don't set and AC_SUBST SUBDIRS.
5832 * configure: Regenerated.
5833
72cfdc76
MK
5834 * configure.in: Remove code dealing with shared libraries.
5835 * Makefile.in: Remove HLDFLAGS and HLDENV.
5836 * configure: Regenerated.
5837
c8b8a898
AC
58382003-01-04 Andrew Cagney <[email protected]>
5839
5840 * frame.c (deprecated_frame_xmalloc): New function.
5841 (deprecated_set_frame_saved_regs_hack): New function.
5842 (deprecated_set_frame_extra_info_hack): New function.
5843 * frame.h (deprecated_frame_xmalloc): Declare.
5844 (deprecated_set_frame_saved_regs_hack): Declare.
5845 (deprecated_set_frame_extra_info_hack): Declare.
5846
14abd0fb
MK
58472003-01-04 Mark Kettenis <[email protected]>
5848
8ee53726
MK
5849 * configure.in: Move code that provides the --enable-gdbtk option
5850 right after the code that handles the --enable-tui option, and
5851 polish it somewhat.
5852 * configure: Regenerated.
5853
14abd0fb
MK
5854 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
5855 AC_CHECK_FUNCS and remove the old check for pread64.
5856 * acinclude.m4 (AC_GNU_SOURCE): New macro.
5857 * acconfig.h (_GNU_SOURCE): Add.
5858 (HAVE_PREAD64): Remove.
5859 * configure, aclocal.m4, config.in: Regenerated.
5860
b2fb4676
AC
58612003-01-03 Andrew Cagney <[email protected]>
5862
5863 * alpha-tdep.c: Use get_frame_saved_regs.
5864 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5865 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5866 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
5867 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
5868 * vax-tdep.c, xstormy16-tdep.c: Ditto.
5869
8dcde887
MK
58702003-01-03 Mark Kettenis <[email protected]>
5871
5872 * configure.in: Remove all use of the SUBDIRS variable; add
5873 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
5874 code providing the --enable-multi-ice option, and move it right in
5875 front of the code that checks whether gdbserver is supported.
5876 Polish that too.
5877 * configure: Regenerated.
5878 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
5879 @SUBDIRS@.
5880
8ccd593b
AC
58812003-01-03 Andrew Cagney <[email protected]>
5882
5883 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
5884 * avr-tdep.c, cris-tdep.c: Ditto.
5885 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5886 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
5887
91151a06
MK
58882003-01-03 Mark Kettenis <[email protected]>
5889
5890 * configure.in: Remove --enable-netrom option.
5891 * configure: Regenerated.
5892
8fe84d01
MK
58932003-01-03 Mark Kettenis <[email protected]>
5894
5895 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
5896 declaration for `struct re_pattern_buffer' instead.
5897 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
5898
f0394be6
JB
58992003-01-03 J. Brobecker <[email protected]>
5900
5901 * mdebugread.c (parse_symbol): Count until the stEnd matching
5902 the structure name.
5903
27e9bf90
MK
59042003-01-02 Mark Kettenis <[email protected]>
5905
93d331ba
MK
5906 * configure.in: Remove --with-cpu option.
5907 subscripts. Remove evil changequotes here.
5908 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
5909 * config.in, configure: Regenerated.
5910
27e9bf90
MK
5911 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
5912 * configure.in: Cleanup section that sources GDB and BFD configure
5913 subscripts. Remove evil changequotes here.
5914 * config.in, configure: Regenerated.
5915
50abf9e5
AC
59162003-01-02 Andrew Cagney <[email protected]>
5917
5918 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
5919 frame accessor methods.
5920 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5921 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5922 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
5923 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
5924 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
5925 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5926 * z8k-tdep.c: Ditto.
5927
287c1a40
MK
59282003-01-02 Mark Kettenis <[email protected]>
5929
f5dbc56d
MK
5930 * configure.in: Remove UI_OUT configuration code.
5931 * ada-lang.c: Update assuming UI_OUT is always true.
5932 * Makefile.in (UIOUT_CFLAGS): Remove.
5933 * configure: Regenerated.
5934 * TODO: Remove blurb about elimination of -DUI_OUT.
5935
627af7ea
MK
5936 * configure.in: Move code that provides the --enable-gdbcli,
5937 --enable-gdbmi options right before the code that handles the
5938 --enable-tui option. Polish a bit.
5939 * configure: Regenerated.
5940
06825bd1
MK
5941 * configure.in: Rewrite check for GNU regex and the
5942 --without-included regex option, and move it into the "Checks for
5943 library functions" section. This makes us use the system regex
5944 again by default on systems with version 2 of the GNU C library.
5945 This was apparently broken.
5946 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
5947 * acconfig.h (USE_INCLUDED_REGEX): Remove.
5948 * config.in, configure: Regenerated.
5949
287c1a40
MK
5950 * configure.in: Move code that provides the --enable-tui option
5951 before the "Checks for libraries" section. Polish the code
5952 somewhat and set need_curses to yes if we build the TUI. Rewrite
5953 code that looks for a library providing termcap functionality to
5954 match more closely what's done in the Readline library, and move
5955 it into to the "Checks for libraries" section.
5956 * configure: Regenerated.
5957 * Makefile.in (TERMCAP): Remove variable.
5958 * config/i386/go32.mh (TERMCAP): Remove variable.
5959
684e56bf
AC
59602003-01-02 Andrew Cagney <[email protected]>
5961
5962 * MAINTAINERS: Mention gdb_mbuild.sh.
5963 * gdb_mbuild.sh: Rewrite.
5964
e1ea1d75
MK
59652003-01-02 Mark Kettenis <[email protected]>
5966
5967 * configure.in: Fix typo in last change.
5968 * config.in, configure: Regenerated.
5969
1b831c93
AC
59702003-01-02 Andrew Cagney <[email protected]>
5971
5972 * valarith.c (value_binop): Delete obsolete code and comments.
5973 * configure.host: Ditto.
5974 * buildsym.h (make_blockvector): Ditto.
5975 * buildsym.c (make_blockvector): Ditto.
5976 * defs.h (enum language): Ditto.
5977 (chill_demangle): Ditto.
5978 * elfread.c (elf_symtab_read): Ditto.
5979 * dwarfread.c (CHILL_PRODUCER): Ditto.
5980 (set_cu_language): Ditto.
5981 (handle_producer): Ditto.
5982 * expprint.c (print_subexp): Ditto.
5983 * gdbtypes.c (chill_varying_type): Ditto.
5984 * gdbtypes.h (builtin_type_chill_bool): Ditto.
5985 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
5986 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
5987 (chill_varying_type): Ditto.
5988 * language.h (_LANG_chill): Ditto.
5989 * language.c (binop_result_type, integral_type): Ditto.
5990 (character_type, string_type, structured_type): Ditto.
5991 (lang_bool_type, binop_type_check): Ditto.
5992 * stabsread.h (os9k_stabs): Ditto.
5993 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
5994 (define_symbol, read_type, read_struct_fields): Ditto.
5995 (read_array_type, read_enum_type, read_huge_number): Ditto.
5996 (read_range_type, start_stabs): Ditto.
5997 * symfile.c (init_filename_language_table): Ditto.
5998 (add_psymbol_with_dem_name_to_list): Ditto.
5999 * symtab.c (symbol_init_language_specific): Ditto.
6000 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
6001 * symtab.h (struct general_symbol_info): Ditto.
6002 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6003 * typeprint.c (typedef_print): Ditto.
6004 * utils.c (fprintf_symbol_filtered): Ditto.
6005 * valops.c (value_cast, search_struct_field, value_slice): Delete
6006 obsolete code.
6007 (varying_to_slice): Delete function.
6008 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
6009 (varying_to_slice): Delete declaration.
6010 * MAINTAINERS: Update.
6011
8bb2c122
MK
60122003-01-02 Mark Kettenis <[email protected]>
6013
97bf5e38
MK
6014 * configure.in: Reorganize "Checks for library functions section"
6015 a bit. Remove check for `btowc' and `isascii' functions.
6016 * configure: Regenerated.
6017
5ee754fc
MK
6018 * acconfig.h (_MSE_INT_H): Remove.
6019 * configure.in: Create "Checks for header files" section, and move
6020 appropriate tests there. Don't check for objlist.h, wchar.h,
6021 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
6022 misdetection fix. Also add "Checks for types", "Checks for
6023 compiler characteristics" and "Checks for library functions"
6024 sections.
6025 * config.in, configure: Regenerated.
6026
8bb2c122
MK
6027 * configure.in: Create "Checks for programs" section, and move
6028 appropriate tests there.
6029
9a156167
MK
60302003-01-01 Mark Kettenis <[email protected]>
6031
6032 * configure.in: Create "Checks for libraries" section, and move
6033 appropriate tests there. Cleanup check for wctype in libw. Use
6034 AC_SEARCH_LIBS to see whether we need libsocket.
6035 * configure: Regenerated.
6036
a80e2bcb 6037For older changes see ChangeLog-2002
c906108c
SS
6038\f
6039Local Variables:
6040mode: change-log
6041left-margin: 8
6042fill-column: 74
6043version-control: never
6044End:
This page took 1.655522 seconds and 4 git commands to generate.