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