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