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