* rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2
3 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
4 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
5 default dwarf2_frame_set_init_reg function.
6
7 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
8
9 * NEWS: Mention native MinGW configuration.
10
11 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
12
13 * gdbarch.sh: Remove "macro" column of input table. Remove handling
14 of "macro" column throughout the file. Remove (empty) "macro" entry
15 of all gdbarch functions.
16
17 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18
19 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
20 * gdbarch.c, gdbarch.h: Regenerate.
21 * dbxread.c (find_stab_function_addr): Define unconditionally.
22 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
23 instead of SOFUN_ADDRESS_MAYBE_MISSING.
24 (end_psymtab): Likewise.
25 (process_one_symbol): Likewise.
26 * mdebugread.c (parse_partial_symbols): Likewise.
27
28 * symtab.h (struct minimal_symbol): Always define "filename" member.
29 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
30 * minsyms.c (lookup_minimal_symbol): Likewise.
31 * symmisc.c (dump_msymbols): Likewise.
32
33 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
34 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
35 * config/i386/tm-i386sol2.h: Remove file.
36 * config/i386/tm-linux.h: Remove file.
37 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
38 set_gdbarch_sofun_address_maybe_missing.
39 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
40
41 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
42 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
43 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
44 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
45 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
46 * config/powerpc/tm-ppc-eabi.h: Remove file.
47 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
48 set_gdbarch_sofun_address_maybe_missing.
49
50 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
51 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
52 * config/sparc/tm-sol2.h: Remove file.
53 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
54 set_gdbarch_sofun_address_maybe_missing.
55 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
56
57 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
58
59 * gdbarch.sh (static_transform_name): New gdbarch callback.
60 * gdbarch.c, gdbarch.h: Regenerate.
61 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
62 instead of STATIC_TRANSFORM_NAME.
63 * mdebugread.c (parse_partial_symbols): Likewise.
64 * stabsread.c (define_symbol): Likewise.
65 * xcoffread.c (scan_xcoff_symtab): Likewise.
66
67 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
68 (IS_STATIC_TRANSFORM_NAME): Remove.
69 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
70 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
71 (i386_sol2_init_abi): Install it.
72
73 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
74 (IS_STATIC_TRANSFORM_NAME): Remove.
75 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
76 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
77 (sparc32_sol2_init_abi): Install it.
78 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
79 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
80
81 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
82
83 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
84 (mips_n32n64_return_value, mips_o32_return_value)
85 (mips_o64_return_value): Update calls to mips_xfer_register.
86
87 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
88
89 * frame.c (frame_unwind_unsigned_register): Delete.
90 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
91 * frame.h (frame_unwind_unsigned_register): Delete prototype.
92
93 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
94 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
95 mt-tdep.c: Replace frame_unwind_unsigned_register with
96 frame_unwind_register_unsigned.
97
98 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
99
100 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
101 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
102 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
103 include procfs.h.
104 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
105 if not building on Cygwin.
106 (win32_make_so, handle_output_debug_string, handle_exception)
107 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
108 (win32_attach): Only fallback to Cygwin pids if building on
109 Cygwin.
110 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
111 building on Cygwin.
112 (win32_create_inferior): Disable starting the inferior through a
113 shell, environment var processing and tty handling if not building
114 on Cygwin.
115 (cygwin_pid_to_str): Rename to ...
116 (win32_pid_to_str): ... this.
117 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
118 and "cygwin-exceptions" commands if not building on Cygwin.
119
120 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
121
122 * doc/gdb.texinfo: Add TSIZE definition, removed
123 statement about unbounded arrays being unimplemented.
124 * m2-valprint.c (m2_print_array_contents): New function.
125 (m2_print_unbounded_array): New function.
126 (m2_print_array_contents): New function.
127 * m2-typeprint.c (m2_unbounded_array): New function.
128 (m2_is_unbounded_array): New function.
129 (m2_print_type): Test for unbounded array when walking
130 across structs.
131 * m2-lang.h: Added extern m2_is_unbounded_array.
132 * m2-lang.c (evaluate_subexp_modula2): New function.
133 (exp_descriptor_modula2): New structure.
134 (m2_language_defn): Use exp_descriptor_modula2.
135 * m2-exp.y: Added TSIZE and binary subscript.
136
137 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
138
139 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
140 after freeing it.
141
142 2007-10-16 Kevin Buettner <kevinb@redhat.com>
143
144 * m32r-tdep.c (decode_prologue): Sign extend offset for
145 "addi sp, xx" case.
146 (m32r_frame_unwind_cache): Likewise.
147
148 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
149
150 * rs6000-tdep.c (skip_prologue): Restore comment with
151 function description to its proper place.
152
153 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
154
155 * NEWS: Mention gdbserver PowerPC improvements.
156
157 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
158
159 * features/Makefile (WHICH): Add PowerPC register definitions.
160 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
161 (rs6000/powerpc-64-expedite): New macros.
162 ($(outdir)/%.dat): Handle subdirectories.
163 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
164 regformats/rs6000/powerpc-e500.dat: New generated files.
165
166 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
167
168 * ppc-linux-nat.c (ppc_linux_read_description): New.
169 (_initialize_ppc_linux_nat): Set to_read_description.
170 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
171
172 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
173
174 * NEWS: Document target described register support for PowerPC.
175 * ppc-tdep.h: Remove ppc_spr constants.
176 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
177 ppc_builtin_type_vec128 members.
178 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
179 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
180 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
181 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
182 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
183 * rs6000-tdep.c: Include preparsed descriptions.
184 (init_sim_regno_table): Do not iterate over pseudo registers.
185 Look up segment registers by name. Use sim_spr_register_name
186 for SPRs.
187 (rs6000_register_sim_regno): Call init_sim_regno_table here.
188 (rs6000_builtin_type_vec128): Delete.
189 (rs6000_register_name): Only handle SPE pseudo registers and upper
190 halves. Call tdesc_register_name for everything else.
191 (rs6000_register_type): Delete. Replace with...
192 (rs6000_pseudo_register_type): ...this new function. Only handle
193 SPE pseudo registers.
194 (rs6000_register_reggroup_p): Delete. Replace with...
195 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
196 handle SPE pseudo registers.
197 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
198 "struct reg".
199 (rs6000_register_to_value, rs6000_value_to_register): Remove check
200 of reg->fpr.
201 (e500_register_reggroup_p): Delete.
202 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
203 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
204 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
205 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
206 (registers_powerpc, registers_403, registers_403GC, registers_505)
207 (registers_860, registers_601, registers_602, registers_603)
208 (registers_604, registers_750, registers_7400, registers_e500): Delete
209 variables.
210 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
211 tdesc.
212 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
213 (variants): Delete outdated comment. Use standard target descriptions
214 instead of "struct reg" arrays.
215 (init_variants): Delete.
216 (rs6000_gdbarch_init): Do not guess word size from the BFD
217 architecture if we have a target description. Select a variant
218 before creating a new architecture. Use the variant's target
219 description if the target did not define a register layout.
220 Validate target-supplied registers. Reject mismatches. Use
221 fixed register numbers and new constants instead of magic
222 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
223 (_initialize_rs6000_tdep): Initialize the preparsed target
224 descriptions.
225 * target-descriptions.c (tdesc_predefined_types): Add int128 and
226 uint128.
227 (tdesc_find_register_early): New function.
228 (tdesc_numbered_register): Use it.
229 (tdesc_register_size): New function.
230 (tdesc_use_registers): Take a target_desc argument. Do not use
231 gdbarch_target_desc.
232 * target-descriptions.h (tdesc_use_registers): Update prototype
233 and comment.
234 (tdesc_register_size): New prototype.
235 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
236 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
237 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
238 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
239 (rs6000-tdep.o): Update.
240 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
241 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
242 * mips-tdep.c (mips_gdbarch_init): Likewise.
243
244 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
245
246 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
247 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
248 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
249 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
250 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
251 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
252 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
253 generated files.
254
255 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
256
257 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
258 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
259 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
260 feature descriptions for standard PowerPC register sets.
261
262 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
263 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
264 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
265 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
266 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
267 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
268 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
269 target descriptions for PowerPC processors.
270
271 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
272
273 * target-descriptions.c (tdesc_predefined_types): New.
274 (tdesc_named_type): Use it.
275 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
276 (_intialize_target_descriptions): Register "maint print c-tdesc".
277 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
278 (cfiles, %.c): New rules.
279 * features/arm-with-iwmmxt.c, features/mips-linux.c,
280 features/mips64-linux.c: New generated files.
281
282 * arm-linux-nat.c: Include preparsed description instead of
283 "xml-support.h".
284 (super_xfer_partial, arm_linux_xfer_partial): Remove.
285 (arm_linux_read_description): New function.
286 (_initialize_arm_linux_nat): Set to_read_description instead of
287 to_xfer_partial. Initialize preparsed description.
288 * config/arm/linux.mh (TDEP_XML): Delete.
289 * mips-linux-nat.c: Include preparsed descriptions instead of
290 "xml-support.h".
291 (super_xfer_partial, mips_linux_xfer_partial): Remove.
292 (mips_linux_read_description): New function.
293 (_initialize_mips_linux_nat): Set to_read_description instead of
294 to_xfer_partial. Initialize preparsed description.
295 * config/mips/linux.mh (TDEP_XML): Delete.
296 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
297 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
298 (mips64_linux_c): New macros.
299 (arm-linux-nat.o, mips-linux-nat.o): Update.
300
301 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
302
303 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
304 Replace xasprintf by xstrprintf.
305 symfile-mem.c (add_vsyscall_page): Ditto.
306
307 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
308
309 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
310 replacing use of global current_gdbarch.
311 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
312 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
313
314 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
315 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
316 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
317 (ia64_sigtramp_frame_cache): Update caller.
318
319 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
320
321 * gdbarch.sh (deprecated_use_struct_convention): Remove.
322 (extract_return_value, store_return_value): Remove.
323 (return_value): Remove default implementation.
324 * gdbarch.c, gdbarch.h: Regenerate.
325
326 * stack.c (return_command): Remove compatibility hack.
327 * arch-utils.c (legacy_return_value): Remove.
328 * arch-utils.h (legacy_return_value): Likewise.
329
330 * arch-utils.c (always_use_struct_convention): Remove.
331 * arch-utils.h (always_use_struct_convention): Likewise.
332 * value.c (generic_use_struct_convention): Remove.
333 * defs.h (generic_use_struct_convention): Likewise.
334
335 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
336
337 * avr-tdep.c (avr_return_value): New function.
338 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
339 set_gdbarch_extract_return_value.
340
341 * fvr-tdep.c (frv_return_value): New function.
342 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
343 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
344 and set_gdbarch_deprecated_use_struct_convention.
345
346 * ia64-tdep.c (ia64_use_struct_convention): Make static.
347 Add check for structure, union, or array types.
348 (ia64_extract_return_value): Make static.
349 (ia64_store_return_value): Make static. Support multi-word values.
350 (ia64_return_value): New function.
351 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
352 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
353 and set_gdbarch_deprecated_use_struct_convention.
354
355 2007-10-12 Joel Brobecker <brobecker@adacore.com>
356
357 * solib-target.c (solib_target_parse_libraries)
358 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
359
360 2007-10-12 Jim Blandy <jimb@codesourcery.com>
361
362 * serial.h (struct serial_ops): Document read_prim to return zero
363 at EOF.
364 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
365 read_prim returns zero, not SERIAL_TIMEOUT.
366
367 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
368
369 * alpha-mdebug-tdep.c: Include "gdb_string.h".
370 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
371 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
372 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
373
374 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
375 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
376 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
377 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
378 * config/alpha/tm-alpha.h: Remove file.
379
380 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
381
382 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
383 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
384
385 * config/pa/tm-hppa.h: Delete file.
386 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
387 * config/pa/hppahpux.mt: Likewise.
388 * config/pa/hppa.mt: Likewise.
389 * config/pa/linux.mt: Likewise.
390 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
391
392 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
393
394 * config/arm/nm-nbsdaout.h: Remove file.
395 * config/nm-nbsdaout.h: Likewise.
396 * config/nm-nbsd.h: Likewise.
397
398 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
399
400 * block.h (struct block): Remove "gcc_compile_flag" member.
401 (BLOCK_GCC_COMPILED): Remove.
402 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
403 * buildsym.c (finish_block): Do not set it.
404 * symmisc.c (dump_symtab_1): Do not dump it.
405
406 * value.h (using_struct_return): Remove "gcc_p" argument.
407 * value.c (using_struct_return): Likewise.
408 * eval.c (evaluate_subexp_standard): Adapt callers.
409 * infcall.c (call_function_by_hand): Likewise.
410 * stack.c (return_command): Likewise.
411 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
412
413 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
414 * gdbarch.c, gdbarch.h: Regenerate.
415 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
416 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
417 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
418 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
419 (push_dummy_code, call_function_by_hand): Adapt callers.
420
421 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
422
423 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
424 (finish_command_continuation, finish_command): Adapt callers.
425
426 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
427
428 * infcall.c (call_function_by_hand): Remove special handling
429 for HP aCC compiled code.
430
431 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
432
433 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
434 reference. Fix endianness bugs.
435 (cris_reg_struct_has_address): Remove.
436 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
437 and set_gdbarch_deprecated_use_struct_convention calls.
438
439 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
440 * gdbarch.c, gdbarch.h: Regenerate.
441 * infcall.c (call_function_by_hand): Remove handling of
442 deprecated_reg_struct_has_addr.
443
444 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
445 Kazu Hirata <kazu@codesourcery.com>
446
447 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
448 checking watchpoint resources.
449
450 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
451
452 * memattr.c (inaccessible_by_default): Change the initial
453 value to 1.
454
455 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
456
457 PR gdb/2280
458 * coffread.c (read_one_sym): Check for read errors.
459
460 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
461
462 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
463 instead of "Linux 2.6.19" in comment.
464 (linux_xfer_partial): Use "GNU/Linux target" instead of
465 "Linux target" in comment.
466 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
467 (m68k_linux_get_sigtramp_info): Likewise.
468
469 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
470
471 * MAINTAINERS (language support): List Joel and Paul as
472 Ada maintainers.
473
474 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
475
476 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
477 checks.
478 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
479 not set DEPRECATED_TM_FILE.
480 * config/arm/tm-arm.h: Delete file.
481
482 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
483
484 * MAINTAINERS (Write After Approval): Add self.
485
486 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
487
488 * buildsym.c (record_line): Remove empty lines followed by
489 end-of-sequence markers.
490
491 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
492
493 * configure.tgt: Recognize fido-*-elf.
494
495 2007-10-10 Joel Brobecker <brobecker@adacore.com>
496
497 GDB 6.7 released.
498
499 2007-10-10 Markus Deuling <deuling@de.ibm.com>
500
501 * stack.c (print_frame_args, frame_info, return_command): Use
502 get_regcache_arch or get_frame_arch to get at the current architecture
503 by regcache or by frame, respectively.
504
505 2007-10-10 Markus Deuling <deuling@de.ibm.com>
506
507 * rs6000-nat.c (fetch_register, store_register)
508 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
509 get_regcache_arch to get at the current architecture by regcache.
510
511 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
512 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
513 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
514 current_gdbarch by gdbarch.
515 (rs6000_skip_trampoline_code, rs6000_register_to_value)
516 (rs6000_value_to_register): Use get_frame_arch to get at the current
517 architecture by frame_info.
518
519 2007-10-10 Markus Deuling <deuling@de.ibm.com>
520
521 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
522 get_regcache_arch to get at the current architecture by regcache.
523
524 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
525 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
526 get_regcache_arch to get at the current architecture by regcache.
527
528 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
529 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
530 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
531 current architecture by regcache.
532
533 2007-10-10 Markus Deuling <deuling@de.ibm.com>
534
535 * remote-mips.c (mips_wait, mips_fetch_registers)
536 (mips_store_registers): Use get_regcache_arch to get at the
537 current architecture by regcache.
538
539 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
540 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
541 get at the current architecture by regcache.
542 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
543 architecture by frame_info.
544
545 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
546 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
547 the current architecture by regcache.
548
549 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
550 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
551 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
552 current architecture by frame_info.
553 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
554 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
555 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
556 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
557 get at the current architecture by regcache.
558
559 * mips-linux-nat.c (mips_linux_register_addr)
560 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
561 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
562 (mips64_linux_regsets_fetch_registers)
563 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
564 the current architecture by regcache.
565
566 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
567 get at the current architecture by frame_info.
568
569 2007-10-10 Markus Deuling <deuling@de.ibm.com>
570
571 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
572 current architecture by regcache.
573 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
574 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
575 (mips_stub_frame_cache, mips_read_fp_register_single)
576 (mips_read_fp_register_double, mips_print_fp_register)
577 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
578 at the current architecture by frame_info.
579 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
580 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
581 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
582 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
583 (mips_o32_push_dummy_call, mips_o32_return_value)
584 (mips_o64_push_dummy_call, mips_o64_return_value)
585 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
586 gdbarch.
587
588 2007-10-10 Markus Deuling <deuling@de.ibm.com>
589
590 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
591 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
592 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
593 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
594 (xtensa_register_write_masked, xtensa_register_read_masked)
595 (xtensa_supply_gregset, xtensa_store_return_value)
596 (xtensa_extract_return_value): Use get_regcache_arch to get at the
597 current architecture by regcache.
598 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
599 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
600 architecture by frame_info.
601
602 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
603
604 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
605 (thumb_analyze_prologue): Move pv_area_store_would_trash call
606 out of loop. Do not set cache->frameoffset.
607 (arm_scan_prologue): Use prologue-value mechanism. Do not set
608 frameoffset. Simplify framesize.
609 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
610 frameoffset.
611 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
612
613 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
614
615 * target.c (update_current_target): Call setup_target_debug.
616 (push_target): Do not call it here.
617
618 2007-10-09 Michael Snyder <msnyder@specifix.com>
619
620 * MAINTAINERS: Update my email address.
621
622 2007-10-09 Markus Deuling <deuling@de.ibm.com>
623
624 * xtensa-tdep.c: Replace following current-gdbarch based macros by
625 their expression:
626 (xtensa_pseudo_register_read)
627 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
628 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
629 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
630 (xtensa_pseudo_register_read)
631 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
632 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
633 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
634 (xtensa_frame_prev_register): NUM_AREGS.
635 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
636 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
637 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
638 (xtensa_supply_gregset, xtensa_frame_cache)
639 (xtensa_frame_prev_register): WS_REGNUM.
640 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
641 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
642 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
643 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
644 (xtensa_register_reggroup_p): REGMAP.
645 (call0_track_op): LITBASE_REGNUM.
646 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
647 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
648 (xtensa_frame_prev_register, AREG_NUMBER)
649 (xtensa_register_type): AR_BASE.
650 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
651 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
652 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
653 (xtensa_frame_cache, xtensa_frame_prev_register)
654 (xtensa_extract_return_value, xtensa_store_return_value)
655 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
656 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
657 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
658 (xtensa_frame_prev_register, xtensa_push_dummy_call)
659 (call0_frame_cache): A1_REGNUM.
660 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
661 (xtensa_push_dummy_call): A4_REGNUM.
662 (ARGS_FIRST_REG): A6_REGNUM.
663 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
664 (xtensa_frame_prev_register): A15_REGNUM.
665 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
666 them in the appropriate source file:
667 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
668 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
669 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
670 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
671 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
672 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
673 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
674 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
675 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
676 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
677 A13_REGNUM, A14_REGNUM, A15_REGNUM.
678
679 2007-10-09 Markus Deuling <deuling@de.ibm.com>
680
681 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
682 the current architecture by frame_info.
683 (h8300_frame_prev_register
684 (h8300_print_register): Replace current_gdbarch by gdbarch.
685 (h8300_print_registers_info, h8300_register_type)
686 (h8300_register_type): Likewise.
687
688 2007-10-09 Markus Deuling <deuling@de.ibm.com>
689
690 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
691 the current architecture by regcache.
692 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
693 (i386_linux_fetch_inferior_registers)
694 (i386_linux_store_inferior_registers): Likewise.
695 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
696 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
697 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
698 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
699 (i386_extract_return_value, i386_store_return_value): Likewise.
700 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
701 the current architecture by frame_info.
702 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
703 (i386_register_to_value, i386_value_to_register): Likewise.
704
705 2007-10-09 Markus Deuling <deuling@de.ibm.com>
706
707 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
708 the current architecture by regcache.
709 (monitor_store_register, monitor_store_registers): Likewise.
710
711 2007-10-09 Markus Deuling <deuling@de.ibm.com>
712
713 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
714 the current architecture by regcache.
715
716 2007-10-09 Markus Deuling <deuling@de.ibm.com>
717
718 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
719 gdbarch.
720
721 2007-10-09 Markus Deuling <deuling@de.ibm.com>
722
723 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
724 architecture by frame.
725 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
726 (inside_main_func, frame_sp_unwind): Likewise.
727
728 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
729
730 * solib-svr4.c (enable_break): Add the dynamic linker also if
731 auxv succeeds.
732
733 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
734
735 * MAINTAINERS (Write After Approval): Add self.
736
737 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
738
739 * stabsread.c (read_huge_number): Initialize local variable to 0.
740
741 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
742
743 * p-lang.h (pascal_main_name): Add declaration.
744 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
745 (GPC_MAIN_PROGRAM_NAME_2): New constants.
746 (pascal_main_name): New function.
747 * symtab.c: Include p-lang.h.
748 (find_main_name): Add call to pascal_main_name.
749 * Makefile.in (symtab.o): Add dependency on p-lang.h.
750
751 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
752
753 * stabsread.c (read_huge_number): Fix handling of octal
754 representation when the bit width is known.
755 (read_range_type): Record unsigned integral types with their size,
756 when the type size is known.
757
758 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
759
760 * MAINTAINERS (Write After Approval): Add self.
761
762 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
763
764 * breakpoint.c (print_one_breakpoint_location): ARI fix:
765 Replace asprintf by xstrprintf.
766
767 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
768
769 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
770 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
771
772 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
773
774 * linux-fork.c: Move "gdb_wait.h" include back to the position of
775 <sys/wait.h> include before last commit.
776
777 2007-10-08 Maciej W. Rozycki <macro@mips.com>
778
779 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
780
781 2007-10-08 Markus Deuling <deuling@de.ibm.com>
782
783 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
784 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
785 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
786 (store_regs_user_thread, store_regs_kernel_thread): Use
787 get_regcache_arch or get_frame_arch to get at the current architecture
788 by regcache or by frame, respectively.
789
790 2007-10-08 Markus Deuling <deuling@de.ibm.com>
791
792 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
793 (sh64_pseudo_register_read, sh64_pseudo_register_write)
794 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
795 (sh64_print_register, sh64_media_print_registers_info)
796 (sh64_compact_print_registers_info, sh64_unwind_sp)
797 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
798 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
799 (sh64_frame_prev_register): Use FRAME to recognize current
800 architecture.
801
802 2007-10-08 Markus Deuling <deuling@de.ibm.com>
803
804 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
805 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
806 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
807 current_gdbarch by gdbarch.
808 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
809 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
810 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
811 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
812 recognize current architecture.
813
814 2007-10-08 Markus Deuling <deuling@de.ibm.com>
815
816 * remote.c (init_remote_state, fetch_register_using_p)
817 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
818 (store_register_using_P, store_registers_using_G)
819 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
820 get at the current architecture by regcache or by frame, respectively.
821
822 2007-10-08 Markus Deuling <deuling@de.ibm.com>
823
824 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
825 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
826 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
827 get_regcache_arch or get_frame_arch to get at the current architecture
828 by regcache or by frame, respectively.
829 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
830 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
831 (store_register, old_store_inferior_registers, supply_gregset)
832 (supply_fpregset, fill_fpregset): Likewise.
833 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
834 Replace current_gdbarch by gdbarch.
835
836 2007-10-08 Markus Deuling <deuling@de.ibm.com>
837
838 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
839 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
840 get_frame_arch to get at the current architecture by regcache or by
841 frame, respectively.
842
843 2007-10-08 Markus Deuling <deuling@de.ibm.com>
844
845 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
846 Replace current_gdbarch by gdbarch.
847 * ia64-tdep.c (ia64_frame_prev_register
848 (ia64_sigtramp_frame_prev_register)
849 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
850 get_frame_arch to get at the current architecture by regcache or by
851 frame, respectively.
852 * ia64-linux-nat.c (ia64_linux_fetch_register)
853 (ia64_linux_fetch_registers, ia64_linux_store_register)
854 (ia64_linux_store_registers): Likewise.
855
856 2007-10-08 Markus Deuling <deuling@de.ibm.com>
857
858 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
859 current_gdbarch by gdbarch.
860 * hppa-linux-nat.c (fetch_register, store_register)
861 (hppa_linux_fetch_inferior_registers)
862 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
863 get_frame_arch to get at the current architecture by regcache or by
864 frame, respectively.
865 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
866 (hppa_hpux_unwind_adjust_stub): Likewise.
867 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
868 (hppa_hpux_fetch_inferior_registers)
869 (hppa_hpux_store_inferior_registers): Likewise.
870
871 2007-10-08 Markus Deuling <deuling@de.ibm.com>
872
873 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
874 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
875 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
876 or get_frame_arch to get at the current architecture by regcache or by
877 frame, respectively.
878 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
879 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
880 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
881 current_gdbarch by gdbarch.
882
883 2007-10-08 Markus Deuling <deuling@de.ibm.com>
884
885 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
886 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
887 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
888 get at the current architecture by regcache or by·frame, respectively.
889 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
890 gdbarch.
891
892 2007-10-08 Markus Deuling <deuling@de.ibm.com>
893
894 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
895 Use get_regcache_arch or get_frame_arch to get at the current
896 architecture by regcache or by frame, respectively.
897 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
898 * amd64-nat.c (amd64_supply_native_gregset)
899 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
900
901 2007-10-08 Markus Deuling <deuling@de.ibm.com>
902
903 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
904 gdbarch.
905 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
906 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
907 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
908 get_frame_arch to get at the current architecture by regcache or by
909 frame, respectively.
910 * alpha-nat.c (fetch_osf_core_registers): Likewise.
911
912 2007-10-08 Markus Deuling <deuling@de.ibm.com>
913
914 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
915 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
916 current_gdbarch by gdbarch.
917 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
918
919 2007-10-08 Markus Deuling <deuling@de.ibm.com>
920
921 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
922 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
923 * regcache.c (regcache_raw_write): Use get_regcache_arch or
924 get_frame_arch to get at the current architecture by regcache or by
925 frame, respectively.
926
927 2007-10-08 Markus Deuling <deuling@de.ibm.com>
928
929 * findvar.c (value_of_register, locate_var_value): Use
930 get_regcache_arch or get_frame_arch to get at the current architecture
931 by regcache or by frame, respectively.
932 * findvar.c (default_value_from_register, value_from_register): Replace
933 current_gdbarch by gdbarch.
934
935 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
936
937 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
938
939 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
940
941 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
942 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
943
944 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
945
946 * remote.c (get_offsets): Only call free_symfile_segment_data if
947 data was allocated.
948
949 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
950
951 * objc-exp.y: ARI fix: remove 4 PARAMS.
952
953 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
954
955 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
956 news. Mention XML support for M68K in GDB 6.7.
957
958 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
959
960 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
961 bounds.
962 (init_vector_type): Use builtin_type_int32.
963
964 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
965
966 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
967 size to enable bi-arch generate-core-file support.
968
969 2007-10-02 Markus Deuling <deuling@de.ibm.com>
970
971 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
972
973 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
974
975 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
976 signal handler.
977 * tui/tui-win.c (tui_initialize_win): New function for
978 initializing tui's SIGWINCH signal handler.
979 * tui/tui-win.h (tui_initialize_win): Declare.
980
981 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
982
983 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
984 pointer to uintptr_t before casting to CORE_ADDR.
985
986 2007-10-02 Markus Deuling <deuling@de.ibm.com>
987
988 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
989
990 2007-10-02 Mark Mitchell <mark@codesourcery.com>
991
992 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
993 * ser-mingw.c (enum select_thread_state): New type.
994 (struct ser_console_state): Add have_started and thread_state.
995 (select_thread_wait): New function.
996 (thread_fn_type): New type.
997 (create_select_thread): New function.
998 (destroy_select_thread): Likewise.
999 (start_select_thread): Likewise.
1000 (stop_select_thread): Likewise.
1001 (console_select_thread): Use new functions.
1002 (pipe_select_thread): Likewise.
1003 (file_select_thread): Likewise.
1004 (ser_console_wait_handle): Likewise.
1005 (ser_console_done_wait_handle): Likewise.
1006 (ser_console_close): Likewise.
1007 (free_pipe_state): Likewise.
1008 (pipe_wait_handle): Likewise.
1009 (pipe_done_wait_handle): Likewise.
1010 (struct net_windows_state): Derive from ser_console_state.
1011 (net_windows_select_thread): Use new functions.
1012 (net_windows_wait_handle): Likewise.
1013 (net_windows_done_wait_handle): Likewise.
1014 (net_windows_close): Likewise.
1015
1016 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1017
1018 * inflow.c (terminal_ours_1): Remove useless line.
1019
1020 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1021
1022 * mips-tdep.c (mips_read_fp_register_double): Correct check for
1023 odd FP registers.
1024 (mips_print_fp_register): Correct check for even FP registers.
1025 (mips_virtual_frame_pointer): New function.
1026 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
1027
1028 2007-09-30 Mike Frysinger <vapier@gentoo.org>
1029
1030 * value.h (lookup_only_internalvar): New prototype.
1031 (create_internalvar): Likewise.
1032 * value.c (lookup_only_internalvar): New function.
1033 (create_internalvar): Likewise.
1034 (lookup_internalvar): Use new lookup_only_internalvar and
1035 create_internalvar functions.
1036 * parse.c (write_dollar_variable): Look up $ symbols in internal
1037 table first rather than last.
1038
1039 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1040
1041 * linux-nat.c (linux_nat_new_thread): New variable.
1042 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
1043 linux_nat_switch_fork.
1044 (lwp_list): Make public.
1045 (add_lwp): Call linux_nat_new_thread.
1046 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
1047 the new thread.
1048 (resume_callback): Clear lp->siginfo. Remove unused variable.
1049 (linux_nat_resume): Assert that the LWP list is already initialized.
1050 Clear lp->siginfo.
1051 (save_siginfo): New.
1052 (stop_wait_callback, linux_nat_wait): Call it.
1053 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
1054 * linux-nat.h (struct lwp_info): Add siginfo.
1055 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
1056 (ALL_LWPS): Define.
1057
1058 * amd64-linux-nat.c (amd64_linux_dr): New.
1059 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
1060 (amd64_linux_dr_set): Take a PTID argument.
1061 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
1062 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
1063 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
1064 (amd64_linux_new_thread): New.
1065 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
1066 * i386-linux-nat.c (i386_linux_dr): New.
1067 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
1068 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
1069 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
1070 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
1071 (i386_linux_new_thread): New.
1072 (i386_linux_resume): Remove unnecessary PID check.
1073 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
1074 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
1075 (fetch_debug_register, fetch_debug_register_pair): Delete.
1076 (debug_registers): New.
1077 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
1078 ALL_LWPS and debug_registers.
1079 (ia64_linux_new_thread): New.
1080 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
1081 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
1082 * ppc-linux-nat.c (last_stopped_data_address): Delete.
1083 (saved_dabr_value): New.
1084 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1085 ALL_LWPS.
1086 (ppc_linux_new_thread): New.
1087 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
1088 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
1089 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
1090 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
1091 after reading it.
1092 (s390_fix_watch_points): Take a PTID argument.
1093 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
1094 (_initialize_s390_nat): Call linux_nat_set_new_thread.
1095
1096 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1097 Jeff Johnston <jjohnstn@redhat.com>
1098
1099 * breakpoint.c (watchpoints_triggered): New.
1100 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
1101 Check watchpoint_triggered instead. Combine handling for software
1102 and hardware watchpoints. Do not use target_stopped_data_address
1103 here. Always check a watchpoint if its scope breakpoint triggers.
1104 Do not stop for thread or overlay events. Improve check for
1105 triggered watchpoints without a value change.
1106 (watch_command_1): Insert the scope breakpoint first. Link the
1107 scope breakpoint to the watchpoint.
1108 * breakpoint.h (enum watchpoint_triggered): New.
1109 (struct breakpoint): Add watchpoint_triggered.
1110 (bpstat_stop_status): Update prototype.
1111 (watchpoints_triggered): Declare.
1112 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
1113 (stepped_after_stopped_by_watchpoint): Delete.
1114 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
1115 local. Handle infwait_step_watch_state. Update calls to
1116 bpstat_stop_status. Use watchpoints_triggered to check
1117 watchpoints.
1118 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
1119 (remote_stopped_data_address): Do not check it.
1120
1121 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
1122
1123 * configure.ac: Add $LIBINTL when testing libbfd.
1124 * configure: Regenerated.
1125
1126 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
1127
1128 * NEW: Mention pending breakpoint changes and
1129 support for breakpoints at multiple locations.
1130
1131 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
1132
1133 * arm-linux-tdep.c (arm_linux_software_single_step): New.
1134 (arm_linux_init_abi): Use it.
1135 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
1136 condition correctly.
1137 * arm-tdep.h (arm_get_next_pc): Declare.
1138 * Makefile.in (arm-linux-tdep.o): Update.
1139
1140 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1141
1142 * varobj.c (install_new_value): Don't
1143 call value_get_print_value when a value is
1144 lazy. Update the print_value member in a
1145 single place.
1146
1147 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1148
1149 * breakpoint.c (create_breakpoint): Set
1150 condition on each location, not on the first
1151 location of breakpoint.
1152
1153 2007-09-26 Jim Blandy <jimb@codesourcery.com>
1154
1155 * remote.c (getpkt_sane): Fix error message. No animals were
1156 harmed in the making of this debugger.
1157
1158 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1159
1160 * p-typeprint.c: Fix 11 ARI reported problems.
1161 (pascal_print_type): Fix 4 operator at end of line.
1162 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
1163 using strncmp function.
1164 (pascal_type_print_base): Fix 2 operator at end of line.
1165 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
1166 using strncmp function.
1167
1168
1169 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1170
1171 * Fix PR pascal/2231
1172 dwarf2read.c (read_subroutine_type):
1173 All pascal functions are prototyped.
1174
1175 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1176
1177 * Fix PR pascal/2283
1178 p-valprint.c (pascal_val_print): correct current language check.
1179 Also print array of char as strings.
1180
1181
1182 2007-09-26 David Ung <davidu@mips.com>
1183 Maciej W. Rozycki <macro@mips.com>
1184
1185 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
1186
1187 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
1188
1189 * p-exp.y: Fix 12 ARI reported problems.
1190 (name_not_typename): Fix 2 operator at end of line issues.
1191 (yylex): Fix 3 operator at end of line issues.
1192 Replace 7 DEPRECATED_STREQ macros using strcmp function.
1193
1194 2007-09-25 David Ung <davidu@mips.com>
1195 Maciej W. Rozycki <macro@mips.com>
1196
1197 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
1198 rules return composite types in registers as appropriate.
1199
1200 2007-09-24 Jim Blandy <jimb@codesourcery.com>
1201
1202 * symfile.h (struct symfile_segment_data): Doc fixes.
1203 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
1204 Assert that we were passed some loaded segment addresses,
1205 and that sections' segment numbers are valid.
1206 Simplify offset calculation.
1207 * remote.c (get_offsets): Clarify selection of relocate-by-segment
1208 strategy, and set num_segments correctly. Delete redundant
1209 assignments to do_sections.
1210
1211 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
1212
1213 * frame.c (get_prev_frame_1): Also check for PC in the same register.
1214
1215 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
1216
1217 * breakpoint.c (remove_sal): New.
1218 (expand_line_sal_maybe): New.
1219 (create_breakpoints): Call expand_line_sal_maybe.
1220 (clear_command): Add comment.
1221 (breakpoint_re_set_one): Call expand_line_sal_maybe.
1222 * linespec.c (decode_indirect): Set explicit_pc to 1.
1223 (decode_all_digits): Set explicit_line to 1.
1224 (append_expanded_sal): New.
1225 (expand_line_sal): New.
1226 * linespec.h (expand_line_sal): Declare.
1227 * symtab.c (init_sal): Initialize explicit_pc
1228 and explicit_line.
1229 * symtab.h (struct symtab_and_line): New fields
1230 explicit_pc and explicit_line.
1231
1232 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
1233
1234 * infcall.c (call_function_by_hand): Handle language-specific
1235 pass and return by reference.
1236
1237 * cp-abi.c (cp_pass_by_reference): New.
1238 * cp-abi.h (cp_pass_by_reference): Declare.
1239 (struct cp_abi_ops): Add pass_by_reference.
1240 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
1241 (init_gnuv3_ops): Set pass_by_reference.
1242
1243 * language.c (language_pass_by_reference): New.
1244 (default_pass_by_reference): New.
1245 (unknown_language_defn, auto_language_defn, local_language_defn): Add
1246 default_pass_by_reference.
1247 * langauge.h (struct language_defn): Add la_pass_by_reference.
1248 (language_pass_by_reference, default_pass_by_reference): Declare.
1249 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
1250 * c-lang.c (c_language_defn, asm_language_defn)
1251 (minimal_language_defn): Likewise.
1252 (cplus_language_defn): Add cp_pass_by_reference.
1253 * f-lang.c (f_language_defn): Add default_pass_by_reference.
1254 * jv-lang.c (java_language_defn): Likewise.
1255 * m2-lang.c (m2_language_defn): Likewise.
1256 * objc-lang.c (objc_language_defn): Likewise.
1257 * p-lang.c (pascal_language_defn): Likewise.
1258 * scm-lang.c (scm_language_defn): Likewise
1259
1260 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
1261
1262 Allow a code breakpoint to have several locations
1263 associated with it.
1264 * breakpoint.h (enum enable_state): Remove the
1265 bp_shlib_disabled enumerator.
1266 (struct bp_location): New members shlib_disabled,
1267 global_next, enabled and function_name.
1268 Rename pending to condition_not_parsed.
1269
1270 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
1271 (ALL_BP_LOCATIONS_SAFE): Likewise.
1272 (breakpoint_enabled): Don't check for pending.
1273 (condition_command): Free and update all locations of
1274 a breakpoint.
1275 (insert_bp_location): Adjust.
1276 (software_breakpoint_inserted_here_p): Don't care
1277 if breakpoint is enabled, as soon as it's inserted.
1278 (print_it_typical): Print bpstat's location, not
1279 bpstat's breakpoint's location.
1280 (bpstat_stop_status): Iterate over all locations, not
1281 all breakpoints.
1282 (print_breakpoint_location): New.
1283 (print_one_breakpoint): Renamed to
1284 (print_one_breakpoint_location): ...this. Take
1285 parameters to describe which location is being
1286 printed. Modify code to properly print header
1287 for several locations and individual locations.
1288 (print_one_breakpoint): Print all locations.
1289 (breakpoint_has_pc): New.
1290 (describe_other_breakpoints): Use the above.
1291 (check_duplicates): Renamed to...
1292 (check_duplicates_for): .. this.
1293 (check_duplicates): Use check_duplicates_for.
1294 (allocate_bp_location): Adjust.
1295 (set_raw_breakpoint_without_location): New,
1296 extracted from set_raw_breakpoint.
1297 (set_breakpoint_location_function): New.
1298 (set_raw_breakpoint): Use
1299 set_raw_breakpoint_without_location.
1300 (make_breakpoint_permanent): Mark all locations
1301 as inserted.
1302 (disable_breakpoints_in_shlibs): Iterate over
1303 locations.
1304 (disable_breakpoints_in_unloaded_shlib): Likewise.
1305 (re_enable_breakpoints_in_shlibs): Likewise.
1306 (mention): Say "pending" when breakpoint has
1307 zero locations. If breakpoint has more than one
1308 location, say so.
1309 (add_location_to_breakpoint): New.
1310 (create_breakpoint): Accept symtabs_and_lines, not
1311 symtab_and_line. Pass extra sals to
1312 add_location_to_breakpoint.
1313 (create_breakpoints): Pass symtabs_and_lines to
1314 create_breakpoints.
1315 (break_command_1): Make pending breakpoints
1316 have zero locations.
1317 (do_captured_breakpoint): Remove wrong allocation.
1318 (clear_command): Iterate over all locations.
1319 (unlink_locations_from_global_list): Renamed
1320 from unlink_location_from_global_list. Remove
1321 all locations.
1322 (delete_breakpoint): Remove all locations.
1323 Iterate over all locations when deciding which
1324 other location to re-enable.
1325 (all_locations_are_pending): New.
1326 (update_breakpoint_locations): Renamed from
1327 update_breakpoint_location. Try to match old
1328 and new locations using names of containing
1329 functions.
1330 (breakpoint_re_set_one): Adjust.
1331 (find_location_by_number): New.
1332 (disable_command): Allow disabling individual location.
1333 (enable_command): Allow enabling individual location.
1334 * breakpoint.c: Adjust all uses of breakpoint's
1335 enable state to for bp_shlib_disabled change.
1336
1337 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1338
1339 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1340 (resolve_pending_breakpoint): Remove.
1341 (re_enable_breakpoints_in_shlibs): Remove.
1342 (unlink_locations_from_global_list): New.
1343 (update_breakpoint_locations): New.
1344 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1345 Use parse_condition and update_breakpoint_location to
1346 reset breakpoint. Ignore 'symbol not found' error from
1347 decode_line_1.
1348 (breakpoint_re_set): Don't emit newline before the
1349 reason why breakpoint is not reset.
1350 (do_enable_breakpoint): Don't specially process pending
1351 breakpoints.
1352 (free_bp_location): New.
1353 (break_command_1): For pending breakpoints, initialize
1354 all fields of a sal with zeroes.
1355 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1356 * infcmd.c (post_create_inferior): Don't call
1357 re_enable_breakpoints_in_shlibs.
1358 * infrun.c (handle_inferior_event): Likewise.
1359 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1360 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1361 * win32-nat.c (get_win32_debug_event): Likewise.
1362
1363 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1364
1365 * breakpoint.c (create_breakpoint): Split from
1366 create_breakpoints, implementing most of its logic.
1367 Take just a single sal, single address string and
1368 single condition. Do not take parsed condition at
1369 all.
1370 (create_breakpoints): Just call create_breakpoint
1371 for each sal.
1372 (find_condition_and_thread): New.
1373 (break_command_1): Use find_condition_and_thread.
1374 Do not keep parsed conditions.
1375 (do_captured_breakpoint): Don't convert
1376 condition string to struct expression.
1377
1378 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1379
1380 * breakpoint.h (struct breakpoint): Move the cond
1381 field to...
1382 (struct bp_location): Here.
1383 * breakpoint.c (condition_command, bpstat_stop_status)
1384 (print_one_breakpoint, allocate_bp_location)
1385 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1386 (create_exec_event_catchpoint, create_breakpoints)
1387 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1388 (create_ada_exception_breakpoint, set_breakpoint_sal)
1389 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1390 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1391
1392 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1393
1394 Associate bp_stat with bp_location, not breakpoint.
1395 * breakpoint.h (breakpoint_at): Change type
1396 to bp_location*.
1397 * breakpoint.c (bpstat_alloc): Take bp_location,
1398 not breakpoint.
1399 (bpstat_find_breakpoint): Look at bpstat's location's
1400 owner, not at bpstat->breakpoint_at.
1401 (bpstat_find_step_resume_breakpoint): Likewise.
1402 (bpstat_num): Likewise.
1403 (print_it_typical): Likewise.
1404 (print_bp_stop_message): Likewise.
1405 (watchpoint_check): Likewise.
1406 (bpstat_what): Likewise.
1407 (bpstat_get_triggered_catchpoints): Likewise.
1408 (breakpoint_auto_delete): Likewise.
1409 (delete_breakpoint): Likewise.
1410 (bpstat_stop_status): Pass location, not breakpoint,
1411 to bpstat_alloc. Look at bpstat's location's
1412 owner, not at bpstat->breakpoint_at.
1413
1414 2007-09-21 Jim Blandy <jimb@codesourcery.com>
1415
1416 * macrotab.h (new_macro_table): Document that removing information
1417 from an obstack/bcache-managed macro table leaks memory.
1418 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1419 that data is never freed in obstack/bcache-managed macro tables,
1420 just leak the storage.
1421 (macro_undef): If we're undefining a macro at exactly the same
1422 source location that we defined it, simply remove the definition
1423 altogether.
1424
1425 2007-09-21 Joel Brobecker <brobecker@adacore.com>
1426
1427 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1428 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1429 Adjust the struct sym_fns object accordingly by setting
1430 the new field to NULL.
1431 * xcoffread.c (aix_process_linenos): Make static.
1432 (xcoff_sym_fns): Set new field to aix_process_linenos.
1433 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1434 by call to new the new sym_fns sym_read_linetable function.
1435 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1436 * config/rs6000/tm-rs6000.h: Delete.
1437
1438 2007-09-21 David Ung <davidu@mips.com>
1439 Maciej W. Rozycki <macro@mips.com>
1440
1441 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1442 rules do not treat composite types specially.
1443
1444 2007-09-20 Maciej W. Rozycki <macro@mips.com>
1445
1446 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1447 (mips16_in_function_epilogue_p): Likewise.
1448 (mips_in_function_epilogue_p): Likewise.
1449 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1450
1451 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1452
1453 * configure.ac: Add check for "etext".
1454 * configure, config.in: Regenerate.
1455 * maint.c (TEXTEND): Only define if either _etext or etext
1456 are available.
1457 Disable the profiling functionality if TEXTEND is not defined.
1458
1459 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1460
1461 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1462 address register. Correct the call to frame_id_build.
1463 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1464 is invalid.
1465
1466 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1467
1468 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1469 the linetable past the function end.
1470
1471 2007-09-18 James E. Wilson <wilson@specifix.com>
1472
1473 * MAINTAINERS: Update my email address.
1474
1475 2007-09-18 Jerome Guitton <guitton@adacore.com>
1476
1477 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1478 (inf_ttrace_delete_dying_threads_callback): New function.
1479 (inf_ttrace_resume): After resuming the execution, iterate over
1480 the dying threads to delete them for the thread list.
1481 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1482 mark the corresponding thread as dying instead of removing it
1483 from the thread list.
1484 (inf_ttrace_thread_alive): return 0 for dying threads.
1485
1486 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1487
1488 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1489 that return_frame is not null.
1490
1491 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1492
1493 * solib-svr4.c: Add include of "auxv.h".
1494 (enable_break): Use the AT_BASE auxiliary entry if available.
1495 * Makefile.in (solib-svr4.o): Update dependencies.
1496
1497 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1498
1499 * NEWS: Create a new section for the next release branch.
1500 Rename the section of the current branch, now that it has
1501 been cut.
1502
1503 2007-09-17 Jerome Guitton <guitton@adacore.com>
1504
1505 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1506 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1507
1508 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1509
1510 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1511 * mi/mi-cmds.h (mi_cmd_list_features): New.
1512 * mi/mi-main.c (mi_cmd_list_features): New.
1513
1514 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1515
1516 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1517 * version.in: Bump version to 6.7.50-20070911-cvs.
1518
1519 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1520
1521 * thread.c (free_thread): Do not delete the step resume breakpoint
1522 right away.
1523
1524 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1525
1526 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1527 * corelow.c (core_read_description): New.
1528 (init_core_ops): Set to_read_description.
1529 * gdbarch.sh: Add gdbarch_core_read_description.
1530 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1531 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1532 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1533 (mips_register_g_packet_guesses): Use them.
1534 (_initialize_mips_tdep): Initialize them.
1535 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1536 * gdbarch.h, gdbarch.c: Regenerated.
1537
1538 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1539
1540 * infrun.c (stepping_past_breakpoint): New global variable.
1541 (stepping_past_breakpoint_ptid): Likewise.
1542 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1543 Only switch threads if we need to single-step over a breakpoint hit
1544 in the previously selected thread. If stepping, remember previous
1545 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1546 switch_to_thread instead of copying its contents.
1547 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1548 prepare_to_proceed returns true.
1549 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1550 (context_switch): Call switch_to_thread.
1551 (handle_inferior_event): Switch back to previous thread if requested
1552 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1553 * gdbthread.h (switch_to_thread): Add prototype.
1554 * thread.c (switch_to_thread): Make global.
1555
1556 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1557
1558 * p-valprint.c: Fix 7 ARI reported problems.
1559 (pascal_val_print): Fix one operator at end of line issue.
1560 Use paddress function to remove use of
1561 deprecated_print_address_numeric function (2 times).
1562 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1563 (pascal_value_print): Fix 3 operator at end of line issues.
1564
1565 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1566
1567 PR gdb/2103
1568 * arm-tdep.c (arm_in_call_stub): Delete.
1569 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1570
1571 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1572
1573 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1574 types.
1575
1576 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1577 Jim Blandy <jimb@codesourcery.com>
1578
1579 * NEWS: Update description of string changes. Mention print/s.
1580 * c-valprint.c (textual_element_type): New.
1581 (c_val_print): Use it. Do not skip address printing for pointers
1582 with a string format.
1583 (c_value_print): Doc update.
1584 * dwarf2read.c (read_array_type): Use make_vector_type.
1585 * gdbtypes.c (make_vector_type): New.
1586 (init_vector_type): Use it.
1587 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1588 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1589 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1590 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1591 (make_vector_type): New.
1592 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1593 Call the language print routine for string format.
1594 (print_scalar_formatted): Call val_print for string format. Handle
1595 unsigned original types for char format.
1596 (validate_format): Do not reject string format.
1597 * stabsread.c (read_type): Use make_vector_type.
1598 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1599
1600 2007-09-04 Michael Snyder <msnyder@access-company.com>
1601
1602 * expprint.c (print_subexp_standard): Check strchr for null.
1603 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1604
1605 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1606
1607 * stabsread.c (patch_block_status): Guard against null.
1608 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1609
1610 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1611
1612 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1613 in internal error message.
1614
1615 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1616 Daniel Jacobowitz <dan@codesourcery.com>
1617
1618 * infcmd.c (post_create_inferior): Update comment.
1619 (run_command_1): Always call post_create_inferior with 0 as
1620 from_tty.
1621
1622 * i386-cygwin-tdep.h: New.
1623 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1624 (win32_xfer_shared_library): Make it extern.
1625
1626 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1627 i386-cygwin-tdep.h.
1628 (win32_so_ops): Delete.
1629 (get_relocated_section_addrs): Delete.
1630 (solib_symbols_add): Delete.
1631 (register_loaded_dll): Delete.
1632 (win32_make_so): New.
1633 (handle_load_dll): Use win32_make_so.
1634 (win32_free_so): Free the passed in so.
1635 (win32_relocate_section_addresses): Delete.
1636 (win32_solib_create_inferior_hook): Delete.
1637 (handle_unload_dll): Don't add PE offset here. Free so with
1638 win32_free_so instead of free_so.
1639 (win32_special_symbol_handling): Delete.
1640 (get_win32_debug_event): Remove unneeded calls. Set state to
1641 TARGET_WAITKIND_LOADED on a dll unload.
1642 (do_initial_win32_stuff): Clear cygwin_load_start and
1643 cygwin_load_end.
1644 (map_code_section_args): Delete.
1645 (dll_code_sections_add): Delete.
1646 (core_section_load_dll_symbols): Delete.
1647 (win32_xfer_shared_libraries): New.
1648 (win32_current_sos): Delete.
1649 (win32_xfer_partial): New.
1650 (open_symbol_file_object): Delete.
1651 (in_dynsym_resolve_code): Delete.
1652 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1653 of win32_ops. Remove win32_so_ops settings. Don't set
1654 current_target_so_ops here.
1655
1656 * Makefile.in (i386_cygwin_tdep_h): New variable.
1657 (i386-cygwin-tdep.o): Update dependencies.
1658 (win32-nat.o): Update dependencies.
1659
1660 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1661 Daniel Jacobowitz <dan@codesourcery.com>
1662
1663 * gdbarch.sh (core_xfer_shared_libraries): New.
1664
1665 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1666
1667 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1668
1669 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1670 (xml_escape_text): New.
1671 * xml-support.h (xml_escape_text): Declare.
1672
1673 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1674 * config/i386/cygwin.mt (TDEPFILES): ... here.
1675
1676 * win32-nat.c: (fetch_elf_core_registers): Delete.
1677 (win32_elf_core_fn): Delete.
1678 (_initialize_core_win32): Delete.
1679
1680 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1681 "xml-support.h" and "gdbcore.h".
1682 (i386_win32_gregset_reg_offset): New.
1683 (I386_WIN32_SIZEOF_GREGSET): New.
1684 (i386_win32_regset_from_core_section): New.
1685 (win32_xfer_shared_library): New.
1686 (struct cpms_data): New.
1687 (core_process_module_section): New.
1688 (win32_core_xfer_shared_libraries): New.
1689 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1690 gregset_num_regs, sizeof_gregset members of tdep. Register
1691 regset_from_core_section and core_xfer_shared_libraries callbacks.
1692
1693 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1694 * gdbarch.h, gdbarch.c: Regenerate.
1695
1696 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1697
1698 * corelow.c (core_xfer_partial): Pass writebuf to
1699 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1700
1701 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1702
1703 * arm-tdep.h (arm_skip_stub): Declare.
1704 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1705 "gdbcore.h".
1706 (arm_pe_skip_trampoline_code): New function.
1707 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1708 gdbarch_skip_trampoline_code callback.
1709 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1710
1711 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1712
1713 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1714
1715 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1716
1717 * configure.ac: Add --with-expat.
1718 * configure: Regenerated.
1719
1720 2007-09-03 Andreas Schwab <schwab@suse.de>
1721
1722 * configure.ac: Accept --with-system-readline.
1723 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1724 * configure: Regenerate.
1725 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1726 substituted values.
1727 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1728
1729 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1730 Daniel Jacobowitz <dan@codesourcery.com>
1731
1732 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1733
1734 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1735
1736 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1737
1738 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1739
1740 * top.c (print_gdb_version): Update for GPL version 3.
1741
1742 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1743
1744 * NEWS: Mention the build-id .debug files verification.
1745
1746 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1747
1748 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1749
1750 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1751
1752 * Makefile.in (symfile.o): Update dependencies.
1753 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1754 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1755 (struct build_id): New structure.
1756 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1757 (find_separate_debug_file): New variable BUILD_ID.
1758 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1759
1760 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1761
1762 * varobj.c (struct varobj): Fix comment
1763 for the type member not to lie when it can be
1764 NULL.
1765
1766 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1767
1768 Implement -var-info-path-expression.
1769
1770 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1771 Declare.
1772 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1773 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1774 * varobj.c (struct varobj): New field 'path_expr'.
1775 (c_path_expr_of_child, cplus_path_expr_of_child)
1776 (java_path_expr_of_child): New.
1777 (struct language_specific): New field path_expr_of_child.
1778 (varobj_create): Initialize the path_expr field.
1779 (varobj_get_path_expr): New.
1780 (new_variable): Initialize the path_expr field.
1781 (free_variable): Free the path_expr field.
1782 (adjust_value_for_children_access): New parameter
1783 WAS_TYPE.
1784 (c_number_of_children): Adjust.
1785 (c_describe_child): New parameter CFULL_EXPRESSION.
1786 Compute full expression.
1787 (c_value_of_child, c_type_of_child): Adjust.
1788 (cplus_number_of_children): Adjust.
1789 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1790 Compute full expression.
1791 (cplus_name_of_child, cplus_value_of_child)
1792 (cplus_type_of_child): Adjust.
1793 * varobj.h (varobj_get_path_expr): Declare.
1794
1795 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1796
1797 * mi/mi-cmd-var.c (print_varobj): If a varobj
1798 type is NULL, don't try to print it.
1799
1800 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1801
1802 * ppc-linux-nat.c (right_fill_reg): Delete.
1803 (supply_gregset): Use ppc_supply_gregset.
1804 (supply_fpregset): Use ppc_supply_fpregset.
1805 (fill_gregset): Use ppc_collect_gregset.
1806 (fill_fpregset): Use ppc_collect_fpregset.
1807 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1808 (right_supply_register, ppc_linux_supply_gregset): Delete.
1809 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1810 (ppc_linux_supply_fpregset): Delete.
1811 (ppc_linux_collect_gregset): New function.
1812 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1813 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1814 ppc_linux_supply_gregset, and ppc_collect_gregset.
1815 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1816 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1817 (ppc_linux_regset_from_core_section): Update.
1818 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1819 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1820 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1821 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1822 (ppcobsd_collect_gregset): Likewise.
1823 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1824 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1825 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1826 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1827 (rs6000_aix64_reg_offsets): Likewise.
1828 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1829 ppc_floating_point_unit_p.
1830 (rs6000_aix_collect_regset): Similarly.
1831 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1832 when regsize is larger than regcache register size.
1833 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1834 regcache register size.
1835 (ppc_greg_offset): New function, split out from..
1836 (ppc_supply_gregset): ..here. Separate code handling all regs from
1837 single reg case. Correct xer offset.
1838 (ppc_fpreg_offset): New function, split out from..
1839 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1840 single reg case.
1841 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1842 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1843 a fp unit, instead return if no fp.
1844
1845 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1846
1847 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1848 this code has not been compiled for two years.
1849
1850 2007-08-29 Michael Snyder <msnyder@access-company.com>
1851
1852 * event-top.c (gdb_readline2): Return after EOF.
1853
1854 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1855
1856 * symtab.c: Remove a function that has been commented out 3 years ago.
1857
1858 2007-08-29 Randolph Chung <tausq@debian.org>
1859
1860 * hppa-tdep.c (hppa32_cannot_fetch_register)
1861 (hppa64_cannot_fetch_register): New functions.
1862 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1863 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1864
1865 2007-08-28 Michael Snyder <msnyder@access-company.com>
1866
1867 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1868 check for null before calling check_typedef.
1869
1870 * NEWS: Mention Coverity bug fixes.
1871
1872 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1873
1874 * spu-tdep.c (spu_pointer_to_address): New function.
1875 (spu_integer_to_address): Likewise.
1876 (spu_gdbarch_init): Add spu_pointer_to_address and
1877 spu_integer_to_address to gdbarch.
1878
1879 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1880
1881 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1882
1883 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1884
1885 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1886 that contains the GDB license.
1887 * copying.awk: Adjust to the GPLv3 wording.
1888 * copying.c: Regenerate.
1889
1890 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1891
1892 * copying.awk: Protoization, and i18n markup.
1893
1894 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1895
1896 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1897 * copyright.sh: Likewise.
1898 * gdb-events.sh: Likewise.
1899 * gdb_gcore.sh: Likewise.
1900 * gdb_mbuild.sh: Likewise.
1901 * gdbarch.sh: Likewise.
1902 * observer.sh: Likewise.
1903 * features/feature_to_c.sh: Likewise.
1904 * regformats/regdat.sh: Likewise.
1905
1906 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1907
1908 Switch the license of all .c files to GPLv3.
1909 Switch the license of all .h files to GPLv3.
1910 Switch the license of all .cc files to GPLv3.
1911
1912 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1913
1914 * configure.ac: Switch license to GPLv3.
1915
1916 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1917
1918 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1919 determine the file's FPU type.
1920
1921 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1922
1923 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1924 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1925 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1926
1927 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1928
1929 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1930 Fix formatting.
1931 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1932 (elf_lookup_lib_symbol): Fix formatting.
1933
1934 2007-08-21 Michael Snyder <msnyder@access-company.com>
1935
1936 * dbxread.c (read_dbx_symtab): Guard null deref.
1937 Break up long line.
1938
1939 * valops.c (find_overload_match): Guard against NULL.
1940
1941 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1942
1943 * MAINTAINERS (Patch Champions): Remove self.
1944
1945 2007-08-21 Chris Smith <chris.smith@st.com>
1946
1947 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1948 line.
1949
1950 2007-08-18 Michael Snyder <msnyder@access-company.com>
1951
1952 * stabsread.c (dbx_lookup_type): Memory leak.
1953
1954 * event-loop.c (delete_async_signal_handler): Move pointer null
1955 test to before pointer dereference.
1956
1957 * ui-out.c (append_header_to_list): Possible cut and paste error.
1958
1959 * MAINTAINERS: white space tweak.
1960
1961 2007-08-17 Michael Snyder <msnyder@access-company.com>
1962
1963 * stack.c (print_frame): Memory leak.
1964
1965 * completer.c (filename_completer): Avoid memory leak.
1966 Remove unnecessary nested block.
1967
1968 * c-exp.y (parse_number): Memory leak.
1969
1970 * completer.c (location_completer): Must free 'fn_list', except
1971 in the one case where it is returned (as 'list').
1972
1973 * varobj.c (value_of_root): Memory leak.
1974
1975 * gdbtypes.h (virtual_base_list): Remove export decl.
1976 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1977 (virtual_base_index): Memory leak.
1978 (virtual_base_index_skip_primaries): Ditto.
1979
1980 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1981
1982 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1983 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1984 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1985 (xtensa_read_register): New function.
1986 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1987 (xtensa_insn_kind): New types.
1988 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1989 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1990 (xtensa_verify_config, xtensa_pseudo_register_read)
1991 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1992 (xtensa_store_return_value)
1993 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1994 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1995 (xtensa_frame_this_id, xtensa_frame_prev_register)
1996 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1997 (call0_frame_cache, call0_frame_get_reg_at_entry)
1998 (call0_classify_opcode, call0_track_op)
1999 (call0_analyze_prologue, call0_frame_cache): New functions.
2000
2001 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
2002
2003 * breakpoint.c (bpstat_free): New.
2004 (bpstat_clear): Use bpstat_free.
2005 (delete_breakpoint): Document why we cannot
2006 remove bpstats from stop_bpstat.
2007 * breakpoint.h (bpstat_free): Declare.
2008
2009 2007-08-16 Michael Snyder <msnyder@access-company.com>
2010
2011 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
2012
2013 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
2014 Joel Brobecker <brobecker@adacore.com>
2015
2016 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
2017
2018 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
2019 Joel Brobecker <brobecker@adacore.com>
2020
2021 * ada-lang.c (possible_user_operator_p): Alternative fix to last
2022 checkin guarding against NULL.
2023
2024 2007-08-14 Michael Snyder <msnyder@access-company.com>
2025
2026 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
2027 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
2028 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
2029 go at beginning of new line.
2030
2031 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
2032 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
2033 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
2034 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
2035 tui-winsource.h, tui.c, tui.h: Function declarations and
2036 definitions, wrap long lines.
2037
2038 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
2039 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
2040 Reformat block comments to GNU standard.
2041
2042 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
2043 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
2044 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
2045 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
2046 tui.c, tui.h: Comment reformatting to coding standard (capitals,
2047 spaces after periods, etc).
2048
2049 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
2050 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
2051 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
2052 tui-winsource.h: Whitespace changes, fix pointer declarations
2053 to be consistant.
2054
2055 2007-08-14 Joel Brobecker <brobecker@adacore.com>
2056 Michael Snyder <msnyder@access-company.com>
2057
2058 * ada-lang.c (field_alignment): Guard against NULL.
2059
2060 2007-08-14 Joel Brobecker <brobecker@adacore.com>
2061
2062 * MAINTAINERS (Global Maintainers): Add self.
2063
2064 2007-08-14 Michael Snyder <msnyder@access-company.com>
2065
2066 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
2067
2068 * ada-lang.c (possible_user_operator_p): Guard against NULL.
2069
2070 * varobj.c (cplus_describe_child): Guard against null.
2071 Use "NULL" instead of "0" to initialize pointers.
2072
2073 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
2074
2075 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
2076 to match any gdbarch with matching OSABI. Set default ABI and FPU
2077 after running the OSABI handler.
2078
2079 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
2080
2081 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
2082 * config/i386/linux.mt (TDEPFILES): ...to here.
2083
2084 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2085
2086 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
2087 the 'silent' parameter and code to implement that.
2088 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
2089 prototype.
2090 * win32-nat.c: Adjust.
2091 * solib.c: Adjust.
2092
2093 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2094
2095 * breakpoint.c (update_breakpoints_after_exec): Don't
2096 set address to zero.
2097
2098 2007-08-13 Michael Snyder <msnyder@access-company.com>
2099
2100 * valops.c: Whitespace clean-up.
2101
2102 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
2103
2104 * event-top.c (command_line_handler): Memory leak.
2105
2106 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
2107 No need to make copy.
2108
2109 * source.c (find_source_lines): Require symtab 's'.
2110
2111 2007-08-11 Michael Snyder <msnyder@access-company.com>
2112
2113 * completer.c: Spelling fix in comments.
2114
2115 2007-08-10 Michael Snyder <msnyder@access-company.com>
2116
2117 * gdbtypes.c: Coding standard cleanup.
2118 * gdbtypes.c: Comment/whitespace cleanup.
2119
2120 * stabsread.c (read_huge_number): Attempt to compute value before
2121 values that it depends on.
2122
2123 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
2124 (decode_objc): Use "NULL" instead of 0.
2125 (find_method): Ditto.
2126 (decode_all_digits): Ditto.
2127 (decode_dollar): Ditto.
2128
2129 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
2130
2131 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
2132
2133 * solib-svr4.c (enable_break): Don't free tmp_pathname until
2134 after closing bfd.
2135
2136 * completer.c: Comment/whitespace cleanup.
2137
2138 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2139
2140 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
2141
2142 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
2143
2144 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
2145 allocated file descriptors.
2146
2147 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2148
2149 * Makefile.in: Minor cleanup throughout; add some missing variables,
2150 add some missing rules, remove some rules that are no longer needed,
2151 and fix the dependencies in several rules.
2152
2153 2007-08-10 Ludovic Courtès <ludo@gnu.org>
2154
2155 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
2156 (scm_lang_h, scm_tags_h): New.
2157 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
2158 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
2159 * defs.h (enum language): Add `language_scm'.
2160
2161 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
2162 opening.
2163
2164 2007-08-09 Ludovic Courtès <ludo@gnu.org>
2165
2166 * MAINTAINERS (Write After Approval): Add myself.
2167
2168 2007-08-09 Michael Snyder <msnyder@access-company.com>
2169
2170 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
2171
2172 2007-08-09 Joel Brobecker <brobecker@adacore.com>
2173
2174 * solib-som.c (som_relocate_section_addresses): Stop saving
2175 the $CODE$ section in the so_list structure.
2176
2177 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
2178
2179 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
2180 (xtensa_register_group_t): Add entries for coprocessors.
2181 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
2182 (xtensa_add_reggroups): Likewise.
2183 (xtensa_register_reggroup_p): Likewise.
2184 (xtensa_coprocessor_register_group): New function.
2185 (xtensa_cp): New.
2186
2187 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2188
2189 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
2190
2191 2007-08-08 Michael Snyder <msnyder@access-company.com>
2192
2193 * target.c (target_read_string): Guard against null.
2194
2195 * varobj.c (value_of_root): Move alloc after return to avoid leak.
2196
2197 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
2198 (tui_set_layout_for_display_command): Mem leak.
2199
2200 * top.c (command_line_input): Memory leak.
2201
2202 * solib-svr4.c (open_symbol_file_object): Memory leak.
2203 (svr4_current_sos): Ditto.
2204 (enable_break): Ditto.
2205
2206 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
2207
2208 * dwarf2read.c (add_partial_symbol): Memory leak.
2209
2210 2007-08-06 Michael Snyder <msnyder@access-company.com>
2211
2212 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
2213
2214 2007-08-05 Jim Blandy <jimb@codesourcery.com>
2215
2216 * macroexp.c (init_buffer): Remove testing code that overrides the
2217 caller's length guess.
2218 (gather_arguments): Use a larger initial size, now that the vector
2219 growth code has been exercised.
2220
2221 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
2222
2223 * solib-target.c (solib_target_relocate_section_addresses): Add
2224 orig_delta to addr_high.
2225
2226 2007-08-04 Michael Snyder <msnyder@access-company.com>
2227
2228 * remote-fileio.c (remote_fileio_func_write): Memory leak.
2229
2230 * breakpoint.c (print_one_breakpoint): Off by one error.
2231
2232 * tracepoint.c (add_register): Off by one error.
2233 (stringify_collection_list): Free malloc buffer.
2234
2235 2007-08-03 Michael Snyder <msnyder@access-company.com>
2236
2237 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
2238 stop memory leak, straighten out cleanups.
2239
2240 * jv-lang.c (java_link_class_type): Guard against NULL.
2241
2242 2007-08-02 Michael Snyder <msnyder@access-company.com>
2243
2244 * gdbtypes.c (create_set_type): Test should only be done within
2245 the preceeding if block. Otherwise, variable is uninitialized.
2246
2247 * gdbtypes.c (check_typedef): Guard NULL.
2248
2249 2007-08-01 Michael Snyder <msnyder@access-company.com>
2250
2251 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
2252 avoid dereference in lookup_cmd_1.
2253
2254 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
2255 clean up long lines.
2256 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
2257 (tui_alloc_win_info): Ditto.
2258 (tui_add_content_elements): Ditto.
2259 * tui/tui-file.c (tui_file_magic): Ditto.
2260
2261 2007-07-31 Michael Snyder <msnyder@access-company.com>
2262
2263 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
2264 True and false paths are mutually exclusive.
2265
2266 * event-top.c (command_line_handler): Add pedantic return.
2267
2268 * f-valprint.c (info_common_command): Bail out to prevent null
2269 pointer deref. Break up a long line.
2270
2271 * exec.c (xfer_memory): Remove redundant condition from 'if'.
2272
2273 * symfile.c (reread_separate_symbols): Free xmalloced memory.
2274
2275 * printcmd.c (build_address_symbolic): Remove dead code and dead
2276 variable.
2277
2278 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
2279
2280 * linespec.c (minsym_found): Advance to the next line if possible.
2281
2282 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
2283
2284 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
2285 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
2286 solib-svr4.o, and add solib-target.o
2287
2288 2007-07-27 Michael Snyder <msnyder@access-company.com>
2289
2290 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2291
2292 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
2293
2294 * MAINTAINERS (Write After Approval): Add myself.
2295
2296 2007-07-26 Maciej W. Rozycki <macro@mips.com>
2297
2298 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
2299 for include files.
2300
2301 2007-07-25 Maciej W. Rozycki <macro@mips.com>
2302
2303 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2304
2305 2007-07-24 Michael Snyder <msnyder@access-company.com>
2306
2307 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2308 'buffer' must cover both branches that call strcmp (Coverity).
2309
2310 * stack.c (print_frame_args): Check return value of lookup_symbol.
2311
2312 * ax-gdb.c (find_field): Guard against null ptr.
2313
2314 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2315
2316 * regformats/reg-spu.dat: Fix order of npc, id registers.
2317
2318 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2319
2320 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2321 sections should always go to the executable file.
2322
2323 2004-07-20 Chris Dearman <chris@mips.com>
2324
2325 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2326 prologue instructions.
2327
2328 2007-07-20 Maciej W. Rozycki <macro@mips.com>
2329
2330 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2331 a direct test.
2332
2333 2007-07-20 Chris Dearman <chris@mips.com>
2334 Maciej W. Rozycki <macro@mips.com>
2335
2336 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2337 description.
2338
2339 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2340 Daniel Jacobowitz <dan@codesourcery.com>
2341
2342 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2343 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2344 printf.
2345 * NEWS: Mention gdbserver DLL support.
2346
2347 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2348
2349 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2350
2351 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2352
2353 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2354 warning bug.
2355
2356 2007-07-13 Kevin Buettner <kevinb@redhat.com>
2357
2358 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2359 instruction case.
2360
2361 2007-07-12 Kevin Buettner <kevinb@redhat.com>
2362
2363 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2364 (mep_analyze_prologue): Add case for BRA instruction.
2365
2366 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2367
2368 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2369
2370 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
2371
2372 * breakpoint.c: Include "top.h".
2373 (breakpoint_1): Don't set convenience variable $_ if server prefix
2374 is used.
2375 (_initialize_breakpoint): Describe this behaviour in command help.
2376
2377 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2378
2379 * solib-target.c (library_list_start_segment): Cast address to
2380 CORE_ADDR.
2381
2382 2007-07-06 Mark Kettenis <kettenis@gnu.org>
2383
2384 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2385 for terminated processes.
2386
2387 2007-07-05 Michael Snyder <msnyder@access-company.com>
2388
2389 * event-top.c (cli_command_loop): Prompt string can (and should)
2390 be freed after call to readline (Coverity). Also move local var
2391 declarations into block where they are used.
2392
2393 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2394 should) be freed after call to readline (Coverity). Also move
2395 local var declarations into block where they are used.
2396
2397 2007-07-03 Andreas Schwab <schwab@suse.de>
2398
2399 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2400 /proc/../stat.
2401
2402 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2403 Thiago Bauermann <bauerman@br.ibm.com>
2404 Joseph S. Myers <joseph@codesourcery.com>
2405 Daniel Jacobowitz <dan@codesourcery.com>
2406
2407 * remote.c (remote_check_symbols): Use
2408 gdbarch_convert_from_func_ptr_addr.
2409 * infcall.c (find_function_addr): Handle function descriptors
2410 without debugging information.
2411 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2412 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2413 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2414 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2415 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2416 allow SEC_CODE and SEC_DATA.
2417 (enable_break): Update calls. Pass current_target to solib_add.
2418 Use gdbarch_convert_from_func_ptr_addr.
2419
2420 2007-07-03 Ilko Iliev <iliev@ronetix.at>
2421 Daniel Jacobowitz <dan@codesourcery.com>
2422
2423 * symfile.c (print_transfer_performance): Avoid integer overflow.
2424 Use larger units.
2425
2426 2007-07-03 Markus Deuling <deuling@de.ibm.com>
2427
2428 * cp-namespace.c (lookup_symbol_file): Add block to
2429 lookup_symbol_global call.
2430 * Makefile.in (solist_h): Add dependency on symtab header.
2431 (symtab.o): Add dependency on solist header.
2432 * solib.c (solib_global_lookup): New function.
2433 * solib-svr4.c (scan_dyntag): Likewise.
2434 (elf_locate_base): Call helper routine scan_dyntag.
2435 (elf_lookup_lib_symbol): New function.
2436 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2437 * solist.h (symtab.h): New include.
2438 (struct target_so_ops): New member lookup_lib_global_symbol.
2439 (solib_global_lookup): New prototype.
2440 * symtab.c: New include solist.h.
2441 (lookup_objfile_from_block): New function.
2442 (lookup_global_symbol_from_objfile): New function.
2443 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2444 (lookup_symbol_global): Call library-specific lookup procedure.
2445 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2446
2447 * NEWS: Document framework.
2448
2449 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2450
2451 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2452 to NULL.
2453
2454 * cli/cli-script.c (build_command_line): Update NULL check.
2455
2456 2007-07-02 Michael Snyder <msnyder@access-company.com>
2457
2458 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2459
2460 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2461
2462 * Makefile.in (XMLFILES): Add library-list.dtd.
2463 (ALLDEPFILES): Add solib-target.o.
2464 (solib-target.o): New rule.
2465 * remote.c (PACKET_qXfer_libraries): New constant.
2466 (remote_protocol_features): Add qXfer:libraries:read.
2467 (remote_wait): Recognize library stop replies.
2468 (remote_async_wait): Likewise. Fix typo.
2469 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2470 (init_remote_async_ops): Fix typo.
2471 (_initialize_remote): Register "set remote library-info-packet".
2472 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2473 * solib-target.c: New file.
2474 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2475 of textsection.
2476 (info_sharedlibrary_command): Likewise.
2477 (solib_add_library, solib_remove_library): New.
2478 * solist.h (struct so_list): Replace textsection with addr_low and
2479 addr_high.
2480 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2481 * NEWS: Describe new qXfer:libraries:read and shared library
2482 event support.
2483 * features/library-list.dtd: New.
2484
2485 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2486
2487 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2488 (start_remote): Use STOP_QUIETLY_REMOTE.
2489 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2490 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2491 Update to match shared library event breakpoint support. Only
2492 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2493 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2494 * fork-child.c (startup_inferior): Do not set
2495 inferior_ignoring_startup_exec_events
2496 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2497 declaration.
2498 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2499
2500 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2501
2502 * breakpoint.c (insert_bp_location): Remove dead code
2503 (DISABLE_UNSETTABLE_BREAK).
2504 (disable_breakpoints_in_shlibs)
2505 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2506
2507 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2508
2509 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2510 Call insert_bp_location.
2511
2512 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2513
2514 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2515 alias warning bug.
2516
2517 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2518
2519 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2520 objfiles.
2521
2522 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2523
2524 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2525 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2526 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2527 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2528 to display_gdb_prompt.
2529
2530 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2531
2532 PR symtab/2161
2533 * target.c (memory_xfer_partial): Do not continue past targets with
2534 all memory.
2535
2536 2007-06-30 Andreas Schwab <schwab@suse.de>
2537
2538 * m68k-tdep.c (m68k_ps_type): New.
2539 (m68k_init_types): New.
2540 (m68k_register_type): Use m68k_ps_type for PS register.
2541 (_initialize_m68k_tdep): Call m68k_init_types.
2542
2543 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2544 from the generic m68k arch.
2545
2546 2007-06-28 Michael Snyder <msnyder@access-company.com>
2547
2548 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2549 (Coverity).
2550
2551 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2552 gdb_assert before using return value of find_thread_pid (Coverity).
2553
2554 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2555
2556 * cli/cli-script.c (build_command_line): Add null pointer guard
2557 (Coverity).
2558
2559 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2560
2561 * linux-thread-db.c (thread_db_attach): Delete.
2562 (thread_db_detach): Typo fix. Call target_mourn_inferior
2563 instead of fixing up proc_handle.
2564 (have_threads_callback, have_threads): New functions.
2565 (thread_db_wait): Remove dead proc_handle.pid check. Only
2566 translate PTIDs if we have registered threads. Check for new
2567 threads if we have none.
2568 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2569 (find_new_threads_callback): Only enable event reporting if TID == 0.
2570 (same_ptid_callback): New.
2571 (thread_db_get_thread_local_address): Check for new threads.
2572 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2573 or to_post_startup_inferior.
2574
2575 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2576
2577 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2578 is always active if SOFTWARE_SINGLE_STEP_P is true.
2579 (resume): Use gdbarch_software_single_step[_p] instead of
2580 SOFTWARE_SINGLE_STEP[_P].
2581 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2582
2583 * gdbarch.sh (software_single_step): Remove target macro.
2584 * gdbarch.h, gdbarch.c: Regenerate.
2585
2586 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2587
2588 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2589 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2590 (struct gdbarch_swap, struct gdbarch_swap_registration,
2591 struct gdbarch_swap_registry, gdbarch_swap_registry,
2592 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2593 current_gdbarch_swap_in_hack): Remove.
2594 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2595 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2596 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2597 (deprecated_current_gdbarch_select_hack): Likewise.
2598 * gdbarch.h, gdbarch.c: Regenerate.
2599
2600 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2601
2602 * infrun.c (clear_proceed_status): Clean up stop_registers.
2603 (normal_stop): Allocate regcache for stop_registers.
2604 (struct inferior_status): Remove stop_registers member.
2605 (save_inferior_status): Do not save stop_registers.
2606 (restore_inferior_status): Do not restore stop_registers.
2607 (discard_inferior_status): Do not discard stop_registers.
2608 (build_infrun): Remove.
2609 (_initialize_infrun): Do not swap stop_registers.
2610
2611 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2612
2613 * remote.c (remote_address_masked): If remote_address_size is zero,
2614 default to target address size.
2615 (build_remote_gdbarch_data): Remove.
2616 (_initialize_remote): Do not swap remote_address_size.
2617
2618 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2619
2620 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2621 builtin_type_char, builtin_type_short, builtin_type_int,
2622 builtin_type_long, builtin_type_signed_char,
2623 builtin_type_unsigned_char, builtin_type_unsigned_short,
2624 builtin_type_unsigned_int, builtin_type_unsigned_long,
2625 builtin_type_float, builtin_type_double, builtin_type_long_double,
2626 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2627 builtin_type_bool, builtin_type_long_long,
2628 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2629 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2630 variable declaration with compatibility macro.
2631 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2632 builtin_type_char, builtin_type_short, builtin_type_int,
2633 builtin_type_long, builtin_type_signed_char,
2634 builtin_type_unsigned_char, builtin_type_unsigned_short,
2635 builtin_type_unsigned_int, builtin_type_unsigned_long,
2636 builtin_type_float, builtin_type_double, builtin_type_long_double,
2637 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2638 builtin_type_bool, builtin_type_long_long,
2639 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2640 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2641 (build_gdbtypes): Remove.
2642 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2643 opaque-type-resolution command here. Do not call
2644 deprecated_register_gdbarch_swap.
2645
2646 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2647
2648 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2649 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2650 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2651
2652 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2653 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2654 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2655 (build_parse): Remove.
2656 (_initialize_parse): Do not call build_parse. Do not register
2657 msym_ types for gdbarch-swapping.
2658
2659 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2660 instead of creating private type.
2661
2662 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2663 (_initialize_xcoffread): Do not initialized them.
2664 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2665
2666 * mdebugread.c (nodebug_func_symbol_type): Remove.
2667 (nodebug_var_symbol_type): Remove.
2668 (_initialize_mdebugread): Do not initialize them.
2669 (parse_symbol): Use builtin nodebug_ type instead of them.
2670 (parse_procedure): Likewise.
2671
2672 2007-06-21 Chris Dearman <chris@mips.com>
2673
2674 * printcmd.c (do_one_display): If display/i, start with an initial
2675 line feed to avoid bad layout if there is a branch delay slot.
2676
2677 2007-06-21 Nigel Stephens <nigel@mips.com>
2678 Maciej W. Rozycki <macro@mips.com>
2679
2680 * disasm.c (gdb_print_insn): Return the number of branch delay
2681 slot instructions too.
2682 * disasm.h (gdb_print_insn): Update prototype.
2683 * printcmd.c (branch_delay_insns): New variable to record the
2684 number of delay slot instructions after disassembling a branch.
2685 (print_formatted): Record the number of branch delay slot
2686 instructions.
2687 (do_examine): When disassembling, if the last instruction
2688 disassembled has any branch delay slots, then bump the count so
2689 that they get disassembled too.
2690 * tui/tui-disasm.c (tui_disassemble): Update the call to
2691 gdb_print_insn().
2692 * NEWS: Document the new behaviour.
2693
2694 2007-06-21 Andreas Schwab <schwab@suse.de>
2695
2696 * regcache.c (write_pc_pid): Restore missing else.
2697
2698 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2699
2700 * regcache.c (regcache_print): Use get_current_regcache ()
2701 instead of current_regcache.
2702
2703 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2704
2705 PR 4606
2706 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2707 instead of bfd_make_section_anyway.
2708 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2709 when clearing SEC_LOAD.
2710
2711 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2712
2713 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2714 registers for big-endian.
2715
2716 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2717
2718 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2719 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2720 * gdbarch.c, gdbarch.h: Regenerate.
2721
2722 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2723
2724 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2725 gdbarch_believe_pcc_promotion.
2726 * stabsread.c (define_symbol): Likewise.
2727 Remove unnecessary definition.
2728 * coffread.c (process_coff_symbol): Remove unnecessary code.
2729 * gdbarch.c, gdbarch.h: Regenerate.
2730
2731 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2732
2733 * configure.ac: Do not use ${objdir}.
2734 * configure: Regenerated.
2735
2736 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2737
2738 * gdbarch.sh (deprecated_register_size): Remove.
2739 * gdbarch.h, gdbarch.c: Regenerate.
2740
2741 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2742 by INT_REGISTER_SIZE.
2743 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2744 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2745 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2746 set_gdbarch_deprecated_register_size.
2747
2748 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2749
2750 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2751 gdbarch_deprecated_fp_regnum.
2752 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2753 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2754 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2755 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2756 (comment).
2757 * gdbarch.c, gdbarch.h: Regenerate.
2758
2759 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2760
2761 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2762 gdbarch_extract_return_value.
2763 * value.c (generic_use_struct_convention): Likewise (comment).
2764 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2765 * arch-utils.c (legacy_return_value): Likewise.
2766 * arch-utils.h (legacy_return_value): Likewise (comment).
2767 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2768 gdbarch_store_return_value.
2769 * stack.c (return_command): Likewise (comment).
2770 * arch-utils.h (legacy_return_value): Likewise (comment).
2771 * arch-utils.c (legacy_return_value): Likewise.
2772 * gdbarch.c, gdbarch.h: Regenerate.
2773
2774 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2775
2776 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2777 gdbarch_deprecated_use_struct_convention.
2778 * arch-utils.c (legacy_return_value): Likewise.
2779 * gdbarch.c, gdbarch.h: Regenerate.
2780
2781 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2782
2783 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2784 gdbarch_deprecated_function_start_offset.
2785 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2786 * linespec.c (minsym_found): Likewise.
2787 * infrun.c (handle_inferior_event): Likewise.
2788 * infcall.c (find_function_addr): Likewise.
2789 * cli/cli-cmds.c (disassemble_command): Likewise.
2790 * gdbarch.c, gdbarch.h: Regenerate.
2791
2792 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2793
2794 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2795 gdbarch_deprecated_reg_struct_has_addr.
2796 * infcall.c (call_function_by_hand): Likewise.
2797 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2798 * gdbarch_deprecated_reg_struct_has_addr_p.
2799 * infcall.c (call_function_by_hand): Likewise.
2800 * gdbarch.c, gdbarch.h: Regenerate.
2801
2802 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2803
2804 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2805 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2806 (sh_gdbarch_init): Remove
2807 set_gdbarch_deprecated_extract_struct_value_address.
2808 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2809 (sh64_gdbarch_init): Remove
2810 set_gdbarch_deprecated_extract_struct_value_address.
2811 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2812 (ia64_gdbarch_init): Remove
2813 set_gdbarch_deprecated_extract_struct_value_address.
2814 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2815 (frv_gdbarch_init): Remove
2816 set_gdbarch_deprecated_extract_struct_value_address.
2817 * gdbarch.c, gdbarch.h: Regenerate.
2818
2819 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2820
2821 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2822 * v850-tdep.c (v850_unwind_sp): Likewise.
2823 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2824 * stack.c (frame_info): Likewise.
2825 * stabsread.c (define_symbol): Likewise.
2826 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2827 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2828 (sh_unwind_sp): Likewise.
2829 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2830 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2831 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2832 (rs6000_frame_cache): Likewise.
2833 * rs6000-nat.c (store_register): Likewise.
2834 * remote-mips.c (mips_wait): Likewise.
2835 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2836 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2837 (ppc64_sysv_abi_push_dummy_call): Likewise.
2838 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2839 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2840 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2841 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2842 * m32r-rom.c (m32r_supply_register): Likewise.
2843 * frame.c (frame_sp_unwind): Likewise.
2844 * mips-tdep.c (mips_insn16_frame_cache)
2845 (mips_insn32_frame_cache): Likewise (comment).
2846 * m68klinux-nat.c (supply_gregset): Likewise.
2847 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2848 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2849 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2850 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2851 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2852 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2853 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2854 (cris_register_type, crisv32_register_type)
2855 (cris_dwarf2_frame_init_reg): Likewise.
2856 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2857 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2858 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2859 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2860
2861 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2862 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2863 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2864 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2865 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2866 * v850-tdep.c (v850_unwind_pc): Likewise.
2867 * stack.c (frame_info): Likewise.
2868 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2869 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2870 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2871 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2872 (sh_dsp_show_regs): Likewise.
2873 * shnbsd-tdep.c (shnbsd_supply_gregset)
2874 (shnbsd_collect_gregset): Likewise.
2875 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2876 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2877 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2878 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2879 (6000_register_reggroup_p, rs6000_unwind_pc)
2880 (rs6000_frame_cache): Likewise.
2881 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2882 (rs6000_store_inferior_registers): Likewise.
2883 * remote-mips.c (mips_wait, mips_load): Likewise.
2884 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2885 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2886 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2887 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2888 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2889 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2890 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2891 (store_ppc_registers, fill_gregset): Likewise.
2892 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2893 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2894 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2895 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2896 * m68klinux-nat.c (supply_gregset): Likewise.
2897 * irix5-nat.c (fill_gregset): Likewise.
2898 * i386-tdep.c (i386_unwind_pc): Likewise.
2899 * i386-linux-nat.c (i386_linux_resume): Likewise.
2900 * frame.c (get_prev_frame_1): Likewise.
2901 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2902 * dbug-rom.c (dbug_supply_register): Likewise.
2903 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2904 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2905 (cris_register_type, crisv32_register_type, crisv32_register_name)
2906 (cris_dwarf2_frame_init_reg, find_step_target)
2907 (cris_software_single_step, cris_supply_gregset)
2908 (cris_regnums): Likewise.
2909 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2910 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2911 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2912 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2913 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2914
2915 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2916 * dbug-rom.c (dbug_supply_register): Likewise.
2917 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2918 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2919 * win32-nat.c (win32_resume): Likewise.
2920 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2921 * m68k-tdep.c (m68k_register_type): Likewise.
2922 * m68klinux-nat.c (supply_gregset): Likewise.
2923
2924 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2925 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2926 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2927 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2928 (fv_reg_base_num, dr_reg_base_num): Likewise.
2929 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2930 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2931 (sh64_extract_return_value, sh64_store_return_value)
2932 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2933 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2934 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2935 (invalidate_cache): Likewise.
2936 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2937 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2938 (mipsnbsd_fill_fpreg): Likewise.
2939 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2940 (mipsnbsd_store_inferior_registers): Likewise.
2941 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2942 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2943 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2944 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2945 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2946 (fill_fpregset): Likewise.
2947 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2948 * i386-tdep.h (struct_return): Likewise (comment).
2949 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2950 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2951 (go32_store_registers): Likewise.
2952 * alpha-tdep.c (alpha_next_pc): Likewise.
2953 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2954 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2955 (alphabsd_store_inferior_registers): Likewise.
2956 * core-regset.c (fetch_core_registers): Likewise.
2957 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2958
2959 * gdbarch.c, gdbarch.h: Regenerate.
2960
2961 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2962
2963 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2964 * dbxread.c (start_psymtab): Check HAVE_ELF.
2965 (aout_sym_fns): Likewise.
2966 * elfread.c (elf_symfile_segments): New.
2967 (elf_sym_fns): Add elf_symfile_segments.
2968 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2969 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2970 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2971 * somread.c (som_sym_fns): Use default_symfile_segments.
2972 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2973 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2974 (default_symfile_segments): New function.
2975 (syms_from_objfile): Update call to find_sym_fns.
2976 (symfile_get_segment_data, free_symfile_segment_data): New.
2977 (symfile_map_offsets_to_segments): New.
2978 (symfile_find_segment_sections): New.
2979 * symfile.h (struct symfile_segment_data): New.
2980 (struct sym_fns): Add sym_segments.
2981 (default_symfile_segments, symfile_get_segment_data)
2982 (free_symfile_segment_data): New prototypes.
2983 (symfile_map_offsets_to_segments): Likewise.
2984 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2985 * Makefile.in (COMMON_OBS): Remove elfread.o.
2986 (elf_internal_h): New.
2987 (elfread.o): Update.
2988 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2989 compiled.
2990 * config.in, configure: Regenerated.
2991 * NEWS: Mention qOffsets changes.
2992
2993 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2994
2995 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2996 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2997 Replace global variable declaration with compatibility macro.
2998 (struct builtin_m2_type): New data type.
2999 (builtin_m2_type): Add prototype.
3000 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
3001 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
3002 Remove global variables.
3003 (m2_language_arch_info): Use builtin_m2_type instead of variables.
3004 (build_m2_types): New function.
3005 (m2_type_data): New variable.
3006 (builtin_m2_type): New function.
3007 (_initialize_m2_language): Do not build data types. Register
3008 m2_type_data per-gdbarch data.
3009
3010 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3011
3012 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
3013 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
3014 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
3015 builtin_type_f_real_s8, builtin_type_f_real_s16,
3016 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3017 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
3018 variable declaration with compatibility macro.
3019 (struct builtin_f_type): New data type.
3020 (builtin_f_type): Add prototype.
3021 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
3022 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
3023 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
3024 builtin_type_f_real_s8, builtin_type_f_real_s16,
3025 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3026 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
3027 (f_language_arch_info): Use builtin_f_type instead of variables.
3028 (build_fortran_types): Build builtin_f_type structure instead of
3029 setting global type variables.
3030 (f_type_data): New variable.
3031 (builtin_f_type): New function.
3032 (_initialize_f_language): Do not call build_fortran_types. Do not
3033 swap global type variables. Register f_type_data per-gdbarch data.
3034
3035 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3036
3037 * f-lang.c (_initialize_f_language): Do not initialize or
3038 swap builtin_type_string.
3039
3040 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3041
3042 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
3043 value_of_builtin_frame_reg): Remove.
3044 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
3045 inactive call to value_of_builtin_frame_reg.
3046
3047 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3048
3049 * gdbarch.sh (bfd_vma_bit): Remove.
3050 * gdbarch.c, gdbarch.h: Regenerate.
3051
3052 * gdbtypes.h (builtin_bfd_vma_type): Remove.
3053 * gdbtypes.h (builtin_bfd_vma_type): Remove.
3054 (build_gdbtypes): Do not initialize it.
3055 (_initialize_gdbtypes): Do not swap it.
3056
3057 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3058
3059 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
3060 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3061 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3062 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3063 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
3064 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
3065 builtin_type_vec64, builtin_type_vec128): Remove.
3066 (init_simd_type): Remove.
3067 (init_vector_type): Make global.
3068 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
3069 (build_gdbtypes): Do not build vector types.
3070 (_initialize_gdbtypes): Do not swap vector types.
3071 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
3072 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3073 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3074 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3075 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
3076 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
3077 builtin_type_vec64, builtin_type_vec128): Remove declarations.
3078 (init_vector_type): Add prototype.
3079
3080 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
3081 i386_sse_type members.
3082 (i386_mmx_type, i386_sse_type): Change from variables to functions.
3083 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
3084 (i386_init_types): Do not build vector types.
3085 (i386_mmx_type, i386_sse_type): New functions.
3086 (i386_register_type): Call them instead of using global variables.
3087 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
3088 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
3089 of using global variable.
3090
3091 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
3092 and ppc_builtin_type_vec128 members.
3093 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
3094 (rs6000_builtin_type_vec128): Likewise.
3095 (rs6000_register_type): Call them instead of using builtin_type_vec64
3096 and builtin_type_vec128.
3097 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
3098
3099 * spu-tdep.c (struct gdbarch_tdep): New data type.
3100 (spu_builtin_type_vec128): Remove variable.
3101 (spu_builtin_type_vec128): New function.
3102 (spu_register_type): Call it instead of using global variable.
3103 (spu_gdbarch_init): Allocate tdep structure.
3104 (spu_init_vector_type): Remove function.
3105 (_initialize_spu_tdep): Do not call it.
3106
3107 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3108
3109 * amd64-tdep.c (struct amd64_register_info): Remove.
3110 (amd64_register_info): Remove.
3111 (amd64_register_names): New static variable.
3112 (AMD64_NUM_REGS): Use amd64_register_names instead of
3113 amd64_register_info.
3114 (amd64_register_name): Likewise.
3115 (amd64_register_type): Do not refer to amd64_register_info.
3116
3117 * s390-tdep.c (struct s390_register_info): Remove.
3118 (s390_register_info): Remove.
3119 (s390_register_name): Do not refer to s390_register_info.
3120 (s390_register_type): Likewise.
3121
3122 * sparc64-tdep.c (struct sparc64_register_info): Remove.
3123 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
3124 (sparc64_register_names, sparc64_pseudo_register_names): New.
3125 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
3126 sparc64_register_names and sparc64_pseudo_register_names instead of
3127 sparc64_register_info and sparc64_pseudo_register_info.
3128 (sparc64_register_name): Likewise.
3129 (sparc64_register_type): Do not refer to sparc64_register_info
3130 and sparc64_pseudo_register_info.
3131
3132 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3133
3134 * c-lang.c (cplus_builtin_types): Remove.
3135 (enum cplus_primitive_types): New data type.
3136 (cplus_language_arch_info): New function.
3137 (cplus_language_defn): Set la_language_arch_info member. Do not set
3138 la_builtin_type_vector and string_char_type members.
3139
3140 * f-lang.c (f_builtin_types): Remove.
3141 (enum f_primitive_types): New data type.
3142 (f_language_arch_info): New function.
3143 (f_language_de): Set la_language_arch_info member. Do not set
3144 la_builtin_type_vector and string_char_type members.
3145
3146 * m2-lang.c (m2_builtin_types): Remove.
3147 (enum m2_primitive_types): New data type.
3148 (m2_language_arch_info): New function.
3149 (m2_language_defn): Set la_language_arch_info member. Do not set
3150 la_builtin_type_vector and string_char_type members.
3151
3152 * objc-lang.c (objc_builtin_types): Remove.
3153 (objc_language): Set la_language_arch_info member. Do not set
3154 la_builtin_type_vector and string_char_type members.
3155
3156 * p-lang.c (pascal_builtin_types): Remove.
3157 (enum pascal_primitive_types): New data type.
3158 (pascal_language_arch_info): New function.
3159 (pascal_language_defn): Set la_language_arch_info member. Do not set
3160 la_builtin_type_vector and string_char_type members.
3161
3162 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3163
3164 * regcache.c (struct regcache): Add ptid_t member.
3165 (regcache_xmalloc): Initialize it.
3166 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
3167 (regcache_dup): Likewise.
3168 (regcache_dup_no_passthrough): Likewise.
3169 (current_regcache): Make static.
3170 (registers_ptid): Remove variable.
3171 (get_thread_regcache): New function.
3172 (get_current_regcache): New function.
3173 (registers_changed): Implement by freeing current regcache.
3174 (regcache_raw_read): Do not refer to current_regcache. Set
3175 inferior_ptid to regcache->ptid while calling target routines.
3176 (regcache_raw_write): Likewise.
3177 (regcache_raw_supply): Do not refer to current_regcache.
3178 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
3179 (write_pc_pid): Likewise.
3180 (build_regcache): Remove.
3181 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
3182 or deprecated_register_gdbarch_swap. Do not initialize
3183 registers_ptid.
3184 * regcache.h (get_current_regcache): Add prototype.
3185 (get_thread_regcache): Likewise.
3186 (current_regcache): Remove declaration.
3187
3188 * corelow.c (core_open): Replace current_regcache by
3189 get_current_regcache ().
3190 * frame.c (frame_pop): Likewise.
3191 (put_frame_register): Likewise.
3192 (get_current_frame, create_new_frame): Likewise.
3193 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
3194 * stack.c (return_command): Likewise.
3195 * infcall.c (call_function_by_hand): Likewise.
3196 * infrun.c (resume): Likewise.
3197 (save_inferior_status, restore_inferior_status): Likewise.
3198 * linux-fork.c (fork_load_infrun_state): Likewise.
3199 (fork_save_infrun_state): Likewise.
3200 * win32-nat.c (win32_resume): Likewise.
3201 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
3202 * monitor.c (monitor_wait): Likewise.
3203 * remote.c (remote_wait): Likewise.
3204 * remote-mips.c (mips_wait): Likewise.
3205
3206 * bsd-kvm.c (bsd_kvm_open): Likewise
3207 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
3208 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
3209 * i386-linux-nat.c (i386_linux_resume): Likewise.
3210 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3211 (ia64_linux_stopped_data_address): Likewise.
3212
3213 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
3214 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3215 * mep-tdep.c (current_me_module, current_options): Likewise.
3216 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
3217
3218 * linux-nat.c (linux_nat_do_thread_registers): Use thread
3219 regcache instead of current_regcache. Call target_fetch_registers.
3220 (linux_nat_corefile_thread_callback): Update call site.
3221 (linux_nat_do_registers): Likewise.
3222 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
3223 of current_regcache.
3224 (procfs_make_note_section): Likewise.
3225 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
3226 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3227 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
3228 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3229
3230 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3231
3232 * regcache.c (read_register, read_register_pid): Remove.
3233 (write_register, write_register_pid): Likewise.
3234 * regcache.h (read_register, read_register_pid): Remove prototype.
3235 (write_register, write_register_pid): Likewise.
3236
3237 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3238
3239 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
3240 (write_pc): Likewise. Remove default implementation, add predicate.
3241 * gdbarch.c, gdbarch.h: Regenerate.
3242 * regcache.c (read_pc_pid): Use current regcache instead of calling
3243 read_register_pid.
3244 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
3245 case inline.
3246 (generic_target_write_pc): Remove.
3247 * inferior.h (generic_target_write_pc): Remove.
3248 * frv-tdep.c (frv_gdbarch_init): Do not install it.
3249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3250 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3251 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3252 * sh-tdep.c (sh_gdbarch_init): Likewise.
3253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3254
3255 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
3256 argument. Use REGCACHE instead of calling read_register_pid.
3257 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
3258 * hppa-tdep.c (hppa_read_pc): Likewise.
3259 * hppa-tdep.h (hppa_read_pc): Likewise.
3260 * ia64-tdep.c (ia64_read_pc): Likewise.
3261 * m32r-tdep.c (m32r_read_pc): Likewise.
3262 * mep-tdep.c (mep_read_pc): Likewise.
3263 * mn10300-tdep.c (mn10300_read_pc): Likewise.
3264 * spu-tdep.c (spu_read_pc): Likewise.
3265
3266 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
3267 argument. Use REGCACHE instead of calling write_register_pid.
3268 * avr-tdep.c (avr_write_pc): Likewise.
3269 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
3270 * hppa-tdep.c (hppa_write_pc): Likewise.
3271 * hppa-tdep.h (hppa_write_pc): Likewise.
3272 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
3273 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
3274 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
3275 * ia64-tdep.c (ia64_write_pc): Likewise.
3276 * ia64-tdep.h (ia64_write_pc): Likewise.
3277 * m32r-tdep.c (m32r_write_pc): Likewise.
3278 * m88k-tdep.c (m88k_write_pc): Likewise.
3279 * mep-tdep.c (mep_write_pc): Likewise.
3280 * mips-tdep.c (mips_write_pc): Likewise.
3281 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3282 * mn10300-tdep.c (mn10300_write_pc): Likewise.
3283 * sparc-tdep.c (sparc_write_pc): Likewise.
3284 * spu-tdep.c (spu_write_pc): Likewise.
3285
3286 * mips-tdep.c (read_signed_register): Remove.
3287 (read_signed_register_pid): Likewise.
3288 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
3289 Use REGCACHE instead of calling read_signed_register_pid.
3290
3291 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3292
3293 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
3294 * gdbarch.c, gdbarch.h: Regenerate.
3295 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
3296 (push_dummy_code): Likewise. Pass it to callee.
3297 (call_function_by_hand): Pass current regcache to push_dummy_code.
3298
3299 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
3300 argument. Use it instead of current_regcache.
3301
3302 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
3303 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
3304
3305 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3306
3307 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3308 * gdbarch.c, gdbarch.h: Regenerate.
3309 * infrun.c (handle_inferior_event): Pass current frame to
3310 gdbarch_get_longjmp_target.
3311
3312 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3313 Read registers from FRAME instead of using read_register.
3314 Use get_frame_arch instead of current_gdbarch.
3315 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3316 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3317 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3318 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3319 (mips64_linux_get_longjmp_target): Likewise.
3320 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3321
3322 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3323
3324 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3325 * gdbarch.c, gdbarch.h: Regenerate.
3326 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3327 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3328 * infrun.c (handle_inferior_event): Pass current frame to
3329 gdbarch_skip_trampoline_code and skip_language_trampoline.
3330
3331 * language.c (unk_lang_trampoline): Add FRAME argument.
3332 (skip_language_trampoline): Add FRAME argument. Pass it to
3333 skip_trampoline callback.
3334 * language.h: Add forward declaration of struct frame_info.
3335 (struct language_defn): Add FRAME argument to skip_trampoline.
3336 (skip_language_trampoline): Add FRAME argument.
3337 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3338 to skip_trampoline callback.
3339 * cp-abi.h: Add forward declaration of struct frame_info.
3340 (cplus_skip_trampoline): Add FRAME argument.
3341 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3342 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3343 to gdbarch_skip_trampoline_code.
3344 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3345 to gdbarch_skip_trampoline_code.
3346
3347 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3348 * symtab.h (find_solib_trampoline_target): Likewise.
3349 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3350 find_solib_trampoline_target.
3351
3352 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3353 from FRAME instead of calling read_register.
3354
3355 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3356 argument. Read registers from FRAME instead of using read_register.
3357 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3358 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3359
3360 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3361 argument.
3362
3363 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3364
3365 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3366 registers from FRAME instead of using read_signed_register.
3367
3368 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3369 argument.
3370 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3371 instead of using read_register.
3372 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3373 ppc64_standard_linkage_target.
3374 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3375 Pass it to find_solib_trampoline_target. Read registers from FRAME
3376 instead of using read_register.
3377
3378 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3379 argument.
3380
3381 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3382
3383 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3384 FRAME argument.
3385 * gdbarch.c, gdbarch.h: Regenerate.
3386 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3387
3388 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3389 registers from FRAME instead of using read_register.
3390 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3391 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3392 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3393 argument by FRAME.
3394
3395 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3396 from FRAME instead of using read_register.
3397 (thumb_get_next_pc): Likewise.
3398 (arm_get_next_pc): Likewise.
3399 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3400 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3401 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3402 argument by FRAME.
3403
3404 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3405 from FRAME instead of using read_register.
3406 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3407 to find_step_target.
3408
3409 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3410 from FRAME instead of using read_register / read_signed_register.
3411 (extended_mips16_next_pc): Likewise.
3412 (mips16_next_pc): Likewise.
3413 (mips_next_pc): Likewise.
3414 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3415 to mips_next_pc. Use get_frame_pc instead of read_pc.
3416 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3417 argument by FRAME.
3418
3419 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3420 of current frame. Read registers from FRAME.
3421 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3422 branch_dest. Use get_frame_pc instead of read_pc.
3423 (rs6000_software_single_step): Likewise.
3424 (bl_to_blrl_insn_p): Do not call branch_dest.
3425 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3426 argument by FRAME.
3427
3428 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3429 Read registers from FRAME instead of current regcache.
3430 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3431 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3432 * sparc-tdep.c (sparc_address_from_register): Remove.
3433 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3434 GDBARCH. Pass FRAME to step_trap callback.
3435 (sparc_step_trap): Add FRAME argument.
3436 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3437 to sparc_analyze_control_transfer. Read registers from FRAME instead
3438 of calling sparc_address_from_register.
3439 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3440 step_trap callback.
3441 (sparc_address_from_register): Remove prototype.
3442 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3443 (sparcnbsd_step_trap): Add FRAME argument.
3444
3445 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3446 by FRAME. Read registers from FRAME instead of REGCACHE.
3447
3448 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3449
3450 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3451 instead of calling read_register.
3452
3453 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3454 calling write_register.
3455
3456 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3457 calling write_register.
3458
3459 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3460 instead of calling read_register.
3461 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3462 instead of calling read_register and write_register.
3463
3464 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3465 instead of current_regcache.
3466
3467 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3468 of calling write_register.
3469 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3470 parameter instead of current_regcache.
3471
3472 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3473 instead of calling read_register.
3474 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3475 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3476 (mips_n32n64_push_dummy_call): Likewise.
3477 (mips_o32_push_dummy_call): Likewise.
3478 (mips_o64_push_dummy_call): Likewise.
3479
3480 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3481 parameter instead of current_regcache.
3482
3483 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3484 Use it instead of read_register and write_register.
3485 (xtensa_register_read_masked): Likewise.
3486 (xtensa_pseudo_register_read): Update call.
3487 (xtensa_pseudo_register_write): Likewise.
3488 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3489 instead of calling read_register.
3490 (xtensa_push_dummy_call): Update comment.
3491
3492 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3493
3494 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3495 by frame_unwind_register_signed calls.
3496 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3497 frame allocations when called with NULL NEXT_FRAME parameter.
3498 (read_next_frame_reg): Remove.
3499
3500 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3501 instead of reading the FPSCR register.
3502 (sh_frame_cache): Pass unwound FPSCR register value to
3503 sh_analyze_prologue.
3504 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3505
3506 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3507 instead of reading the CTBP register.
3508 (v850_frame_cache): Pass unwound CTBP register value to
3509 v850_analyze_prologue.
3510
3511 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3512
3513 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3514 * sh-tdep.c (sh_show_regs): Likewise.
3515 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3516 (sh_generic_show_regs): Add FRAME parameter. Use register
3517 values from that frame instead of calling read_register.
3518 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3519 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3520 sh_dsp_show_regs): Likewise.
3521 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3522 sh64_show_regs): Likewise.
3523
3524 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3525
3526 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3527 current regcache instead of calling read_register.
3528
3529 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3530
3531 * mep-tdep.c (current_me_module): Read from current regcache
3532 instead of calling read_register.
3533 (current_options): Likewise.
3534
3535 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3536
3537 * cris-tdep.c (cris_stopped_data_address): Read register values
3538 from current frame instead of calling read_register.
3539 * frv-tdep.c (frv_stopped_data_address): Likewise.
3540
3541 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3542
3543 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3544 instead of write_register (PC_REGNUM, ...).
3545
3546 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3547
3548 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3549 explaining why the PC adjustment code is necessary.
3550
3551 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3552
3553 * m68k-tdep.h (enum m68k_flavour): New.
3554 (struct gdbarch_tdep): New fields
3555 float_return, flavour and fpregs_present.
3556 * m68k-tdep.c (m68k_register_type): Use
3557 fpregs_present and conditionalize floating
3558 registers type on flavour.
3559 (m68k_register_names): New.
3560 (m68k_register_name): Use the above.
3561 (m68k_convert_register_p): Consult fpregs_present.
3562 (m68k_register_to_value, m68k_value_to_register):
3563 Use register_type to obtain the type of floating
3564 point registers.
3565 (m68k_svr4_extract_return_value): Check tdep->float_return.
3566 Use register_type to get the type of floating
3567 point regiters.
3568 (m68k_svr4_store_return_value): Likewise.
3569 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3570 (m68k_analyze_register_saves): Likewise.
3571 (m68k_gdbarch_init): Extract infromation
3572 from XML description, if present. Guess coldfire by
3573 looking at the file, if present. Conditionalize
3574 setting of long double format. Set decr_pc_after_break
3575 to 2 on coldfire and fido. Enable XML-driven
3576 register description.
3577 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3578 size of tdep->fpreg_type, as opposed to hardcoded value.
3579 * Makefile.in (m68k-tdep.o): Update dependencies.
3580
3581 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3582
3583 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3584 qXfer:spu:write remote packet types.
3585
3586 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3587
3588 * xml-tdesc.c (tdesc_start_target): New.
3589 (target_attributes): New.
3590 (tdesc_elements): Use it.
3591 * features/gdb-target.dtd: Add #FIXED version attribute for
3592 <target>.
3593
3594 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3595
3596 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3597
3598 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3599
3600 * fork-child.c (fork_inferior): Update comment.
3601
3602 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3603
3604 * features/Makefile: Generate regformats for mips-linux and
3605 mips64-linux.
3606 * features/sort-regs.xsl: Correct typo.
3607 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3608 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3609 files.
3610
3611 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3612
3613 * config/mips/linux.mh (TDEP_XML): New.
3614 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3615 * mips-linux-nat.c (mips_linux_register_addr): Handle
3616 MIPS_RESTART_REGNUM.
3617 (mips64_linux_register_addr): Likewise.
3618 (super_xfer_partial, mips_linux_xfer_partial): New.
3619 (_initialize_mips_linux_nat): Add them to the target_ops.
3620 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3621 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3622 (mips_linux_o32_sigframe_init)
3623 (mips_linux_n32n64_sigframe_init): Likewise.
3624 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3625 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3626 "org.gnu.gdb.mips.linux" feature.
3627 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3628 (mips_linux_restart_reg_p): New prototype.
3629 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3630 initialization routine.
3631 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3632
3633 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3634
3635 * Makefile.in (mips-tdep.o): Update.
3636 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3637 (mips_n32_n64_aliases, mips_register_aliases): New.
3638 (mips_register_name): Call tdesc_register_name.
3639 (mips_tdesc_register_reggroup_p): New.
3640 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3641 (mips_gdbarch_init): Add target-described register support.
3642 Register aliases for register names.
3643 * target-descriptions.c (tdesc_register_name): Make global.
3644 (tdesc_register_in_reggroup_p): New function, broken out from
3645 tdesc_register_reggroup_p.
3646 (tdesc_register_reggroup_p): Use it.
3647 * target-descriptions.h (tdesc_register_name)
3648 (tdesc_register_in_reggroup_p): New prototypes.
3649 * NEWS: Correct formatting. Mention MIPS register support.
3650 * features/mips-cp0.xml, features/mips-fpu.xml,
3651 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3652 features/mips64-cpu.xml: New files.
3653
3654 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3655
3656 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3657 * valops.c (value_cast): Likewise.
3658 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3659 * ui-out.c (ui_out_field_core_addr): Likewise.
3660 * tracepoint.c (tracepoints_info): Likewise.
3661 * symtab.c (print_msymbol_info): Likewise.
3662 * solib-irix.c (irix_current_sos)
3663 (irix_open_symbol_file_object): Likewise.
3664 * remote.c (build_remote_gdbarch_data): Likewise.
3665 * prologue-value.c (make_pv_area): Likewise.
3666 * procfs.c (info_mappings_callback): Likewise.
3667 * printcmd.c (print_scalar_formatted)
3668 (deprecated_print_address_numeric): Likewise.
3669 * memattr.c (mem_info_command): Likewise.
3670 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3671 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3672 * exec.c (print_section_info): Likewise.
3673 * dwarf2read.c (read_subrange_type): Likewise.
3674 * dwarf2loc.c (find_location_expression): Likewise.
3675 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3676 (signed_address_type, execute_stack_op): Likewise.
3677 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3678 * gdbarch.c, gdbarch.h: Regenerate.
3679
3680 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3681
3682 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3683 * arch-utils.c (show_architecture): Likewise.
3684 * remote-mips.c (mips_open): Likewise
3685 * nto-tdep.c (nto_find_and_open_solib)
3686 (nto_init_solib_absolute_prefix): Likewise.
3687 * nto-procfs (procfs_open): Likewise.
3688 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3689 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3690 * gdbarch.c, gdbarch.h: Regenerate.
3691
3692 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3693
3694 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3695 * gdbtypes.c (build_flt): Likewise.
3696 * gdbarch.c, gdbarch.h: Regenerate.
3697
3698 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3699
3700 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3701 gdbarch_breakpoint_from_pc.
3702 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3703 * remote.c (remote_insert_breakpoint)
3704 (remote_insert_hw_breakpoint): Likewise.
3705 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3706 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3707 * breakpoint.h (bp_target_info): Likewise (comment).
3708 * breakpoint.c (read_memory_nobpt): Likewise.
3709 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3710 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3711 * gdbarch.c, gdbarch.h: Regenerate.
3712
3713 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3714
3715 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3716 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3717 * solib-pa64.c (read_dynamic_info): Likewise.
3718 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3719 * solib.c (info_sharedlibrary_command): Likewise.
3720 * s390-nat.c (SUBOFF): Likewise.
3721 * p-valprint.c (pascal_val_print): Likewise.
3722 * procfs.c (info_proc_mappings): Likewise.
3723 * printcmd.c (decode_format): Likewise.
3724 * nto-tdep.c (nto_truncate_ptr): Likewise.
3725 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3726 (mips64_linux_get_longjmp_target): Likewise.
3727 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3728 * jv-valprint.c (java_value_print): Likewise.
3729 * jv-lang.c (get_java_object_header_size): Likewise.
3730 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3731 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3732 (hppa_hpux_unwind_adjust_stub): Likewise.
3733 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3734 * gdbtypes.c (make_pointer_type, make_reference_type)
3735 (smash_to_memberptr_type): Likewise.
3736 * gdbarch.c, gdbarch.h: Regenerate.
3737
3738 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3739
3740 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3741 (print_gp_register_row): Stop before printing a register bigger
3742 than the ABI register size.
3743 (mips_print_registers_info): Update call to mips_print_register.
3744
3745 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3746
3747 * expression.h (enum exp_opcode): Document a register name for
3748 OP_REGISTER.
3749 * parse.c (write_dollar_variable): Write the register name for
3750 OP_REGISTER.
3751 (operator_length_standard): Expect the register name following
3752 OP_REGISTER.
3753 * ada-lang.c (resolve_subexp): Likewise.
3754 * ax-gdb.c (gen_expr): Likewise.
3755 * eval.c (evaluate_subexp_standard): Likewise.
3756 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3757 Likewise.
3758 * tracepoint.c (encode_actions): Likewise.
3759
3760 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3761
3762 * utils.c (set_screen_size): Use INT_MAX for default columns.
3763
3764 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3765
3766 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3767 qXfer:spu:write packet types.
3768
3769 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3770
3771 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3772 * gdbarch.c, gdbarch.h: Regenerate.
3773
3774 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3775
3776 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3777 gdbarch_stab_reg_to_regnum.
3778 * stabsread.c (define_symbol): Likewise.
3779 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3780 gdbarch_ecoff_reg_to_regnum.
3781 * mdebugread.c (parse_symbol): Likewise.
3782 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3783 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3784 gdbarch_dwarf_reg_to_regnum.
3785 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3786 * coffread.c (process_coff_symbol): Likewise.
3787 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3788 gdbarch_dwarf2_reg_to_regnum.
3789 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3790 (locexpr_describe_location): Likewise.
3791 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3792 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3793 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3794 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3795 * gdbarch.c, gdbarch.h: Regenerate.
3796
3797 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3798
3799 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3800 gdbarch_smash_text_address.
3801 * somread.c (som_symtab_read): Likewise.
3802 * elfread.c (record_minimal_symbol): Likewise.
3803 * dbxread.c (process_one_symbol): Likewise.
3804 * coffread.c (coff_symtab_read): Likewise.
3805 * gdbarch.c, gdbarch.h: Regenerate.
3806
3807 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3808
3809 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3810 * findvar.c (value_from_register): Likewise.
3811 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3812 * valops.c (value_assign): Likewise.
3813 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3814 gdbarch_convert_register_p.
3815 * findvar.c (value_from_register): Likewise.
3816 * valops.c (value_assign): Likewise.
3817 * gdbarch.c, gdbarch.h: Regenerate.
3818
3819 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3820
3821 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3822 gdbarch_register_sim_regno.
3823 * sim-regno.h (sim_regno): Likewise (comment).
3824 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3825 * gdbarch.c, gdbarch.h: Regenerate.
3826
3827 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3828
3829 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3830 gdbarch_virtual_frame_pointer.
3831 * tracepoint.c (encode_actions): Likewise.
3832 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3833 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3834 * gdbarch.c, gdbarch.h: Regenerate.
3835
3836 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3837
3838 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3839 * p-lang.c (pascal_create_fundamental_type): Likewise.
3840 * objc-lang.c (objc_create_fundamental_type): Likewise.
3841 * mdebugread.c (_initialize_mdebugread): Likewise.
3842 * m2-lang.c (m2_create_fundamental_type)
3843 (_initialize_m2_language): Likewise.
3844 * gdbtypes.c (build_gdbtypes): Likewise.
3845 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3846 * doublest.c (floatformat_from_length): Likewise.
3847 * c-lang.c (c_create_fundamental_type): Likewise.
3848 * ada-lang.c (ada_create_fundamental_type)
3849 (ada_language_arch_info): Likewise.
3850 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3851 * value.c (unpack_double): Likewise (comment).
3852 * gdbtypes.c (build_gdbtypes): Likewise.
3853 * doublest.c (floatformat_from_length): Likewise.
3854 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3855 * valarith.c (value_binop): Likewise.
3856 * p-lang.c (pascal_create_fundamental_type): Likewise.
3857 * objc-lang.c (objc_create_fundamental_type): Likewise.
3858 * mdebugread.c (_initialize_mdebugread): Likewise.
3859 * m2-lang.c (m2_create_fundamental_type): Likewise.
3860 * gdbtypes.c (build_gdbtypes): Likewise.
3861 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3862 * doublest.c (floatformat_from_length): Likewise.
3863 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3864 * c-lang.c (c_create_fundamental_type): Likewise.
3865 * ada-lex.l (processReal): Likewise.
3866 * ada-lang.c (ada_create_fundamental_type)
3867 (ada_language_arch_info): Likewise.
3868 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3869 * value.c (unpack_double): Likewise (comment).
3870 * gdbtypes.c (build_gdbtypes): Likewise.
3871 * doublest.c (floatformat_from_length): Likewise.
3872 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3873 gdbarch_long_double_bit.
3874 * p-lang.c (pascal_create_fundamental_type): Likewise.
3875 * objc-lang.c (objc_create_fundamental_type): Likewise.
3876 * m2-lang.c (m2_create_fundamental_type): Likewise.
3877 * gdbtypes.c (build_gdbtypes): Likewise.
3878 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3879 * doublest.c (floatformat_from_length): Likewise.
3880 * c-lang.c (c_create_fundamental_type): Likewise.
3881 * ada-lex.l (processReal): Likewise.
3882 * ada-lang.c (ada_create_fundamental_type)
3883 (ada_language_arch_info): Likewise.
3884 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3885 gdbarch_long_double_format.
3886 * gdbtypes.c (build_gdbtypes): Likewise.
3887 * doublest.c (floatformat_from_length): Likewise.
3888 * gdbarch.c, gdbarch.h: Regenerate.
3889
3890 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3891
3892 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3893 * ada-lang.c (ada_create_fundamental_type)
3894 (ada_language_arch_info): Likewise.
3895 * c-lang.c (c_create_fundamental_type): Likewise.
3896 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3897 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3898 * m2-lang.c (m2_create_fundamental_type): Likewise.
3899 * objc-lang.c (objc_create_fundamental_type): Likewise.
3900 * p-lang.c (pascal_create_fundamental_type): Likewise.
3901 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3902 * c-exp.y (parse_number): Likewise.
3903 * objc-exp.y (parse_number): Likewise.
3904 * ada-lex.l (processInt): Likewise.
3905 * f-exp.y (parse_number): Likewise.
3906 * p-exp.y (parse_number): Likewise.
3907 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3908 (gdbtypes_post_init, build_gdbtypes): Likewise.
3909 * p-lang.c (pascal_create_fundamental_type): Likewise.
3910 * parse.c (build_parse): Likewise.
3911 * xcoffread.c (_initialize_xcoffread): Likewise.
3912 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3913 (read_range_type): Likewise.
3914 * objc-lang.c (objc_create_fundamental_type): Likewise.
3915 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3916 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3917 (m2_create_fundamental_type): Likewise.
3918 * c-lang.c (c_create_fundamental_type): Likewise.
3919 * coffread.c (coff_read_enum_type): Likewise.
3920 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3921 * dwarf2read.c (new_symbol): Likewise.
3922 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3923 * c-exp.y (parse_number): Likewise.
3924 * objc-exp.y (parse_number): Likewise.
3925 * ada-lex.l (processInt): Likewise.
3926 * f-exp.y (parse_number): Likewise.
3927 * p-exp.y (parse_number): Likewise.
3928 * valarith.c (value_binop): Likewise.
3929 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3930 * ada-lang.c (ada_create_fundamental_type)
3931 (ada_language_arch_info): Likewise.
3932 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3933 * symfile.c (TARGET_LONG_BYTES): Likewise.
3934 * p-lang.c (pascal_create_fundamental_type): Likewise.
3935 * objc-lang.c (objc_create_fundamental_type): Likewise.
3936 * m2-lang.c (m2_create_fundamental_type): Likewise.
3937 * f-lang.c (f_create_fundamental_type): Likewise.
3938 * c-lang.c (c_create_fundamental_type): Likewise.
3939 * coffread.c (decode_base_type): Likewise.
3940 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3941 * c-exp.y (parse_number): Likewise.
3942 * objc-exp.y (parse_number): Likewise.
3943 * p-exp.y (parse_number): Likewise.
3944 * ada-lang.c (ada_create_fundamental_type)
3945 (ada_language_arch_info): Likewise.
3946 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3947 * stabsread.c (read_range_type): Likewise.
3948 * p-lang.c (pascal_create_fundamental_type): Likewise.
3949 * objc-lang.c (objc_create_fundamental_type): Likewise.
3950 * m2-lang.c (m2_create_fundamental_type): Likewise.
3951 * f-lang.c (f_create_fundamental_type): Likewise.
3952 * c-lang.c (c_create_fundamental_type): Likewise.
3953 * gdbarch.c, gdbarch.h: Regenerate.
3954
3955 2007-06-12 Andreas Schwab <schwab@suse.de>
3956
3957 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3958 (struct frame_unwind): Add dealloc_cache.
3959 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3960
3961 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3962 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3963 (libunwind_frame_unwind): Set dealloc_cache.
3964 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3965
3966 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3967 Markus Deuling <deuling@de.ibm.com>
3968
3969 * remote.c (remote_write_qxfer): New function.
3970 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3971 (remote_read_qxfer): Do not cache empty objects.
3972 (_initialize_remote): Add PACKET_qXfer_spu_read and
3973 PACKET_qXfer_spu_write.
3974
3975 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3976
3977 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3978 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3979
3980 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3981 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3982 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3983 * spu-tdep.c (infospucmdlist): New variable.
3984 (spu_register_name): Handle additional pseudo registers.
3985 (spu_register_type): Likewise.
3986 (spu_pseudo_register_read): Likewise.
3987 (spu_pseudo_register_write): Likewise.
3988 (spu_pseudo_register_read_spu): New function.
3989 (spu_pseudo_register_write_spu): Likewise.
3990 (info_spu_event_command): New function.
3991 (info_spu_signal_command): Likewise.
3992 (info_spu_mailbox_list): Likewise.
3993 (info_spu_mailbox_command): Likewise.
3994 (spu_mfc_get_bitfield): Likewise.
3995 (info_spu_dma_cmdlist): Likewise.
3996 (info_spu_dma_command): Likewise.
3997 (info_spu_proxydma_command): Likewise.
3998 (info_spu_command): Likewise.
3999 (_initialize_spu_tdep): Install "info spu" commands.
4000
4001 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4002
4003 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
4004 accessing non-seekable spufs files.
4005
4006 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4007
4008 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
4009 gdbarch_skip_trampoline_code.
4010 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
4011 * objc-lang.c (objc_skip_trampoline)
4012 (objc_submethod_helper_data): Likewise.
4013 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
4014 * infrun.c (handle_inferior_event): Likewise.
4015 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
4016 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
4017 gdbarch_in_solib_return_trampoline.
4018 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
4019 * infrun.c (handle_inferior_event): Likewise.
4020 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
4021 * gdbarch.c, gdbarch.h: Regenerate.
4022
4023 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4024
4025 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
4026 * symtab.c (find_function_start_sal, in_prologue): Likewise.
4027 * linespec.c (minsym_found): Likewise.
4028 * infrun.c (step_into_function): Likewise.
4029 * gdbarch.c, gdbarch.h: Regenerate.
4030
4031 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4032
4033 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
4034 * valops.c (value_allocate_space_in_inferior): Likewise.
4035 * gdbarch.c, gdbarch.h: Regenerate.
4036
4037 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4038
4039 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
4040 gdbarch_memory_insert_breakpoint.
4041 * mem-break.c (memory_insert_breakpoint): Likewise.
4042 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
4043 gdbarch_memory_remove_breakpoint.
4044 * mem-break.c (memory_remove_breakpoint): Likewise.
4045 * gdbarch.c, gdbarch.h: Regenerate.
4046
4047 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4048
4049 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
4050 gdbarch_fetch_tls_load_module_address.
4051 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
4052 gdbarch_fetch_tls_load_module_address_p.
4053 * gdbarch.c, gdbarch.h: Regenerate.
4054
4055 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4056
4057 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
4058 gdbarch_decr_pc_after_break.
4059 * tracepoint.c (trace_dump_command): Likewise.
4060 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
4061 * linux-thread-db.c (check_event): Likewise.
4062 * linux-nat.c (cancel_breakpoints_callback): Likewise.
4063 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
4064 * frame.h: Likewise (comment).
4065 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
4066 * aix-thread.c (aix_thread_wait): Likewise.
4067 * gdbarch.c, gdbarch.h: Regenerate.
4068
4069 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4070
4071 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
4072 gdbarch_address_class_type_flags.
4073 * dwarf2read.c (read_tag_pointer_type): Likewise.
4074 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
4075 gdbarch_address_class_type_flags_p.
4076 * dwarf2read.c (read_tag_pointer_type): Likewise.
4077 * gdbarch.c, gdbarch.h: Regenerate.
4078
4079 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4080
4081 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
4082 * value.c (value_as_address): Likewise (comment).
4083 * remote-mips.c (common_breakpoint): Likewise.
4084 * regcache.c (read_pc_pid): Likewise.
4085 * printcmd.c (do_one_display): Likewise.
4086 * monitor.c (monitor_write_memory, monitor_read_memory)
4087 (monitor_insert_breakpoint): Likewise.
4088 * mips-tdep.c (heuristic_proc_start): Likewise.
4089 * infrun.c (insert_step_resume_breakpoint_at_frame)
4090 (insert_step_resume_breakpoint_at_caller): Likewise.
4091 * buildsym.c (record_line): Likewise.
4092 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
4093 (arm_get_next_pc): Likewise.
4094 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
4095 (store_regs): Likewise.
4096 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4097 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
4098 * gdbarch.c, gdbarch.h: Regenerate.
4099
4100 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4101
4102 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
4103 * tracepoint.c (scope_info): Likewise.
4104 * target.c (debug_print_register): Likewise.
4105 * stack.c (frame_info): Likewise.
4106 * sh-tdep.c (sh_register_reggroup_p): Likewise.
4107 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
4108 (sh64_media_print_registers_info)
4109 (sh64_compact_print_registers_info): Likewise.
4110 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
4111 * remote-sim.c (gdbsim_fetch_register): Likewise.
4112 * remote.c (packet_reg): Likewise (comment).
4113 * reggroups.c (default_register_reggroup_p): Likewise.
4114 * regcache.c (regcache_dump): Likewise.
4115 * printcmd.c (address_info): Likewise.
4116 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4117 * mt-dep.c (mt_registers_info): Likewise.
4118 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
4119 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
4120 (mips_read_fp_register_double, mips_print_fp_register)
4121 (mips_print_register, print_gp_register_row, mips_print_registers_info)
4122 (mips_register_sim_regno): Likewise.
4123 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
4124 * inf-ptrace.c (inf_ptrace_fetch_register)
4125 (inf_ptrace_store_register): Likewise.
4126 * infcmd.c (default_print_registers_info): Likewise.
4127 * ia64-linux-nat.c (ia64_linux_fetch_register)
4128 (ia64_linux_store_register): Likewise.
4129 * i386-linux-nat.c (fetch_register, store_register): Likewise.
4130 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
4131 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4132 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
4133 (hppa_hpux_store_register): Likewise.
4134 * findvar.c (locate_var_value): Likewise.
4135 * dwarf2loc.c (locexpr_describe_location): Likewise.
4136 * dwarf2-frame.c (execute_cfa_program): Likewise.
4137 * arm-tdep.c (arm_push_dummy_call): Likewise.
4138 * arch-utils.c (legacy_register_sim_regno): Likewise.
4139 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
4140 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4141 * mi/mi-main.c (mi_cmd_data_list_register_names)
4142 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
4143 (mi_cmd_data_write_register_values): Likewise.
4144 * gdbarch.c, gdbarch.h: Regenerate.
4145
4146 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
4147
4148 * target-memory.c (blocks_to_erase): Correct off-by-one error.
4149
4150 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
4151
4152 * remote.c (process_g_packet): Don't check size.
4153 * gdbarch.sh: Remove register_bytes_ok.
4154 * gdbarch.c: Regenerated.
4155 * gdbarch.h: Regenerated.
4156 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
4157 (m68k_register_bytes_ok): Remove.
4158 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
4159
4160 2007-06-06 Andreas Schwab <schwab@suse.de>
4161
4162 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
4163 (destroy_addr_space_name): Define.
4164 (libunwind_load): Get address of destroy_addr_space function.
4165 (libunwind_frame_cache): Destroy unw_addr_space_t object before
4166 returning unsuccessfully.
4167 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
4168 returning.
4169 (libunwind_sigtramp_frame_sniffer): Likewise.
4170 (libunwind_get_reg_special): Likewise.
4171
4172 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4173
4174 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
4175 gdbarch_fetch_pointer_argument.
4176 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
4177 * gdbarch.c, gdbarch.h: Regenerate.
4178
4179 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4180
4181 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
4182 gdbarch_have_nonsteppable_watchpoint.
4183 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
4184 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
4185 gdbarch_cannot_step_breakpoint.
4186 * infrun.c (resume): Likewise.
4187 * gdbarch.c, gdbarch.h: Regenerate.
4188
4189 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4190
4191 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
4192 * stack.c (print_frame_args): Likewise.
4193 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
4194 * stack.c (print_args_stub, frame_info): Likewise.
4195 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
4196 * stack.c (print_args_stub, frame_info): Likewise.
4197 * gdbarch.c, gdbarch.h: Regenerate.
4198
4199 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4200
4201 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
4202 gdbarch_coff_make_msymbol_special.
4203 * coffread.c (coff_symtab_read): Likewise.
4204 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
4205 gdbarch_elf_make_msymbol_special.
4206 * elfread.c (elf_symtab_read): Likewise.
4207 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
4208 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
4209 * gdbarch.c, gdbarch.h: Regenerate.
4210
4211 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4212
4213 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
4214 gdbarch_frame_red_zone_size.
4215 * gdbarch.c, gdbarch.h: Regenerate.
4216
4217 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4218
4219 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
4220 * infcall.c (call_function_by_hand): Likewise.
4221 * gcore.c (derive_stack_segment): Likewise.
4222 * frame.c (frame_id_inner): Likewise.
4223 * arch-utils.c (core_addr_lessthan): Likewise (comment).
4224 * ada-lang.c (ensure_lval): Likewise.
4225 * gdbarch.c, gdbarch.h: Regenerate.
4226
4227 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4228
4229 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
4230 gdbarch_address_to_pointer.
4231 * findvar.c (store_typed_address): Likewise.
4232 * gdbtypes.c (make_pointer_type): Likewise (comment).
4233 * procfs.c (procfs_address_to_host_pointer): Likewise.
4234 * std-regs.c (value_of_builtin_frame_reg): Likewise.
4235 (value_of_builtin_frame_fp_reg): Likewise.
4236 (value_of_builtin_frame_pc_reg): Likewise.
4237 * utils.c (paddress): Likewise (comment).
4238 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
4239 gdbarch_pointer_to_address.
4240 * findvar.c (extract_typed_address): Likewise.
4241 * gdbtypes.c (make_pointer_type): Likewise (comment).
4242 * valops.c (value_cast): Likewise (comment).
4243 * gdbarch.c, gdbarch.h: Regenerate.
4244
4245 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4246
4247 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
4248 * infrun.c (handle_inferior_event): Likewise.
4249 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
4250 gdbarch_get_longjmp_target_p.
4251 * breakpoint.c (breakpoint_re_set): Likewise.
4252 * infrun.c (handle_inferior_event): Likewise.
4253 * gdbarch.c, gdbarch.h: Regenerate.
4254
4255 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4256
4257 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
4258 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
4259 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
4260 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
4261 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
4262 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
4263 find_stub_with_shl_get, cover_find_stub_with_shl_get,
4264 initialize_hp_cxx_exception_support, child_enable_exception_callback,
4265 current_ex_event, child_get_current_exception_event): Remove.
4266 (hppa_hpux_inferior_created): Remove.
4267 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
4268
4269 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
4270 (deprecated_exception_support_initialized): Remove.
4271 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
4272 (deprecated_exception_support_initialized): Remove.
4273 (breakpoint_init_inferior): Remove handling of non-zero
4274 deprecated_exception_catchpoints_are_fragile.
4275
4276 * symtab.h (deprecated_hp_som_som_object_present): Remove.
4277 * symtab.c (deprecated_hp_som_som_object_present): Remove.
4278 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
4279 deprecated_hp_som_som_object_present.
4280 * eval.c (evaluate_subexp_standard): Likewise.
4281 * valops.c (value_cast): Likewise.
4282
4283 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
4284 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
4285 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
4286
4287 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4288
4289 * objfiles.h (ImportEntry, ExportEntry): Remove types.
4290 (struct objfile): Remove import_list, import_list_size,
4291 export_list, export_list_size members.
4292 (is_in_import_list): Remove prototype.
4293 * objfiles.c (is_in_import_list): Remove.
4294 * somread.c (init_import_symbols, init_export_symbols): Remove.
4295 (som_symfile_read): Do not call init_import_symbols. Do not
4296 set objfile->export_list and objfile->export_list_size.
4297
4298 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4299
4300 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
4301 Use the original objfile if necessary.
4302
4303 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
4304
4305 * defs.h (ldirname): New prototype.
4306 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4307 missing.
4308 * utils.c (ldirname): New function.
4309 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4310
4311 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4312
4313 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4314
4315 2007-06-01 Joel Brobecker <brobecker@adacore.com>
4316
4317 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4318
4319 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4320
4321 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4322
4323 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4324
4325 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4326 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4327 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4328 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4329 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4330 ppc_linux_at_sigtramp_return_path): Remove.
4331
4332 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4333
4334 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4335 (xtensa_register_write_masked, xtensa_register_read_masked)
4336 (xtensa_extract_return_value, xtensa_store_return_value
4337 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4338 TARGET_BYTE_ORDER by gdbarch_byte_order.
4339 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4340 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4341 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4342 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4343 (sh64_push_dummy_call, sh64_extract_return_value)
4344 (sh64_store_return_value, sh64_register_convert_to_virtual)
4345 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4346 (sh64_pseudo_register_write, sh64_do_fp_register)
4347 (sh64_frame_prev_register): Likewise.
4348 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4349 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4350 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4351 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4352 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4353 * ppc-linux-nat.c (store_register): Likewise.
4354 * nto-tdep.c (nto_find_and_open_solib)
4355 (nto_init_solib_absolute_prefix): Likewise.
4356 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4357 (mips_convert_register_p, mips_eabi_push_dummy_call)
4358 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4359 (mips_o32_push_dummy_call, mips_o32_return_value)
4360 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4361 (mips_read_fp_register_single, mips_read_fp_register_double)
4362 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4363 (mips_breakpoint_from_pc): Likewise.
4364 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4365 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4366 (mips_linux_o32_sigframe_init): Likewise.
4367 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4368 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4369 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4370 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4371 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4372 * coffread.c (process_coff_symbol): Likewise.
4373 * arm-tdep.c (convert_from_extended, convert_to_extended)
4374 (gdb_print_insn_arm): Likewise.
4375
4376 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4377
4378 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4379 * i386-tdep.c (i386_dbx_reg_to_regnum)
4380 (i386_svr4_reg_to_regnum): Likewise.
4381 * inf-ptrace.c (inf_ptrace_fetch_registers)
4382 (inf_ptrace_store_registers): Likewise.
4383 * corelow.c (get_core_registers): Likewise.
4384 * i386-linux-nat.c (supply_gregset, fill_gregset)
4385 (i386_linux_fetch_inferior_registers)
4386 (i386_linux_store_inferior_registers): Likewise.
4387 * remote.c (init_remote_state,packet_reg_from_regnum)
4388 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4389 (remote_prepare_to_store,store_registers_using_G)
4390 (remote_store_registers,remote_arch_state): Likewise.
4391 * tracepoint.c (encode_actions): Likewise.
4392 * mi/mi-main.c (mi_cmd_data_list_register_names)
4393 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4394 (mi_cmd_data_write_register_values): Likewise.
4395 * tui/tui-regs.c (tui_show_register_group)
4396 (tui_show_register_group): Likewise.
4397 * xtensa-tdep.h (FP_ALIAS): Likewise.
4398 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4399 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4400 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4401 * win32-nat.c (do_win32_fetch_inferior_registers)
4402 (do_win32_store_inferior_registers,fetch_elf_core_registers
4403 * user-regs.h: Likewise (comment).
4404 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4405 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4406 * target-descriptions.h: Likewise (comment).
4407 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4408 * target.c (debug_print_register): Likewise.
4409 * stack.c (frame_info): Likewise.
4410 * stabsread.c (define_symbol): Likewise.
4411 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4412 (sh64_media_print_registers_info)
4413 (sh64_compact_print_registers_info): Likewise.
4414 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4415 * rs6000-nat.c (fetch_register,store_register): Likewise.
4416 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4417 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4418 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4419 * remote-m32r-sdi.c (m32r_fetch_registers)
4420 (m32r_store_registers): Likewise.
4421 * reggroups.c (default_register_reggroup_p): Likewise.
4422 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4423 (regcache_restore,regcache_dump): Likewise.
4424 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4425 * mips-tdep.c (mips_xfer_register,mips_register_name)
4426 (mips_register_reggroup_p,mips_pseudo_register_read)
4427 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4428 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4429 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4430 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4431 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4432 (print_gp_register_row,mips_print_registers_info)
4433 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4434 (mips_register_sim_regno): Likewise.
4435 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4436 (mips_linux_n32n64_sigframe_init): Likewise.
4437 * mips-linux-nat.c (mips_linux_register_addr)
4438 (mips64_linux_register_addr): Likewise.
4439 * findvar.c (value_of_register): Likewise.
4440 * infcmd.c (default_print_registers_info,registers_info)
4441 (print_vector_info,print_float_info): Likewise.
4442 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4443 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4444 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4445 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4446 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4447 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4448 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4449 (ia64_linux_store_registers): Likewise.
4450 * hpux-thread.c (hpux_thread_fetch_registers)
4451 (hpux_thread_store_registers): Likewise.
4452 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4453 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4454 (h8300_register_type): Likewise.
4455 * dwarf2-frame.c (dwarf2_frame_cache)
4456 (dwarf2_frame_state_alloc_regs): Likewise.
4457 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4458 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4459 (crisv32_cannot_store_register,cris_register_name): Likewise.
4460 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4461 * arch-utils.c (legacy_register_sim_regno)
4462 (legacy_virtual_frame_pointer): Likewise.
4463 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4464 * arm-tdep.h: Likewise (comment).
4465 * frv-tdep.c (frv_register_sim_regno): Likewise.
4466 * m68klinux-nat.c (old_fetch_inferior_registers)
4467 (old_store_inferior_registers): Likewise.
4468 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4469 * irix5-nat.c (fetch_core_registers): Likewise.
4470 * hppa-tdep.c (hppa_frame_cache): Likewise.
4471 * hppa-linux-nat.c (hppa_linux_register_addr)
4472 (hppa_linux_fetch_inferior_registers)
4473 (hppa_linux_store_inferior_registers): Likewise.
4474 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4475 (hppa_hpux_store_inferior_registers): Likewise.
4476 * amd64-nat.c (amd64_native_gregset_reg_offset)
4477 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4478 * dbug-rom.c (dbug_regname): Likewise.
4479 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4480 (HARD_PAGE_REGNUM (comment)): Likewise.
4481 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4482 * i386-tdep.c (i386_dbx_reg_to_regnum)
4483 (i386_svr4_reg_to_regnum): Likewise.
4484 * mi/mi-main.c (mi_cmd_data_list_register_names)
4485 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4486 (mi_cmd_data_write_register_values): Likewise.
4487 * gdbarch.c, gdbarch.h: Regenerate.
4488 * tui/tui-regs.c (tui_show_register_group): Likewise.
4489 * xtensa-tdep.h (FP_ALIAS): Likewise.
4490 * user-regs.h: Likewise (comment).
4491 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4492 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4493 * target-descriptions.h: Likewise (comment).
4494 * target.c (debug_print_register): Likewise.
4495 * stack.c (frame_info): Likewise.
4496 * stabsread.c (define_symbol): Likewise.
4497 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4498 (sh64_compact_print_registers_info): Likewise.
4499 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4500 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4501 (regcache_restore,regcache_dump): Likewise.
4502 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4503 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4504 (mips_stab_reg_to_regnum): Likewise.
4505 * findvar.c (value_of_register): Likewise.
4506 * infcmd.c (default_print_registers_info,registers_info)
4507 (print_vector_info,print_float_info): Likewise.
4508 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4509 * h8300-tdep.c (h8300_register_type): Likewise.
4510 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4511 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4512 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4513 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4514 * parse.c: Remove comment.
4515 * gdbarch.c, gdbarch.h: Regenerate
4516
4517 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4518
4519 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4520 gdbarch_cannot_fetch_register.
4521 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4522 * hppa-linux-nat.c (fetch_register): Likewise.
4523 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4524 * m68klinux-nat.c (fetch_register): Likewise.
4525 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4526 Likewise.
4527 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4528 gdbarch_cannot_store_register.
4529 * hppa-linux-nat.c (store_register): Likewise.
4530 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4531 * regcache.c (regcache_raw_write): Likewise.
4532 * m68klinux-nat.c (store_register): Likewise.
4533 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4534 * gdbarch.c, gdbarch.h: Regenerate.
4535
4536 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4537
4538 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4539 * gdbarch.c, gdbarch.h: Regenerate.
4540
4541 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4542
4543 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4544 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4545 * gdbarch.c, gdbarch.h: Regenerate.
4546
4547 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4548
4549 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4550 * ax-gdb.c (gen_bitfield_ref): Likewise.
4551 * mi/mi-main.c (get_register): Likewise.
4552 * findvar.c (default_value_from_register, extract_signed_integer)
4553 (extract_unsigned_integer, extract_long_unsigned_integer)
4554 (store_signed_integer, store_unsigned_integer): Likewise.
4555 * regcache.c (regcache_dump): Likewise.
4556 * value.c (lookup_internalvar, value_of_internalvar)
4557 (set_internalvar): Likewise.
4558 * defs.h: Likewise.
4559 * valprint.c (print_binary_chars, print_octal_chars)
4560 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4561 * infcmd.c (default_print_registers_info): Likewise.
4562 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4563 * stabsread.c (define_symbol): Likewise.
4564 * doublest.c (floatformat_from_length, floatformat_from_type)
4565 (extract_typed_floating, store_typed_floating): Likewise.
4566 * gdbarch.c, gdbarch.h: Regenerate.
4567
4568 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4569
4570 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4571 gdbarch_call_dummy_location.
4572 * infcall.c (call_function_by_hand): Likewise.
4573 * inferior.h: Change comment.
4574 * arch-utils.c: Change comment.
4575 * gdbarch.c, gdbarch.h: Regenerate.
4576
4577 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4578
4579 * solib-aix5.c: Delete.
4580 * Makefile.in (solib-aix5.o): Delete rule.
4581
4582 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4583
4584 * breakpoint.h (enum bpstat_what_main_action): Remove
4585 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4586 * infrun.c (process_event_stop_test): Do not check for it.
4587
4588 2007-05-22 Chris Dearman <chris@mips.com>
4589 Maciej W. Rozycki <macro@mips.com>
4590
4591 * ser-unix.c (show_serial_hwflow): New function.
4592 (hardwire_raw): Add hardware flow control support.
4593 (_initialize_ser_hardwire): Add "set/show remoteflow".
4594 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4595 * NEWS: Document the new command.
4596
4597 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4598
4599 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4600 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4601 define for i[[3456]]86-*-linux* native configurations.
4602 * config.in, configure: Regenerate.
4603
4604 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4605
4606 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4607 a core file. Add comment in the function description.
4608
4609 2007-05-18 Caroline Tice <ctice@apple.com>
4610
4611 * c-valprint.c (c_value_print): If the initialized field of the
4612 value struct is 0, print out "[uninitialized]" before the value.
4613 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4614 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4615 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4616 ctx->initialized appropriately. Verify no location op follows
4617 DW_OP_GNU_uninit.
4618 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4619 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4620 set_value_initialized.
4621 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4622 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4623 * value.c (struct value): New field, initialized.
4624 (allocate_value): Initialize new field.
4625 (set_value_initialized): New function.
4626 (value_initialized): New function.
4627 * value.h (value_initialized): New extern declaration.
4628 (set_value_initialized): Likewise.
4629
4630 2007-05-18 Caroline Tice <ctice@apple.com>
4631
4632 * MAINTAINERS (Write After Approval): Add self.
4633
4634 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4635
4636 * gdbtypes.c (make_reference_type): Preserve the type chain
4637 and set the length of all the variants of the pointer type.
4638
4639 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4640
4641 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4642 and set the length of all the variants of the pointer type.
4643
4644 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4645
4646 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4647 comment.
4648 (mips_o64_push_dummy_call): Reformat a comment.
4649
4650 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4651
4652 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4653 (score_prologue_frame_base_address): Return fp to keep gdb print
4654 local variables correctly when debugging information is stabs.
4655
4656 (score_analyze_prologue): For software watchpoint, fetch all the
4657 instructions from range [startaddr, pc] once and identify them locally
4658 to reduce memory access.
4659 (score_malloc_and_get_memblock, score_free_memblock)
4660 (score_adjust_memblock_ptr): New functions.
4661 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4662
4663 (score_target_can_use_watch, score_stopped_by_watch)
4664 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4665 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4666 New functions for remote & local hw-watchpoint and hw-breakpoint.
4667
4668 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4669
4670 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4671 declarations as well.
4672
4673 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4674
4675 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4676 * config/arm/tm-embed.h: Delete file.
4677
4678 * arm-tdep.h (arm_software_single_step): Declare.
4679 * arm-tdep.c (arm_software_single_step): Make global.
4680 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4681 from here to ...
4682 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4683 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4684 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4685 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4686
4687 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4688 allow defines to be overriden by TM file.
4689 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4690 change default to {0xbe,0xbe}.
4691 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4692 arm_obsd_thumb_be_breakpoint): New global variables.
4693 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4694 tdep->thumb_breakpoint_size.
4695 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4696 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4697 tdep->thumb_breakpoint_size.
4698
4699 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4700
4701 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4702
4703 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4704 saved-gpreg-size".
4705
4706 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4707 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4708 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4709 (mips_abi_regsize): Simplify.
4710 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4711 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4712 (mips_o32_return_value, mips_o64_push_dummy_call)
4713 (mips_o64_return_value): Propogate constant register sizes. Use the
4714 ABI register size instead of mips_stack_argsize.
4715 (mips_dump_tdep): Don't print mips_stack_argsize.
4716 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4717 settings.
4718
4719 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4720
4721 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4722 * config/mips/tm-linux.h: Delete.
4723 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4724 (mips_linux_in_dynsym_resolve_code): Make static. Use
4725 svr4_in_dynsym_resolve_code.
4726 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4727 set_solib_ops.
4728 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4729 global.
4730 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4731 * Makefile.in (mips-linux-tdep.o): Update.
4732 * solib.c (set_solib_ops): New.
4733 (current_target_so_ops): Update comment.
4734 * solib.h (set_solib_ops): New prototype.
4735
4736 2007-05-16 Chris Dearman <chris@mips.com>
4737
4738 * printcmd.c (do_examine): Fix typos in a comment.
4739
4740 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4741
4742 * configure.ac: Allow sysroots to be relocated under $prefix as
4743 well as $exec_prefix.
4744 * configure: Regenerate.
4745
4746 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4747
4748 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4749 (offsetof): Do not define.
4750 (find_stub_with_shl_get): Use numerical value 3 instead of
4751 symbolic value TYPE_PROCEDURE.
4752
4753 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4754
4755 * gdb_proc_service.h (paddr_t): Delete typedef.
4756 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4757 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4758 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4759 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4760 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4761 * Makefile.in (proc-service.o): Update.
4762
4763 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4764
4765 * Makefile.in (mips-tdep.o): Update.
4766 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4767 unwinder.
4768
4769 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4770
4771 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4772 instead of store_typed_address.
4773 * value.c (pack_long): New.
4774 (value_from_longest): Use it.
4775 * value.h (pack_long): New prototype.
4776
4777 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4778
4779 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4780 DW_EH_PE_signed if appropriate.
4781
4782 2007-05-14 Paul Brook <paul@codesourcery.com>
4783 Daniel Jacobowitz <dan@codesourcery.com>
4784
4785 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4786 function.
4787 (dwarf_decode_lines): Check for line info without a file.
4788
4789 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4790
4791 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4792 as hexadecimal.
4793
4794 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4795
4796 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4797 STRUCTOP_STRUCT.
4798 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4799 STRUCTOP_STRUCT.
4800 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4801
4802 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4803
4804 * gdbarch.sh (read_sp): Remove.
4805 * gdbarch.c, gdbarch.h: Regenerate.
4806 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4807
4808 * avr-tdep.c (avr_read_sp): Remove.
4809 (avr_unwind_sp): New function.
4810 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4811 * mips-tdep.c (mips_read_sp): Remove.
4812 (mips_unwind_sp): New function.
4813 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4814 * score-tdep.c (score_read_unsigned_register): Remove.
4815 (score_read_sp): Remove.
4816 (score_unwind_sp): New function.
4817 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4818
4819 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4820
4821 * buildsym.c (start_subfile): Handle absolute pathnames
4822 while comparing subfile names.
4823
4824 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4825
4826 * hppa-hpux-tdep.c: Include "regcache.h".
4827 * hppa-linux-tdep.c: Likewise.
4828 * hppa-tdep.c: Include "gdb_stdint.h".
4829 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4830 it to paddr_nz.
4831 * Makefile.in: Update dependencies.
4832
4833 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4834
4835 * blockframe.c: Remove obsolete comments.
4836 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4837 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4838 * hppa-tdep.h (enum hppa_regnum): Likewise.
4839 * mips-tdep.h: Likewise.
4840 * m68hc11-tdep.c: Likewise.
4841
4842 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4843
4844 * inferior.h (read_sp): Remove prototype.
4845 * regcache.c (read_sp): Remove.
4846 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4847 * infcall.c (call_function_by_hand): Likewise.
4848 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4849 of calling read_sp.
4850 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4851
4852 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4853
4854 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4855 instead of read_register and read_register_pid.
4856
4857 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4858 argument instead of PTID. Use regcache functions instead of
4859 read_register_pid.
4860 (ia64_linux_insert_watchpoint): Update call.
4861 (ia64_linux_stopped_data_address): Use regcache functions
4862 instead of read_register_pid and write_register_pid.
4863
4864 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4865
4866 * libunwind-frame.h (struct regcache): Add forward declaration.
4867 (libunwind_get_reg_special): Add REGCACHE argument.
4868 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4869 argument. Pass it to unw_init_remote_p.
4870
4871 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4872 libunwind_get_reg_special.
4873 (ia64_access_reg): Remove "write" case.
4874 (ia64_access_fpreg): Likewise. Read from next_frame passed
4875 as callback argument instead of from current_regcache.
4876 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4877 passed as callback argument instead of from current_regcache.
4878 (ia64_access_rse_fpreg): New function.
4879 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4880
4881 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4882
4883 * NEWS: Mention SPU overlay support.
4884
4885 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4886
4887 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4888
4889 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4890
4891 * breakpoint.c (remove_breakpoint): Do not remove software
4892 breakpoints in unmapped overlay sections.
4893
4894 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4895
4896 * spu-tdep.c: Include "observer.h".
4897 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4898 (spu_overlay_data): New variable.
4899 (struct spu_overlay_table): New type.
4900 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4901 spu_overlay_new_objfile): New functions.
4902 (spu_gdbarch_init): Install spu_overlay_update.
4903 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4904 allocate spu_overlay_data objfile data.
4905
4906 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4907
4908 * gdbarch.sh (overlay_update): New gdbarch function.
4909 (struct obj_section): Add forward declaration.
4910 * gdbarch.c, gdbarch.h: Regenerate.
4911
4912 * symfile.c (simple_overlay_update): Make global.
4913 (target_overlay_update): Remove variable.
4914 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4915 target_overlay_update.
4916 (overlay_load_command): Likewise.
4917 * symfile.h (struct obj_section): Add forward declaration.
4918 (simple_overlay_update): Add prototype.
4919
4920 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4921
4922 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4923
4924 * observer.sh: Add "struct objfile" forward declaration.
4925 * target.h (deprecated_target_new_objfile_hook): Remove.
4926 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4927 (clear_symtab_users): Call observer_notify_new_objfile.
4928 (symbol_file_add_with_addrs_or_offsets): Likewise.
4929 * rs6000-nat.c: Include "observer.h".
4930 (vmap_ldinfo): Call observer_notify_new_objfile.
4931 (xcoff_relocate_core): Likewise.
4932 * remote.c (remote_new_objfile_chain): Remove.
4933 (remote_new_objfile): Do not call remote_new_objfile_chain.
4934 (_initialize_remote): Use observer_attach_new_objfile.
4935 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4936 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4937 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4938 * aix-thread.c: Include "observer.h".
4939 (target_new_objfile_chain): Remove.
4940 (new_objfile): Do not call target_new_objfile_chain.
4941 (_initialize_aix_thread): Use observer_attach_new_objfile.
4942 * hpux-thread.c: Include "observer.h"
4943 (target_new_objfile_chain): Remove.
4944 (hpux_thread_new_objfile): Make static. Do not call
4945 target_new_objfile_chain.
4946 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4947 * linux-thread-db.c: Include "observer.h".
4948 (target_new_objfile_chain): Remove.
4949 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4950 (_initialize_thread_db): Use observer_attach_new_objfile.
4951 * sol-thread.c: Include "observer.h".
4952 (target_new_objfile_chain): Remove.
4953 (sol_thread_new_objfile): Make static. Do not call
4954 target_new_objfile_chain.
4955 (_initialize_sol_thread): Use observer_attach_new_objfile.
4956 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4957 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4958 $(observer_h).
4959
4960 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4961
4962 * gdbarch.sh (remote_translate_xfer_address): Remove.
4963 * gdbarch.h, gdbarch.c: Regenerate.
4964 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4965 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4966 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4967 call gdbarch_remote_translate_xfer_address.
4968 * frv-tdep.c (frv_gdbarch_init): Do not call
4969 set_gdbarch_remote_translate_xfer_address.
4970 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4971 (ia64_gdbarch_init): Do not install it.
4972
4973 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4974
4975 * NEWS: Mention change in handling the -tui option.
4976
4977 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4978
4979 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4980 typo.
4981
4982 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4983
4984 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4985 (breakpoint_inserted_here_p): Call it.
4986 (software_breakpoint_inserted_here_p): Likewise.
4987
4988 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4989
4990 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4991 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4992 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4993 (inf_ptrace_store_register): Likewise.
4994 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4995 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4996
4997 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4998
4999 * linux-nat.c (linux_trad_target): Adapt parameter list.
5000 * linux-nat.h (linux_trad_target): Likewise.
5001
5002 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
5003
5004 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
5005 (mips_linux_cannot_store_register): Likewise.
5006 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
5007 Return (CORE_ADDR) -1 for registers that cannot be fetched or
5008 stored via ptrace. Use GDBARCH instead of current_gdbarch.
5009 (mips64_linux_register_addr): Likewise.
5010 (mips_linux_register_u_offset): Adapt parameter list. Pass
5011 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
5012
5013 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5014 * config/mips/nm-linux.h: Delete file.
5015
5016 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
5017
5018 * remote.c (remote_detach): Error out if remote can't detach.
5019
5020 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
5021
5022 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
5023 instruction's opcode in the "opcode" variable and declares new
5024 variable "closing_insn".
5025
5026 2007-05-10 Chris Dearman <chris@mips.com>
5027 Maciej W. Rozycki <macro@mips.com>
5028
5029 * cli/cli-setshow.c (do_setshow_command): Remove trailing
5030 whitespace when setting a var_filename.
5031
5032 2007-05-09 Bob Wilson <bob.wilson@acm.org>
5033
5034 * main.c (captured_main): Recognize -tui option and print an error
5035 message when the TUI is not configured.
5036
5037 2007-05-09 Andreas Schwab <schwab@suse.de>
5038
5039 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
5040 set removed members.
5041 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5042
5043 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5044
5045 * gdbarch.sh (deprecated_store_struct_return): Remove.
5046 * gdbarch.c, gdbarch.h: Regenerate.
5047 * frv-tdep.c (frv_store_struct_return): Remove.
5048 (frv_gdbarch_init): Do not install it.
5049
5050 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5051
5052 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
5053 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
5054 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
5055
5056 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5057
5058 * spu-linux-nat.c: Include "gdb_stdint.h".
5059 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
5060 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5061 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
5062 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
5063 (spu_child_wait): Mark up string for translation.
5064
5065 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
5066 Luis Machado <luisgpm@br.ibm.com>
5067
5068 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
5069 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
5070 BC_INSTRUCTION): Define.
5071 (deal_with_atomic_sequence): New function.
5072 (rs6000_software_single_step): Call deal_with_atomic_sequence.
5073 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
5074 gdbarch_software_single_step routine.
5075
5076 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5077
5078 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
5079 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
5080 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
5081 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
5082 spu_child_post_attach, spu_fetch_inferior_registers,
5083 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
5084 memory addresses as ULONGEST, not CORE_ADDR.
5085
5086 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5087
5088 * gdbarch.sh: Add skip_permanent_breakpoint callback.
5089 * gdbarch.h, gdbarch.c: Regenerate.
5090
5091 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
5092 (resume): Call gdbarch_skip_permanent_breakpoint instead of
5093 SKIP_PERMANENT_BREAKPOINT. Inline default case.
5094
5095 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
5096 Add REGCACHE argument. Use it instead of read/write_register.
5097 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
5098
5099 * config/pa/tm-hppah.h: Delete file.
5100 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
5101 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
5102
5103 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
5104
5105 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
5106 * NEWS: Mention improved C++ thunk support.
5107 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
5108 * cp-abi.c (cplus_skip_trampoline): New.
5109 * cp-abi.h (cplus_skip_trampoline): New prototype.
5110 (struct cp_abi_ops): Add skip_trampoline member.
5111 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
5112 (init_gnuv3_ops): Set skip_trampoline.
5113
5114 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5115
5116 * rs6000-tdep.c (struct frame_extra_info): Delete.
5117
5118 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5119
5120 * linux-thread-db.c: Update some FIXME comments.
5121 (thread_db_xfer_partial): Delete.
5122 (init_thread_db_ops): Do not set to_xfer_partial.
5123
5124 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5125
5126 * inftarg.c, infptrace.c: Remove files.
5127 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
5128 (inftarg.o, infptrace.o): Remove rules.
5129 * gdbcore.h (register_addr): Remove prototype.
5130 * inferior.h (kill_inferior, store_inferior_registers,
5131 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
5132 call_ptrace, pre_fork_inferior): Remove prototypes.
5133 * target.h (child_xfer_memory, child_pid_to_exec_file,
5134 child_core_file_to_sym_file, child_post_attach,
5135 child_post_startup_inferior, child_acknowledge_created_inferior,
5136 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
5137 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
5138 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
5139 child_follow_fork, child_reported_exec_events_per_exec_call,
5140 child_has_exited, child_thread_alive): Remove prototypes.
5141
5142 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5143
5144 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
5145 (sparc_store_inferior_registers): Likewise.
5146 * sparc-nat.c (fetch_inferior_registers): Rename to ...
5147 (sparc_fetch_inferior_registers): ... this.
5148 (store_inferior_registers): Rename to ...
5149 (sparc_store_inferior_registers): ... this.
5150 (sparc_target): Update callback names.
5151 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
5152 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
5153
5154 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5155
5156 * linux-nat.c (child_post_attach): Rename to ...
5157 (linux_child_post_attach): ... this. Make static.
5158 (child_follow_fork): Rename to ...
5159 (linux_child_follow_fork): ... this. Make static.
5160 (child_insert_fork_catchpoint): Rename to ...
5161 (linux_child_insert_fork_catchpoint): ... this. Make static.
5162 (child_insert_vfork_catchpoint): Rename to ...
5163 (linux_child_insert_vfork_catchpoint): ... this. Make static.
5164 (child_insert_exec_catchpoint): Rename to ...
5165 (linux_child_insert_exec_catchpoint): ... this. Make static.
5166 (child_pid_to_exec_file): Rename to ...
5167 (linux_child_pid_to_exec_file): ... this. Make static.
5168 Add prototype.
5169 (linux_handle_extended_wait): Update call.
5170 (linux_xfer_partial): Update callback routine names.
5171
5172 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5173
5174 * configure.host (alpha*-*-osf[12]*): Remove support.
5175 * NEWS: Mention removed configurations.
5176
5177 * config/alpha/alpha-osf1.mh: Delete file.
5178 * config/alpha/alpha-osf2.mh: Delete file.
5179 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
5180 and infptrace.o.
5181 * config/alpha/nm-osf.h: Delete file.
5182 * config/alpha/nm-osf2.h: Delete file.
5183 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
5184 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
5185 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
5186
5187 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
5188 (register_addr, kernel_u_size): Remove.
5189 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
5190
5191 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5192
5193 * regcache.c (regcache_invalidate): New function.
5194 (register_cached): Remove.
5195 (set_register_cached): Remove.
5196 (deprecated_registers_fetched): Remove.
5197 (registers_changed): Use regcache_invalidate instead
5198 of set_register_cached.
5199 (regcache_raw_read): Update comment.
5200
5201 * regcache.h (regcache_invalidate): Add prototype.
5202 (register_cached): Remove.
5203 (set_register_cached): Remove.
5204 (deprecated_registers_fetched): Remove.
5205
5206 * findvar.c (value_of_register): Do not call register_cached.
5207 * frame.c (frame_register): Likewise.
5208 * tui/tui-regs.c (tui_get_register): Likewise.
5209
5210 * remote.c (fetch_register_using_p): Do not call set_register_cached.
5211 (process_g_packet): Likewise.
5212 (remote_fetch_registers): Likewise.
5213 * remote-sim.c (gdbsim_fetch_register): Likewise.
5214 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
5215 by regcache_invalidate.
5216 (mt_pseudo_register_write): Likewise.
5217 * sh-tdep.c (sh_pseudo_register_write): Likewise.
5218
5219 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
5220 call by loop over regcache_raw_supply (..., NULL).
5221
5222 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5223
5224 * target.h (struct target_ops): Add REGCACHE parameter to
5225 to_prepare_to_store.
5226 (target_prepare_to_store): Likewise.
5227 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
5228 (update_current_target): Adapt prepare_to_store de_fault rule.
5229
5230 * regcache.c (regcache_raw_write): Pass regcache to
5231 target_prepare_to_store.
5232
5233 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
5234 Do not call CHILD_PREPARE_TO_STORE.
5235 * gnu-nat.c (gnu_prepare_to_store): Likewise.
5236 * procfs.c (procfs_prepare_to_store): Likewise.
5237
5238 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
5239 * go32-nat.c (go32_prepare_to_store): Likewise.
5240 * monitor.c (monitor_prepare_to_store): Likewise.
5241 * nto-procfs.c (procfs_prepare_to_store): Likewise.
5242 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
5243 * remote-mips.c (mips_prepare_to_store): Likewise.
5244 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
5245 * win32-nat.c (win32_prepare_to_store): Likewise.
5246
5247 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
5248 Use it instead of current_regcache.
5249
5250 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
5251 parameter. Pass it on to next target.
5252 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
5253
5254 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5255
5256 * target.h (struct regcache): Add forward declaration.
5257 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
5258 and to_store_registers target operations.
5259 (target_fetch_registers, target_store_registers): Update.
5260
5261 * regcache.c (regcache_raw_read): Replace register_cached by
5262 regcache_valid_p. Pass regcache to target_fetch_registers.
5263 (regcache_raw_write): Pass regcache to target_store_registers.
5264
5265 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
5266 store_regs, store_wmmx_regs): Replace register_cached by
5267 regcache_valid_p.
5268
5269 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
5270 to target_fetch_registers calls.
5271 * corelow.c (core_open): Likewise.
5272 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
5273 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5274 ps_lsetfpregs): Likewise.
5275 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5276 ps_lsetfpregs): Likewise.
5277 * win32-nat.c (win32_resume): Likewise.
5278 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
5279 to target_store_registers call.
5280 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5281
5282 * inferior.h (store_inferior_registers): Update prototype.
5283 (fetch_inferior_registers): Likewise.
5284 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
5285 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
5286 Update function pointer signatures.
5287
5288 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
5289 use it instead of current_regcache, update calls.
5290 (aix_thread_store_registers): Likewise.
5291 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
5292 (alphabsd_store_inferior_registers): Likewise.
5293 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
5294 (amd64bsd_store_inferior_registers): Likewise.
5295 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
5296 (amd64_linux_store_inferior_registers): Likewise.
5297 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
5298 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
5299 fetch_wmmx_regs, store_wmmx_regs): Likewise.
5300 (arm_linux_fetch_inferior_registers): Likewise.
5301 (arm_linux_store_inferior_registers): Likewise.
5302 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
5303 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
5304 (store_register, store_regs, store_fp_register, store_fp_regs,
5305 armnbsd_store_registers): Likewise.
5306 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5307 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5308 (bsd_uthread_store_registers): Likewise.
5309 * corelow.c (get_core_registers): Likewise.
5310 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5311 go32_store_registers): Likewise.
5312 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5313 (hppabsd_store_registers): Likewise.
5314 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5315 (hppa_hpux_fetch_inferior_registers): Likewise.
5316 (hppa_hpux_store_register): Likewise.
5317 (hppa_hpux_store_inferior_registers): Likewise.
5318 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5319 (hppa_linux_fetch_inferior_registers): Likewise.
5320 (hppa_linux_store_inferior_registers): Likewise.
5321 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5322 (hpux_thread_store_registers): Likewise.
5323 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5324 (i386bsd_store_inferior_registers): Likewise.
5325 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5326 gnu_store_registers): Likewise.
5327 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5328 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5329 Likewise.
5330 (i386_linux_fetch_inferior_registers): Likewise.
5331 (i386_linux_store_inferior_registers): Likewise.
5332 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5333 (ia64_linux_fetch_registers): Likewise.
5334 (ia64_linux_store_register): Likewise.
5335 (ia64_linux_store_registers): Likewise.
5336 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5337 (inf_child_store_inferior_registers): Likewise.
5338 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5339 (inf_ptrace_fetch_registers): Likewise.
5340 (inf_ptrace_store_register): Likewise.
5341 (inf_ptrace_store_registers): Likewise.
5342 * infptrace.c (fetch_register, store_register): Likewise.
5343 (fetch_inferior_registers, store_inferior_registers): Likewise.
5344 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5345 (m32r_linux_fetch_inferior_registers): Likewise.
5346 (m32r_linux_store_inferior_registers): Likewise.
5347 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5348 (m68kbsd_store_inferior_registers): Likewise.
5349 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5350 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5351 fetch_fpregs, store_fpregs): Likewise.
5352 (m68k_linux_fetch_inferior_registers): Likewise.
5353 (m68k_linux_store_inferior_registers): Likewise.
5354 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5355 (m88kbsd_store_inferior_registers): Likewise.
5356 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5357 (mips64obsd_store_inferior_registers): Likewise.
5358 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5359 (mips64_linux_regsets_store_registers): Likewise.
5360 (mips64_linux_fetch_registers): Likewise.
5361 (mips64_linux_store_registers): Likewise.
5362 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5363 (mipsnbsd_store_inferior_registers): Likewise.
5364 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5365 (monitor_fetch_registers, monitor_store_registers): Likewise.
5366 * nto-procfs.c (procfs_fetch_registers): Likewise.
5367 (procfs_store_registers): Likewise.
5368 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5369 fetch_register, supply_vrregset, fetch_altivec_registers,
5370 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5371 (store_altivec_register, store_spe_register, store_register,
5372 fill_vrregset, store_altivec_registers, store_ppc_registers,
5373 ppc_linux_store_inferior_registers): Likewise.
5374 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5375 (ppcnbsd_store_inferior_registers): Likewise.
5376 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5377 (ppcobsd_store_registers): Likewise.
5378 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5379 * remote.c (fetch_register_using_p, process_g_packet,
5380 fetch_registers_using_g, remote_fetch_registers): Likewise.
5381 (store_register_using_P, store_registers_using_G,
5382 remote_store_registers): Likewise.
5383 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5384 m32r_store_register, m32r_store_register): Likewise.
5385 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5386 * remote-sim.c (gdbsim_fetch_register): Likewise.
5387 (gdbsim_store_register): Likewise.
5388 * rs6000-nat.c (fetch_register, store_register): Likewise.
5389 (rs6000_fetch_inferior_registers): Likewise.
5390 (rs6000_store_inferior_registers): Likewise.
5391 * s390-nat.c (fetch_regs, store_regs): Likewise.
5392 (fetch_fpregs, store_fpregs): Likewise.
5393 (s390_linux_fetch_inferior_registers): Likewise.
5394 (s390_linux_store_inferior_registers): Likewise.
5395 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5396 (shnbsd_store_inferior_registers): Likewise.
5397 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5398 (sol_thread_store_registers): Likewise.
5399 * sparc-nat.c (fetch_inferior_registers): Likewise.
5400 (store_inferior_registers): Likewise.
5401 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5402 (spu_store_inferior_registers): Likewise.
5403 * target.c (debug_print_register): Likewise.
5404 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5405 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5406 (vaxbsd_store_inferior_registers): Likewise.
5407 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5408 (win32_fetch_inferior_registers): Likewise.
5409 (win32_store_inferior_registers): Likewise.
5410
5411 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5412
5413 * gdbcore.h (struct regcache): Add forward declaration.
5414 (struct core_fns): Add REGCACHE argument to core_read_registers
5415 callback.
5416 * corelow.c (get_core_register_section): Add REGCACHE argument,
5417 use it instead of current_regcache, pass it to core_read_registers
5418 callback.
5419 (get_core_registers): Add current_regcache as parameter to
5420 get_core_register_section calls.
5421
5422 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5423 use it instead of current_regcache.
5424 * armnbsd-nat.c (fetch_core_registers): Likewise.
5425 (fetch_elfcore_registers): Likewise.
5426 * core-regset.c (fetch_core_registers): Likewise.
5427 * cris-tdep.c (fetch_core_registers): Likewise.
5428 * irix5-nat.c (fetch_core_registers): Likewise.
5429 * m68klinux-nat.c (fetch_core_registers): Likewise.
5430 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5431 * win32-nat.c (fetch_elf_core_registers): Likewise.
5432
5433 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5434
5435 * gregset.h (struct regcache): Add forward declaration.
5436 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5437 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5438 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5439 (fill_gregset): Add REGCACHE parameter.
5440 (fill_fpregset): Likewise.
5441 (fill_fpxregset): Likewise.
5442
5443 Update all definitions accordingly:
5444 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5445 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5446 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5447 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5448 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5449 (supply_gregset): Add REGCACHE parameter, use it instead of
5450 current_regcache. Make GREGSETP parameter const, adapt casts.
5451 (supply_fpregset): Add REGCACHE parameter, use it instead of
5452 current_regcache. Make FPREGSETP parameter const, adapt casts.
5453 (fill_gregset): Add REGCACHE parameter, use it instead of
5454 current_regcache.
5455 (fill_fpregset): Likewise.
5456
5457 Update all callers to pass in current_regcache as the new argument:
5458 * core-regset.c: Include "regcache.h".
5459 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5460 * procfs.c: Include "regcache.h".
5461 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5462 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5463 (procfs_do_thread_registers): Likewise.
5464 (procfs_make_note_section): Likewise.
5465 * proc-service.c: Include "regcache.h".
5466 (ps_lgetregs): Update fill_gregset call.
5467 (ps_lsetregs): Update supply_gregset call.
5468 (ps_lgetfpregs): Update fill_fpregset call.
5469 (ps_lsetfpregs): Update supply_fpregset call.
5470 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5471 supply_fpregset calls.
5472 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5473 (ps_lgetregs): Update fill_gregset call.
5474 (ps_lsetregs): Update supply_gregset call.
5475 (ps_lgetfpregs): Update fill_fpregset call.
5476 (ps_lsetfpregs): Update supply_fpregset call.
5477
5478 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5479 fill_fpregset, and fill_fpxregset calls.
5480 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5481 (store_regs): Update fill_gregset call.
5482 (fetch_fpregs): Update supply_fpregset call.
5483 (store_fpregs): Update fill_fpregset call.
5484 (fetch_fpxregs): Update supply_fpxregset call.
5485 (store_fpxregs): Update fill_fpxregset call.
5486 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5487 (store_regs): Update fill_gregset call.
5488 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5489 (store_regs): Update fill_gregset call.
5490 (fetch_fpregs): Update supply_fpregset call.
5491 (store_fpregs): Update fill_fpregset call.
5492 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5493 * s390-nat.c (fetch_regs): Update supply_gregset call.
5494 (store_regs): Update fill_gregset call.
5495 (fetch_fpregs): Update supply_fpregset call.
5496 (store_fpregs): Update fill_fpregset call.
5497
5498 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5499 dependencies.
5500
5501 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5502
5503 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5504 it instead of current_regcache.
5505 (parse_register_dump): Add REGCACHE parameter, pass it to
5506 supply_register callback.
5507 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5508 parse_register_dump.
5509 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5510 parse_register_dump and dumpregs callback.
5511 (monitor_wait): Pass current_regcache to parse_register_dump and
5512 monitor_dump_regs.
5513 (monitor_fetch_register): Pass current_regcache to
5514 monitor_supply_register.
5515 (monitor_fetch_registers): Pass current_regcache to
5516 monitor_dump_regs.
5517 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5518 supply_register and dumpregs callbacks.
5519 (monitor_supply_register, monitor_dump_reg_block): Update
5520 prototypes.
5521 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5522 it to monitor_supply_register.
5523 * dink32-rom.c (dink32_supply_register): Likewise.
5524 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5525 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5526 instead of current_regcache.
5527
5528 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5529
5530 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5531 Add REGCACHE parameter. Use it instead of current_regcache.
5532 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5533 i386nto_supply_gregset and i386nto_supply_fpregset.
5534 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5535 of current_regcache.
5536
5537 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5538 nto_supply_ helper functions.
5539 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5540
5541 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5542
5543 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5544 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5545 and regset_fill member function pointers.
5546 (nto_dummy_supply_regset): Adapt prototype.
5547
5548 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5549
5550 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5551 instead of current_regcache. Make REGS const.
5552 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5553 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5554 prototypes.
5555 * shnbsd-nat.c: Include "regcache.h".
5556 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5557 shnbsd_supply_reg.
5558 (shnbsd_store_inferior_registers): Pass current_regcache to
5559 shnbsd_fill_reg.
5560 * Makefile.in (shbsd-nat.o): Update dependencies.
5561
5562 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5563
5564 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5565 instead of current_regcache.
5566 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5567 Make GREGSETP const, remove superfluous casts.
5568 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5569 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5570 superfluous casts.
5571 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5572 (supply_64bit_reg): Likewise
5573 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5574 Make GREGSETP const, adapt casts accordingly.
5575 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5576 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5577 casts accordingly.
5578 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5579 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5580 helper routines.
5581 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5582 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5583 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5584 Adapt prototypes.
5585 * mips-linux-nat.c: Include "regcache.h".
5586 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5587 current_regcache to mips{64}_(supply|fill)_ helper routines.
5588 (mips64_linux_regsets_fetch_registers): Likewise.
5589 (mips64_linux_regsets_store_registers): Likewise.
5590
5591 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5592 REGCACHE argument; replace current_regcache. Make REGS const.
5593 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5594 replace current_regcache.
5595 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5596 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5597 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5598 mipsnbsd_store_inferior_registers): Pass current_regcache to
5599 mipsnbsd_(supply|fill)_... helper routines.
5600
5601 * Makefile.in (mips-linux-nat.o): Update dependencies.
5602
5603 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5604
5605 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5606 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5607 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5608 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5609 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5610 * i386gnu-nat.c (store_fpregs): Likewise.
5611 * i386v4-nat.c (fill_fpregset): Likewise.
5612 * go32-nat.c (store_register, go32_store_registers): Likewise.
5613
5614 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5615
5616 * cris-tdep.c (supply_gregset): Rename to ...
5617 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5618 instead of current_regcache.
5619 (fetch_core_registers): Update call. Pass current_regcache.
5620
5621 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5622
5623 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5624 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5625 Use it instead of current_regcache.
5626 (supply_fparegset): Rename to ...
5627 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5628 Use it instead of current_regcache.
5629 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5630 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5631
5632 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5633
5634 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5635 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5636 use it instead of current_regcache.
5637 * alpha-tdep.h (struct regcache): Add forward declaration.
5638 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5639 alpha_fill_fp_regs): Update prototypes.
5640
5641 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5642 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5643 * alpha-linux-nat.c: Include "regcache.h".
5644 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5645 current_regcache to alpha_supply/fill_ routines.
5646
5647 * alphabsd-tdep.c: Include "regcache.h".
5648 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5649 pass it to alpha_supply_ routines. Make REGS const.
5650 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5651 pass it to alpha_fill_ routines.
5652 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5653 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5654 alphabsd_fill_fpreg): Update prototypes.
5655
5656 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5657 fill_fpregset, alphabsd_fetch_inferior_registers,
5658 alphabsd_store_inferior_registers): Pass current_regcache to
5659 alphabsd_supply/fill_ routines.
5660
5661 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5662 dependencies.
5663
5664 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5665
5666 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5667 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5668 instead of current_regcache.
5669 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5670 REGCACHE parameter, pass it to supply_ routines.
5671 (aix_thread_fetch_registers): Pass current_regcache to
5672 fetch_regs_user_thread and fetch_regs_kernel_thread.
5673
5674 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5675 Add REGCACHE parameter, use it instead of current_regcache.
5676 Call regcache_valid_p instead of register_cached.
5677 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5678 Also, pass REGCACHE to fill_ routines.
5679 (aix_thread_store_registers): Pass current_regcache to
5680 store_regs_user_thread and store_regs_kernel_thread.
5681
5682 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5683
5684 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5685 pointed to by GREGSETP.
5686
5687 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5688
5689 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5690 of regcache_raw_read_signed.
5691 (fill_fpregset): Use regcache_raw_collect instead of
5692 regcache_raw_read.
5693
5694 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5695
5696 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5697 point arguments, test explicitly for use of the EABI32 ABI
5698 instead of inferring this condition from tests on register
5699 sizes.
5700
5701 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5702
5703 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5704 prior to allocating its location.
5705
5706 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5707
5708 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5709 based on mips_abi_regsize() whose result is known in advance.
5710 (mips_o64_push_dummy_call): Likewise.
5711
5712 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5713
5714 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5715 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5716
5717 * mips-linux-nat.c: Include "gregset.h".
5718 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5719 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5720 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5721 fill_fpregset): Move to mips-linux-nat.c.
5722
5723 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5724
5725 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5726
5727 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5728 (read_register): ... here.
5729 (deprecated_write_register_gen): Remove, inline ...
5730 (write_register): ... here.
5731 * regcache.h (deprecated_read_register_gen): Remove prototype.
5732 (deprecated_write_register_gen): Likewise.
5733
5734 * remote-sim.c (gdbsim_store_register): Replace call to
5735 deprecated_read_register_gen with regcache_cooked_read.
5736 * target.c (debug_print_register): Replace calls to
5737 deprecated_read_register_gen and read_register with
5738 regcache_cooked_read.
5739
5740 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5741
5742 * hpux-thread.c (hpux_thread_store_registers): Use
5743 regcache_raw_collect, not regcache_raw_read.
5744 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5745 not regcache_raw_write.
5746
5747 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5748
5749 * gdbarch.sh: Remove deprecated_register_byte.
5750 * gdbarch.c, gdbarch.h: Regenerate.
5751 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5752 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5753
5754 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5755 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5756 read-only register caches. Make REGCACHE parameter const.
5757 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5758
5759 * mi/mi-main.c (old_regs): Remove.
5760 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5761 (register_changed_p): Reimplement to compare two register caches.
5762 (mi_cmd_data_list_changed_registers): Update caller.
5763 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5764 * mi/mi-interp.c (mi_interpreter_init): Do not call
5765 mi_setup_architecture_data.
5766
5767 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5768
5769 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5770 inline definition at the places the macros are used.
5771 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5772
5773 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5774
5775 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5776 "gdb_string.h".
5777 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5778 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5779 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5780 (rs6000_aix_regset_from_core_section): New function.
5781 (rs6000_aix_init_osabi): Register it.
5782 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5783 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5784 * rs6000-nat.c (CoreRegs): Do not define type.
5785 (fetch_core_registers, rs6000_core_fns): Remove.
5786 (_initialize_core_rs6000): Do not register it. Rename to ...
5787 (_initialize_rs6000_nat): ... this.
5788 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5789
5790 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5791
5792 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5793 (dwarf2_read_address): Sign extend return address as required by
5794 target architecture.
5795
5796 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5797
5798 * solib-frv.c (lm_base): Bail out if the main executable has
5799 not been relocated.
5800
5801 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5802
5803 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5804 of FPCR register in fpregset.
5805
5806 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5807
5808 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5809 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5810
5811 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5812
5813 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5814 * rs6000-nat.c (rs6000_wait): New function.
5815 (_initialize_core_rs6000): Install it as to_wait target method.
5816 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5817
5818 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5819
5820 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5821 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5822 * rs6000-nat.c (super_create_inferior): New variable.
5823 (rs6000_create_inferior): Make static. Adapt argument list. Call
5824 original version of create_inferior via super_create_inferior.
5825 (_initialize_core_rs6000): Install to_create_inferior target method.
5826
5827 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5828
5829 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5830 (aix_thread_xfer_partial): ... this.
5831 (init_aix_thread_ops): Install to_xfer_partial instead
5832 of deprecated_xfer_memory target method.
5833
5834 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5835 and inftarg.o, add inf-ptrace.o.
5836 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5837 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5838 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5839 (fetch_inferior_registers): Rename to ...
5840 (rs6000_fetch_inferior_registers): ... this. Make static.
5841 (store_inferior_registers): Rename to ...
5842 (rs6000_store_inferior_registers): ... this. Make static.
5843 (read_word, child_xfer_memory): Remove.
5844 (rs6000_xfer_partial): New function.
5845 (kernel_u_size): Remove.
5846 (_initialize_core_rs6000): Add inf_ptrace-based target.
5847 * Makefile.in (rs6000-nat.o): Update dependencies.
5848
5849 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5850
5851 * inf-ptrace.c: Include "gdb_stdint.h".
5852 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5853 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5854 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5855 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5856 (inf_ptrace_store_register): Likewise.
5857 * Makefile.in (inf-ptrace.o): Update dependencies.
5858
5859 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5860
5861 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5862 * configure.tgt (rs6000-*-*): Likewise.
5863 * config/rs6000/aix4.mh: Delete file.
5864 * config/rs6000/aix4.mt: Delete file.
5865 * config/rs6000/rs6000.mh: Delete file.
5866 * config/rs6000/rs6000.mt: Delete file.
5867
5868 * config/powerpc/nm-aix.h: Delete file.
5869 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5870
5871 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5872
5873 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5874 Remove obsolete part of comment.
5875 (store_regs_user_thread): Use uint32_t temporaries when calling
5876 fill_sprs32.
5877 (store_regs_kernel_thread): Likewise. Add assertion to verify
5878 correct size of struct ptsprs members.
5879 (aix_thread_xfer_memory): Fix type of myaddr.
5880 (aix_thread_extra_thread_info): Fix compiler warning.
5881 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5882 (fetch_register, store_register): Adapt callers.
5883
5884 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5885
5886 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5887
5888 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5889
5890 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5891 and "regcache.h".
5892 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5893 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5894 (alpha_linux_regset_from_core_section): New function.
5895 (alpha_linux_init_abi): Install it.
5896 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5897 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5898 <sys/procfs.h>, and "gregset.h".
5899 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5900 Move from config/alpha/nm-linux.h.
5901 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5902 from alpha-nat.c.
5903 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5904 * alpha-nat.c: Remove #ifdef __linux__ section.
5905 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5906 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5907 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5908 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5909 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5910 (NATDEPFILES): Remove alpha-nat.o.
5911 * config/alpha/nm-linux.h: Delete file.
5912 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5913 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5914 (alpha-linux-tdep.o): Likewise.
5915
5916 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5917
5918 * mips-linux-nat.c: No longer include "gdbcore.h".
5919 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5920 (mips64_linux_register_addr): Likewise.
5921 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5922 mips64_linux_register_addr instead of register_addr.
5923 * mips-linux-tdep.c (mips_linux_register_addr,
5924 mips64_linux_register_addr): Move to mips-linux-nat.c.
5925 (register_addr): Remove.
5926 (register_addr_data, init_register_addr_data): Remove.
5927 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5928 (set_mips_linux_register_addr): Remove.
5929 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5930 * Makefile.in (mips-linux-nat.o): Update dependencies.
5931
5932 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5933
5934 * linux-nat.c (linux_register_u_offset): Remove.
5935 (linux_target_install_ops): New function.
5936 (linux_target): Use it.
5937 (linux_trad_target): New function.
5938 * linux-nat.h (linux_trad_target): Declare.
5939
5940 * alpha-linux-nat.c: Include "gdbcore.h".
5941 (alpha_linux_register_u_offset): New function.
5942 (_initialize_alpha_linux_nat): Use linux_trad_target.
5943
5944 * mips-linux-nat.c: Include "gdbcore.h".
5945 (mips_linux_register_u_offset): New function.
5946 (_initialize_mips_linux_nat): Use linux_trad_target.
5947
5948 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5949 * config/arm/nm-linux.h: Delete file.
5950
5951 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5952 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5953
5954 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5955 * config/ia64/nm-linux.h: Delete file.
5956
5957 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5958 * config/m32r/nm-linux.h: Delete file.
5959
5960 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5961 * config/m68k/nm-linux.h: Delete file.
5962
5963 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5964 * config/pa/nm-linux.h: Delete file.
5965
5966 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5967 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5968 * config/powerpc/nm-linux.h: Delete file.
5969
5970 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5971 * config/s390/nm-linux.h: Delete file.
5972
5973 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5974 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5975 * config/sparc/nm-linux.h: Delete file.
5976
5977 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5978 (mips-linux-nat.o): Likewise.
5979
5980 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5981
5982 * core-aout.c: Delete file.
5983 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5984 (core-aout.o): Delete rule.
5985 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5986
5987 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5988
5989 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5990 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5991 KERNEL_U_ADDR): Remove.
5992
5993 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5994 (cannot_fetch_register, cannot_store_register): Remove.
5995 (fetch_register): Inline cannot_fetch_register and register_addr.
5996 (store_register): Inline cannot_store_register and register_addr.
5997 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5998 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5999 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
6000 Remove.
6001
6002 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
6003 (fetch_register): Inline register_addr.
6004 (store_register): Inline register_addr.
6005 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
6006 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
6007 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
6008
6009 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
6010 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
6011 REGISTER_U_ADDR): Remove.
6012
6013 * hppa-linux-nat.c (register_addr): Rename to ...
6014 (hppa_linux_register_addr): ... this. Make static.
6015 (fetch_register, store_register): Adapt callers.
6016 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
6017
6018 * ppc-linux-nat.c (kernel_u_size): Remove.
6019 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
6020
6021 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
6022 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
6023 (NAT_FILE): Remove.
6024 * config/vax/nm-vax.h: Delete file.
6025
6026 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
6027
6028 * MAINTAINERS (Write After Approval): Add myself.
6029
6030 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
6031
6032 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
6033 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
6034 (m68k_linux_sigcontext_reg_offset): Fix typo.
6035 (target_is_uclinux): New.
6036 (m68k_linux_inferior_created): New.
6037 (m68k_linux_get_sigtramp_info): Check for uClinux or
6038 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
6039 uClinux.
6040 (_initialize_m68k_linux_tdep): Register
6041 m68k_linux_inferior_created.
6042
6043 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
6044
6045 * win32-nat.c (win32_detach): Remove delete_command call.
6046 Resume inferior with win32_resume instead of win32_continue.
6047
6048 2007-04-19 Jerome Guitton <guitton@adacore.com>
6049
6050 * ser-mingw.c (fd_is_file): New function.
6051 (file_select_thread): New function.
6052 (ser_console_wait_handle): Add special handling for files.
6053
6054 2007-04-18 Denis Pilat <denis.pilat@st.com>
6055
6056 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
6057 when missing from DW_TAG_subrange_type. Remove the handling of null
6058 return from die_type.
6059
6060 2007-04-18 Maciej W. Rozycki <macro@mips.com>
6061
6062 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
6063 change to rearrange some brackets.
6064 (mips_n32n64_push_dummy_call): Likewise.
6065 (mips_o32_push_dummy_call): Likewise.
6066 (mips_o64_push_dummy_call): Likewise.
6067
6068 2007-04-18 Denis Pilat <denis.pilat@st.com>
6069
6070 * infcmd.c (post_create_inferior): Start with a call to
6071 target_terminal_ours.
6072
6073 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6074
6075 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
6076 brackets.
6077 (mips_n32n64_push_dummy_call): Likewise. Reformat some
6078 expressions.
6079 (mips_o32_push_dummy_call): Likewise.
6080 (mips_o64_push_dummy_call): Likewise.
6081
6082 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6083
6084 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6085 comment.
6086
6087 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6088
6089 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6090 comment.
6091 (mips_o32_push_dummy_call): Likewise.
6092
6093 2007-04-17 Andreas Schwab <schwab@suse.de>
6094
6095 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
6096 sal to be bigger than the end of the function.
6097
6098 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6099 Nigel Stephens <nigel@mips.com>
6100
6101 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
6102 argument alignment requirements when calculating stack space
6103 required. When aligning an arg register to eight bytes
6104 boundary, align stack_offset too. Write floating-point
6105 arguments to the appropriate integer register if need go there.
6106 (mips_o64_push_dummy_call): Likewise.
6107
6108 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6109
6110 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
6111 "sig" arguments, add "regcache" argument.
6112 * gdbarch.c, gdbarch.h: Regenerate.
6113
6114 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
6115 (handle_inferior_event): Call remove_single_step_breakpoints directly
6116 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
6117
6118 * alpha-tdep.c (alpha_software_single_step): Update argument list.
6119 Remove handling of !insert_breakpoints_p case.
6120 * arm-tdep.c (arm_software_single_step): Likewise.
6121 * cris-tdep.c (cris_software_single_step): Likewise.
6122 * mips-tdep.c (mips_software_single_step): Likewise.
6123 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6124 * sparc-tdep.c (sparc_software_single_step): Likewise.
6125 * spu-tdep.c (spu_software_single_step): Likewise.
6126
6127 * alpha-tdep.h (alpha_software_single_step): Update prototype.
6128 * mips-tdep.h (mips_software_single_step): Likewise.
6129 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6130 * sparc-tdep.h (sparc_software_single_step): Likewise.
6131
6132 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6133
6134 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
6135 when removing single-step breakpoints.
6136
6137 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
6138
6139 * varobj.h (varobj_set_frozen): New
6140 (varobj_get_frozen): New.
6141 (varobj_update): New parameter explicit.
6142 * varobj.c (struct varobj): New fields frozen
6143 and not_fetched.
6144 (varobj_set_frozen, varobj_get_frozen): New.
6145 (install_new_value): Don't fetch values for
6146 frozen variable object, or children thereof. Allow
6147 a frozen variable object to have non-fetched value.
6148 (varobj_update): Allow updating child variables.
6149 Don't traverse frozen children.
6150 (new_variable): Initialize the frozen field.
6151 (c_value_of_variable): Return NULL for frozen
6152 variable without any value yet.
6153 * mi/mi-cmd-var.c (varobj_update_one): New parameter
6154 'explicit'.
6155 (mi_cmd_var_create): Output the 'frozen' field,
6156 as soon as testsuite is adjusted to expect that field.
6157 (mi_cmd_var_set_frozen): New.
6158 (mi_cmd_var_update): Pass the 'explicit' parameter to
6159 varobj_update_one.
6160 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
6161 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
6162
6163 2007-04-13 Paul Brook <paul@codesourcery.com>
6164
6165 * target-descriptions.c (tdesc_named_type): Add ieee_single and
6166 ieee_double.
6167 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
6168
6169 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6170
6171 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
6172 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
6173 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
6174 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
6175 * Makefile.in: Remove references to deleted files.
6176 * README: Do not mention deleted ROM monitor interfaces.
6177 * defs.h (enum language): Delete language_scm.
6178 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
6179 (dump_subexp_body_standard): Likewise.
6180 * parse.c (operator_length_standard): Likewise.
6181 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
6182 * remote-mips.c: Do not include remote-utils.h.
6183 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
6184 throughout.
6185 * value.c: Do not include scm-lang.h.
6186 (unpack_long): Delete scm_unpack call.
6187 * config/h8300/h8300.mt, config/mips/embed.mt,
6188 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
6189 config/sh/embed.mt, config/sh/linux.mt: Remove references to
6190 deleted files.
6191 * NEWS: Mention removed files.
6192
6193 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6194
6195 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
6196 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
6197
6198 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6199
6200 * NEWS: Mention removal of HP aCC support.
6201
6202 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6203
6204 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
6205 first entry for static executables.
6206 (breakpoint_addr): Delete unused variable.
6207 (elf_locate_base): Search for _r_debug in static executables.
6208 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
6209 also.
6210
6211 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6212
6213 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
6214 (bpstat_what, print_one_breakpoint, allocate_bp_location)
6215 (mention): Remove bp_through_sigtramp support.
6216 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
6217
6218 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6219
6220 * breakpoint.c (bpstat_what): Give step-resume higher priority than
6221 shlib events.
6222
6223 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6224
6225 * infrun.c: Doc fixes.
6226 (handle_inferior_event): Clarify debug message.
6227 (insert_step_resume_breakpoint_at_sal): Print a debug message.
6228
6229 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6230
6231 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
6232
6233 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6234
6235 * config/m68k/tm-monitor.h: Delete file.
6236 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
6237 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
6238 call moved to ...
6239 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
6240 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
6241
6242 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
6243
6244 * gdbarch.sh (software_single_step): Change the return type
6245 from void to int and reformatted some comments to <= 80
6246 columns.
6247 * gdbarch.c, gdbarch.h: Regenerated.
6248 * alpha-tdep.c (alpha_software_single_step): Likewise.
6249 * alpha-tdep.h (alpha_software_single_step): Likewise.
6250 * arm-tdep.c (arm_software_single_step): Likewise.
6251 * cris-tdep.c (cris_software_single_step): Likewise.
6252 * mips-tdep.c (mips_software_single_step): Likewise.
6253 * mips-tdep.h (mips_software_single_step): Likewise.
6254 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6255 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6256 * sparc-tdep.c (sparc_software_single_step): Likewise.
6257 * sparc-tdep.h (sparc_software_single_step): Likewise.
6258 * spu-tdep.c (spu_software_single_step): Likewise.
6259 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
6260 and act accordingly.
6261
6262 2007-04-11 Steve Ellcey <sje@cup.hp.com>
6263
6264 * configure.ac (build_warnings): Add -Wno-char-subscripts.
6265 * configure: Regenerate.
6266 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
6267
6268 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6269
6270 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
6271
6272 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6273
6274 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
6275 macros.
6276 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
6277 distinct on the TYPE_STUB_SUPPORTED debug targets.
6278 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
6279
6280 2007-04-11 Joel Brobecker <brobecker@adacore.com>
6281
6282 * sparc-tdep.c (X_RS2): New macro.
6283 (sparc_skip_stack_check): New function.
6284 (sparc_analyze_prologue): Adjust PC past stack probing
6285 sequence if necessary.
6286
6287 2007-04-10 Andreas Schwab <schwab@suse.de>
6288
6289 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
6290 register.
6291
6292 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6293
6294 * breakpoint.c (gdb_breakpoint_query): Really return an
6295 enum gdb_rc.
6296 (gdb_breakpoint): Likewise.
6297 * thread.c (gdb_list_thread_ids): Likewise.
6298 (gdb_thread_select): Likewise.
6299 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
6300 (mi_cmd_thread_list_ids): Remove bogus initialization.
6301
6302 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6303
6304 * Makefile.in (SFILES): Remove hpacc-abi.c.
6305 (COMMON_OBS): Remove hpacc-abi.o.
6306 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6307 (hpacc-abi.o, hpread.o): Delete rules.
6308 * somread.c: Delete extern declarations from hpread.c.
6309 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6310 (som_symfile_finish): Do not call hpread_symfile_finish.
6311 (som_symfile_init): Do not call hpread_symfile_init.
6312 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6313 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6314 * hpacc-abi.c, hpread.c: Deleted.
6315
6316 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6317
6318 * solib-svr4.c (enable_break): Simplify return value.
6319 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6320
6321 2007-04-10 Andreas Schwab <schwab@suse.de>
6322
6323 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6324 l_ld_size, l_next_size, l_prev_size, l_name_size.
6325
6326 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6327 to extract addresses from link map.
6328 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6329 (LM_NEXT): Likewise.
6330 (LM_NAME): Likewise.
6331 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6332 (elf_locate_base): Likewise.
6333 (open_symbol_file_object): Likewise.
6334 (svr4_fetch_objfile_link_map): Likewise.
6335 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6336 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6337 l_ld_size.
6338 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6339 (svr4_lp64_fetch_link_map_offsets): Likewise.
6340
6341 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6342 removed members. Set l_ld_offset to -1 if not present.
6343
6344 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6345
6346 Pass stderr of program run with "target remote |"
6347 via gdb_stderr.
6348 * serial.c (serial_open): Set error_fd to -1.
6349 * serial.h (struct serial): New field error_fd.
6350 (struct serial_opts): New field avail.
6351 * ser-pipe.c (pipe_open): Create another pair
6352 of sockets. Pass stderr to gdb.
6353 * ser-mingw.c (pipe_windows_open): Pass
6354 PEX_STDERR_TO_PIPE to pex_run. Initialize
6355 sd->error_fd.
6356 (pipe_avail): New.
6357 (_initialize_ser_windows): Hook pipe_avail.
6358 * ser-base.c (generic_readchar): Check if there's
6359 anything in stderr channel and route that to gdb_stderr.
6360
6361 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6362
6363 * dbxread.c (read_ofile_symtab): Move current_objfile
6364 clearing to after end_stabs.
6365
6366 2007-04-01 Andreas Schwab <schwab@suse.de>
6367
6368 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6369 gdbarch instead of current_gdbarch.
6370
6371 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6372
6373 * varobj.c (varobj_create): Keep varobj value
6374 NULL when evaluating the type.
6375
6376 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6377
6378 * NEWS: Mention new Windows CE support.
6379
6380 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6381
6382 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6383 the obsoletion stanza.
6384 * NEWS: Mention deleted targets.
6385
6386 * config/sh/tm-wince.h: Remove.
6387 * config/sh/wince.mt: Remove.
6388 * config/mips/tm-wince.h: Remove.
6389 * config/mips/wince.mt: Remove.
6390
6391 * wince.c: Remove.
6392 * wince-stub.c: Remove.
6393 * wince-stub.h: Remove.
6394 * Makefile.in (wince.o): Remove rule.
6395 (wince-stub.o): Likewise.
6396
6397 * mips-tdep.c (mips_next_pc): Make static.
6398 * mips-tdep.h (mips_next_pc): Remove declaration.
6399 * arm-tdep.c (arm_pc_is_thumb): Make static.
6400 (thumb_get_next_pc): Likewise.
6401 (arm_get_next_pc): Likewise.
6402 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6403 (arm_pc_is_thumb): Likewise.
6404 (thumb_get_next_pc): Likewise.
6405 (arm_get_next_pc): Likewise.
6406
6407 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6408
6409 * MAINTAINERS: Remove d10v entry.
6410 * Makefile.in (SFILES): Remove dwarfread.c.
6411 (COMMON_OBS): Remove dwarfread.o.
6412 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6413 (remote-est.o, rom68k-rom.o): Delete.
6414 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6415 target est, target rom68k, and DWARF 1.
6416 * configure.tgt: Mark d10v as removed.
6417 * dwarf2read.c: Doc update.
6418 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6419 and lnsize.
6420 (elf_locate_sections): Do not set them.
6421 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6422 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6423 * config/m68k/monitor.mt (TDEPFILES): Prune.
6424 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6425 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6426
6427 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6428
6429 * doublest.c (convert_floatformat_to_doublest): Use
6430 floatformat_classify.
6431 (floatformat_is_nan): Rename to...
6432 (floatformat_classify): ...this. Return more information.
6433 * doublest.h (enum float_kind): New.
6434 (floatformat_is_nan): Replace prototype...
6435 (floatformat_classify): ...with this one.
6436 * valprint.c (print_floating): Use floatformat_classify. Handle
6437 infinity.
6438
6439 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6440
6441 * README: Mention ISO C library requirement.
6442
6443 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6444
6445 * Makefile.in (SFILES): Remove nlmread.c.
6446 (COMMON_OBS): Remove nlmread.o.
6447 (nlmread.o): Delete rule.
6448 * README: Delete reference to remote-st.c.
6449 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6450 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6451 GDB_OSABI_LYNXOS.
6452 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6453 (_initialize_i386_tdep): Do not reference them.
6454 * nlmread.c: Delete file.
6455 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6456 * target.c: Doc update.
6457 * thread.c: Delete commented include.
6458 * config/alpha/tm-alpha.h: Doc update.
6459
6460 2007-03-30 Chris Dearman <chris@mips.com>
6461
6462 * utils.c (string_to_core_addr): Comment typo.
6463
6464 2007-03-30 Chris Dearman <chris@mips.com>
6465
6466 * mips-tdep.c: Comment typo.
6467
6468 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6469
6470 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6471 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6472 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6473 * config/powerpc/nm-ppc64-linux.h: Remove file.
6474 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6475 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6476 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6477 * infptrace.c (call_ptrace): Likewise.
6478 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6479 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6480 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6481 (store_register): Likewise.
6482
6483 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6484
6485 * Makefile.in (varobj.o): Add missing dependency.
6486
6487 2007-03-29 Michael Snyder <msnyder@access-company.com>
6488
6489 * MAINTAINERS: Update my email address.
6490
6491 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6492
6493 Add support for exception handling with multiple versions of
6494 the Ada runtime:
6495 * ada-lang.c: Update general comments on how Ada exception catchpoints
6496 are implemented.
6497 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6498 (__gnat_raise_nodefer_with_msg): Delete.
6499 (ada_unhandled_exception_name_addr_ftype): New type.
6500 (exception_support_info): New type.
6501 (ada_unhandled_exception_name_addr): Add forward declaration.
6502 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6503 (default_exception_support_info): New constant.
6504 (exception_support_info_fallback): Likewise.
6505 (exception_info): New global variable.
6506 (ada_exception_support_info_sniffer): New function.
6507 (ada_executable_changed_observer): Likewise.
6508 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6509 ada_unhandled_exception_name_addr.
6510 (ada_unhandled_exception_name_addr): Reimplement to match the
6511 latest Ada runtime implementation.
6512 (error_breakpoint_runtime_sym_not_found): Delete.
6513 (ada_exception_sym_name): Get the exception sym name from
6514 exception_info rather than hardcoding it.
6515 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6516 Update error handling.
6517 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6518
6519 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6520
6521 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6522 (remote-st.o, uw-thread.o): Delete.
6523 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6524 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6525 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6526 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6527 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6528 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6529 rs6000-*-lynxos* to an obsoletion stanza.
6530 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6531 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6532 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6533 i[34567]86-*-netware*.
6534 * NEWS: Mention deleted targets.
6535
6536 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6537 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6538 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6539 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6540 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6541 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6542 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6543 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6544 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6545 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6546 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6547 config/rs6000/tm-rs6000ly.h: Delete files.
6548
6549 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6550
6551 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6552 * interps.c (clear_interpreter_hooks): Do not clear
6553 deprecated_registers_changed_hook.
6554 * regcache.c (registers_changed): Do not call it.
6555 * top.c (deprecated_registers_changed_hook): Do not define it.
6556 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6557 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6558 (tui_remove_hooks): Do not remove it.
6559 (tui_selected_frame_level_changed_hook): Check for negative level.
6560 Use get_selected_frame.
6561 (tui_registers_changed_hook): Deleted.
6562
6563 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6564
6565 * stabsread.c (add_undefined_type): Add extra parameter.
6566 Now handles nameless types separately.
6567 (struct nat): New type.
6568 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6569 New static variables.
6570 (read_type): Update calls to add_undefined_type.
6571 (add_undefined_type_noname): New function.
6572 (add_undefined_type_1): Renames from add_undefined_type.
6573 (cleanup_undefined_types_noname): New function.
6574 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6575 (cleanup_undefined_types): New handles nameless types separately.
6576 (_initialize_stabsread): Initialize our new static constants.
6577
6578 2007-03-29 Denis Pilat <denis.pilat@st.com>
6579
6580 * configure.ac: Test for signal.h.
6581 * configure, config.in: Regenerate.
6582
6583 2007-03-29 Denis Pilat <denis.pilat@st.com>
6584
6585 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6586 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6587
6588 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6589
6590 * arm-wince-tdep.c: New.
6591 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6592 (MT_CFLAGS): Delete.
6593 (TM_CLIBS): Delete.
6594 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6595 solib-legacy.o, solib-svr4.o, and remove wince.o.
6596 * configure.tgt (arm*-*-mingw32ce*): Add.
6597 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6598 (do_target_signal_to_host): Silence 'not used' warning.
6599 * config/arm/tm-wince.h: Remove.
6600
6601 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6602
6603 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6604 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6605
6606 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6607 * config/ia64/tm-linux.h: Remove file.
6608 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6609 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6610 legacy_pc_in_sigtramp.
6611 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6612 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6613 Remove func_name argument.
6614 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6615
6616 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6617 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6618 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6619 (HAVE_STEPPABLE_WATCHPOINT): Define.
6620
6621 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6622 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6623 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6624 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6625 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6626 target_insert_watchpoint, target_remove_watchpoint): Remove.
6627 (FETCH_INFERIOR_REGISTERS): Define.
6628 * ia64-linux-nat.c (ia64_register_addr): Make static.
6629 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6630 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6631 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6632 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6633 (ia64_linux_stopped_by_watchpoint): Make static.
6634 (ia64_linux_can_use_hw_breakpoint): New function.
6635 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6636 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6637 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6638
6639 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6640
6641 * linespec.c: Include language.h.
6642 (find_methods): Add language parameter. Call
6643 lookup_symbol_in_language. Pass language down.
6644 (add_matching_methods): Likewise. Call
6645 lookup_symbol_in_language.
6646 (add_constructors): Likewise.
6647 (find_method): Pass sym_class to collect_methods.
6648 (collect_methods): Add sym_class parameter. Pass language
6649 down.
6650 * symtab.c (lookup_symbol): Rename to ...
6651 (lookup_symbol_in_language): ... this. Add language
6652 parameter. Use passed language instead of current_language.
6653 (lookup_symbol): New as wrapper around
6654 lookup_symbol_in_language.
6655 (lookup_symbol_aux): Add language parameter. Use passed
6656 language instead of current_language.
6657 (search_symbols): Indent.
6658 * symtab.h (enum language): Forward declare.
6659 (lookup_symbol_in_language): Declare.
6660 (lookup_symbol): Update description.
6661 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6662 * ada-lang.c (restore_language): Remove.
6663 (lookup_symbol_in_language): Remove.
6664
6665 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6666
6667 * breakpoint.c (bpstat_num): Add int *num parameter.
6668 * breakpoint.h (bpstat_num): Likewise.
6669 * infcmd.c (continue_command): Adjust to new bpstat_num
6670 interface.
6671 (program_info): Likewise.
6672
6673 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6674
6675 * config/sh/tm-sh.h: Remove file.
6676 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6677 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6678 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6679 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6680
6681 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6682
6683 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6684 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6685 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6686 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6687 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6688 sequence if target_shortname is "remote".
6689
6690 2007-03-27 Anton Blanchard <anton@samba.org>
6691
6692 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6693 instead of wordsize when looking for the LR in a stack frame.
6694
6695 2007-03-27 Andreas Schwab <schwab@suse.de>
6696 Daniel Jacobowitz <dan@codesourcery.com>
6697
6698 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6699 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6700 argument. Update all callers.
6701 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6702 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6703 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6704 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6705 (dwarf2_frame_set_adjust_regnum): ...this.
6706 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6707 * rs6000-tdep.c: Include "dwarf2-frame.h".
6708 (rs6000_adjust_frame_regnum): Define.
6709 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6710 Register rs6000_adjust_frame_regnum.
6711
6712 * Makefile.in (rs6000-tdep.o): Update dependencies.
6713
6714 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6715
6716 * Makefile.in: Add support for a "pdf" target.
6717
6718 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6719
6720 * amd64-tdep.c (amd64_init_frame_cache): New function.
6721 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6722
6723 2007-03-26 Nigel Stephens <nigel@mips.com>
6724 Maciej W. Rozycki <macro@mips.com>
6725
6726 * ui-out.c (ui_out_field_core_addr): Truncate address to
6727 TARGET_ADDR_BIT size before printing.
6728
6729 2007-03-22 Nigel Stephens <nigel@mips.com>
6730 Maciej W. Rozycki <macro@mips.com>
6731
6732 * remote-mips.c (mips_xfer_memory): Update prototype.
6733
6734 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6735
6736 * symfile.h: #include "symtab.h"
6737
6738 2007-03-22 Denis Pilat <denis.pilat@st.com>
6739
6740 * utils.c (pagination_on_command, pagination_off_command):
6741 Remove useless prototypes.
6742
6743 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6744
6745 Fix PR pascal/2232.
6746 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6747 instead of TYPE_NAME for object base class name.
6748
6749
6750 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6751
6752 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6753 Specify frame type in calls to frame_func_unwind().
6754
6755 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6756
6757 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6758 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6759 (refine_prologue_limit): Delete.
6760 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6761 Assume lim_pc is set. Correct check for incomplete prologues.
6762 Do not skip clobbers of the frame pointer.
6763 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6764 sal.
6765
6766 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6767
6768 * frame.c (frame_pop): Check to see whether there's a frame to
6769 which we can pop first.
6770
6771 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6772
6773 * MAINTAINERS (Write After Approval): Add myself.
6774
6775 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6776
6777 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6778 (handle_inferior_event): Remove unnecessary braces.
6779 * breakpoint.c (bpstat_what): Remove wrong comment.
6780
6781 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6782
6783 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6784 (spu_gdbarch_init): Install it.
6785
6786 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6787
6788 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6789 object types, not 0.
6790
6791 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6792
6793 * spu-tdep.c (spu_frame_align): New function.
6794 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6795
6796 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6797
6798 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6799 (spu_software_single_step): Likewise.
6800 (spu_read_pc, spu_write_pc): New functions.
6801 (spu_gdbarch_init): Install them.
6802
6803 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6804
6805 * cli/cli-dump.c (struct callback_data): load_offset needs to
6806 have signed long type.
6807
6808 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6809
6810 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6811 Revert the previous change that had some unexpected side-effects
6812 on mips32.
6813 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6814 function to get the address of the calling instruction.
6815
6816 2007-03-07 Denis Pilat <denis.pilat@st.com>
6817
6818 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6819 get_selected_frame by deprecated_safe_get_selected_frame.
6820
6821 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6822
6823 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6824 "gdb_string.h". Don't include "nbsd-tdep.h".
6825 (SIZEOF_STRUCT_REG): Remove.
6826 (SHNBSD_SIZEOF_GREGS): New.
6827 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6828 (shnbsd_regset_from_core_section): New functions.
6829 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6830 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6831 shnbsd_supply_gregset, shnbsd_collect_gregset.
6832 (shnbsd_gregset): New variable.
6833 (shnbsd_init_abi): Set regset_from_core_section.
6834 (GDB_OSABI_NETBSD_CORE): New define.
6835 (shnbsd_core_osabi_sniffer): New function.
6836 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6837 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6838 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6839 nbsd-tdep.o.
6840 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6841
6842 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6843
6844 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6845 length of the types referenced by the new type CV ring.
6846
6847 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6848
6849 * frame.c (frame_pop, frame_observer_target_changed): Call
6850 reinit_frame_cache.
6851 (flush_cached_frames): Rename to reinit_frame_cache and delete
6852 old implementation.
6853 * frame.h (flush_cached_frames): Delete prototype and update comment.
6854
6855 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6856 reinit_frame_cache instead of flush_cached_frames. Do not call
6857 select_frame after reinit_frame_cache.
6858 * corelow.c (core_open): Likewise.
6859 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6860 * infrun.c (prepare_to_proceed, context_switch)
6861 (handle_inferior_event): Likewise.
6862 * linux-fork.c (fork_load_infrun_state): Likewise.
6863 * ocd.c (ocd_start_remote): Likewise.
6864 * remote-e7000.c (e7000_start_remote): Likewise.
6865 * remote-mips.c (device): Likewise.
6866 * thread.c (switch_to_thread): Likewise.
6867 * tracepoint.c (finish_tfind_command): Likewise.
6868 * gdbarch.c: Regenerated.
6869
6870 2007-02-28 Jerome Guitton <guitton@adacore.com>
6871 Joel Brobecker <brobecker@adacore.com>
6872
6873 * gdbtypes.c (check_typedef): Do not replace stub type if
6874 the resolved type is not defined in the same objfile.
6875
6876 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6877
6878 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6879
6880 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6881
6882 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6883 symbol for Ada units when the symbol is defined using 't' rather
6884 than 'Tt' as symbol descriptor.
6885
6886 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6887
6888 * config/mips/tm-nbsd.h: Delete file.
6889 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6890 * config/sh/tm-nbsd.h: Delete file.
6891 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6892
6893 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6894
6895 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6896 unused WRONG_PARAM value since it was recently deleted.
6897
6898 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6899
6900 * varobj.c (varobj_update): Free temporary vectors.
6901
6902 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6903
6904 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6905 * config/powerpc/tm-linux.h: Delete file.
6906 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6907 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6908 (TEXT_SEGMENT_BASE): Do not redefine.
6909 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6910 from config/rs6000/tm-rs6000.h.
6911 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6912 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6913 (TEXT_SEGMENT_BASE): Remove.
6914 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6915 (rs6000_in_solib_return_trampoline): Remove.
6916 (SKIP_TRAMPOLINE_CODE): Remove.
6917 (rs6000_skip_trampoline_code): Remove.
6918 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6919 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6920 (FP0_REGNUM): Remove.
6921 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6922 (rs6000_set_host_arch_hook): Remove.
6923 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6924 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6925 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6926 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6927 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6928 * rs6000-nat.c: Include "rs6000-tdep.h".
6929 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6930 (set_host_arch): Rename to ...
6931 (rs6000_create_inferior): ... this. Make public.
6932 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6933 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6934 (rs6000_create_inferior): Remove.
6935 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6936 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6937 set_gdbarch_in_solib_return_trampoline, and
6938 set_gdbarch_skip_trampoline_code.
6939 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6940 from config/rs6000/tm-rs6000.h.
6941
6942 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6943
6944 * buildsym.c (record_producer): Do nothing if no producer is provided.
6945
6946 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6947
6948 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6949 to check changelist is non-NULL. Call error if the frontend tries
6950 to update a non-root variable.
6951
6952 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6953
6954 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6955
6956 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6957 (dwarf2_frame_sniffer): Update.
6958 (dwarf2_signal_frame_this_id): New function.
6959 (dwarf2_signal_frame_unwind): Use it.
6960 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6961 * frame.c (frame_func_unwind): Add this_type argument.
6962 (get_frame_func): Update.
6963 (frame_unwind_address_in_block): Add this_type argument and check it.
6964 Fix a typo.
6965 (get_frame_address_in_block): Update.
6966 * frame.h (enum frame_type): Move higher in the file.
6967 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6968 argument.
6969
6970 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6971 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6972 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6973 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6974 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6975 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6976 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6977 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6978 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6979 frame_func_unwind and frame_unwind_address_in_block to specify
6980 the frame type. Use frame_unwind_address_in_block instead of
6981 frame_pc_unwind in sniffers.
6982
6983 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6984
6985 * frame.c (deprecated_selected_frame): Rename to...
6986 (selected_frame): ...this. Make static.
6987 (get_selected_frame, select_frame): Update.
6988 * frame.h (deprected_select_frame): Delete.
6989 (deprecated_safe_get_selected_frame): Update comments.
6990
6991 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6992 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6993 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6994 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6995 tui/tui.c: Replace references to deprecated_selected_frame.
6996
6997 2007-02-27 Fred Fish <fnf@specifix.com>
6998
6999 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
7000 directly decrement the stack pointer, accumulate their operand into
7001 the stack offset, and mark the function as not being frameless.
7002
7003 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7004
7005 * arch-utils.c (selected_byte_order): New.
7006 * arch-utils.h (selected_byte_order): New prototype.
7007 * remote-sim.c (gdbsim_open): Use selected_byte_order.
7008
7009 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7010
7011 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
7012 (default_symfile_offsets): Check VMA here. Update section VMAs.
7013
7014 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7015
7016 * remote.c (init_remote_state): Add special handling for placeholder
7017 registers.
7018
7019 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7020
7021 * Makefile.in (XMLFILES): Include $(TDEP_XML).
7022 (filenames_h): New variable.
7023 (clean): Clean up xml-builtin.c and stamp-xml.
7024 (arm-linux-nat.o): Update.
7025 * config/arm/linux.mh (TDEP_XML): Define.
7026 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
7027 (arm_linux_has_wmmx_registers): New.
7028 (GET_THREAD_ID): Fix typo.
7029 (IWMMXT_REGS_SIZE): Define.
7030 (fetch_wmmx_regs, store_wmmx_regs): New.
7031 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
7032 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
7033 (super_xfer_partial, arm_linux_xfer_partial): New.
7034 (_initialize_arm_linux_nat): Use them.
7035 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
7036 (xml_builtin_xfer_partial): New function.
7037 * xml-support.h (xml_builtin_xfer_partial): New prototype.
7038 * NEWS: Update mention of iWMMXt support.
7039
7040 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7041
7042 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
7043 if there are no FPA registers.
7044 (arm_dwarf_reg_to_regnum): New function.
7045 (arm_register_type, arm_register_name): Return minimal values for
7046 unsupported registers.
7047 (arm_register_sim_regno): Handle iWMMXt registers.
7048 (arm_gdbarch_init): Record missing FPA registers if indicated by
7049 a target description. Recognize iWMMXt registers. Only register
7050 "info float" for FPA. Use ARM_NUM_REGS. Register
7051 arm_dwarf_reg_to_regnum.
7052 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
7053 constants.
7054 (struct gdbarch_tdep): Add have_fpa_registers.
7055 * features/xscale-iwmmxt.xml: Update capitalization.
7056 * regformats/arm-with-iwmmxt.dat: Regenerated.
7057
7058 2007-02-24 Kevin Buettner <kevinb@redhat.com>
7059
7060 * NEWS (New targets): Add entry for the Toshiba Media Processor.
7061
7062 2007-02-23 Kevin Buettner <kevinb@redhat.com>
7063
7064 * MAINTAINERS (mep): New target.
7065
7066 2007-02-23 Kevin Buettner <kevinb@redhat.com>
7067
7068 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
7069 Richard Sandiford:
7070 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
7071 (mep-tdep.o): New rule.
7072 * configure.tgt (mep-*-*): New target.
7073 * mep-tdep.c: New file.
7074 * config/mep/mep.mt: New file.
7075
7076 2007-02-22 Markus Deuling <deuling@de.ibm.com>
7077
7078 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
7079 BREAKPOINT_HIT and STOP_UNKNOWN.
7080
7081 2007-02-22 Markus Deuling <deuling@de.ibm.com>
7082
7083 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
7084
7085 2007-02-20 Joel Brobecker <brobecker@adacore.com>
7086
7087 * gdb_expat.h (XMLCALL): Define if not already defined.
7088
7089 2007-02-20 Andreas Schwab <schwab@suse.de>
7090
7091 * Makefile.in (symfile.o): Update dependencies.
7092
7093 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
7094
7095 * MAINTAINERS: Disable -Werror for cris simulator. Build
7096 sparc64-solaris2.10 instead of the broken sparc-elf.
7097 * solib-frv.c: Include "solib.h".
7098 * Makefile.in (solib-frv.o): Update.
7099 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
7100 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
7101 (xtensa_frame_this_id, xtensa_frame_prev_register)
7102 (xtensa_push_dummy_call): Use %p.
7103
7104 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7105
7106 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7107 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
7108 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7109 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
7110 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
7111 (sparc-linux-tdep.o): Update.
7112
7113 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
7114
7115 * xtensa-tdep.h (xtensa_reg_mask_t): New.
7116 (xtensa_mask_t): Change mask field to be a separate array.
7117 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
7118 (xtensa_pseudo_register_write, xtensa_unwind_pc)
7119 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
7120 (xtensa_breakpoint_from_pc): Remove implicit type casting.
7121 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
7122 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
7123 (mask14, mask15): Rename to
7124 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
7125 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
7126 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
7127 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
7128 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
7129 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
7130 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
7131 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
7132 (xtensa_submask14, xtensa_submask15): New.
7133 (rmap): Follow strict aliasing rules doing static initialization.
7134
7135 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
7136
7137 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
7138 handling from here...
7139 (tdesc_register_type): ...to here.
7140 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
7141 * features/arm-core.xml: Use code_ptr and data_ptr.
7142
7143 2007-02-13 Denis Pilat <denis.pilat@st.com>
7144
7145 * varobj.h (enum varobj_update_error): New enum.
7146 * varobj.c (struct varobj_root): Add is_valid member.
7147 (varobj_get_type): Check for invalid varobj.
7148 (varobj_get_attributes): Likewise.
7149 (variable_editable):Likewise.
7150 (varobj_update): Likewise. Use varobj_update_error.
7151 (new_root_variable): Set root varobj as valid by default.
7152 (varobj_invalidate): New function.
7153 * symfile.c (clear_symtab_users): Use varobj_invalidate.
7154 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
7155 Use varobj_update_error.
7156
7157 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
7158
7159 Fix PR pascal/2223.
7160 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
7161 Pascal language marker.
7162 * dwarf2read.c (set_cu_language): Likewise.
7163
7164 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
7165
7166 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
7167 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
7168 instead of target_terminal_init since inferior_ptid isn't set yet.
7169
7170 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
7171
7172 * MAINTAINERS (Write After Approval): Add myself.
7173
7174 2007-02-09 Fred Fish <fnf@specifix.com>
7175
7176 Based on work by Apple Computer, Inc.
7177 * event-top.c (async_request_quit): Call quit() whenever either
7178 quit_flag is set or immediate_quit is set.
7179
7180 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7181
7182 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
7183 type to a pointer to const struct block.
7184 (ada_lookup_symbol_list): Don't cast away constness when calling
7185 remove_out_of_scope_renamings.
7186
7187 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7188
7189 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
7190 address of 'filename'; it is always non null.
7191
7192 2007-02-09 Joel Brobecker <brobecker@adacore.com>
7193
7194 * exec.c (add_to_section_table): Do not discard empty sections.
7195
7196 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7197
7198 * features/Makefile, features/arm-with-iwmmxt.xml,
7199 features/gdbserver-regs.xsl, features/number-regs.xsl,
7200 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
7201 * regformats/arm-with-iwmmxt.dat: Generate.
7202 * NEWS: Mention iWMMXt.
7203
7204 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7205
7206 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
7207 (xml-tdesc.o): Update.
7208 * xml-support.c: Add a comment.
7209 (gdb_xml_enums_boolean): New variable.
7210 (gdb_xml_parse_attr_enum): Use strcasecmp.
7211 * xml-support.h (gdb_xml_enums_boolean): Declare.
7212 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
7213 next_regnum, and current_union.
7214 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
7215 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
7216 (field_attributes, union_children, reg_attributes, union_attributes)
7217 (vector_attributes, feature_attributes, feature_children): New.
7218 (target_children): Make static. Add <feature>.
7219 (tdesc_elements): Make static.
7220 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
7221 (struct tdesc_feature, tdesc_feature_p): New types.
7222 (struct target_desc): Add features member.
7223 (struct tdesc_arch_data, tdesc_data): New.
7224 (target_find_description): Clarify error message. Warn about
7225 ignored register descriptions.
7226 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7227 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
7228 (tdesc_data_cleanup, tdesc_numbered_register)
7229 (tdesc_numbered_register_choices, tdesc_find_register)
7230 (tdesc_register_name, tdesc_register_type)
7231 (tdesc_remote_register_number, tdesc_register_reggroup_p)
7232 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
7233 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
7234 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
7235 (tdesc_create_feature, tdesc_record_type): New.
7236 (free_target_description): Free features.
7237 (_initialize_target_descriptions): Initialize tdesc_data.
7238 * arch-utils.c (default_remote_register_number): New.
7239 * arch-utils.h (default_remote_register_number): New prototype.
7240 * target-descriptions.h (set_tdesc_pseudo_register_name)
7241 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
7242 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
7243 (tdesc_numbered_register, tdesc_numbered_register_choices)
7244 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7245 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
7246 (tdesc_create_reg): Declare.
7247 * gdbarch.sh (remote_register_number): New entry.
7248 * gdbarch.c, gdbarch.h: Regenerate.
7249 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
7250 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
7251
7252 * arm-tdep.c (arm_register_aliases): New.
7253 (arm_register_name_strings): Rename to...
7254 (arm_register_names): ...this. Make const. Delete the old version.
7255 (current_option, arm_register_byte): Delete.
7256 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
7257 (value_of_arm_user_reg): New.
7258 (arm_gdbarch_init): Verify any described registers. Call
7259 tdesc_use_registers. Don't use arm_register_byte. Create aliases
7260 for standard register names.
7261 (_initialize_arm_tdep): Do not adjust arm_register_names.
7262 * user-regs.c (struct user_reg): Add baton member.
7263 (append_user_reg, user_reg_add_builtin, user_regs_init)
7264 (user_reg_add, value_of_user_reg): Use a baton for user
7265 register functions.
7266 * std-regs.c: Update.
7267 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
7268 (user_reg_add): Add baton argument.
7269 * NEWS: Mention target description register support.
7270 * features/arm-core.xml, features/arm-fpa.xml: New.
7271 * eval.c (evaluate_subexp_standard): Allow ptype $register
7272 when the program is not running.
7273
7274 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
7275
7276 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
7277
7278 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7279
7280 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
7281 info->disassembler_options to "any".
7282
7283 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7284
7285 * varobj.c (install_new_value): Only call value_get_print_value
7286 if changeable.
7287
7288 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7289
7290 Reported by timeless@gmail.com:
7291 * gdb/target.c (target_flash_erase): Do not return void value.
7292 (target_flash_done): Likewise.
7293 * gdb/cli/cli-cmds.c (source_command): Likewise.
7294
7295 2007-02-08 Fred Fish <fnf@specifix.com>
7296
7297 Based on work by Apple Computer, Inc.
7298 * event-top.c (handle_sigint): Set quit_flag.
7299 (async_request_quit): Don't set quit_flag. Avoid calling quit()
7300 if quit_flag has already been reset.
7301
7302 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7303
7304 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7305 up.
7306
7307 2007-02-08 Fred Fish <fnf@specifix.com>
7308
7309 * defs.h (request_quit): Remove declaration.
7310 * utils.c (request_quit): Remove definition.
7311
7312 2007-02-08 Joel Brobecker <brobecker@gnat.com>
7313 Jan Kratochvil <jan.kratochvil@redhat.com>
7314 Daniel Jacobowitz <dan@codesourcery.com>
7315
7316 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7317 (skip_prologue): Allow bl->blrl used by PIC code.
7318
7319 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7320 Daniel Jacobowitz <dan@codesourcery.com>
7321
7322 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7323 initialize tmp_obstack.
7324 * p-valprint.c (pascal_object_print_value_fields)
7325 (pascal_object_print_value): Likewise.
7326
7327 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7328
7329 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7330
7331 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7332
7333 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7334 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7335
7336 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7337
7338 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7339 (xml_cache): New.
7340 (tdesc_parse_xml): Cache expanded descriptions.
7341
7342 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7343
7344 * Makefile.in (XMLFILES): New.
7345 (COMMON_OBS): Add xml-builtin.o.
7346 (xml-builtin.c, stamp-xml): New rules.
7347 (xml-tdesc.o): Update.
7348 * features/feature_to_c.sh: New file.
7349 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7350 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7351 (gdb_xml_start_element): Initialize scope after possibly reallocating
7352 scopes. Move cleanup later. Handle the XInclude description
7353 specially.
7354 (gdb_xml_end_element): Only parse the body if there is a current element.
7355 Call XML_DefaultCurrent if there is no element.
7356 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7357 (struct xinclude_parsing_data, xinclude_start_include)
7358 (xinclude_end_include, xml_xinclude_default)
7359 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7360 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7361 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7362 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7363 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7364 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7365 XInclude directives. Use the compiled in DTD.
7366 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7367 directory name. Do not warn here.
7368 (file_read_description_xml): Update call. Warn here instead. Pass
7369 a dirname as baton.
7370 (fetch_available_features_from_target): New.
7371 (target_read_description_xml): Use it.
7372 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7373 to handle XInclude.
7374 * features/xinclude.dtd: New file.
7375
7376 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7377
7378 * linux-thread-db.c (check_for_thread_db): Return early if we have
7379 no libthread_db support.
7380
7381 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7382
7383 * mi/mi-parse.h: Include <sys/time.h>.
7384
7385 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
7386
7387 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7388 instead of print_variable_value to print values.
7389
7390 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7391
7392 * mi/mi-main.c: Numerous formatting changes.
7393 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7394 removed in my previous change.
7395
7396 2007-02-03 Eli Zaretskii <eliz@gnu.org>
7397
7398 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7399 Use 1000000L instead of 1000000.
7400
7401 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7402
7403 Based on work by Apple Computer, Inc.
7404
7405 * configure.ac: Test for sys/resource.h and getrusage.
7406 * configure, config.in: Regenerate.
7407
7408 * mi/mi-main.c: Include <sys/resource.h> if present.
7409 (rusage): Declare if HAVE_GETRUSAGE.
7410 (current_command_ts, do_timings): New static variables.
7411 (timestamp, print_diff_now, print_diff, timeval_diff):
7412 New static timing functions.
7413 (mi_cmd_enable_timings): New function for new MI command.
7414 (captured_mi_execute_command, mi_execute_async_cli_command):
7415 Call timing functions.
7416
7417 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7418 -enable-timings.
7419
7420 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7421
7422 * mi/mi-parse.h: (mi_timestamp): New structure.
7423 (mi_parse): Add mi_timestamp* member.
7424
7425 2007-02-02 Denis Pilat <denis.pilat@st.com>
7426
7427 * thread.c (make_cleanup_restore_current_thread): New function.
7428 (info_threads_command): Use of make_cleanup_restore_current_thread
7429 to restore the current thread and the selected frame.
7430 (restore_selected_frame): New function.
7431 (struct current_thread_cleanup): Add frame_id field.
7432 (do_restore_current_thread_cleanup): Add restoring of the selected
7433 frame.
7434 (make_cleanup_restore_current_thread): Likewise.
7435 (thread_apply_all_command): backup the selected frame while
7436 entering the function and restore it at exit.
7437 (thread_apply_command): Likewise.
7438
7439 2007-02-02 Denis Pilat <denis.pilat@st.com>
7440
7441 * MAINTAINERS (Write After Approval): Add myself to the list.
7442
7443 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7444
7445 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7446 (m32r_store_register): Ditto.
7447
7448 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7449
7450 * ser-mingw.c (pipe_windows_open)
7451 (pipe_windows_read, pipe_windows_write): Declare
7452 variables at the top of the function.
7453
7454 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7455
7456 * doublest.c (floatformat_from_length): Use the right element from
7457 gdbarch floatformats.
7458 (floatformat_from_type, extract_typed_floating)
7459 (store_typed_floating): Likewise.
7460 * doublest.h: Remove declarations for undefined floatformat arrays.
7461 * gdbarch.sh (float_format, double_format, long_double_format): Change
7462 to pairs.
7463 (pformat): Update for pairs.
7464 * gdbarch.c, gdbarch.h: Regenerated.
7465 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7466 (floatformats_ieee_double_littlebyte_bigword)
7467 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7468 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7469 (floatformats_vax_d): New variables.
7470 (builtin_type_ieee_single, builtin_type_ieee_double)
7471 (builtin_type_arm_ext, builtin_type_ia64_spill)
7472 (builtin_type_ia64_quad): Replace arrays with individual types.
7473 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7474 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7475 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7476 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7477 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7478 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7479 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7480 unused and endian-specific types.
7481 (recursive_dump_type): Update for floatformat pairs.
7482 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7483 (build_gdbtypes): Use build_flt.
7484 (_initialize_gdbtypes): Update set of initialized types.
7485 * gdbtypes.h: Update declarations to match gdbtypes.c.
7486 (struct main_type): Store a pointer to two floatformats.
7487 * arch-utils.c (default_float_format, default_double_format): Delete.
7488 * arch-utils.h (default_float_format, default_double_format): Delete.
7489
7490 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7491 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7492 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7493 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7494 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7495
7496 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7497
7498 * target.c (maintenance_print_target_stack): New function.
7499 (initialize_targets): Add new "maintenance print target-stack"
7500 command.
7501
7502 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7503
7504 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7505
7506 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7507
7508 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7509 (struct dwarf2_loclist_baton): Likewise.
7510
7511 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7512
7513 * cli/cli-script.c: Include breakpoint.h.
7514 (build_command_line): Require arguments only for if and while
7515 commands.
7516 (get_command_line, execute_user_command, execute_control_command):
7517 Fix wording of warning messages.
7518 (print_command_lines): Print breakpoint commands.
7519 (execute_control_command): Call commands_from_control_command to
7520 handle the `commands' command inside a body of a flow-control
7521 command.
7522 (read_next_line): Recognize the `commands' command and build a
7523 command line structure for it.
7524 (recurse_read_control_structure, read_command_lines): Handle
7525 `commands' similarly to `if' and `while'.
7526
7527 * breakpoint.c (get_number_trailer): Document the special meaning
7528 of NULL as the first argument PP.
7529 (commands_from_control_command): New function.
7530
7531 * breakpoint.h (commands_from_control_command): Add prototype.
7532
7533 * defs.h (commands_control): New enumerated value for enum
7534 command_control_type.
7535
7536 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7537
7538 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7539 (ada_exception_sal): Update accordingly.
7540
7541 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7542
7543 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7544 * NEWS: Describe CHAR array vs. string identifcation rules.
7545
7546 2007-01-25 Paul Brook <paul@codesourcery.com>
7547
7548 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7549
7550 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7551
7552 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7553 expression is empty, bother to return the 'optimized out' value we
7554 construct. (Thanks to Carl Burch.)
7555
7556 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7557
7558 * varobj.c (c_value_of_root, c_value_of_child)
7559 (cplus_describe_child): Don't call release_value.
7560
7561 2007-01-24 Thiemo Seufer <ths@mips.com>
7562
7563 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7564 initialization.
7565
7566 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7567
7568 Refactor getting children name, value and type access
7569 for varobjs in C++.
7570 * varobj.c (get_type_deref): Remove.
7571 (adjust_value_for_child_access): New.
7572 (c_number_of_children): Use the above.
7573 (c_describe_child): Likewise.
7574 (enum accessibility): New.
7575 (match_accessibility): New function.
7576 (cplus_describe_child): New function.
7577 (cplus_name_of_child, cplus_value_of_child)
7578 (cplus_type_of_child): Reimplement in terms
7579 of cplus_describe_child.
7580 (cplus_number_of_children): Use
7581 adjust_value_for_child_access.
7582
7583 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7584
7585 Fix computation of the 'editable' attribute and
7586 value changeability for for references.
7587 * varobj.c (get_value_type): New function.
7588 (c_variable_editable): Use get_value_type.
7589 (varobj_value_is_changeable): Likewise.
7590
7591 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7592
7593 * source.c (find_and_open_source): Try rewriting the source
7594 path inside filename if dirname is NULL.
7595
7596 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7597
7598 * dwarf2read.c (add_partial_symbol): Create an extra partial
7599 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7600 (new_symbol): Likewise for symbols.
7601
7602 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7603
7604 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7605
7606 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7607
7608 * value.c (value_primitive_field): Copy the full 'location'
7609 contents, instead of assuming that copying ADDRESS will
7610 bring over everything in the union. Remove obsolete comment.
7611
7612 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7613
7614 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7615 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7616 (m32c_m16c_pointer_to_address): Separate code from declarations.
7617
7618 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7619
7620 * target.c (update_current_target): Correct typo.
7621
7622 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7623
7624 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7625 declaration.
7626
7627 2007-01-11 Andrew Cagney <cagney@redhat.com>
7628 Daniel Jacobowitz <dan@codesourcery.com>
7629 Jan Kratochvil <jan.kratochvil@redhat.com>
7630
7631 * dwarf2-frame.c (execute_cfa_program): New support of
7632 `DW_CFA_GNU_negative_offset_extended'.
7633
7634 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7635
7636 * NEWS: Mention flash support for "load" and new remote packets.
7637
7638 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7639
7640 * breakpoint.c (delete_command): Skip redundant loop iterations.
7641
7642 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7643
7644 * gdbarch.sh (register_type): Update comment.
7645 * gdbarch.h: Regenerated.
7646 * arch-utils.c (generic_register_size): Call register_type.
7647 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7648 * m32c-tdep.c (check_for_saved): Likewise.
7649 * mips-tdep.c (mips_print_register, print_gp_register_row)
7650 (mips_print_registers_info): Likewise.
7651 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7652 Likewise.
7653 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7654 (sh64_do_register, sh64_print_register)
7655 (sh64_media_print_registers_info): Likewise.
7656 * tui/tui-regs.c (tui_register_format): Likewise.
7657
7658 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7659
7660 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7661
7662 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7663 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7664 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7665 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7666 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7667 (make_symbol_completion_list): Likewise.
7668
7669 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7670 Daniel Jacobowitz <dan@codesourcery.com>
7671
7672 * buildsym.c (end_symtab): Use preallocated symtab if available.
7673 Fill in SYMBOL_SYMTAB.
7674 * buildsym.h (struct subfile): Add symtab member.
7675 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7676 (struct file_entry): Add symtab.
7677 (free_cu_line_header): New function.
7678 (read_file_scope): Use it. Save line_header in the cu. Process
7679 lines before DIEs.
7680 (add_file_name): Initialize new symtab member.
7681 (dwarf_decode_lines): Create symtabs for included files.
7682 (new_symbol): Set SYMBOL_SYMTAB.
7683 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7684 (search_symbols): Likewise.
7685 * symtab.h (struct symbol): Add symtab member.
7686 (SYMBOL_SYMTAB): Define.
7687
7688 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7689
7690 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7691
7692 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7693
7694 * arch-utils.c (show_endian): Correct reversed condition.
7695
7696 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7697
7698 * MAINTAINERS (Write After Approval): Add myself.
7699
7700 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7701 Vladimir Prus <vladimir@codesourcery.com>
7702
7703 Fix 'selected frame' varobjs.
7704 * varobj.c (struct varobj): Remove the error field.
7705 (varobj_set_value): Don't check var->error.
7706 (install_new_value): Don't set var->error.
7707 (varobj_update): Always pass the new value
7708 of the root via install_new_value.
7709 (create_child): Don't set error field.
7710 (new_variable): Likewise.
7711 (c_value_of_root): Always reevaluate the value
7712 of selected frame varobjs in the selected frame.
7713 Don't call reinit_frame_cache.
7714
7715 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7716
7717 * source.c (_initialize_source): Improve the help text of
7718 the substitute-path commands.
7719
7720 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7721
7722 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7723 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7724 (frv_skip_prologue): Remove prototypes.
7725 (frv_adjust_breakpoint_address): Renamed from
7726 frv_gdbarch_adjust_breakpoint_address.
7727 (frv_gdbarch_init): Adjust.
7728
7729 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7730
7731 * gdbarch.sh (deprecated_extract_return_value)
7732 (deprecated_store_return_value): Remove.
7733 (extract_return_value, store_return_value): Remove default values.
7734 * gdbarch.c, gdbarch.h: Regenerate.
7735 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7736 (legacy_store_return_value): Remove.
7737 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7738 Remove.
7739
7740 * mi/mi-main.c: Remove obsolete comment.
7741
7742 * regcache.c, regcache.h (deprecated_register_bytes)
7743 (deprecated_read_register_bytes)
7744 (deprecated_write_register_bytes): Remove.
7745
7746 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7747 Don't forget to move destination pointer.
7748
7749 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7750
7751 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7752
7753 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7754
7755 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7756 past entry function with recent newlib.
7757
7758 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7759
7760 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7761 introduction. Specify -var-update more exactly.
7762
7763 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7764
7765 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7766
7767 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7768
7769 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7770 the Global Maintainers' invitation to be a global maintainer.
7771
7772 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7773
7774 * infrun.c (singlestep_pc): New variable.
7775 (resume): Set singlestep_pc.
7776 (context_switch): Add a debugging message. Flush the frame cache.
7777 (handle_inferior_event): Add debugging messages. Handle thread
7778 hops when a software single step has completed. Let context_switch
7779 handle flushing the frame cache.
7780
7781 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7782
7783 * NEWS: Mention target descriptions, "set tdesc filename",
7784 "unset tdesc filename", "show tdesc filename", and
7785 qXfer:features:read.
7786 * arch-utils.c (choose_architecture_for_target): New function.
7787 (gdbarch_info_fill): Call it.
7788 * target-descriptions.c (struct property): Make members non-const.
7789 (struct target_desc): Add arch member.
7790 (target_description_filename): New variable.
7791 (target_find_description): Try via XML first.
7792 (tdesc_architecture): New.
7793 (free_target_description, make_cleanup_free_target_description): New.
7794 (set_tdesc_property): Call xstrdup.
7795 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7796 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7797 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7798 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7799 * target-descriptions.h (tdesc_architecture)
7800 (make_cleanup_free_target_description, set_tdesc_architecture): New
7801 prototypes.
7802 * Makefile.in (SFILES): Add xml-tdesc.c.
7803 (COMMON_OBS): Add xml-tdesc.o.
7804 (target-descriptions.o): Update.
7805 (xml-tdesc.o): New rule.
7806 * xml-tdesc.c, xml-tdesc.h: New files.
7807 * remote.c (PACKET_qXfer_features): New enum.
7808 (remote_protocol_features): Add qXfer:features:read.
7809 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7810 (_initialize_remote): Register qXfer:features:read.
7811 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7812 * features/gdb-target.dtd: New file.
7813
7814 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7815
7816 * copyright.sh: Clarify error.
7817
7818 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7819
7820 * symtab.c (matching_bfd_sections): Fix VMA matching for
7821 prelinked objects.
7822
7823 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7824
7825 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7826 nested symbols.
7827
7828 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7829
7830 Updated copyright notices for most files.
7831
7832 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7833
7834 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7835
7836 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7837
7838 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7839 exec_prefix.
7840 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7841 '${prefix}'.
7842 * configure, config.in: Regenerate.
7843 * defs.h (debug_file_directory): Declare.
7844 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7845 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7846 relocate it if DEBUGDIR_RELOCATABLE.
7847 * symfile.c (debug_file_directory): Make non-static.
7848 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7849 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7850 (_initialize_symfile): Don't initialize debug_file_directory here.
7851
7852 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7853
7854 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7855 statements.
7856
7857 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7858
7859 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7860 frame_unwind_register to recurse.
7861 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7862 (alpha_heuristic_frame_prev_register): Likewise.
7863 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7864 * m32c-tdep.c (m32c_prev_register): Likewise.
7865 * frame.c (frame_register_unwind_location): Remove FIXME.
7866
7867 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7868 Eli Zaretskii <eliz@gnu.org>
7869
7870 * copyright.sh: New file.
7871
7872 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7873
7874 * configure.ac: Check for XML_StopParser.
7875 * xml-support.c (gdb_xml_body_text): Check for an error.
7876 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7877 (gdb_xml_end_element_wrapper): Likewise.
7878 * config.in, configure: Regenerated.
7879
7880 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7881
7882 * varobj.c (install_new_value): Always update print_value.
7883 (value_get_print_value): Immediately return NULL for missing
7884 values.
7885
7886 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7887
7888 * configure.ac: Tighten pattern for extracting value of
7889 DEPRECATED_TM_FILE from the target makefile fragment.
7890 * configure: Regenerated.
7891
7892 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7893
7894 * linux-nat.c (struct simple_pid_list): Add status.
7895 (add_to_pid_list): Record the PID's status.
7896 (linux_record_stopped_pid): Likewise. Make static.
7897 (pull_pid_from_list): Return the saved status.
7898 (linux_nat_handle_extended): Deleted.
7899 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7900 Make static. Handle non-SIGSTOP for a new thread's first signal.
7901 (flush_callback): Handle unexpected pending signals.
7902 (linux_nat_wait): Update calls to changed functions.
7903 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7904 Remove prototypes for newly static functions.
7905
7906 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7907
7908 * gdbarch.sh (value_from_register): New gdbarch function.
7909 * gdbarch.c, gdbarch.h: Regenerate.
7910 * findvar.c (default_value_from_register): New function.
7911 (value_from_register): Use gdbarch_value_from_register.
7912 * value.h (default_value_from_register): Declare.
7913 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7914 spu_value_to_register): Remove.
7915 (spu_value_from_register): New function.
7916 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7917 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7918 Call set_gdbarch_value_from_register.
7919 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7920 s390_value_to_register): Remove.
7921 (s390_value_from_register): New function.
7922 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7923 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7924 Call set_gdbarch_value_from_register.
7925
7926 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7927
7928 * NEWS: Add "set sysroot" and "show sysroot".
7929 * solib.c (solib_absolute_prefix): Delete. Replace
7930 all uses with gdb_sysroot.
7931 (_initialize_solib): Add "set sysroot" and "show sysroot".
7932 Make "solib-absolute-prefix" an alias to it.
7933
7934 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7935
7936 * frame.c (get_frame_register_bytes): New function.
7937 (put_frame_register_bytes): Likewise.
7938 * frame.h (get_frame_register_bytes): Declare.
7939 (put_frame_register_bytes): Likewise.
7940 * findvar.c (value_from_register): Always construct lval_register
7941 values. Use get_frame_register_bytes.
7942 * valops.c (value_assign): Use get_frame_register_bytes and
7943 put_frame_register_bytes.
7944
7945 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7946
7947 * MAINTAINERS: Update Stan Shebs' email address.
7948
7949 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7950
7951 * ada-lang.c (is_known_support_routine): Improve the implementation.
7952
7953 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7954
7955 * ada-lang.c: Add include of source.h.
7956 (is_known_support_routine): Improve the check verifying that the file
7957 associated to this frame exists.
7958 * Makefile.in (ada-lang.o): Add dependency on source.h.
7959
7960 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7961
7962 * ax-general.c (ax_const_l): Select proper opcode for the given
7963 value.
7964
7965 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7966
7967 * varobj.c (c_value_of_root): Don't select frame if variable
7968 object is out of scope.
7969
7970 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7971
7972 * varobj.c (struct varobj): New member print_value.
7973 (install_new_value): Compare last printed value with current one
7974 instead of contents.
7975 (new_variable): Initialize var->print_value to NULL.
7976 (free_variable): Free var->print_value.
7977 (value_get_print_value): New function derived from
7978 c_value_of_variable.
7979 (c_value_of_variable): Use value_get_print_value.
7980
7981 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7982
7983 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7984
7985 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7986
7987 * NEWS: Add entries for new catch commands.
7988
7989 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7990
7991 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7992 (add_partial_symbol): Correct identification of external references.
7993 (process_structure_scope): Likewise.
7994 (read_partial_die): Handle DW_AT_byte_size attribute.
7995
7996 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7997
7998 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7999
8000 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
8001
8002 * varobj.c (get_type_deref): Fix variable objects for references to
8003 pointers.
8004
8005 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8006
8007 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
8008 with no symbols.
8009
8010 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8011
8012 * memory-map.c (struct_memory_map_parsing_data): Remove most
8013 members. Make property_name an array.
8014 (free_memory_map_parsing_data, memory_map_start_element)
8015 (memory_map_end_element, memory_map_character_data): Delete.
8016 (memory_map_start_memory, memory_map_end_memory)
8017 (memory_map_start_property, memory_map_end_property): New functions.
8018 (property_attributes, memory_children, memory_type_enum)
8019 (memory_attributes, memory_map_children, memory_map_elements): New.
8020 (parse_memory_map): Rewrite.
8021 * xml-support.c (debug_xml): New.
8022 (xml_get_required_attribute, xml_get_integer_attribute)
8023 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
8024 Delete.
8025 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
8026 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
8027 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
8028 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
8029 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
8030 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
8031 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
8032 New.
8033 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
8034 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
8035 (enum gdb_xml_element_flag, struct gdb_xml_element)
8036 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
8037 (struct gdb_xml_enum): New.
8038 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
8039 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
8040 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
8041 (xml_get_required_attribute, xml_get_integer_attribute)
8042 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
8043 * Makefile.in (xml_support_h, xml-support.o): Update.
8044
8045 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8046
8047 * Makefile.in (eval.o): Update dependencies.
8048 * eval.c: Include "ui-out.h" and "exceptions.h".
8049 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
8050 Use value_zero if an error occurs when avoiding side effects.
8051 * varobj.c (c_value_of_root): Initialize new_val.
8052
8053 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8054
8055 * varobj.c (varobj_list_children): Stop if the number of children is
8056 unknown.
8057 (c_number_of_children):
8058
8059 2007-01-04 Mark Kettenis <kettenis@gnu.org>
8060
8061 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
8062 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
8063 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
8064 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
8065 sizeof, instead of hardcoded constants.
8066
8067 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8068
8069 * CONTRIBUTE: Use sourceware.org.
8070
8071 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8072
8073 * buildsym.c (start_subfile): Handle producer.
8074 (record_producer): New function.
8075 * buildsym.h (struct subfile): Include producer.
8076 (record_producer): New prototype.
8077 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
8078 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
8079 armcc_cfa_offsets_reversed.
8080 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
8081 (dwarf2_frame_find_quirks): New function.
8082 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
8083 (decode_frame_entry_1): Record the CIE version. Record the
8084 augmentation. Skip armcc augmentations.
8085 * dwarf2read.c (read_file_scope): Save the producer.
8086 * symtab.h (struct symtab): Rename unused version member to
8087 producer.
8088
8089 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8090
8091 * configure.ac (build_warnings): Use -Wall and
8092 -Wdeclaration-after-statement.
8093 * configure: Regenerated.
8094
8095 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8096
8097 Simplify access to variours properties of child
8098 variable objects in C.
8099 * varobj.c (value_struct_element_index): New function.
8100 (c_describe_child): New function.
8101 (c_name_of_child, c_value_of_child)
8102 (c_type_of_child): Rewrite to use c_describe_child.
8103
8104 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8105
8106 gdb/
8107 * varobj.c: Include "vec.h".
8108 (varobj_p): New typedef, declare vector of those.
8109 (struct varobj): Use vector for the 'children' member.
8110 (child_exists): Remove.
8111 (save_child_in_parent): Remove.
8112 (remove_child_from_parent): Remove.
8113 (struct varobj_child): Remove.
8114 (struct vstack): Remove.
8115 (vpush, vpop): Remove.
8116 (varobj_list_children): Adjust to work work vector.
8117 (varobj_update): Likewise. Use vectors for
8118 working stack and result.
8119 (delete_variable_1): Likewise.
8120 * Makefile.in (varobj.o): Update dependencies.
8121
8122 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8123
8124 Port from Apple's version.
8125 gdb/
8126 * varobj.c (type_changeable): Rename to...
8127 (varobj_value_is_changeable_p): ...this. Adjust all callers.
8128 (is_root_p): New function. Use it everywhere.
8129
8130 2007-01-04 Jim Blandy <jimb@codesourcery.com>
8131
8132 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
8133 then plain 'fixup'.
8134
8135 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8136
8137 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
8138
8139 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8140
8141 * hpread.c (hpread_type_lookup): Fix compilation failure.
8142
8143 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
8144
8145 * NEWS: New port to S+core.
8146 * MAINTAINERS (Write After Approval, Responsible Maintainers):
8147 Add myself.
8148
8149 * Makefile.in: Add dependencies for S+core files.
8150 * configure.tgt (score*, score-*-*): Add S+core target.
8151 * config/score/embed.mt: New file.
8152 * score-tdep.c: New file.
8153 * score-tdep.h: New file.
8154
8155 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8156
8157 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
8158 the appropriate type rather than a bogus void type.
8159
8160 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8161
8162 * ada-lang.h (ada_find_printable_frame): Remove.
8163 (ada_exception_catchpoint_p, ada_decode_exception_location)
8164 (ada_decode_assert_location): Add declaration.
8165 * ada-lang.c: Add include of annotate.h and valprint.h.
8166 (exception_catchpoint_kind): New enum.
8167 (function_name_from_pc, is_known_support_routine)
8168 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
8169 (ada_exception_name_addr_1, ada_exception_name_addr)
8170 (print_it_exception, print_one_exception, print_mention_exception)
8171 (print_it_catch_exception, print_one_catch_exception)
8172 (print_mention_catch_exception, catch_exception_breakpoint_ops)
8173 (print_it_catch_exception_unhandled)
8174 (print_one_catch_exception_unhandled)
8175 (print_mention_catch_exception_unhandled, print_it_catch_assert)
8176 (print_one_catch_assert, print_mention_catch_assert)
8177 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
8178 (ada_get_next_arg, catch_ada_exception_command_split)
8179 (ada_exception_sym_name, ada_exception_sym_name)
8180 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
8181 (ada_parse_catchpoint_condition, ada_exception_sal)
8182 (ada_decode_exception_location)
8183 (ada_decode_assert_location): New function.
8184 (catch_exception_unhandled_breakpoint_ops): New global variable.
8185 (catch_assert_breakpoint_ops): New global variable.
8186 * breakpoint.c: Add include of ada-lang.h.
8187 (print_one_breakpoint): Do not print the condition for Ada
8188 exception catchpoints.
8189 (create_ada_exception_breakpoint): New function.
8190 (catch_ada_exception_command, catch_assert_command): New function.
8191 (catch_command_1): Add support for the new "catch exception" and
8192 "catch assert" commands.
8193 (_initialize_breakpoint): Add help description for the new catch
8194 commands.
8195 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
8196 valprint.h.
8197 (breakpoint.o): Add dependency on ada-lang.h.
8198
8199 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
8200
8201 * coffread.c (cs_to_section): If bfd_section is found, always
8202 return its section index.
8203 (coff_symtab_read): Determine the minimal_symbol_type using the
8204 bfd_section flags.
8205
8206 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8207 Daniel Jacobowitz <dan@codesourcery.com>
8208
8209 * Makefile.in (top.o): Update.
8210 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
8211 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
8212 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
8213 New.
8214 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
8215
8216 2007-01-03 Mark Kettenis <kettenis@gnu.org>
8217
8218 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
8219 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
8220
8221 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8222
8223 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
8224 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
8225 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
8226 greater than or equal to zero.
8227 * m2-typeprint.c (m2_array): Likewise.
8228 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
8229 * gdbtypes.c (copy_type_recursive): Correct == typo.
8230 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
8231 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
8232 greater than zero.
8233 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
8234 (default_macro_scope): Remove unused variable.
8235 * prologue-value.h (pv_area_find_reg): Don't name an argument
8236 "register".
8237 * remote-fileio.c (remote_fio_func_map): Add missing braces.
8238 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
8239 type.
8240 (cleanup_sigint_signal_handler): Remove casts.
8241 * valprint.c (val_print): Use a volatile local for the modified
8242 argument.
8243 * varobj.c (languages): Remove extra array dimension.
8244 (varobj_create): Correct access to languages array.
8245 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
8246 missing braces.
8247 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
8248 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
8249 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
8250 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
8251 (mi_cmd_data_write_memory): Likewise.
8252 * signals/signals.c (target_signal_to_string): Cast to int before
8253 comparing.
8254 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
8255 Update all callers.
8256
8257 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8258
8259 * NEWS: Mention pointer to member improvements.
8260 * Makefile.in (gnu-v3-abi.o): Delete special rule.
8261 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
8262 * ada-valprint.c (ada_print_scalar): Update for new type codes.
8263 * c-typeprint.c (c_print_type): Update for new type codes.
8264 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
8265 (c_type_print_base): Likewise.
8266 (c_type_print_args): Rewrite.
8267 * c-valprint.c (c_val_print): Update for new type codes. Remove
8268 support for references to members. Treat methods like functions.
8269 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
8270 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
8271 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
8272 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
8273 (struct cp_abi_ops): Add corresponding members.
8274 * cp-valprint.c (cp_print_class_method): Delete.
8275 (cp_find_class_member): New function.
8276 (cp_print_class_member): Use it. Simplify support for bogus
8277 member pointers.
8278 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
8279 lookup_methodptr_type.
8280 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
8281 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
8282 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
8283 pointer support.
8284 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
8285 references returned by user defined operators.
8286 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
8287 (f_type_print_varspec_suffix): Remove support for member pointers.
8288 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
8289 and adjusted.
8290 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
8291 (lookup_methodptr_type): New.
8292 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
8293 (recursive_dump_type): Update for new types.
8294 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
8295 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
8296 (lookup_memberptr_type, lookup_methodptr_type)
8297 (smash_to_memberptr_type): New prototypes.
8298 (smash_to_method_type): Formatting fix.
8299 (lookup_member_type, smash_to_member_type): Delete prototypes.
8300 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
8301 Do not rely on debug information for the vptr or the method's
8302 enclosing type. Handle function descriptors for IA64.
8303 (gnuv3_virtual_fn_field): Rewrite using the new functions.
8304 (gnuv3_find_method_in, gnuv3_print_method_ptr)
8305 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8306 (gnuv3_method_ptr_to_value): New.
8307 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8308 * hpread.c (hpread_type_lookup): Update for new types.
8309 * infcall.c (value_arg_coerce): Likewise.
8310 * m2-typeprint.c (m2_print_type): Remove explicit support
8311 for member pointers.
8312 * m2-valprint.c (m2_val_print): Likewise.
8313 * p-typeprint.c (pascal_type_print_varspec_prefix)
8314 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8315 * p-valprint.c (pascal_val_print): Likewise.
8316 (pascal_object_print_class_method, pascal_object_print_class_member):
8317 Delete.
8318 * p-lang.h (pascal_object_print_class_method)
8319 (pascal_object_print_class_member): Delete prototypes.
8320 * stabsread.c (read_type): Update for new types.
8321 * typeprint.c (print_type_scalar): Likewise.
8322 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8323 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8324 argument. Construct a pointer to member if the address of a
8325 function or data member is requested.
8326 (value_cast_pointers): Don't modify the input value.
8327 (value_cast): Adjust pointer to member handling for new types.
8328 Allow null pointer to member constants. Don't modify the input
8329 value.
8330 (value_ind): Remove pointer to member check. Handle function
8331 descriptors for function pointers.
8332 (value_struct_elt, value_find_oload_method_list, check_field):
8333 Remove pointer to member checks.
8334 * value.c (unpack_long): Allow pointers to data members.
8335 (value_from_longest): Allow member pointers.
8336 * value.h (value_aggregate_elt): Add want_address.
8337 * varobj.c (c_variable_editable): Remove check for members.
8338 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8339 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8340 in virtual tables.
8341 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8342 * c-lang.h (cp_print_class_method): Delete prototype.
8343 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8344 * mips-tdep.c (mips_gdbarch_init): Likewise.
8345 * gdbarch.c, gdbarch.h: Regenerated.
8346
8347 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8348
8349 * rs6000-tdep.c (rs6000_use_struct_convention)
8350 (rs6000_extract_return_value, rs6000_store_return_value)
8351 (rs6000_extract_struct_value_address): Remove.
8352 (rs6000_return_value): New function.
8353 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8354 store_return_value, deprecated_extract_struct_value_address and
8355 deprecated_use_struct_convention. Use rs6000_return_value
8356 instead.
8357
8358 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
8359
8360 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8361 -display-disable, -display-enable, -display-insert and
8362 -display-list.
8363
8364 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8365
8366 * breakpoint.c (remove_breakpoint): Remove dead code.
8367
8368 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
8369
8370 * varobj.c: Include block.h.
8371 (c_value_of_root): Check scope within nested statements.
8372
8373 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8374
8375 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8376 regcache_cooked_write_signed instead of
8377 deprecated_write_register_bytes.
8378
8379 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8380
8381 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8382
8383 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8384
8385 Followed the Start of New Year Procedure:
8386 * ChangeLog-2006: New file, containing all the entries for 2006.
8387 * ChangeLog: Removed all 2006 entries, and changed the reference
8388 to the previous ChangeLog to point to ChangeLog 2006.
8389 * top.c (print_gdb_version): Update copyright year.
8390
8391 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8392
8393 * Makefile.in (remote-sds.o): Remove.
8394 * remote-sds.c: Delete.
8395
8396 For older changes see ChangeLog-2006.
8397 \f
8398 Local Variables:
8399 mode: change-log
8400 left-margin: 8
8401 fill-column: 74
8402 version-control: never
8403 coding: utf-8
8404 End:
This page took 0.189021 seconds and 5 git commands to generate.