* configure.ac: Check for void * as 3 argument of ptrace.
[binutils-gdb.git] / gdb / ChangeLog
1 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
2
3 * configure.ac: Check for void * as 3 argument of ptrace.
4 * configure: regenerate.
5
6 2008-01-11 Markus Deuling <deuling@de.ibm.com>
7
8 * alpha-tdep.c (alpha_heuristic_proc_start)
9 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
10 current_gdbarch by gdbarch.
11
12 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
13 current architecture by frame_info. Update alpha_heuristic_proc_start
14 call.
15
16 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
17 get_frame_arch to get at the current architecture by frame_info. Update
18 alpha_sigtramp_register_address call.
19
20 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
21 current_gdbarch by gdbarch. Update caller.
22 (convert_to_extended, convert_from_extended): Add endianess parameter
23 for comparison. Update caller.
24 (arm_extract_return_value, arm_store_return_value): Use
25 get_regcache_arch to get at the current architecture.
26
27 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
28 current_gdbarch by gdbarch. Update caller.
29 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
30 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
31
32 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
33 gdbarch as parameter. Update caller.
34 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
35 current_gdbarch by gdbarch. Update caller.
36
37 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
38 update caller. Replace current_gdbarch by gdbarch.
39
40 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
41 the current architecture. Replace current_gdbarch by gdbarch.
42 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
43 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
44 expression. Add gdbarch as parameter and replace current_gdbarch with
45 it. Update caller.
46 (M6811_TDEP): Remove.
47 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
48 architecture.
49 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
50 current_gdbarch by gdbarch. Update caller.
51
52 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
53 update caller.
54 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
55 by gdbarch.
56
57 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
58 caller. Relace current_gdbarch by gdbarch.
59 (altivec_register_p, spe_register_p): Likewise.
60 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
61 parameter.
62 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
63 altivec_register_p and spe_register_p.
64
65 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
66 caller. Replace current_gdbarch by gdbarch.
67 (score_analyze_prologue): use get_frame_arch to get at the current
68 architecture.
69
70 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
71 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
72 current_gdbarch by gdbarch. Update caller.
73 (sparc_frame_cache): Use get_frame_arch to get at the current
74 architecture.
75 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
76 sparc_analyze_prologue.
77
78 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
79 parameter.
80
81 2008-01-11 Markus Deuling <deuling@de.ibm.com>
82
83 * exec.c: #include "arch-utils.h"
84 (print_section_info): Use gdbarch_from_bfd to get at the
85 current architecture. Replace current_gdbarch. Fix indention. Replace
86 deprecated_print_address_numeric by paddress.
87 * Makefile.in (exec.o) Add dependency to arch-utils.h.
88
89 * valprint.c (val_print_string): Replace
90 deprecated_print_address_numeric.
91 * tracepoint.c (trace_mention, scope_info): Likewise.
92 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
93 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
94 (maintenance_check_symtabs): Likewise.
95 * symfile.c (list_overlays_command): Likewise.
96 * stack.c (frame_info, print_block_frame_labels): Likewise.
97 * printcmd.c (print_address, print_address_demangle)
98 (address_info): Likewise.
99 * corefile.c (memory_error): Likewise.
100 * infcmd.c (jump_command): Likewise.
101 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
102 (mention, delete_breakpoint): Likewise.
103 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
104 * dwarf2read.c (dump_die): Likewise.
105 * ada-valprint.c (ada_val_print_1): Likewise.
106 * f-valprint.c (f_val_print): Likewise.
107 * linux-fork.c (info_forks_command): Likewise.
108 * m32r-com.c (m32r_load_section, m32r_load)
109 (m32r_upload_command): Likewise.
110
111 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
112
113 2008-01-11 Markus Deuling <deuling@de.ibm.com>
114
115 * gdbarch.sh (skip_prologue): Add gdbarch
116 as parameter.
117 * gdbarch.{c,h}: Regenerate.
118
119 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
120 * amd64-tdep.c (amd64_skip_prologue): Likewise.
121 * avr-tdep.c (avr_skip_prologue): Likewise.
122 * cris-tdep.c (cris_skip_prologue): Likewise.
123 * frv-tdep.c (frv_skip_prologue): Likewise.
124 * h8300-tdep.c (h8300_skip_prologue): Likewise.
125 * hppa-tdep.c (hppa_skip_prologue): Likewise.
126 * i386-tdep.c (i386_skip_prologue): Likewise.
127 * ia64-tdep.c (ia64_skip_prologue): Likewise.
128 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
129 * m32r-tdep.c (m32r_skip_prologue): Likewise.
130 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
131 * m68k-tdep.c (m68k_skip_prologue): Likewise.
132 * m88k-tdep.c (m88k_skip_prologue): Likewise.
133 * mep-tdep.c (mep_skip_prologue): Likewise.
134 * mips-tdep.c (mips_skip_prologue): Likewise.
135 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
136 * mt-tdep.c (mt_skip_prologue): Likewise.
137 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
138 * score-tdep.c (score_skip_prologue): Likewise.
139 * sh64-tdep.c (sh64_skip_prologue): Likewise.
140 * sh-tdep.c (sh_skip_prologue): Likewise.
141 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
142 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
143 * spu-tdep.c (spu_skip_prologue): Likewise.
144 * v850-tdep.c (v850_skip_prologue): Likewise.
145 * vax-tdep.c (vax_skip_prologue): Likewise.
146 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
147 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
148
149 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
150 current_gdbarch by gdbarch.
151 * m32c-tdep.c (m32c_skip_prologue): Likewise.
152 * s390-tdep.c (s390_skip_prologue): Likewise.
153
154 2008-01-10 Doug Evans <dje@google.com>
155
156 * defs.h (struct continuation_arg): Fix typo in comment.
157 * target.c (target_translate_tls_address): Fix comment spelling error.
158
159 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
160
161 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
162 (DOUBLEST_SCAN_FORMAT): Likewise.
163 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
164 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
165 * c-exp.y (parse_number): Likewise.
166 * jv-exp.y (parse_number): Likewise.
167 * objc-exp.y (parse_number): Likewise.
168 * p-exp.y (parse_number): Likewise.
169
170 2008-01-09 Joel Brobecker <brobecker@adacore.com>
171
172 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
173 (check_typedef): Likewise.
174
175 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
176
177 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
178 seen_double_big_d, treat the new H, D, and DD modifiers as length
179 modifiers.
180
181 2008-01-08 Joel Brobecker <brobecker@adacore.com>
182
183 * dwarf2read.c (read_enumeration_type): Add comment.
184
185 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
186
187 * config.in: Regenerate.
188
189 2008-01-08 Joel Brobecker <brobecker@adacore.com>
190
191 * ada-lang.c (ada_convert_actual): Renames convert_actual.
192 Make non-static.
193 (ada_convert_actuals): Delete.
194 * ada-lang.h (ada_convert_actual): Add declaration.
195 (ada_convert_actuals): Remove declaration.
196 * infcall.c: #include "ada-lang.h".
197 (value_arg_coerce): Add new parameter sp. Update function
198 documetnation. Add handling of Ada function call parameters.
199 * Makefile.in (infcall.o): Update dependencies.
200
201 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
202
203 * ada-lang.c (ensure_lval): Fix value lval kind.
204 (convert_actual): Add handling for arguments passed by reference.
205
206 2008-01-08 Doug Evans <dje@google.com>
207
208 * dbxread.c (read_dbx_symtab): Fix indentation.
209
210 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
211
212 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
213 (valarith.o): Depend on dfp.h.
214 (valops.o): Likewise.
215 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
216 (set_decnumber_context): New function.
217 (decimal_check_errors): Likewise.
218 (decimal_from_number): Likewise.
219 (decimal_to_number): Likewise.
220 (decimal_from_string): Use set_decnumber_context and
221 decimal_check_errors.
222 (decimal_from_integral): New function.
223 (decimal_from_floating): Likewise.
224 (decimal_to_double): Likewise.
225 (promote_decimal): Likewise.
226 (decimal_binop): Likewise.
227 (decimal_is_zero): Likewise.
228 (decimal_compare): Likewise.
229 (decimal_convert): Likewise.
230 * dfp.h (decimal_from_integral): New prototype.
231 (decimal_from_floating): Likewise.
232 (decimal_to_double): Likewise.
233 (decimal_binop): Likewise.
234 (decimal_is_zero): Likewise.
235 (decimal_compare): Likewise.
236 (decimal_convert): Likewise.
237 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
238 call to value_from_decfloat.
239 * valarith.c: Include dfp.h.
240 (value_args_as_decimal): New function.
241 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
242 (value_logical_not): Likewise.
243 (value_equal): Likewise.
244 (value_less): Likewise.
245 (value_pos): Likewise.
246 (value_neg): Formatting fix.
247 * valops.c: Include dfp.h.
248 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
249 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
250 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
251 (value_from_decfloat): Remove expect_type argument.
252 * value.h (value_from_decfloat): Update prototype.
253
254 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
255
256 Ignore change in name of dynamic linker during
257 execution on Solaris. This also unbreaks pending breakpoints.
258
259 * solist.h (struct target_so_ops): New field same.
260 * solib-svr4.c (svr4_same): New.
261 (_initialize_svr4_solib): Register svr4_same.
262 * solib.c (update_solib_list): Use ops->same, if available.
263
264 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
265
266 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
267 when using MS-DOS paths.
268
269 2008-01-05 Pedro Alves <pedro@codesourcery.com>
270
271 * NEWS: Mention --pid and --core command line behaviour changes.
272
273 2008-01-05 Pedro Alves <pedro@codesourcery.com>
274
275 * main.c (captured_main): Remove 'count' varible and the
276 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
277 --pid options were issued simultaneously. If an explicit pid
278 option was passed, don't fallback to core file. Detect extra
279 arguments better in the presence of explicit pid or core
280 arguments.
281
282 2008-01-05 Joel Brobecker <brobecker@adacore.com>
283
284 * ada-lang.c (ada_which_variant_applies): Correctly compute
285 the value of the discriminant when the variant record is packed.
286
287 2008-01-04 Joel Brobecker <brobecker@adacore.com>
288
289 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
290 that are used to differentiate homonyms.
291
292 2008-01-04 Jerome Guitton <guitton@adacore.com>
293
294 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
295 when the type is an anonymous pointer type.
296 (ada_check_typedef): Avoid a seg fault when the type is null.
297 * ada-typeprint.c (print_array_type): Add support for pointer
298 to packed arrays.
299
300 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
301
302 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
303
304 2008-01-04 Joel Brobecker <brobecker@adacore.com>
305
306 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
307 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
308
309 2008-01-04 Joel Brobecker <brobecker@adacore.com>
310
311 * ada-exp.y (chop_separator): New function.
312 (write_selectors): Rewrite to re-use chop_separator.
313 (ada_nget_field_index, get_symbol_field_type): New functions.
314 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
315 expressions.
316
317 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
318
319 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
320 of SYMBOL_VALUE when working with function symbols.
321
322 2008-01-03 Joel Brobecker <brobecker@adacore.com>
323
324 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
325 expressions. These expressions do not need to be rewriten.
326
327 2008-01-03 Joel Brobecker <brobecker@adacore.com>
328
329 * dwarf2read.c (read_enumeration_type): Flag type as stub if
330 the given die is a declaration.
331
332 2008-01-03 Joel Brobecker <brobecker@adacore.com>
333
334 * ada-lang.c (ada_array_bound_from_type): Make non-static.
335 Handle properly the case when the index type is an enumerated type.
336 Do not return the subtype of the bounds type, just return the
337 bounds type directly - this is not needed and is more consistent
338 with what we do for arrays when no XA parallel type exists.
339
340 2008-01-03 Joel Brobecker <brobecker@adacore.com>
341
342 * ada-lang.c (static_unwrap_type): Add forward declaration.
343 (template_to_static_fixed_type): Fields of dynamic types sometimes
344 also need to be unwrapped. Take this into account.
345 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
346 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
347 * ada-typeprint.c (ada_print_type): Get the typename from
348 the original type, not the base type.
349
350 2008-01-03 Jerome Guitton <guitton@adacore.com>
351
352 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
353 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
354 Update calls to ada_to_fixed_type.
355 (ada_template_to_fixed_record_type_1): Ditto, but without looking
356 for the tag.
357 (ada_to_fixed_type): Add check_tag parameter; do not look for
358 tag if null. When looking for a tag, use a fixed record type.
359 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
360 * ada-valprint.c (printable_val_type, ada_value_print): Update
361 calls to ada_to_fixed_type.
362
363 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
364
365 * doublest.c (convert_floatformat_to_doublest): Call
366 floatformat_to_doublest instead of floatformat_to_double and use
367 DOUBLEST variables.
368 (convert_doublest_to_floatformat): Call floatformat_from_doublest
369 instead of floatformat_from_double and use DOUBLEST variables.
370
371 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
372
373 * MAINTAINERS (Write After Approval): Add self.
374
375 2008-01-03 Joel Brobecker <brobecker@adacore.com>
376
377 * symfile.c (set_initial_language): Make non-static.
378 * symfile.h (set_initial_language): Add declaration.
379 * language.c: #include "symfile.h".
380 (set_language): Call set_initial_language if the frame language
381 could not be determined.
382
383 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
384
385 * eval.c (evaluate_subexp_for_address): Provide frame address to
386 locate_var_value only if it will be needed.
387
388 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
389
390 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
391
392 2008-01-02 Joel Brobecker <brobecker@adacore.com>
393
394 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
395 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
396 This is needed to make sure that any other treatment applied
397 to the resulting value does not fail for spurious reason,
398 such as trying to take the address of this value.
399
400 2008-01-02 Joel Brobecker <brobecker@adacore.com>
401
402 * ada-lang.c (ada_value_equal): Dereference reference types when
403 comparing arrays.
404
405 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
406
407 Updated copyright notices for most files.
408
409 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
410
411 * win32-nat.c (psapi_module_handle): Remove static.
412 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
413 return first module found if base_address is zero. Don't initialize
414 psapi function pointers here. Convert to cygwin paths when
415 appropriate.
416 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
417 executable name. Use get_module_name when that fails or when
418 !__CYGWIN__.
419 (_initialize_psapi): New function. Initialize psapi stuff before it is
420 needed or issue a warning if it is not found. Move psapi_module_handle
421 here.
422
423 2008-01-01 Joel Brobecker <brobecker@adacore.com>
424
425 * ada-lang.c (ada_remove_trailing_digits): New function.
426 (ada_remove_po_subprogram_suffix): New function.
427 (ada_decode): Improve. Move the description of the algorithm
428 directly inside the code, instead of in the function global
429 description.
430
431 2008-01-01 Joel Brobecker <brobecker@adacore.com>
432
433 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
434 and always print the dereferenced value.
435
436 2008-01-01 Joel Brobecker <brobecker@adacore.com>
437
438 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
439 of the case where the first argument is a reference.
440 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
441
442 2008-01-01 Joel Brobecker <brobecker@adacore.com>
443
444 Implement support for Ada interface types.
445
446 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
447 (ada_is_ignored_field): Ignore fields that are a dispatch table
448 of a tagged type.
449
450 2008-01-01 Joel Brobecker <brobecker@adacore.com>
451
452 * top.c (print_gdb_version): Update copyright year.
453
454 2008-01-01 Joel Brobecker <brobecker@adacore.com>
455
456 * ChangeLog-2007: New ChangeLog rotation.
457 * ChangeLog: Reset for 2008.
458 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
459 ChangeLog-2007.
460
461 For older changes see ChangeLog-2007.
462 \f
463 Local Variables:
464 mode: change-log
465 left-margin: 8
466 fill-column: 74
467 version-control: never
468 coding: utf-8
469 End: