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