59c4f26f417cc771b7bfd73b0d7ce19a59ce4215
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2008-02-03 Doug Evans <dje@google.com>
2
3 PR 2384
4 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5 Return basetype, fieldno if found. All callers updated.
6 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
7 objfile.
8 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
9 * symfile.h (fill_in_vptr_fieldno): Delete.
10
11 2008-02-02 Doug Evans <dje@google.com>
12
13 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
14
15 * typeprint.c (*): Whitespace cleanup.
16
17 2008-02-02 Mark Kettenis <kettenis@gnu.org>
18 Luis Machado <luisgpm@br.ibm.com>
19 Thiago Jung Bauermann <bauerman@br.ibm.com>
20
21 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
22 don't fit into registerson the stack the way GCC does.
23
24 2008-02-01 Joel Brobecker <brobecker@adacore.com>
25
26 * symtab.c (symbol_set_names): Do not add an entry in the demangling
27 hash table for Ada symbols. Just store the linkage name as is,
28 and leave the demangled_name as NULL.
29
30 2007-02-01 Joel Brobecker <brobecker@adacore.com>
31
32 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
33 in the global scope.
34 (new_symbol): Likewise.
35
36 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
37
38 * breakpoint.c (break_command_1): Return void.
39 (break_command_really): Return void. Rethrow
40 exceptions instead of returning.
41 (gdb_breakpoint): Remove the error_message parameter.
42 Return void. Rename to set_breakpoint.
43 * gdb.h (gdb_breakpoint): Rename and move to...
44 * breakpoint.h (set_breakpoint): ...here.
45 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
46 event hooks even if exception is thrown. Adjust to
47 gdb_breakpoint interface changes.
48
49
50 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
51
52 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
53 float in both first and second word in the doubleword, to support
54 old and new ABIs.
55
56 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
57
58 Properly rethrow exception. This fixes errors
59 about non-existent functions for -break-insert.
60 * breakpoint.c (break_command_really): Use throw_exception
61 for rethrowing. If rethrowing, don't print the exception.
62
63 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
64
65 * NEWS: Mention Decimal Floating Point support.
66
67 2008-01-31 Joel Brobecker <brobecker@adacore.com>
68
69 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
70 value type to builtin_type_void_func_ptr.
71
72 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
73
74 * s390-tdep.c (is_float_singleton, is_float_like,
75 alignment_of, s390_return_value): Make checks for
76 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
77
78 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
79 Thiago Jung Bauermann <bauerman@br.ibm.com>
80
81 * infcmd.c (default_print_registers_info): Also print hex
82 raw contents for TYPE_CODE_DECFLOAT registers.
83 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
84 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
85 (rs6000_register_name): Add support for DFP pseudo-registers.
86 (rs6000_pseudo_register_type): Likewise.
87 rs6000_pseudo_register_reggroup_p): Likewise.
88 (ppc_pseudo_register_read): New function.
89 (ppc_pseudo_register_write): Likewise.
90 (rs6000_pseudo_register_read): Likewise.
91 (rs6000_pseudo_register_write): Likewise.
92 (e500_pseudo_register_read): Move checks to
93 rs6000_pseudo_register_read.
94 (e500_pseudo_register_write): Move checks to
95 rs6000_pseudo_register_write.
96 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
97 rs6000_pseudo_register_read and rs6000_pseudo_register_write
98 in gdbarch if SPE or DFP is available. Adjust gdbarch's
99 num_pseudo_regs to account for DFP pseudo regs.
100
101 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
102
103 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
104 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
105 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
106 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
107 e500_pseudo_register_read, e500_pseudo_register_write): Use
108 IS_SPE_PSEUDOREG macro.
109 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
110 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
111 Remove initialization of tdep->ppc_ev31_regnum.
112
113 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
114
115 * printcmd.c (print_formatted): Handle references as for unformatted
116 prints.
117
118 2008-01-30 Joel Brobecker <brobecker@adacore.com>
119
120 * eval.c (evaluate_subexp_standard): Add handling of user
121 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
122
123 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
124
125 * eval.c (evaluate_subexp_standard): Support
126 BINOP_INTDIV opcode.
127
128 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
129
130 * valarith.c (value_binop): Add floating-point BINOP_MIN and
131 BINOP_MAX cases.
132 For BINOP_EXP, use length and signedness of left operand only for
133 result, as for shifts.
134 For integral operands to BINOP_EXP, use new integer_pow and
135 uinteger_pow functions so as to get full range of results.
136 (integer_pow): New function.
137 (uinteger_pow): New function.
138
139 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
140
141 Use vector for varobj_list_children interface.
142 * gdb/varobj.c (varobj_list_children): Return vector
143 of varobjs.
144 * gdb/varobj.h (varobj_list_children): Adjust
145 prototype.
146 (varobj_p): Declare. Declare vector thereof.
147 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
148 for varobj_list_children change.
149 * Makefile.in (varobj_h): Update dependencies.
150
151 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
152
153 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
154 TYPE_CODE_DECFLOAT arguments.
155 (ppc64_sysv_abi_push_dummy_call) Likewise.
156 (get_decimal_float_return_value): New function.
157 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
158 values by calling get_decimal_float_return_value.
159 (ppc64_sysv_abi_return_value): Likewise.
160
161 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
162
163 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
164 for preprocessor macro information. Formatting changes.
165
166 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
167
168 * remote.c (struct remote_state): Add cached_wait_status.
169 (remote_exec_file): New variable.
170 (PACKET_vAttach, PACKET_vRun): New constants.
171 (extended_remote_restart): Do not query for status.
172 (struct start_remote_args): New.
173 (remote_start_remote): Take it as a second argument. Check
174 whether the target is running. Issue an error for non-running
175 non-extended targets. Cache the wait status. Set inferior_ptid
176 here.
177 (remote_open_1): Prompt to disconnect non-running targets. Make
178 sure the target is marked running. Do not set inferior_ptid here.
179 Update call to remote_start_remote. Do not call remote_check_symbols
180 if the target is not running.
181 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
182 argument. Handle a non-running target.
183 (remote_detach): Use it.
184 (extended_remote_detach): New.
185 (remote_disconnect): Fix typo. Use remoute_mourn_1.
186 (extended_remote_attach_1, extended_remote_attach)
187 (extended_async_remote_attach): New.
188 (remote_vcont_resume): Remove unused variable.
189 (remote_wait, remote_async_wait): Use any cached wait status.
190 (putpkt_binary, getpkt): Clear any cached wait status.
191 (extended_remoute_mourn_1): New.
192 (extended_remote_mourn): Use it.
193 (extended_async_remote_mourn, extended_remote_run): New.
194 (extended_remote_create_inferior_1): New.
195 (extended_remote_create_inferior): Use it.
196 (extended_remote_async_create_inferior): Likewise.
197 (remote_xfer_partial): Skip for non-executing targets.
198 (init_extended_remote_ops): Set to_detach and to_attach.
199 (init_extended_async_remote_ops): Likewise. Use
200 extended_async_remote_mourn.
201 (_initialize_remote): Register vAttach, vRun, and
202 set remote exec-file.
203 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
204
205 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
206
207 * Makefile.in (symfile.o): Update.
208 * NEWS: Mention exec tracing support.
209 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
210 exec events.
211 * infcmd.c (kill_if_already_running, detach_command)
212 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
213 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
214 (follow_exec): Do not check may_follow_exec. Do not mourn and push
215 targets. Apply the sysroot path to the loaded executable. Use
216 no_shared_libraries.
217 * linux-nat.c (linux_child_follow_fork): Print fork following
218 messages if verbose.
219 (kill_wait_callback): Kill again before waiting a second time.
220 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
221 no_shared_libraries.
222
223 2008-01-29 Joel Brobecker <brobecker@adacore.com>
224
225 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
226
227 2008-01-29 Joel Brobecker <brobecker@adacore.com>
228
229 * nto-tdep.h: Remove #include "defs.h".
230 * nto-tdep.c: Add #include "defs.h".
231 * Makefile.in (nto_tdep_h): Update dependencies.
232 (nto-tdep.o): Likewise.
233
234 2008-01-29 Joel Brobecker <brobecker@adacore.com>
235
236 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
237 and use it.
238 (proceed, start_remote): Update call to wait_for_inferior.
239 * inferior.h (wait_for_inferior): Update declaration.
240 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
241 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
242 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
243 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
244
245 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
246
247 * varobj (adjust_value_for_child_access): Added checking for
248 returned value from gdb_value_ind.
249 (c_describe_child): Likewise.
250 (cplus_describe_child): Fixed a typo.
251
252 2008-01-29 Jim Blandy <jimb@red-bean.com>
253
254 * MAINTAINERS: Update my info.
255
256 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
257
258 Use multiple locations for hardware watchpoints.
259 This eliminates the need to traverse value chain, doing
260 various checks, in three different places.
261
262 * breakpoint.h (struct bp_location): New fields
263 lengths and watchpoint_type.
264 (struct breakpoint): Remove the val_chain field.
265 * breakpoint.c (is_hardware_watchpoint): New.
266 (free_valchain): Remove.
267 (update_watchpoint): New.
268 (insert_bp_location): For hardware watchpoint, just
269 directly insert it.
270 (insert_breakpoints): Call update_watchpoint_locations
271 on all watchpoints. If we have failed to insert
272 any location of a hardware watchpoint, remove all inserted
273 locations.
274 (remove_breakpoint): For hardware watchpoints, directly
275 remove location.
276 (watchpoints_triggered): Iterate over locations.
277 (bpstat_stop_status): Use only first location of
278 a resource watchpoint.
279 (delete_breakpoint): Don't call free_valchain.
280 (print_one_breakpoint): Don't print all
281 locations for watchpoints.
282 (breakpoint_re_set_one): Use update_watchpoint for
283 watchpoints.
284
285 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
286
287 Don't reset watchpoint block on solib load.
288
289 * breakpoint.c (insert_bp_location): For watchpoints,
290 recompute condition.
291 (breakpoint_re_set_one): Instead of recomputing value
292 and condition for watchpoints, just reset value and
293 let insert_breakpoints/insert_bp_location recompute it.
294 Don't do anything about disabled watchpoint.
295
296 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
297
298 * valarith.c (value_binop): Handle unsigned integer
299 division by zero.
300
301 2008-01-28 Kevin Buettner <kevinb@redhat.com>
302
303 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
304 instruction pattern that appears frequently in position
305 independent code. Fix bug in code which looks for "fmov" and
306 backtracks if no "fmov" is found.
307
308 2008-01-28 Doug Evans <dje@google.com>
309
310 * dbxread.c (read_dbx_symtab): Fix indentation.
311 Reformat comments to 80 columns.
312 Move local var def closer to only use.
313
314 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
315
316 * fork-child.c (SHELL_FILE): Remove #ifndef.
317 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
318
319 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
320
321 * i386-tdep.c (i386_skip_noop): New function.
322 (i386_analyze_prologue): Call i386_skip_noop function.
323
324 2008-01-24 Michael Snyder <msnyder@specifix.com>
325
326 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
327 * win32-nat.c (win32_xfer_partial): Ditto.
328 * target.c (default_xfer_partial): Minor whitespace adjustment.
329
330 2008-01-24 Pedro Alves <pedro@codesourcery.com>
331
332 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
333 strip bit 1 even if pc doesn't point to thumb code.
334
335 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
336
337 * remote.c (remote_wait): Handle SIGINT between packets.
338 (remote_async_wait): Likewise.
339
340 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
341 Chris Demetriou <cgd@google.com>
342
343 * thread.c (add_thread_silent): Renamed
344 from add_thread.
345 (print_thread_events): New variable definition.
346 (show_print_thread_events): New function.
347 (_initialize_thread): Add "set print thread-events" and
348 "show print thread-events" commands.
349 (add_thread): Announce new thread.
350 * gdbthread.h (add_thread_silent): Declare.
351 (print_thread_events): New variable declaration.
352 * inf-ttrace.c (inf_ttrace_wait): Don't
353 inform about new thread, as add_thread is always
354 called too, and will take care of that.
355 * infrun.c (handle_inferior_event): Likewise.
356 * procfs.c (procfs_wait): Likewise.
357 * remote.c (remote_currthread): Likewise.
358 * sol-thread.c (sol_thread_wait): Likewise.
359 * win32-nat.c (get_win32_debug_event): Likewise.
360 * linux-thread-db.c (attach_thread): Likewise.
361 Remove the verbose parameter.
362 (check_event): Make detach_thread be verbose
363 only if print_thread_events is set.
364 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
365 about new thread. This is called only from
366 linux-thread-db.c:attach_thread, which will take care.
367 Remove the verbose parameter.
368 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
369
370 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
371
372 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
373
374 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
375
376 * breakpoint.c (break_command_really): New parameter
377 ignore_count.
378 (break_command_1): Pass 0 as
379 ignore_count to break_command_really.
380 (gdb_breakpoint): Pass ignore_count to
381 break_command_really.
382
383 2008-01-21 Kevin Buettner <kevinb@redhat.com>
384
385 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
386 sigcontext struct via pointer.
387 (struct sigframe comment): Update to show new field `psc'.
388
389 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
390
391 * infrun.c (handle_inferior_event): If
392 we failed to remove breakpoints, error,
393 don't try to increment PC by hand.
394
395 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
396
397 Add NetBSD/hppa target and host support.
398
399 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
400 (hppabsd_gregset): Move to ...
401 (hppabsd_regset_from_core_section): Rename
402 hppaobsd_regset_from_core_section and move to ...
403 (hppabsd_find_global_pointer): Update comment.
404 (hppabsd_init_abi): Make global. Do not register
405 hppabsd_regset_from_core_section.
406 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
407 move to ...
408 (_initialize_hppabsd_tdep): Move to ...
409 * hppaobsd-tdep.c: ... here. New file.
410 * hppnbsd-tdep.c: New file.
411 * hppnbsd-nat.c: New file.
412 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
413 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
414 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
415 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
416 * configure.host (hppa*-*-netbsd*): New entry.
417 * configure.tgt (hppa*-*-netbsd*): New entry.
418 (hppa*-*-openbsd*): Update.
419 * NEWS (New native configuration): Mention NetBSD/hppa.
420 (New targets): Mention NetBSD/hppa.
421
422 2008-01-18 Markus Deuling <deuling@de.ibm.com>
423
424 * gdbarch.sh (function_list): Add new property bits_big_endian to
425 gdbarch structure.
426 * gdbarch.{c,h}: Regenerate.
427
428 * value.c (struct value): Replace BITS_BIG_ENDIAN by
429 gdbarch_bits_big_endian (comment).
430 (unpack_field_as_long, modify_field): Likewise.
431 * value.h: Likewise (comment).
432 * valops.c (value_slice): Likewise.
433 * valarith.c (value_subscript, value_bit_index): Likewise.
434 * gdbtypes.h (field): Likewise (comment).
435 * eval.c (evaluate_subexp_standard): Likewise.
436 * dwarf2read.c (dwarf2_add_field): Likewise.
437 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
438 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
439
440 * defs.h (BITS_BIG_ENDIAN): Remove.
441
442 2008-01-18 Markus Deuling <deuling@de.ibm.com>
443
444 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
445 function calls.
446 * m2-exp.y (yylex): Likewise.
447 * objc-exp.y (yylex): Likewise.
448
449 * defs.h (DEPRECATED_STREQN): Remove.
450
451 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
452
453 * MAINTAINERS: Update my email address.
454
455 2008-01-17 Jim Blandy <jimb@codesourcery.com>
456
457 * README: Mention gdbserver/README.
458
459 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
460
461 * valarith.c (value_binop): Handle BINOP_INTDIV
462 for unsigned and signed integers.
463
464 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
465
466 * s390-tdep.c (s390_gdbarch_init): Set default long double
467 type to 128-bit IEEE quad.
468
469 2008-01-17 Joel Brobecker <brobecker@adacore.com>
470
471 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
472
473 2008-01-16 Mark Kettenis <kettenis@gnu.org>
474
475 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
476
477 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
478 * value.c: All callers changed.
479
480 2008-01-16 Markus Deuling <deuling@de.ibm.com>
481
482 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
483 DEPRECATED_STREQ by its expression.
484 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
485 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
486 (scan_xcoff_symtab): Likewise.
487 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
488 * f-lang.c (find_common_for_function): Likewise.
489 * objc-exp.y (parse_number): Likewise.
490
491 * defs.h (DEPRECATED_STREQ): Remove.
492
493 2008-01-16 Markus Deuling <deuling@de.ibm.com>
494
495 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
496 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
497 get_frame_arch to get at the current_architecture. Update AM33_MODE
498 call.
499 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
500 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
501 architecture.
502 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
503
504 2008-01-16 Markus Deuling <deuling@de.ibm.com>
505
506 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
507 parameter.
508 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
509
510 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
511 current_gdbarch by gdbarch. Update caller.
512
513 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
514 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
515 the current architecture. Update calls of
516 amd64_native_gregset_supplies_p.
517 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
518 (amd64bsd_store_inferior_registers): Likewise.
519
520 2008-01-16 Markus Deuling <deuling@de.ibm.com>
521
522 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
523 Replace current_gdbarch by gdbarch. Update caller.
524
525 2008-01-16 Markus Deuling <deuling@de.ibm.com>
526
527 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
528 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
529 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
530 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
531 (stabsect_build_psymtabs): Fix indentation.
532
533 2008-01-15 Michael Snyder <msnyder@specifix.com>
534
535 * corelow.c (core_xfer_partial): Comment, cut/paste error.
536
537 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
538
539 * win32-nat.c (win32_create_inferior): Restore code calling
540 CloseHandle on ProcessInformation structure.
541
542 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
543
544 * configure.ac: Check for void * as 3 argument of ptrace.
545 * configure: regenerate.
546
547 2008-01-11 Markus Deuling <deuling@de.ibm.com>
548
549 * alpha-tdep.c (alpha_heuristic_proc_start)
550 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
551 current_gdbarch by gdbarch.
552
553 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
554 current architecture by frame_info. Update alpha_heuristic_proc_start
555 call.
556
557 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
558 get_frame_arch to get at the current architecture by frame_info. Update
559 alpha_sigtramp_register_address call.
560
561 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
562 current_gdbarch by gdbarch. Update caller.
563 (convert_to_extended, convert_from_extended): Add endianess parameter
564 for comparison. Update caller.
565 (arm_extract_return_value, arm_store_return_value): Use
566 get_regcache_arch to get at the current architecture.
567
568 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
569 current_gdbarch by gdbarch. Update caller.
570 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
571 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
572
573 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
574 gdbarch as parameter. Update caller.
575 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
576 current_gdbarch by gdbarch. Update caller.
577
578 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
579 update caller. Replace current_gdbarch by gdbarch.
580
581 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
582 the current architecture. Replace current_gdbarch by gdbarch.
583 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
584 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
585 expression. Add gdbarch as parameter and replace current_gdbarch with
586 it. Update caller.
587 (M6811_TDEP): Remove.
588 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
589 architecture.
590 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
591 current_gdbarch by gdbarch. Update caller.
592
593 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
594 update caller.
595 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
596 by gdbarch.
597
598 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
599 caller. Relace current_gdbarch by gdbarch.
600 (altivec_register_p, spe_register_p): Likewise.
601 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
602 parameter.
603 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
604 altivec_register_p and spe_register_p.
605
606 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
607 caller. Replace current_gdbarch by gdbarch.
608 (score_analyze_prologue): use get_frame_arch to get at the current
609 architecture.
610
611 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
612 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
613 current_gdbarch by gdbarch. Update caller.
614 (sparc_frame_cache): Use get_frame_arch to get at the current
615 architecture.
616 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
617 sparc_analyze_prologue.
618
619 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
620 parameter.
621
622 2008-01-11 Markus Deuling <deuling@de.ibm.com>
623
624 * exec.c: #include "arch-utils.h"
625 (print_section_info): Use gdbarch_from_bfd to get at the
626 current architecture. Replace current_gdbarch. Fix indention. Replace
627 deprecated_print_address_numeric by paddress.
628 * Makefile.in (exec.o) Add dependency to arch-utils.h.
629
630 * valprint.c (val_print_string): Replace
631 deprecated_print_address_numeric.
632 * tracepoint.c (trace_mention, scope_info): Likewise.
633 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
634 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
635 (maintenance_check_symtabs): Likewise.
636 * symfile.c (list_overlays_command): Likewise.
637 * stack.c (frame_info, print_block_frame_labels): Likewise.
638 * printcmd.c (print_address, print_address_demangle)
639 (address_info): Likewise.
640 * corefile.c (memory_error): Likewise.
641 * infcmd.c (jump_command): Likewise.
642 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
643 (mention, delete_breakpoint): Likewise.
644 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
645 * dwarf2read.c (dump_die): Likewise.
646 * ada-valprint.c (ada_val_print_1): Likewise.
647 * f-valprint.c (f_val_print): Likewise.
648 * linux-fork.c (info_forks_command): Likewise.
649 * m32r-com.c (m32r_load_section, m32r_load)
650 (m32r_upload_command): Likewise.
651
652 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
653
654 2008-01-11 Markus Deuling <deuling@de.ibm.com>
655
656 * gdbarch.sh (skip_prologue): Add gdbarch
657 as parameter.
658 * gdbarch.{c,h}: Regenerate.
659
660 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
661 * amd64-tdep.c (amd64_skip_prologue): Likewise.
662 * avr-tdep.c (avr_skip_prologue): Likewise.
663 * cris-tdep.c (cris_skip_prologue): Likewise.
664 * frv-tdep.c (frv_skip_prologue): Likewise.
665 * h8300-tdep.c (h8300_skip_prologue): Likewise.
666 * hppa-tdep.c (hppa_skip_prologue): Likewise.
667 * i386-tdep.c (i386_skip_prologue): Likewise.
668 * ia64-tdep.c (ia64_skip_prologue): Likewise.
669 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
670 * m32r-tdep.c (m32r_skip_prologue): Likewise.
671 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
672 * m68k-tdep.c (m68k_skip_prologue): Likewise.
673 * m88k-tdep.c (m88k_skip_prologue): Likewise.
674 * mep-tdep.c (mep_skip_prologue): Likewise.
675 * mips-tdep.c (mips_skip_prologue): Likewise.
676 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
677 * mt-tdep.c (mt_skip_prologue): Likewise.
678 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
679 * score-tdep.c (score_skip_prologue): Likewise.
680 * sh64-tdep.c (sh64_skip_prologue): Likewise.
681 * sh-tdep.c (sh_skip_prologue): Likewise.
682 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
683 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
684 * spu-tdep.c (spu_skip_prologue): Likewise.
685 * v850-tdep.c (v850_skip_prologue): Likewise.
686 * vax-tdep.c (vax_skip_prologue): Likewise.
687 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
688 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
689
690 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
691 current_gdbarch by gdbarch.
692 * m32c-tdep.c (m32c_skip_prologue): Likewise.
693 * s390-tdep.c (s390_skip_prologue): Likewise.
694
695 2008-01-10 Doug Evans <dje@google.com>
696
697 * defs.h (struct continuation_arg): Fix typo in comment.
698 * target.c (target_translate_tls_address): Fix comment spelling error.
699
700 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
701
702 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
703 (DOUBLEST_SCAN_FORMAT): Likewise.
704 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
705 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
706 * c-exp.y (parse_number): Likewise.
707 * jv-exp.y (parse_number): Likewise.
708 * objc-exp.y (parse_number): Likewise.
709 * p-exp.y (parse_number): Likewise.
710
711 2008-01-09 Joel Brobecker <brobecker@adacore.com>
712
713 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
714 (check_typedef): Likewise.
715
716 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
717
718 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
719 seen_double_big_d, treat the new H, D, and DD modifiers as length
720 modifiers.
721
722 2008-01-08 Joel Brobecker <brobecker@adacore.com>
723
724 * dwarf2read.c (read_enumeration_type): Add comment.
725
726 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
727
728 * config.in: Regenerate.
729
730 2008-01-08 Joel Brobecker <brobecker@adacore.com>
731
732 * ada-lang.c (ada_convert_actual): Renames convert_actual.
733 Make non-static.
734 (ada_convert_actuals): Delete.
735 * ada-lang.h (ada_convert_actual): Add declaration.
736 (ada_convert_actuals): Remove declaration.
737 * infcall.c: #include "ada-lang.h".
738 (value_arg_coerce): Add new parameter sp. Update function
739 documetnation. Add handling of Ada function call parameters.
740 * Makefile.in (infcall.o): Update dependencies.
741
742 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
743
744 * ada-lang.c (ensure_lval): Fix value lval kind.
745 (convert_actual): Add handling for arguments passed by reference.
746
747 2008-01-08 Doug Evans <dje@google.com>
748
749 * dbxread.c (read_dbx_symtab): Fix indentation.
750
751 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
752
753 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
754 (valarith.o): Depend on dfp.h.
755 (valops.o): Likewise.
756 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
757 (set_decnumber_context): New function.
758 (decimal_check_errors): Likewise.
759 (decimal_from_number): Likewise.
760 (decimal_to_number): Likewise.
761 (decimal_from_string): Use set_decnumber_context and
762 decimal_check_errors.
763 (decimal_from_integral): New function.
764 (decimal_from_floating): Likewise.
765 (decimal_to_double): Likewise.
766 (promote_decimal): Likewise.
767 (decimal_binop): Likewise.
768 (decimal_is_zero): Likewise.
769 (decimal_compare): Likewise.
770 (decimal_convert): Likewise.
771 * dfp.h (decimal_from_integral): New prototype.
772 (decimal_from_floating): Likewise.
773 (decimal_to_double): Likewise.
774 (decimal_binop): Likewise.
775 (decimal_is_zero): Likewise.
776 (decimal_compare): Likewise.
777 (decimal_convert): Likewise.
778 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
779 call to value_from_decfloat.
780 * valarith.c: Include dfp.h.
781 (value_args_as_decimal): New function.
782 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
783 (value_logical_not): Likewise.
784 (value_equal): Likewise.
785 (value_less): Likewise.
786 (value_pos): Likewise.
787 (value_neg): Formatting fix.
788 * valops.c: Include dfp.h.
789 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
790 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
791 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
792 (value_from_decfloat): Remove expect_type argument.
793 * value.h (value_from_decfloat): Update prototype.
794
795 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
796
797 Ignore change in name of dynamic linker during
798 execution on Solaris. This also unbreaks pending breakpoints.
799
800 * solist.h (struct target_so_ops): New field same.
801 * solib-svr4.c (svr4_same): New.
802 (_initialize_svr4_solib): Register svr4_same.
803 * solib.c (update_solib_list): Use ops->same, if available.
804
805 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
806
807 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
808 when using MS-DOS paths.
809
810 2008-01-05 Pedro Alves <pedro@codesourcery.com>
811
812 * NEWS: Mention --pid and --core command line behaviour changes.
813
814 2008-01-05 Pedro Alves <pedro@codesourcery.com>
815
816 * main.c (captured_main): Remove 'count' varible and the
817 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
818 --pid options were issued simultaneously. If an explicit pid
819 option was passed, don't fallback to core file. Detect extra
820 arguments better in the presence of explicit pid or core
821 arguments.
822
823 2008-01-05 Joel Brobecker <brobecker@adacore.com>
824
825 * ada-lang.c (ada_which_variant_applies): Correctly compute
826 the value of the discriminant when the variant record is packed.
827
828 2008-01-04 Joel Brobecker <brobecker@adacore.com>
829
830 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
831 that are used to differentiate homonyms.
832
833 2008-01-04 Jerome Guitton <guitton@adacore.com>
834
835 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
836 when the type is an anonymous pointer type.
837 (ada_check_typedef): Avoid a seg fault when the type is null.
838 * ada-typeprint.c (print_array_type): Add support for pointer
839 to packed arrays.
840
841 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
842
843 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
844
845 2008-01-04 Joel Brobecker <brobecker@adacore.com>
846
847 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
848 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
849
850 2008-01-04 Joel Brobecker <brobecker@adacore.com>
851
852 * ada-exp.y (chop_separator): New function.
853 (write_selectors): Rewrite to re-use chop_separator.
854 (ada_nget_field_index, get_symbol_field_type): New functions.
855 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
856 expressions.
857
858 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
859
860 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
861 of SYMBOL_VALUE when working with function symbols.
862
863 2008-01-03 Joel Brobecker <brobecker@adacore.com>
864
865 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
866 expressions. These expressions do not need to be rewriten.
867
868 2008-01-03 Joel Brobecker <brobecker@adacore.com>
869
870 * dwarf2read.c (read_enumeration_type): Flag type as stub if
871 the given die is a declaration.
872
873 2008-01-03 Joel Brobecker <brobecker@adacore.com>
874
875 * ada-lang.c (ada_array_bound_from_type): Make non-static.
876 Handle properly the case when the index type is an enumerated type.
877 Do not return the subtype of the bounds type, just return the
878 bounds type directly - this is not needed and is more consistent
879 with what we do for arrays when no XA parallel type exists.
880
881 2008-01-03 Joel Brobecker <brobecker@adacore.com>
882
883 * ada-lang.c (static_unwrap_type): Add forward declaration.
884 (template_to_static_fixed_type): Fields of dynamic types sometimes
885 also need to be unwrapped. Take this into account.
886 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
887 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
888 * ada-typeprint.c (ada_print_type): Get the typename from
889 the original type, not the base type.
890
891 2008-01-03 Jerome Guitton <guitton@adacore.com>
892
893 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
894 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
895 Update calls to ada_to_fixed_type.
896 (ada_template_to_fixed_record_type_1): Ditto, but without looking
897 for the tag.
898 (ada_to_fixed_type): Add check_tag parameter; do not look for
899 tag if null. When looking for a tag, use a fixed record type.
900 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
901 * ada-valprint.c (printable_val_type, ada_value_print): Update
902 calls to ada_to_fixed_type.
903
904 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
905
906 * doublest.c (convert_floatformat_to_doublest): Call
907 floatformat_to_doublest instead of floatformat_to_double and use
908 DOUBLEST variables.
909 (convert_doublest_to_floatformat): Call floatformat_from_doublest
910 instead of floatformat_from_double and use DOUBLEST variables.
911
912 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
913
914 * MAINTAINERS (Write After Approval): Add self.
915
916 2008-01-03 Joel Brobecker <brobecker@adacore.com>
917
918 * symfile.c (set_initial_language): Make non-static.
919 * symfile.h (set_initial_language): Add declaration.
920 * language.c: #include "symfile.h".
921 (set_language): Call set_initial_language if the frame language
922 could not be determined.
923
924 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
925
926 * eval.c (evaluate_subexp_for_address): Provide frame address to
927 locate_var_value only if it will be needed.
928
929 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
930
931 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
932
933 2008-01-02 Joel Brobecker <brobecker@adacore.com>
934
935 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
936 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
937 This is needed to make sure that any other treatment applied
938 to the resulting value does not fail for spurious reason,
939 such as trying to take the address of this value.
940
941 2008-01-02 Joel Brobecker <brobecker@adacore.com>
942
943 * ada-lang.c (ada_value_equal): Dereference reference types when
944 comparing arrays.
945
946 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
947
948 Updated copyright notices for most files.
949
950 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
951
952 * win32-nat.c (psapi_module_handle): Remove static.
953 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
954 return first module found if base_address is zero. Don't initialize
955 psapi function pointers here. Convert to cygwin paths when
956 appropriate.
957 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
958 executable name. Use get_module_name when that fails or when
959 !__CYGWIN__.
960 (_initialize_psapi): New function. Initialize psapi stuff before it is
961 needed or issue a warning if it is not found. Move psapi_module_handle
962 here.
963
964 2008-01-01 Joel Brobecker <brobecker@adacore.com>
965
966 * ada-lang.c (ada_remove_trailing_digits): New function.
967 (ada_remove_po_subprogram_suffix): New function.
968 (ada_decode): Improve. Move the description of the algorithm
969 directly inside the code, instead of in the function global
970 description.
971
972 2008-01-01 Joel Brobecker <brobecker@adacore.com>
973
974 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
975 and always print the dereferenced value.
976
977 2008-01-01 Joel Brobecker <brobecker@adacore.com>
978
979 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
980 of the case where the first argument is a reference.
981 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
982
983 2008-01-01 Joel Brobecker <brobecker@adacore.com>
984
985 Implement support for Ada interface types.
986
987 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
988 (ada_is_ignored_field): Ignore fields that are a dispatch table
989 of a tagged type.
990
991 2008-01-01 Joel Brobecker <brobecker@adacore.com>
992
993 * top.c (print_gdb_version): Update copyright year.
994
995 2008-01-01 Joel Brobecker <brobecker@adacore.com>
996
997 * ChangeLog-2007: New ChangeLog rotation.
998 * ChangeLog: Reset for 2008.
999 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1000 ChangeLog-2007.
1001
1002 For older changes see ChangeLog-2007.
1003 \f
1004 Local Variables:
1005 mode: change-log
1006 left-margin: 8
1007 fill-column: 74
1008 version-control: never
1009 coding: utf-8
1010 End:
This page took 0.049015 seconds and 3 git commands to generate.