* remote.c (remote_wait): Handle SIGINT between packets.
[binutils-gdb.git] / gdb / ChangeLog
1 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * remote.c (remote_wait): Handle SIGINT between packets.
4 (remote_async_wait): Likewise.
5
6 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
7 Chris Demetriou <cgd@google.com>
8
9 * thread.c (add_thread_silent): Renamed
10 from add_thread.
11 (print_thread_events): New variable definition.
12 (show_print_thread_events): New function.
13 (_initialize_thread): Add "set print thread-events" and
14 "show print thread-events" commands.
15 (add_thread): Announce new thread.
16 * gdbthread.h (add_thread_silent): Declare.
17 (print_thread_events): New variable declaration.
18 * inf-ttrace.c (inf_ttrace_wait): Don't
19 inform about new thread, as add_thread is always
20 called too, and will take care of that.
21 * infrun.c (handle_inferior_event): Likewise.
22 * procfs.c (procfs_wait): Likewise.
23 * remote.c (remote_currthread): Likewise.
24 * sol-thread.c (sol_thread_wait): Likewise.
25 * win32-nat.c (get_win32_debug_event): Likewise.
26 * linux-thread-db.c (attach_thread): Likewise.
27 Remove the verbose parameter.
28 (check_event): Make detach_thread be verbose
29 only if print_thread_events is set.
30 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
31 about new thread. This is called only from
32 linux-thread-db.c:attach_thread, which will take care.
33 Remove the verbose parameter.
34 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
35
36 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
37
38 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
39
40 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
41
42 * breakpoint.c (break_command_really): New parameter
43 ignore_count.
44 (break_command_1): Pass 0 as
45 ignore_count to break_command_really.
46 (gdb_breakpoint): Pass ignore_count to
47 break_command_really.
48
49 2008-01-21 Kevin Buettner <kevinb@redhat.com>
50
51 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
52 sigcontext struct via pointer.
53 (struct sigframe comment): Update to show new field `psc'.
54
55 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
56
57 * infrun.c (handle_inferior_event): If
58 we failed to remove breakpoints, error,
59 don't try to increment PC by hand.
60
61 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
62
63 Add NetBSD/hppa target and host support.
64
65 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
66 (hppabsd_gregset): Move to ...
67 (hppabsd_regset_from_core_section): Rename
68 hppaobsd_regset_from_core_section and move to ...
69 (hppabsd_find_global_pointer): Update comment.
70 (hppabsd_init_abi): Make global. Do not register
71 hppabsd_regset_from_core_section.
72 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
73 move to ...
74 (_initialize_hppabsd_tdep): Move to ...
75 * hppaobsd-tdep.c: ... here. New file.
76 * hppnbsd-tdep.c: New file.
77 * hppnbsd-nat.c: New file.
78 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
79 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
80 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
81 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
82 * configure.host (hppa*-*-netbsd*): New entry.
83 * configure.tgt (hppa*-*-netbsd*): New entry.
84 (hppa*-*-openbsd*): Update.
85 * NEWS (New native configuration): Mention NetBSD/hppa.
86 (New targets): Mention NetBSD/hppa.
87
88 2008-01-18 Markus Deuling <deuling@de.ibm.com>
89
90 * gdbarch.sh (function_list): Add new property bits_big_endian to
91 gdbarch structure.
92 * gdbarch.{c,h}: Regenerate.
93
94 * value.c (struct value): Replace BITS_BIG_ENDIAN by
95 gdbarch_bits_big_endian (comment).
96 (unpack_field_as_long, modify_field): Likewise.
97 * value.h: Likewise (comment).
98 * valops.c (value_slice): Likewise.
99 * valarith.c (value_subscript, value_bit_index): Likewise.
100 * gdbtypes.h (field): Likewise (comment).
101 * eval.c (evaluate_subexp_standard): Likewise.
102 * dwarf2read.c (dwarf2_add_field): Likewise.
103 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
104 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
105
106 * defs.h (BITS_BIG_ENDIAN): Remove.
107
108 2008-01-18 Markus Deuling <deuling@de.ibm.com>
109
110 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
111 function calls.
112 * m2-exp.y (yylex): Likewise.
113 * objc-exp.y (yylex): Likewise.
114
115 * defs.h (DEPRECATED_STREQN): Remove.
116
117 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
118
119 * MAINTAINERS: Update my email address.
120
121 2008-01-17 Jim Blandy <jimb@codesourcery.com>
122
123 * README: Mention gdbserver/README.
124
125 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
126
127 * valarith.c (value_binop): Handle BINOP_INTDIV
128 for unsigned and signed integers.
129
130 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
131
132 * s390-tdep.c (s390_gdbarch_init): Set default long double
133 type to 128-bit IEEE quad.
134
135 2008-01-17 Joel Brobecker <brobecker@adacore.com>
136
137 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
138
139 2008-01-16 Mark Kettenis <kettenis@gnu.org>
140
141 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
142
143 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
144 * value.c: All callers changed.
145
146 2008-01-16 Markus Deuling <deuling@de.ibm.com>
147
148 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
149 DEPRECATED_STREQ by its expression.
150 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
151 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
152 (scan_xcoff_symtab): Likewise.
153 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
154 * f-lang.c (find_common_for_function): Likewise.
155 * objc-exp.y (parse_number): Likewise.
156
157 * defs.h (DEPRECATED_STREQ): Remove.
158
159 2008-01-16 Markus Deuling <deuling@de.ibm.com>
160
161 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
162 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
163 get_frame_arch to get at the current_architecture. Update AM33_MODE
164 call.
165 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
166 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
167 architecture.
168 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
169
170 2008-01-16 Markus Deuling <deuling@de.ibm.com>
171
172 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
173 parameter.
174 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
175
176 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
177 current_gdbarch by gdbarch. Update caller.
178
179 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
180 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
181 the current architecture. Update calls of
182 amd64_native_gregset_supplies_p.
183 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
184 (amd64bsd_store_inferior_registers): Likewise.
185
186 2008-01-16 Markus Deuling <deuling@de.ibm.com>
187
188 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
189 Replace current_gdbarch by gdbarch. Update caller.
190
191 2008-01-16 Markus Deuling <deuling@de.ibm.com>
192
193 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
194 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
195 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
196 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
197 (stabsect_build_psymtabs): Fix indentation.
198
199 2008-01-15 Michael Snyder <msnyder@specifix.com>
200
201 * corelow.c (core_xfer_partial): Comment, cut/paste error.
202
203 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
204
205 * win32-nat.c (win32_create_inferior): Restore code calling
206 CloseHandle on ProcessInformation structure.
207
208 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
209
210 * configure.ac: Check for void * as 3 argument of ptrace.
211 * configure: regenerate.
212
213 2008-01-11 Markus Deuling <deuling@de.ibm.com>
214
215 * alpha-tdep.c (alpha_heuristic_proc_start)
216 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
217 current_gdbarch by gdbarch.
218
219 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
220 current architecture by frame_info. Update alpha_heuristic_proc_start
221 call.
222
223 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
224 get_frame_arch to get at the current architecture by frame_info. Update
225 alpha_sigtramp_register_address call.
226
227 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
228 current_gdbarch by gdbarch. Update caller.
229 (convert_to_extended, convert_from_extended): Add endianess parameter
230 for comparison. Update caller.
231 (arm_extract_return_value, arm_store_return_value): Use
232 get_regcache_arch to get at the current architecture.
233
234 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
235 current_gdbarch by gdbarch. Update caller.
236 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
237 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
238
239 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
240 gdbarch as parameter. Update caller.
241 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
242 current_gdbarch by gdbarch. Update caller.
243
244 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
245 update caller. Replace current_gdbarch by gdbarch.
246
247 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
248 the current architecture. Replace current_gdbarch by gdbarch.
249 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
250 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
251 expression. Add gdbarch as parameter and replace current_gdbarch with
252 it. Update caller.
253 (M6811_TDEP): Remove.
254 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
255 architecture.
256 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
257 current_gdbarch by gdbarch. Update caller.
258
259 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
260 update caller.
261 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
262 by gdbarch.
263
264 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
265 caller. Relace current_gdbarch by gdbarch.
266 (altivec_register_p, spe_register_p): Likewise.
267 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
268 parameter.
269 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
270 altivec_register_p and spe_register_p.
271
272 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
273 caller. Replace current_gdbarch by gdbarch.
274 (score_analyze_prologue): use get_frame_arch to get at the current
275 architecture.
276
277 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
278 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
279 current_gdbarch by gdbarch. Update caller.
280 (sparc_frame_cache): Use get_frame_arch to get at the current
281 architecture.
282 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
283 sparc_analyze_prologue.
284
285 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
286 parameter.
287
288 2008-01-11 Markus Deuling <deuling@de.ibm.com>
289
290 * exec.c: #include "arch-utils.h"
291 (print_section_info): Use gdbarch_from_bfd to get at the
292 current architecture. Replace current_gdbarch. Fix indention. Replace
293 deprecated_print_address_numeric by paddress.
294 * Makefile.in (exec.o) Add dependency to arch-utils.h.
295
296 * valprint.c (val_print_string): Replace
297 deprecated_print_address_numeric.
298 * tracepoint.c (trace_mention, scope_info): Likewise.
299 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
300 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
301 (maintenance_check_symtabs): Likewise.
302 * symfile.c (list_overlays_command): Likewise.
303 * stack.c (frame_info, print_block_frame_labels): Likewise.
304 * printcmd.c (print_address, print_address_demangle)
305 (address_info): Likewise.
306 * corefile.c (memory_error): Likewise.
307 * infcmd.c (jump_command): Likewise.
308 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
309 (mention, delete_breakpoint): Likewise.
310 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
311 * dwarf2read.c (dump_die): Likewise.
312 * ada-valprint.c (ada_val_print_1): Likewise.
313 * f-valprint.c (f_val_print): Likewise.
314 * linux-fork.c (info_forks_command): Likewise.
315 * m32r-com.c (m32r_load_section, m32r_load)
316 (m32r_upload_command): Likewise.
317
318 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
319
320 2008-01-11 Markus Deuling <deuling@de.ibm.com>
321
322 * gdbarch.sh (skip_prologue): Add gdbarch
323 as parameter.
324 * gdbarch.{c,h}: Regenerate.
325
326 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
327 * amd64-tdep.c (amd64_skip_prologue): Likewise.
328 * avr-tdep.c (avr_skip_prologue): Likewise.
329 * cris-tdep.c (cris_skip_prologue): Likewise.
330 * frv-tdep.c (frv_skip_prologue): Likewise.
331 * h8300-tdep.c (h8300_skip_prologue): Likewise.
332 * hppa-tdep.c (hppa_skip_prologue): Likewise.
333 * i386-tdep.c (i386_skip_prologue): Likewise.
334 * ia64-tdep.c (ia64_skip_prologue): Likewise.
335 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
336 * m32r-tdep.c (m32r_skip_prologue): Likewise.
337 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
338 * m68k-tdep.c (m68k_skip_prologue): Likewise.
339 * m88k-tdep.c (m88k_skip_prologue): Likewise.
340 * mep-tdep.c (mep_skip_prologue): Likewise.
341 * mips-tdep.c (mips_skip_prologue): Likewise.
342 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
343 * mt-tdep.c (mt_skip_prologue): Likewise.
344 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
345 * score-tdep.c (score_skip_prologue): Likewise.
346 * sh64-tdep.c (sh64_skip_prologue): Likewise.
347 * sh-tdep.c (sh_skip_prologue): Likewise.
348 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
349 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
350 * spu-tdep.c (spu_skip_prologue): Likewise.
351 * v850-tdep.c (v850_skip_prologue): Likewise.
352 * vax-tdep.c (vax_skip_prologue): Likewise.
353 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
354 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
355
356 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
357 current_gdbarch by gdbarch.
358 * m32c-tdep.c (m32c_skip_prologue): Likewise.
359 * s390-tdep.c (s390_skip_prologue): Likewise.
360
361 2008-01-10 Doug Evans <dje@google.com>
362
363 * defs.h (struct continuation_arg): Fix typo in comment.
364 * target.c (target_translate_tls_address): Fix comment spelling error.
365
366 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
367
368 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
369 (DOUBLEST_SCAN_FORMAT): Likewise.
370 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
371 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
372 * c-exp.y (parse_number): Likewise.
373 * jv-exp.y (parse_number): Likewise.
374 * objc-exp.y (parse_number): Likewise.
375 * p-exp.y (parse_number): Likewise.
376
377 2008-01-09 Joel Brobecker <brobecker@adacore.com>
378
379 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
380 (check_typedef): Likewise.
381
382 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
383
384 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
385 seen_double_big_d, treat the new H, D, and DD modifiers as length
386 modifiers.
387
388 2008-01-08 Joel Brobecker <brobecker@adacore.com>
389
390 * dwarf2read.c (read_enumeration_type): Add comment.
391
392 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
393
394 * config.in: Regenerate.
395
396 2008-01-08 Joel Brobecker <brobecker@adacore.com>
397
398 * ada-lang.c (ada_convert_actual): Renames convert_actual.
399 Make non-static.
400 (ada_convert_actuals): Delete.
401 * ada-lang.h (ada_convert_actual): Add declaration.
402 (ada_convert_actuals): Remove declaration.
403 * infcall.c: #include "ada-lang.h".
404 (value_arg_coerce): Add new parameter sp. Update function
405 documetnation. Add handling of Ada function call parameters.
406 * Makefile.in (infcall.o): Update dependencies.
407
408 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
409
410 * ada-lang.c (ensure_lval): Fix value lval kind.
411 (convert_actual): Add handling for arguments passed by reference.
412
413 2008-01-08 Doug Evans <dje@google.com>
414
415 * dbxread.c (read_dbx_symtab): Fix indentation.
416
417 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
418
419 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
420 (valarith.o): Depend on dfp.h.
421 (valops.o): Likewise.
422 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
423 (set_decnumber_context): New function.
424 (decimal_check_errors): Likewise.
425 (decimal_from_number): Likewise.
426 (decimal_to_number): Likewise.
427 (decimal_from_string): Use set_decnumber_context and
428 decimal_check_errors.
429 (decimal_from_integral): New function.
430 (decimal_from_floating): Likewise.
431 (decimal_to_double): Likewise.
432 (promote_decimal): Likewise.
433 (decimal_binop): Likewise.
434 (decimal_is_zero): Likewise.
435 (decimal_compare): Likewise.
436 (decimal_convert): Likewise.
437 * dfp.h (decimal_from_integral): New prototype.
438 (decimal_from_floating): Likewise.
439 (decimal_to_double): Likewise.
440 (decimal_binop): Likewise.
441 (decimal_is_zero): Likewise.
442 (decimal_compare): Likewise.
443 (decimal_convert): Likewise.
444 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
445 call to value_from_decfloat.
446 * valarith.c: Include dfp.h.
447 (value_args_as_decimal): New function.
448 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
449 (value_logical_not): Likewise.
450 (value_equal): Likewise.
451 (value_less): Likewise.
452 (value_pos): Likewise.
453 (value_neg): Formatting fix.
454 * valops.c: Include dfp.h.
455 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
456 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
457 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
458 (value_from_decfloat): Remove expect_type argument.
459 * value.h (value_from_decfloat): Update prototype.
460
461 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
462
463 Ignore change in name of dynamic linker during
464 execution on Solaris. This also unbreaks pending breakpoints.
465
466 * solist.h (struct target_so_ops): New field same.
467 * solib-svr4.c (svr4_same): New.
468 (_initialize_svr4_solib): Register svr4_same.
469 * solib.c (update_solib_list): Use ops->same, if available.
470
471 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
472
473 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
474 when using MS-DOS paths.
475
476 2008-01-05 Pedro Alves <pedro@codesourcery.com>
477
478 * NEWS: Mention --pid and --core command line behaviour changes.
479
480 2008-01-05 Pedro Alves <pedro@codesourcery.com>
481
482 * main.c (captured_main): Remove 'count' varible and the
483 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
484 --pid options were issued simultaneously. If an explicit pid
485 option was passed, don't fallback to core file. Detect extra
486 arguments better in the presence of explicit pid or core
487 arguments.
488
489 2008-01-05 Joel Brobecker <brobecker@adacore.com>
490
491 * ada-lang.c (ada_which_variant_applies): Correctly compute
492 the value of the discriminant when the variant record is packed.
493
494 2008-01-04 Joel Brobecker <brobecker@adacore.com>
495
496 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
497 that are used to differentiate homonyms.
498
499 2008-01-04 Jerome Guitton <guitton@adacore.com>
500
501 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
502 when the type is an anonymous pointer type.
503 (ada_check_typedef): Avoid a seg fault when the type is null.
504 * ada-typeprint.c (print_array_type): Add support for pointer
505 to packed arrays.
506
507 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
508
509 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
510
511 2008-01-04 Joel Brobecker <brobecker@adacore.com>
512
513 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
514 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
515
516 2008-01-04 Joel Brobecker <brobecker@adacore.com>
517
518 * ada-exp.y (chop_separator): New function.
519 (write_selectors): Rewrite to re-use chop_separator.
520 (ada_nget_field_index, get_symbol_field_type): New functions.
521 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
522 expressions.
523
524 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
525
526 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
527 of SYMBOL_VALUE when working with function symbols.
528
529 2008-01-03 Joel Brobecker <brobecker@adacore.com>
530
531 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
532 expressions. These expressions do not need to be rewriten.
533
534 2008-01-03 Joel Brobecker <brobecker@adacore.com>
535
536 * dwarf2read.c (read_enumeration_type): Flag type as stub if
537 the given die is a declaration.
538
539 2008-01-03 Joel Brobecker <brobecker@adacore.com>
540
541 * ada-lang.c (ada_array_bound_from_type): Make non-static.
542 Handle properly the case when the index type is an enumerated type.
543 Do not return the subtype of the bounds type, just return the
544 bounds type directly - this is not needed and is more consistent
545 with what we do for arrays when no XA parallel type exists.
546
547 2008-01-03 Joel Brobecker <brobecker@adacore.com>
548
549 * ada-lang.c (static_unwrap_type): Add forward declaration.
550 (template_to_static_fixed_type): Fields of dynamic types sometimes
551 also need to be unwrapped. Take this into account.
552 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
553 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
554 * ada-typeprint.c (ada_print_type): Get the typename from
555 the original type, not the base type.
556
557 2008-01-03 Jerome Guitton <guitton@adacore.com>
558
559 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
560 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
561 Update calls to ada_to_fixed_type.
562 (ada_template_to_fixed_record_type_1): Ditto, but without looking
563 for the tag.
564 (ada_to_fixed_type): Add check_tag parameter; do not look for
565 tag if null. When looking for a tag, use a fixed record type.
566 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
567 * ada-valprint.c (printable_val_type, ada_value_print): Update
568 calls to ada_to_fixed_type.
569
570 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
571
572 * doublest.c (convert_floatformat_to_doublest): Call
573 floatformat_to_doublest instead of floatformat_to_double and use
574 DOUBLEST variables.
575 (convert_doublest_to_floatformat): Call floatformat_from_doublest
576 instead of floatformat_from_double and use DOUBLEST variables.
577
578 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
579
580 * MAINTAINERS (Write After Approval): Add self.
581
582 2008-01-03 Joel Brobecker <brobecker@adacore.com>
583
584 * symfile.c (set_initial_language): Make non-static.
585 * symfile.h (set_initial_language): Add declaration.
586 * language.c: #include "symfile.h".
587 (set_language): Call set_initial_language if the frame language
588 could not be determined.
589
590 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
591
592 * eval.c (evaluate_subexp_for_address): Provide frame address to
593 locate_var_value only if it will be needed.
594
595 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
596
597 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
598
599 2008-01-02 Joel Brobecker <brobecker@adacore.com>
600
601 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
602 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
603 This is needed to make sure that any other treatment applied
604 to the resulting value does not fail for spurious reason,
605 such as trying to take the address of this value.
606
607 2008-01-02 Joel Brobecker <brobecker@adacore.com>
608
609 * ada-lang.c (ada_value_equal): Dereference reference types when
610 comparing arrays.
611
612 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
613
614 Updated copyright notices for most files.
615
616 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
617
618 * win32-nat.c (psapi_module_handle): Remove static.
619 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
620 return first module found if base_address is zero. Don't initialize
621 psapi function pointers here. Convert to cygwin paths when
622 appropriate.
623 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
624 executable name. Use get_module_name when that fails or when
625 !__CYGWIN__.
626 (_initialize_psapi): New function. Initialize psapi stuff before it is
627 needed or issue a warning if it is not found. Move psapi_module_handle
628 here.
629
630 2008-01-01 Joel Brobecker <brobecker@adacore.com>
631
632 * ada-lang.c (ada_remove_trailing_digits): New function.
633 (ada_remove_po_subprogram_suffix): New function.
634 (ada_decode): Improve. Move the description of the algorithm
635 directly inside the code, instead of in the function global
636 description.
637
638 2008-01-01 Joel Brobecker <brobecker@adacore.com>
639
640 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
641 and always print the dereferenced value.
642
643 2008-01-01 Joel Brobecker <brobecker@adacore.com>
644
645 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
646 of the case where the first argument is a reference.
647 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
648
649 2008-01-01 Joel Brobecker <brobecker@adacore.com>
650
651 Implement support for Ada interface types.
652
653 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
654 (ada_is_ignored_field): Ignore fields that are a dispatch table
655 of a tagged type.
656
657 2008-01-01 Joel Brobecker <brobecker@adacore.com>
658
659 * top.c (print_gdb_version): Update copyright year.
660
661 2008-01-01 Joel Brobecker <brobecker@adacore.com>
662
663 * ChangeLog-2007: New ChangeLog rotation.
664 * ChangeLog: Reset for 2008.
665 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
666 ChangeLog-2007.
667
668 For older changes see ChangeLog-2007.
669 \f
670 Local Variables:
671 mode: change-log
672 left-margin: 8
673 fill-column: 74
674 version-control: never
675 coding: utf-8
676 End: