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