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