* doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
[binutils-gdb.git] / gdb / ChangeLog
1 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
2
3 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
4 (DOUBLEST_SCAN_FORMAT): Likewise.
5 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
6 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
7 * c-exp.y (parse_number): Likewise.
8 * jv-exp.y (parse_number): Likewise.
9 * objc-exp.y (parse_number): Likewise.
10 * p-exp.y (parse_number): Likewise.
11
12 2008-01-09 Joel Brobecker <brobecker@adacore.com>
13
14 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
15 (check_typedef): Likewise.
16
17 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
18
19 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
20 seen_double_big_d, treat the new H, D, and DD modifiers as length
21 modifiers.
22
23 2008-01-08 Joel Brobecker <brobecker@adacore.com>
24
25 * dwarf2read.c (read_enumeration_type): Add comment.
26
27 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
28
29 * config.in: Regenerate.
30
31 2008-01-08 Joel Brobecker <brobecker@adacore.com>
32
33 * ada-lang.c (ada_convert_actual): Renames convert_actual.
34 Make non-static.
35 (ada_convert_actuals): Delete.
36 * ada-lang.h (ada_convert_actual): Add declaration.
37 (ada_convert_actuals): Remove declaration.
38 * infcall.c: #include "ada-lang.h".
39 (value_arg_coerce): Add new parameter sp. Update function
40 documetnation. Add handling of Ada function call parameters.
41 * Makefile.in (infcall.o): Update dependencies.
42
43 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
44
45 * ada-lang.c (ensure_lval): Fix value lval kind.
46 (convert_actual): Add handling for arguments passed by reference.
47
48 2008-01-08 Doug Evans <dje@google.com>
49
50 * dbxread.c (read_dbx_symtab): Fix indentation.
51
52 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
53
54 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
55 (valarith.o): Depend on dfp.h.
56 (valops.o): Likewise.
57 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
58 (set_decnumber_context): New function.
59 (decimal_check_errors): Likewise.
60 (decimal_from_number): Likewise.
61 (decimal_to_number): Likewise.
62 (decimal_from_string): Use set_decnumber_context and
63 decimal_check_errors.
64 (decimal_from_integral): New function.
65 (decimal_from_floating): Likewise.
66 (decimal_to_double): Likewise.
67 (promote_decimal): Likewise.
68 (decimal_binop): Likewise.
69 (decimal_is_zero): Likewise.
70 (decimal_compare): Likewise.
71 (decimal_convert): Likewise.
72 * dfp.h (decimal_from_integral): New prototype.
73 (decimal_from_floating): Likewise.
74 (decimal_to_double): Likewise.
75 (decimal_binop): Likewise.
76 (decimal_is_zero): Likewise.
77 (decimal_compare): Likewise.
78 (decimal_convert): Likewise.
79 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
80 call to value_from_decfloat.
81 * valarith.c: Include dfp.h.
82 (value_args_as_decimal): New function.
83 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
84 (value_logical_not): Likewise.
85 (value_equal): Likewise.
86 (value_less): Likewise.
87 (value_pos): Likewise.
88 (value_neg): Formatting fix.
89 * valops.c: Include dfp.h.
90 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
91 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
92 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
93 (value_from_decfloat): Remove expect_type argument.
94 * value.h (value_from_decfloat): Update prototype.
95
96 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
97
98 Ignore change in name of dynamic linker during
99 execution on Solaris. This also unbreaks pending breakpoints.
100
101 * solist.h (struct target_so_ops): New field same.
102 * solib-svr4.c (svr4_same): New.
103 (_initialize_svr4_solib): Register svr4_same.
104 * solib.c (update_solib_list): Use ops->same, if available.
105
106 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
107
108 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
109 when using MS-DOS paths.
110
111 2008-01-05 Pedro Alves <pedro@codesourcery.com>
112
113 * NEWS: Mention --pid and --core command line behaviour changes.
114
115 2008-01-05 Pedro Alves <pedro@codesourcery.com>
116
117 * main.c (captured_main): Remove 'count' varible and the
118 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
119 --pid options were issued simultaneously. If an explicit pid
120 option was passed, don't fallback to core file. Detect extra
121 arguments better in the presence of explicit pid or core
122 arguments.
123
124 2008-01-05 Joel Brobecker <brobecker@adacore.com>
125
126 * ada-lang.c (ada_which_variant_applies): Correctly compute
127 the value of the discriminant when the variant record is packed.
128
129 2008-01-04 Joel Brobecker <brobecker@adacore.com>
130
131 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
132 that are used to differentiate homonyms.
133
134 2008-01-04 Jerome Guitton <guitton@adacore.com>
135
136 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
137 when the type is an anonymous pointer type.
138 (ada_check_typedef): Avoid a seg fault when the type is null.
139 * ada-typeprint.c (print_array_type): Add support for pointer
140 to packed arrays.
141
142 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
143
144 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
145
146 2008-01-04 Joel Brobecker <brobecker@adacore.com>
147
148 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
149 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
150
151 2008-01-04 Joel Brobecker <brobecker@adacore.com>
152
153 * ada-exp.y (chop_separator): New function.
154 (write_selectors): Rewrite to re-use chop_separator.
155 (ada_nget_field_index, get_symbol_field_type): New functions.
156 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
157 expressions.
158
159 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
160
161 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
162 of SYMBOL_VALUE when working with function symbols.
163
164 2008-01-03 Joel Brobecker <brobecker@adacore.com>
165
166 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
167 expressions. These expressions do not need to be rewriten.
168
169 2008-01-03 Joel Brobecker <brobecker@adacore.com>
170
171 * dwarf2read.c (read_enumeration_type): Flag type as stub if
172 the given die is a declaration.
173
174 2008-01-03 Joel Brobecker <brobecker@adacore.com>
175
176 * ada-lang.c (ada_array_bound_from_type): Make non-static.
177 Handle properly the case when the index type is an enumerated type.
178 Do not return the subtype of the bounds type, just return the
179 bounds type directly - this is not needed and is more consistent
180 with what we do for arrays when no XA parallel type exists.
181
182 2008-01-03 Joel Brobecker <brobecker@adacore.com>
183
184 * ada-lang.c (static_unwrap_type): Add forward declaration.
185 (template_to_static_fixed_type): Fields of dynamic types sometimes
186 also need to be unwrapped. Take this into account.
187 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
188 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
189 * ada-typeprint.c (ada_print_type): Get the typename from
190 the original type, not the base type.
191
192 2008-01-03 Jerome Guitton <guitton@adacore.com>
193
194 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
195 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
196 Update calls to ada_to_fixed_type.
197 (ada_template_to_fixed_record_type_1): Ditto, but without looking
198 for the tag.
199 (ada_to_fixed_type): Add check_tag parameter; do not look for
200 tag if null. When looking for a tag, use a fixed record type.
201 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
202 * ada-valprint.c (printable_val_type, ada_value_print): Update
203 calls to ada_to_fixed_type.
204
205 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
206
207 * doublest.c (convert_floatformat_to_doublest): Call
208 floatformat_to_doublest instead of floatformat_to_double and use
209 DOUBLEST variables.
210 (convert_doublest_to_floatformat): Call floatformat_from_doublest
211 instead of floatformat_from_double and use DOUBLEST variables.
212
213 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
214
215 * MAINTAINERS (Write After Approval): Add self.
216
217 2008-01-03 Joel Brobecker <brobecker@adacore.com>
218
219 * symfile.c (set_initial_language): Make non-static.
220 * symfile.h (set_initial_language): Add declaration.
221 * language.c: #include "symfile.h".
222 (set_language): Call set_initial_language if the frame language
223 could not be determined.
224
225 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
226
227 * eval.c (evaluate_subexp_for_address): Provide frame address to
228 locate_var_value only if it will be needed.
229
230 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
231
232 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
233
234 2008-01-02 Joel Brobecker <brobecker@adacore.com>
235
236 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
237 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
238 This is needed to make sure that any other treatment applied
239 to the resulting value does not fail for spurious reason,
240 such as trying to take the address of this value.
241
242 2008-01-02 Joel Brobecker <brobecker@adacore.com>
243
244 * ada-lang.c (ada_value_equal): Dereference reference types when
245 comparing arrays.
246
247 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
248
249 Updated copyright notices for most files.
250
251 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
252
253 * win32-nat.c (psapi_module_handle): Remove static.
254 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
255 return first module found if base_address is zero. Don't initialize
256 psapi function pointers here. Convert to cygwin paths when
257 appropriate.
258 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
259 executable name. Use get_module_name when that fails or when
260 !__CYGWIN__.
261 (_initialize_psapi): New function. Initialize psapi stuff before it is
262 needed or issue a warning if it is not found. Move psapi_module_handle
263 here.
264
265 2008-01-01 Joel Brobecker <brobecker@adacore.com>
266
267 * ada-lang.c (ada_remove_trailing_digits): New function.
268 (ada_remove_po_subprogram_suffix): New function.
269 (ada_decode): Improve. Move the description of the algorithm
270 directly inside the code, instead of in the function global
271 description.
272
273 2008-01-01 Joel Brobecker <brobecker@adacore.com>
274
275 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
276 and always print the dereferenced value.
277
278 2008-01-01 Joel Brobecker <brobecker@adacore.com>
279
280 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
281 of the case where the first argument is a reference.
282 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
283
284 2008-01-01 Joel Brobecker <brobecker@adacore.com>
285
286 Implement support for Ada interface types.
287
288 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
289 (ada_is_ignored_field): Ignore fields that are a dispatch table
290 of a tagged type.
291
292 2008-01-01 Joel Brobecker <brobecker@adacore.com>
293
294 * top.c (print_gdb_version): Update copyright year.
295
296 2008-01-01 Joel Brobecker <brobecker@adacore.com>
297
298 * ChangeLog-2007: New ChangeLog rotation.
299 * ChangeLog: Reset for 2008.
300 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
301 ChangeLog-2007.
302
303 For older changes see ChangeLog-2007.
304 \f
305 Local Variables:
306 mode: change-log
307 left-margin: 8
308 fill-column: 74
309 version-control: never
310 coding: utf-8
311 End: