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