* gdb.threads/watchthreads2.exp: New testcase.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
77fcef51
HZ
12009-04-30 Hui Zhu <teawater@gmail.com>
2 Michael Snyder <msnyder@vmware.com>
3
4 I386 Linux process record and replay support.
5
6 * i386-linux-tdep.c (i386_linux_record_tdep): New variable.
7 This struct has the argument for the function
8 "record_linux_system_call".
9 (i386_linux_intx80_sysenter_record): New function. Parse the
10 system call instruction and call function
11 "record_linux_system_call" to record execute log.
12 (i386_linux_init_abi): Initialize "i386_linux_record_tdep".
13 Set "i386_linux_intx80_sysenter_record" to
14 "i386_intx80_record" and "i386_sysenter_record".
15
7ad10968
HZ
162009-04-30 Hui Zhu <teawater@gmail.com>
17 Michael Snyder <msnyder@vmware.com>
18
19 I386 architecture process record and replay support.
20
21 * i386-tdep.c (PREFIX_REPZ, PREFIX_REPNZ, PREFIX_LOCK,
22 PREFIX_DATA, PREFIX_ADDR): New macros. Help decode the i386
23 instruction set.
24 (aflag, dflag, override, modrm, mod, reg, rm, ot,
25 i386_record_pc): New variables. Ditto.
26 (i386_record_modrm, i386_record_lea_modrm_addr,
27 i386_record_lea_modrm): New functions. Ditto.
28 (i386_process_record): New function. Parse the instruction in
29 address "addr" and record the values of registers and memory
30 that will be changed by this instruction.
31 (i386_gdbarch_init): Set "i386_process_record" to GDBARCH
32 "process_record" interface.
33 * i386-tdep.h (gdbarch_tdep): New function pointers
34 "i386_intx80_record" and "i386_sysenter_record" that point to
35 the function that can record "intx80" and "sysenter" execute
36 log.
37
96429cc8
HZ
382009-04-30 Hui Zhu <teawater@gmail.com>
39 Michael Snyder <msnyder@vmware.com>
40
41 * infrun.c (use_displaced_stepping): Return false if process
42 record and replay target is used.
43 (proceed): Call function "record_not_record_set" if pocess
44 record and replay target is used.
45
b7f6bf22
HZ
462009-04-30 Hui Zhu <teawater@gmail.com>
47 Michael Snyder <msnyder@vmware.com>
48
49 Linux process record and replay support.
50
51 * Makefile.in (ALLDEPFILES): Add linux-record.c.
52 (ALL_TARGET_OBS): Add linux-record.o.
53 * configure.tgt (x86_64-*-linux*): Add linux-record.o.
54 (i[34567]86-*-linux*): Add linux-record.o.
55 * linux-record.c, linux-record.h: New file.
56
69d05d38
HZ
572009-04-30 Hui Zhu <teawater@gmail.com>
58 Michael Snyder <msnyder@vmware.com>
59
60 Process record and replay target.
61
62 * Makefile.in (SFILES): Add record.c.
63 (COMMON_OBS): Add record.o.
64 * record.c, record.h: New file.
65
81e64f55
HZ
662009-04-30 Hui Zhu <teawater@gmail.com>
67 Michael Snyder <msnyder@vmware.com>
68
69 * target.h (strata): New stratum "record_stratum".
70
0407e712
HZ
712009-04-30 Hui Zhu <teawater@gmail.com>
72 Michael Snyder <msnyder@vmware.com>
73
74 GDBARCH interface for process record and replay.
75
76 * gdbarch.sh (process_record): This interface point to the
77 function that records the inferior execute log.
78
c5af0dad
DE
792009-04-29 Doug Evans <dje@google.com>
80
81 * i386-nat.c (child_post_startup_inferior): Delete, unused.
82
df2b6d2d
PA
832009-04-29 Pedro Alves <pedro@codesourcery.com>
84
85 * breakpoint.c (print_exception_catchpoint): Access `b' directly
86 instead of `b->loc->owner'.
87 (print_mention_exception_catchpoint): Ditto.
88
484086b7
JK
892009-04-29 Jan Kratochvil <jan.kratochvil@redhat.com>
90
91 * macrocmd.c (info_macro_command): Print -Dname=value if LINE is zero.
92
379a77b5
TT
932009-04-27 Tom Tromey <tromey@redhat.com>
94
95 * c-exp.y (yylex): Handle '[' and ']' like '(' and ')'.
96
aad80b26
JG
972009-04-27 Jerome Guitton <guitton@adacore.com>
98
99 * symtab.c (append_exact_match_to_sals): New function, extracted
100 from expand_line_sal.
101 (expand_line_sal): Use append_exact_match_to_sals to append exact
102 matches. If none found, append all best items.
103
57a46001
JG
1042009-04-27 Jerome Guitton <guitton@adacore.com>
105
106 * main.c (captured_main): Move gdbinit lookups after gdb_init.
107
d389af10
JK
1082009-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
109
110 PR gdb/9675:
111 * dwarf2read.c (unsigned_int_compar, inherit_abstract_dies): New.
112 (read_func_scope): Call inherit_abstract_dies.
113
90b9b517
EZ
1142009-04-25 Eli Zaretskii <eliz@gnu.org>
115
116 * Makefile.in (ALLDEPFILES): Remove duplicate entries for
117 sparc-sol2-nat.c and sparc-sol2-tdep.c.
80a0ea0f
EZ
118
119 * stack.c (_initialize_stack) <disassemble-next-line>: Doc fix.
120
5ac79d78
PM
1212009-04-24 Pierre Muller <muller.u-strasbg.fr>
122
123 ARI change: Use "/* ARI: rule */" pattern.
124 * utils.c: Update ARI patterns.
125 * gdb_dirent.h: Likewise.
126
d7066cce
AG
1272009-04-23 Anthony Green <green@moxielogic.com>
128
129 * MAINTAINERS: Add moxie target.
130 * configure.tgt: Add moxie-*-elf target.
131 * moxie-tdep.c: New file.
132 * moxie-tdep.h: New file.
133
fc84d355 1342009-04-23 Joel Brobecker <brobecker@adacore.com>
72fcaa05
JB
135
136 * ada-lang.c: Remove an extra empty line. No code change.
137
217dc9e2
JK
1382009-04-23 Jan Kratochvil <jan.kratochvil@redhat.com>
139
140 Fix double free on error inserting the breakpoint instruction.
141 * breakpoint.c (create_breakpoints): Move the
142 update_global_location_list call to ...
143 (break_command_really): ... here together with the second local call
144 both unified after all the cleanups.
145
b14b1491
TT
1462009-04-23 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
147 Tom Tromey <tromey@redhat.com>
148
149 * configure, config.in: Regenerate.
150 * configure.ac: Support for relocatable GDB datadir. Use
151 GDB_AC_WITH_DIR. Always define TARGET_SYSTEM_ROOT_RELOCATABLE.
152 * acinclude.m4 (GDB_AC_WITH_DIR): New defun.
153 * top.c (init_main): Add "set data-directory".
154 * defs.h (gdb_datadir): Declare.
155 * main.c (gdb_datadir): New global.
156 (captured_main): Initialize gdb_datadir. Use relocate_directory.
157 (relocate_path): New function.
158 (relocate_directory): Likewise.
159 (get_init_files): Use relocate_path.
160 (README): Mention --with-gdb-datadir.
161
5e7b5f74
JB
1622009-04-23 Joel Brobecker <brobecker@adacore.com>
163
164 * ada-tasks (task_command_1): Call target_find_new_threads.
165
465f42bb
JB
1662009-04-23 Joel Brobecker <brobecker@adacore.com>
167
168 * stack.c (do_gdb_disassembly): Print the exception message if an
169 error was thrown while trying to perform the disassembly.
170
3038237c
JK
1712009-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
172
173 * varobj.c (free_variable): Replace free_current_contents by xfree.
174
17c12639
KH
1752009-04-22 Kazu Hirata <kazu@codesourcery.com>
176
177 * arm-linux-nat.c (fetch_register, store_register): Use
178 ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM.
179 * arm-linux-tdep.c (arm_linux_supply_gregset,
180 arm_linux_collect_gregset): Likewise.
181 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): New.
182 * arm-tdep.h (ARM_CPSR_REGNUM): Remove.
183
a362e3d3
HZ
1842009-04-22 Hui Zhu <teawater@gmail.com>
185
186 * stack.c (_initialize_stack): Set the default of
187 disassemble-next-line to off.
188
d2596e2e
TT
1892009-04-21 Tom Tromey <tromey@redhat.com>
190
191 * acinclude.m4: Use AS_HELP_STRING, not AC_HELP_STRING.
192 * configure.ac: Use AS_HELP_STRING, not AC_HELP_STRING.
193
62e4f60c
AS
1942009-04-21 Andreas Schwab <schwab@linux-m68k.org>
195
196 * configure.ac: Add quotes to not lose brackets in help text.
197 * configure: Rebuild.
198
82cd387f 1992009-04-21 Andreas Schwab <schwab@linux-m68k.org>
cfd53605
AS
200
201 * configure.ac: Don't postprocess Makefile in config.status.
202 Substitute GDB_NM_FILE. Don't substitute nm_h.
203 * Makefile.in (GDB_NM_FILE): Substitute.
204 (TAGS): Use $(GDB_NM_FILE) instead of $(NAT_FILE).
205 * configure: Regenerate.
206 * gnulib/Makefile.in: Regenerate.
207
26e251b6
JM
2082009-04-21 Joseph Myers <joseph@codesourcery.com>
209
210 * configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
211 --with-htmldir): New.
212 * configure: Regenerate.
213
32c1c914
TT
2142009-04-21 Tom Tromey <tromey@redhat.com>
215
216 * configure: Rebuild.
217 * configure.ac: Use lower case for start of help strings. Clean
218 up --with-sysroot help.
219
a1220294
TT
2202009-04-21 Tom Tromey <tromey@redhat.com>
221
222 * configure: Rebuild.
223 * acinclude.m4 (AM_ICONV): Use AC_HELP_STRING.
224 * configure.ac: Use AC_HELP_STRING. Use upper case for variables
225 in help.
226
dfc3cd0e
PM
2272009-04-21 Pierre Muller <muller.u-strasbg.fr>
228
229 ARI fix: remove "%p".
230 * ia64-tdep.c (ia64_frame_this_id): Use host_address_to_string function.
231 (ia64_sigtramp_frame_this_id): Ditto.
232 (ia64_libunwind_frame_this_id): Ditto.
233 (ia64_libunwind_sigtramp_frame_this_id): Ditto.
234 * symmisc.c (maintenance_info_psymtabs): Ditto.
235
29b0e8a2
JM
2362009-04-21 Joseph Myers <joseph@codesourcery.com>
237
238 * configure.ac (--with-relocated-sources): New.
239 * configure, config.in: Regenerate.
240 * source.c (add_substitute_path_rule): Remove static.
241 * source.h (add_substitute_path_rule): Declare.
242 * main.c: Include "source.h".
243 (captured_main): Add substitution rule if RELOC_SRCDIR.
244
ccabeb57
PM
2452009-04-21 Pierre Muller <muller.u-strasbg.fr>
246
247 * gnu-nat.h (proc_debug): Add missing continuation line in macro.
cfd53605 248
b9412953
DD
2492009-04-20 David Daney <ddaney@caviumnetworks.com>
250
251 * NEWS: Mention MIPS/Linux hardware watchpoint support.
252
2532009-04-20 David Daney <ddaney@caviumnetworks.com>
254
255 * mips-linux-nat.c (command.h, gdbcmd.h, gdb_assert.h): New #includes.
256 (maint_show_dr, super_close): New variables.
257 (super_fetch_registers, super_store_registers): Make static.
258 (PTRACE_GET_WATCH_REGS, PTRACE_SET_WATCH_REGS, W_BIT, R_BIT, I_BIT)
259 (W_MASK, R_MASK, I_MASK, IRW_MASK, MAX_DEBUG_REGISTER): Define.
260 (pt_watch_style): Define new enum.
261 (mips32_watch_regs, mips64_watch_regs, pt_watch_regs, mips_watchpoint):
262 Define new structs.
263 (watch_readback_valid, watch_readback, current_watches, watch_mirror):
264 New variables.
265 (get_irw_mask, get_reg_mask, get_num_valid, get_watchlo)
266 (set_watchlo, get_watchhi, set_watchhi, mips_show_dr)
267 (mips_linux_read_watch_registers, mips_linux_can_use_hw_breakpoint)
268 (mips_linux_stopped_by_watchpoint, mips_linux_stopped_data_address)
269 (type_to_irw, fill_mask, try_one_watch)
270 (mips_linux_region_ok_for_hw_watchpoint, write_watchpoint_regs)
271 (mips_linux_new_thread, populate_regs_from_watches)
272 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
273 (mips_linux_close): New functions.
274 (_initialize_mips_linux_nat): Register watchpoint functions with
275 the target_ops. Add show-debug-regs maintenance command.
276
2772009-04-20 David Daney <ddaney@caviumnetworks.com>
278
279 * infrun.c (handle_inferior_event): Move gegisters_changed call down.
280
6de3146c
PA
2812009-04-19 Pedro Alves <pedro@codesourcery.com>
282
283 * NEWS: Mention gdbserver support for x86 Windows CE.
284
10085bb5
EZ
2852009-04-19 Eli Zaretskii <eliz@gnu.org>
286
e424a02e
EZ
287 * config/djgpp/fnchange.lst: Fix typos.
288
10085bb5
EZ
289 Set default host and target charsets in the DJGPP port.
290
291 * config/djgpp/config.sed (am_cv_langinfo_codeset)
292 (bash_cv_langinfo_codeset, ac_cv_header_nl_types_h): Set to "yes"
293 in all configure scripts that define ac_cv_env_CPP_value.
294
295 * go32-nat.c (dos_codepage, nl_langinfo): New functions.
296 Include langinfo.h.
297
298 * config/djgpp/nl_types.h: New file.
299
300 * config/djgpp/langinfo.h: New file.
301
302 * config/i386/go32.mh (MH_CFLAGS): Add $(srcdir)/config/djgpp.
303
2b831889
JM
3042009-04-18 Carlos O'Donell <carlos@codesourcery.com>
305
306 * Makefile.in (MAKEHTML): Set to makeinfo --html.
307 (MAKEHTMLFLAGS): Set to empty.
308
d647eed6
EZ
3092009-04-18 Eli Zaretskii <eliz@gnu.org>
310
d7713ae0
EZ
311 * NEWS: Mention all new set/show commands added since GDB 6.8 was
312 released.
313
d647eed6
EZ
314 * go32-nat.c (go32_sysinfo): Check if the call to
315 __dpmi_get_capabilities fills the buffer with information, and
316 don't use the buffer if not.
317
58720494
TT
3182009-04-17 Tom Tromey <tromey@redhat.com>
319
320 * charset.c (_initialize_charset): Add special case for "646".
321
89a34d1b
JM
3222009-04-17 Carlos O'Donell <carlos@codesourcery.com>
323
324 * configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
325 * configure: Regenerate.
326 * Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from
327 configure substitutions.
328 (FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir.
329
a74ce742
PM
3302009-04-17 Pierre Muller <muller.u-strasbg.fr>
331
332 ARI fix: Do not use %p, replace by call to host_address_to_string
333 for host pointers.
334 * darwin-nat.c (darwin_xfer_partial): Apply change.
335 * gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto.
336 * gnu-nat.h (proc_debug): Ditto.
337 * symmisc.c (maintenance_info_symtabs): Ditto.
338 (maintenance_info_psymtabs): Ditto.
339 * windows-nat.c (handle_load_dll): Ditto.
340 (handle_unload_dll, info_w32_command, handle_exception): Ditto.
341 * xtensa-tdep.c (xtensa_unwind_pc): Ditto.
342
0ca8834f
JM
3432009-04-17 Joseph Myers <joseph@codesourcery.com>
344
345 * configure.tgt (i[34567]86-*-linux*): Use 64-bit configuration if
346 --enable-64-bit-bfd.
347 (sparc-*-linux*): Likewise.
348
541f1105
EZ
3492009-04-17 Eli Zaretskii <eliz@gnu.org>
350
351 * go32-nat.c (go32_sysinfo): Update list of Windows versions of
352 the NT family.
353
1554e9be
PA
3542009-04-16 Pedro Alves <pedro@codesourcery.com>
355
356 * remote.c (remote_query_attached): Fix pasto in packet_ok result
357 checking.
358
bf75638e
JB
3592009-04-16 Joel Brobecker <brobecker@adacore.com>
360
361 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
362 Revert the previous change. Might not be correct, actually.
363
3705b1c5
JB
3642009-04-16 Joel Brobecker <brobecker@adacore.com>
365
366 * ada-lang.h (ada_adjust_exception_stop, ada_print_exception_stop)
367 (ada_get_current_task, ada_print_exception_breakpoint_nontask)
368 (ada_print_exception_breakpoint_task, ada_reset_thread_registers):
369 Remove declaration. These are non-existent functions.
370
37da21bc
JB
3712009-04-16 Joel Brobecker <brobecker@adacore.com>
372
373 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
374 Fix a compilation warning on mips-irix due to casting from
375 a pointer of different size.
376
6f38eac8
JB
3772009-04-16 Joel Brobecker <brobecker@adacore.com>
378
379 * ada-lang.c (symtab_for_sym): Delete.
380 (user_select_syms): Use sym->symtab instead of calling symtab_for_sym.
381
f9bc20b9
JB
3822009-04-16 Joel Brobecker <brobecker@adacore.com>
383
384 * ada-lang.c (extract_string): Delete.
385 (ada_main_name): Reimplement using target_read_string instead of
386 extract_string.
387
335d71d6
AS
3882009-04-16 Andreas Schwab <schwab@linux-m68k.org>
389
390 * m68klinux-nat.c: Remove obsolete comment.
391 (fetch_register, store_register): Don't call
392 gdbarch_cannot_fetch_register or gdbarch_cannot_store_register,
393 which are always nops here.
394
732f6a93
TT
3952009-04-14 Tom Tromey <tromey@redhat.com>
396
397 * c-lang.c (c_emit_char): Use INTERMEDIATE_ENCODING.
398 (c_printstr): Likewise.
399 * charset.c: Include gdb_wait.h.
400 (make_wchar_iterator): Use INTERMEDIATE_ENCODING.
401 (find_charset_names): Use pexecute. Handle libiconv's output.
402 Detect errors.
403 (_initialize_charset): Use xstrdup.
404 * gdb_wchar.h: Check HAVE_BTOWC. Split PHONY_ICONV and wchar
405 cases.
406 (INTERMEDIATE_ENCODING): New define.
407 * configure, config.in: Rebuild.
408 * configure.ac: Check for btowc.
409
334cc82d
TT
4102009-04-15 Tom Tromey <tromey@redhat.com>
411
412 * c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP.
413
27e3013d
EZ
4142009-04-15 Eli Zaretskii <eliz@gnu.org>
415
416 * utils.c (parse_escape): Initialize target_char to pacify GCC.
417
8ea5dfdf
JK
4182009-04-14 Jan Kratochvil <jan.kratochvil@redhat.com>
419
420 * c-lang.c (c_get_string): Fix xfree crash on a failed string read.
421
88c15c34
PM
4222009-04-14 Pierre Muller <muller@ics.u-strasbg.fr>
423
424 ARI fix: sprintf rule.
425 * ada-exp.y (convert_char_literal): Replace sprintf by xsnprintf.
426 * ada-lang.c (add_angle_brackets): Use xstrprintf.
427 (ada_decode): Replace sprintf by xsnprintf.
428 (find_old_style_renaming_symbol): Ditto.
429 (ada_to_fixed_type_1, ada_enum_name): Ditto.
430
431
efbd6e75
JB
4322009-04-14 Joel Brobecker <brobecker@adacore.com>
433
434 * target.c (target_mourn_inferior): Call bfd_cache_close_all
435 after having executed the target mourn_inferior routine.
436
b46df7a1
EZ
4372009-04-14 Eli Zaretskii <eliz@gnu.org>
438
439 * config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if
440 undefined.
441
2facfe5c
DD
4422009-04-13 David Daney <ddaney@caviumnetworks.com>
443
444 * infrun.c (maybe_software_singlestep): New function.
445 (resume): Call maybe_software_singlestep.
446 (handle_inferior_event): Same.
447
18e8c3bc
TT
4482009-04-13 Tom Tromey <tromey@redhat.com>
449
450 * python/python-frame.c (frapy_richcompare): Return
451 Py_NotImplemented, not an error. Handle Py_NE as well.
452
e726d784
EZ
4532009-04-13 Eli Zaretskii <eliz@gnu.org>
454
455 * charset.c (EILSEQ): Define if not defined by system headers.
456
685af672
EZ
4572009-04-11 Eli Zaretskii <eliz@gnu.org>
458
238f4807 459 * config/djgpp/config.sed: Tweak ac_config_files in intl/configure
a2effb2e 460 to be consistent with renaming config.intl.in into config_intl.in.
238f4807 461
c03b3c32
EZ
462 * go32-nat.c (go32_attach, go32_detach): Fix prototypes to be
463 consistent with the change from 2008-11-09.
685af672 464
c16abbde
JK
4652009-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
466
467 * gdbtypes.c: Remove excessive parentheses at the return keywords.
2dbd25e5 468 * varobj.c (varobj_invalidate): Fix indentation.
f4a34a08 469 * varobj.c (varobj_invalidate): Fix formatting text width.
c16abbde 470
143260c9
VP
4712009-04-08 Vladimir Prus <vladimir@codesourcery.com>
472
473 Implement -exec-jump.
474
475 * mi/mi-cmds.h (mi_cmd_exec_jump): Declare.
476 * mi/mi-main.c (mi_cmd_exec_jump): New.
477 * mi/mi-cmds.c (mi_cmds): Register exec-jump.
478
d10c338d
DE
4792009-04-07 Doug Evans <dje@google.com>
480
481 * symfile.c (symbol_file_clear): Fix indentation.
482
e5a6ba44
MK
4832009-04-06 Mark Kettenis <kettenis@gnu.org>
484
485 * sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
486
409c383c
UW
4872009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
488
489 * ppc-linux-nat.c (ppc_linux_target_wordsize): New function.
490 (ppc_linux_auxv_parse): New function.
491 (ppc_linux_read_description): Use ppc_linux_target_wordsize.
492 (_initialize_ppc_linux_nat): Install ppc_linux_auxv_parse.
493
4942009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
9592c5d0
UW
495
496 * spu-linux-nat.c (spu_bfd_open): Set filename of in-memory
497 BFD to contents of SPU name note.
498 (spu_symbol_file_add_from_memory): Call symbol_file_add_from_bfd
499 with "from_tty" argument 1 instead of 0.
500
de40b933
JK
5012009-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
502
503 * dwarf2read.c
504 (new_symbol <DW_TAG_variable> <!DW_AT_location> <DW_AT_external>):
505 Create the symbol in local scope.
506 * symtab.h (cu->list_in_scope <LOC_UNRESOLVED>): New comment part.
507
6cbbcdfe
KS
5082009-04-02 Keith Seitz <keiths@redhat.com>
509
510 * stabsread.c (read_member_functions): GCC may emit an extra space
511 at the end of the names "__base_ctor" and "__base_dtor"; so ignore
512 whitespace when looking for these functions.
513
476f7b68
JB
5142009-04-01 Joel Brobecker <brobecker@adacore.com>
515
516 Change the default value for "set print frame-arguments" to scalars.
517
518 * stack.c (print_frame_arguments): Set initial value to "scalars".
519
865093a3
AR
5202009-04-01 Aleksandar Ristovski <aristovski@qnx.com>
521
522 * mips-tdep.c (mips_numeric_register_alieses): New definition.
cfd53605 523 (mips_gdbarch_init): Add user registers from
865093a3
AR
524 mips_numeric_register_aliases.
525
5d3b6af6
JB
5262009-04-01 Joel Brobecker <brobecker@adacore.com>
527
528 * linux-nat.c (linux_nat_filter_event): Minor comment reformatting.
529
9db03742
JB
5302009-04-01 Joel Brobecker <brobecker@adacore.com>
531
532 * linux-nat.c (linux_nat_filter_events): Do not delete the lwp if
533 this is the last one.
534
0d8f58ca
PA
5352009-04-01 Pedro Alves <pedro@codesourcery.com>
536
537 * remote.c (append_resumption): New.
538 (remote_vcont_resume): Use it.
539
1e2f1c5c
JB
5402009-04-01 Joel Brobecker <brobecker@adacore.com>
541
542 * windows-nat.c (+windows_get_ada_task_ptid): New function.
543 (init_windows_ops): Set windows_ops.to_get_ada_task_ptid.
544
71c25dea
TT
5452009-03-31 Daniel Jacobowitz <dan@codesourcery.com>
546 Keith Seitz <keiths@redhat.com>
547 Jan Kratochvil <jan.kratochvil@redhat.com>
548
549 PR gdb/6817
550 * Makefile.in (dbxread.o): Update.
551 * dbxread.c (read_dbx_symtab): Use cp_canonicalize_string.
552 * dwarf2read.c (GDB_FORM_cached_string): New.
553 (read_partial_die): Use dwarf2_canonicalize_name.
554 (dwarf2_linkage_name): Use dwarf2_name.
555 (dwarf2_canonicalize_name): New.
556 (dwarf2_name): Use dwarf2_canonicalize_name.
557 (dwarf_form_name, dump_die): Handle GDB_FORM_cached_string.
558 * stabsread.c (define_symbol, read_type): Use cp_canonicalize_string.
559 * symtab.c (lookup_symbol_in_language): Canonicalize input before
560 searching.
561 * cp-name-parser.y: operator() requires two parameters,
562 according to libiberty.
563 * minsyms.c (lookup_minimal_symbol): Canonicalize input
564 before searching.
565 * NEWS: Update.
566
4a306c9a
JB
5672009-03-31 Joel Brobecker <brobecker@adacore.com>
568
569 Provide support for (Ada) task-specific breakpoints.
570
571 * ada-lang.h (ada_get_task_number): Add declaration.
572 (breakpoint_ada_task_match): Delete declaration.
573 * ada-tasks.c (ada_get_task_number): Make non-static.
574 * breakpoint.h (struct breakpoint): Add field "task".
575 * breakpoint.c (print_one_breakpoint_location): Add handling of
576 task-specific breakpoints.
577 (create_breakpoint, create_breakpoints, find_condition_and_thread):
578 New parameter "task".
579 (break_command_really): Update calls to find_condition_and_thread
580 and create_breakpoints.
581 (breakpoint_re_set_one): Update call to find_condition_and_thread.
582 Set b->task.
583
4a5a9917
JB
5842009-03-31 Joel Brobecker <brobecker@adacore.com>
585
586 * ada-tasks.c (short_task_info): Eliminate the "Running" task state.
587
bad34192
PA
5882009-03-31 Pedro Alves <pedro@codesourcery.com>
589
590 * remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
591 if the thread's ptid without a thread id field is in the list
592 before calling thread_change_ptid.
593 (extended_remote_attach_1): In non-stop mode, do not rely on
594 querying the current thread, instead, query the thread list, and
595 select the first thread of the process.
596 * gdbthread.h (first_thread_of_process): Declare.
597 * thread.c (first_thread_of_process): Define.
598
1042e4c0
SS
5992009-03-30 Stan Shebs <stan@codesourcery.com>
600
601 Make tracepoints into a type of breakpoint.
602 * breakpoint.h (enum bptype): Add bp_tracepoint.
603 (struct breakpoint): Add fields step_count, pass_count, actions.
604 (get_tracepoint, get_tracepoint_by_number): Declare.
605 (all_tracepoints): Declare.
606 * breakpoint.c: Include tracepoint.h, readline.h.
607 (ALL_TRACEPOINTS): Move here from tracepoint.c.
608 (tracepoint_count): Ditto.
609 (should_be_inserted): GDB does not insert tracepoints itself.
610 (print_it_typical): Add tracepoint case.
611 (bpstat_what): Ditto.
612 (print_one_breakpoint_location): Ditto, and add printing for
613 pass count, step count, and action list.
614 (user_settable_breakpoint): Add tracepoint case.
615 (allocate_bp_location): Ditto.
616 (set_breakpoint_location_function): Ditto.
617 (disable_breakpoints_in_shlibs): Ditto.
618 (mention): Ditto.
619 (break_command_really): Add argument traceflag, use to choose
620 basic breakpoint type.
621 (break_command_1): Pass extra argument.
622 (set_breakpoint, handle_gnu_v3_exceptions): Ditto.
623 (breakpoint_re_set_one): Add tracepoint case.
624 (disable_command, enable_command): Ditto.
625 (set_tracepoint_count): Move here from tracepoint.c.
626 (trace_command): Move here from tracepoint.c and use
627 break_command_really.
628 (tracepoints_info): Move here from tracepoint.c and call
629 breakpoints_info.
630 (enable_trace_command): Move here from tracepoint.c and call
631 enable_command.
632 (disable_trace_command): Move here from tracepoint.c and call
633 disable_command.
634 (delete_trace_command): Move here from tracepoint.c and call
635 delete_breakpoint.
636 (trace_pass_command): Move here from tracepoint.c.
637 (get_tracepoint_by_number): Ditto.
638 (tracepoint_save_command): Ditto.
639 (get_tracepoint): New function.
640 (all_tracepoints): New function.
641 (_initialize_breakpoint): Move tracepoint init from tracepoint.c,
642 deprecate "enable trace" and "disable trace" commands.
643 * tracepoint.h (struct tracepoint): Remove.
644 (tracepoint_chain): Remove decl.
645 (deprecated_create_tracepoint_hook): Remove decl.
646 (deprecated_delete_tracepoint_hook): Remove decl.
647 (deprecated_modify_tracepoint_hook): Remove decl.
648 (ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove.
649 (free_actions): Update signature.
650 (validate_actionline): Update signature.
651 (end_actions_pseudocommand): Declare.
652 (while_stepping_pseudocommand): Declare.
653 * tracepoint.c: Include breakpoint.h.
654 (tracepoint_chain, tracepoint_count): Remove.
655 (free_actions, make_cleanup_free_actions): Update signature.
656 (trace_command, set_raw_tracepoint): Remove.
657 (trace_mention): Remove.
658 (tracepoints_info): Remove.
659 (tracepoint_operation, map_args_over_tracepoints): Remove.
660 (get_tracepoint_by_number): Remove.
661 (enable_trace_command, disable_trace_command): Remove.
662 (delete_trace_command, trace_pass_command): Remove.
663 (trace_actions_command, read_actions): Update signature.
664 (validate_actionline): Update signature, use bp loc.
665 (encode_actions): Ditto.
666 (download_tracepoint): New function, body of trace_start_command.
667 (trace_start_command): Call it, use all_tracepoints.
668 (tracepoint_save_command): Remove.
669 (tracepoint_dump_command): Use get_tracepoint.
670 (end_actions_pseudocommand): Make globally visible.
671 (while_stepping_pseudocommand): Ditto.
672 (_initialize_tracepoint): Move command definitions to breakpoint.c.
673
f8f6f20b
TJB
6742009-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
675
676 Expose frames to Python.
677 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
678 (SUBDIR_PYTHON_SRCS): Add python-frame.c.
679 (python-frame.o): New target.
680 * python/python-frame.c: New file.
681 * python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
682 gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
683 gdbpy_initialize_frames): New prototypes.
684 * python/python.c (_initialize_python): Call gdbpy_initialize_frames.
685 (GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
686 entries.
687 * stack.c (find_frame_funname): New function, factored out of
688 print_frame.
689 (print_frame): Call find_frame_funname.
690 * stack.h (find_frame_funname): Add prototype.
691
77316f4c
TJB
6922009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
693
694 Remove unused value_object attribute `owned_by_gdb'.
695 * python/python-value.c (value_object): Remove owned_by_gdb
696 attribute.
697 (valpy_dealloc): Remove reference to self->owned_by_gdb.
698 (valpy_new): Likewise.
699 (value_to_value_object): Likewise.
700
c0c6f777
TJB
7012009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
702
703 Change gdb.Value.address from a method to an attribute.
704 * python/python-value.c (value_object): Add `address' element.
705 (valpy_dealloc): Decrement reference to self->address if set.
706 (valpy_new): Initialize val_obj->address.
707 (valpy_address): Rename to ...
708 (valpy_get_address): ... this. Change signature from method to
709 attribute. Update self->address if not set.
710 (value_to_value_object): Initialize val_obj->address.
711 (value_object_getset): Add `address' element.
712 (value_object_methods): Remove `address' element.
713
c2c8d75b
AS
7142009-03-29 Andreas Schwab <schwab@linux-m68k.org>
715
716 * observer.sh: Set LANG/LC_ALL to C, not c.
717
1b31f75d
KB
7182009-03-28 Kevin Buettner <kevinb@redhat.com>
719
720 * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
721 `char' is unsigned.
722
f91d3df5
PA
7232009-03-28 Pedro Alves <pedro@codesourcery.com>
724
725 * remote.c (remote_stop_ns): If multi-process extensions are off,
726 and GDB is requesting the whole process to stop, sent "vCont;t",
727 not "vCont;t:-1"
728
7b0e8051
PA
7292009-03-28 Pedro Alves <pedro@codesourcery.com>
730
731 * inf-loop.c (inferior_event_handler): Avoid calling is_running on
732 null inferior_ptid.
733
5362e076
EZ
7342009-03-27 Eli Zaretskii <eliz@gnu.org>
735
736 * config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
737
88fc996f
DE
7382009-03-26 Doug Evans <dje@google.com>
739
740 * thread.c (do_restore_current_thread_cleanup): Redo test for
741 whether to restore old->inferior_ptid.
742
56ef84b1
TT
7432009-03-26 Tom Tromey <tromey@redhat.com>
744
745 * breakpoint.c (resolve_sal_pc): Preserve original line number
746 when skipping prologue.
747
a5321aa4
DE
7482009-03-26 Doug Evans <dje@google.com>
749
750 * thread.c (inferior_thread) Remove "extern" in definition.
751
def2b000
TJB
7522009-03-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
753
754 Add gdb.Value.is_optimized_out attribute.
755 * python/python-value.c (valpy_get_is_optimized_out): New
756 function.
757 (value_object_getset): New variable.
758 (value_object_type): Initialize tp_getset element.
759
442ddf59
JK
7602009-03-26 Joel Brobecker <brobecker@adacore.com>
761
762 Recognize missing DW_AT_location as <value optimized out>.
763 * dwarf2read.c
764 (new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
765 Call add_symbol_to_list.
766
78485d59
TT
7672009-03-25 Tom Tromey <tromey@redhat.com>
768
769 * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
770 * stack.c (print_this_frame_argument_p): Use check_typedef.
771
94ae1714
TT
7722009-03-25 Tom Tromey <tromey@redhat.com>
773
774 * configure: Rebuild.
775 * acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
776 Rearrange flags setting. Add comments.
777
2bc57ae3
PM
7782009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
779
780 * config/i386/nm-i386.h: Remove code within
781 I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
782 * config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
783 macro.
784 * config/i386/nm-cygwin64.h: Ditto.
785 * config/i386/nm-fbsd.h: Ditto.
786 * config/i386/nm-go32.h: Ditto.
787 * config/i386/nm-linux.h: Ditto.
788 * config/i386/nm-linux64.h: Ditto.
789
549ba0f8
PM
7902009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
791
792 ARI fix: "xasprintf" rule.
793 * printcmd.c (sym_info): Replace xasprintf by xstrprintf.
794
68c97600
PA
7952009-03-25 Pedro Alves <pedro@codesourcery.com>
796
797 * remote.c (remote_start_remote): In non-stop mode, call
798 init_wait_for_inferior before adding threads and inferiors.
799
a6f1cd96
JB
8002009-03-25 Joel Brobecker <brobecker@adacore.com>
801
802 * breakpoint.c (breakpoint_thread_match): Split a large condition
803 into several smaller conditions. No behavior change.
804
dbfb4bc7 8052009-03-25 Pedro Alves <pedro@codesourcery.com>
a07daef3
PA
806
807 * infrun.c (infrun_thread_thread_exit): New.
808 (_initialize_infrun): Attach it to the thread_exit observer.
809 * thread.c (delete_thread_1): Always call the observer, passing it
810 the silent flag.
811 * mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If
812 SILENT, return immediately.
813
d729566a
PA
8142009-03-25 Pedro Alves <pedro@codesourcery.com>
815
816 * infrun.c (normal_stop): Use has_stack_frames instead of
817 target_has_stack.
818 * mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
819 when there is no thread selected.
820 (mi_cmd_execute): Don't special case commands that can run without
821 a valid selected thread.
822 * top.c (execute_command): Don't special case commands that can
823 run without a valid selected thread. Use has_stack_frames.
824 * infcmd.c (ensure_valid_thread): New.
825 (continue_1, step_1, jump_command, signal_command): Use it.
826 (detach_command): Error out if there's no selected thread/inferior.
827 * thread.c (print_thread_info): Allow having no thread selected.
828 (switch_to_thread): Don't read the PC if there is no current thread.
829 (do_restore_current_thread_cleanup): Don't record the current
830 frame if there is no current thread.
831 (make_cleanup_restore_current_thread): Don't read frame info if
832 there is no selected thread.
833 (_initialize_thread): Don't mark commands as
834 "no_selected_thread_ok".
835 * frame.c (get_current_frame): Error out if there is no valid
836 selected thread.
837 (has_stack_frames): Return false if there is no valid
838 selected thread.
839 * cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
840 "no_selected_thread_ok".
841 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
842 (get_cmd_no_selected_thread_ok): Delete.
843 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
844 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
845 Delete declaration.
846 * stack.c (get_selected_block): Use has_stack_frames.
847
f04c6d38
TJB
8482009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
849
850 Fix size of FPSCR in Power 7 processors.
851 * ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
852 (PPC_FEATURE_HAS_DFP): New #define.
853 (ppc_linux_read_description): Check for DFP feature instead of
854 ISA 2.05 to decide on size of the FPSCR.
855
6c02c64c
KB
8562009-03-25 Kevin Buettner <kevinb@redhat.com>
857
858 * mn10300-tdep.c (trad-frame.h): Don't include.
859 (prologue-value.h): Include.
860 (mn10300_frame_unwind_cache, set_reg_offsets): Delete.
861 (struct mn10300_prologue): Define.
862 (push_reg, translate_rreg, check_for_saved): New functions.
863 (mn10300_analyze_prologue): Rewrite, using prologue-value
864 machinery. Handle more instructions than before. Permit
865 instructions to occur in any order.
866 (mn10300_skip_prologue): Find the extents of the function
867 in question; mn10300_analyze_prologue no longer does this.
868 (mn10300_analyze_frame_prologue): New function.
869 (mn10300_frame_base): New function.
870 (mn10300_frame_this_id): Rewrite, no longer using trad-frame
871 implementation.
872 (mn10300_frame_prev_register): Likewise.
873 (mn10300_frame_base_address, mn10300_frame_base struct): Delete.
874 (mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
875 `this_frame'.
876 (mn10300_frame_unwind_init): Don't call frame_base_set_default().
877
67c296a2
PM
8782009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
879
880 Fix completer problem for filename completion on the first try.
881
882 * gdb/completer.h (gdb_completion_word_break_characters): New function.
883 * gdb/completer.c: Include gdb_assert.h.
884 (complete_line_internal_reason): New enum.
885 (complete_line_internal): Change last argument type to
886 complete_line_internal_reason.
887 Modify function to handle the different complete_line_internal_reason
888 argument values.
889 (complete_line): Adapt to change in complete_line_internal.
890 (command_completer): Ditto.
891 (gdb_completion_word_break_characters): Implement new function.
892 * top.c (init_main): Set rl_completion_word_break_hook to
893 gdb_completion_word_break_characters.
c2c8d75b 894
67c296a2 895
1a6d2f2f
PM
8962009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
897
898 ARI fix: "strlen d_name" rule.
899 * linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
900
901
fc3b640d
TT
9022009-03-24 Tom Tromey <tromey@redhat.com>
903 Pedro Alves <pedro@codesourcery.com>
904
905 * configure, config.in: Rebuild.
906 * configure.ac: Check for libiconvlist.
907 * charset.c: Check HAVE_LIBICONVLIST.
908 * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
909 LIBICONV_LIBDIR. Update CPPFLAGS and LIBS.
910 * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
911 Remove.
912 (INTERNAL_CFLAGS_BASE): Update.
913 (INTERNAL_LDFLAGS): Update.
914 (CLIBS): Update.
915
76a39ba7
JK
9162009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
917
918 * configure.ac: Initialize the variable $PREFER_CURSES.
919 * configure: Regenerated.
920
bd8a8e1b
JK
9212009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
922
923 * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
924 * configure: Regenerated.
925
a3224241
PM
9262009-03-24 Pierre Muller <muller@ics.u-strasbg.fr>
927
928 ARI fix: "strerror" rule.
929 * darwin-nat.c (darwin_ptrace): Use safe_strerror.
930 (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
931
6cdd57f4
JB
9322009-03-23 Joel Brobecker <brobecker@adacore.com>
933
934 * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
935 before looking up the fields inside our struct type.
936
17466c1a
JB
9372009-03-23 Joel Brobecker <brobecker@adacore.com>
938
939 * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
940 trying to resolve the type qualification.
941
8008e265
JB
9422009-03-23 Joel Brobecker <brobecker@adacore.com>
943
944 * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
945 we try to apply the attribute on the real type, rather than
946 its associated typedef.
947
31dedfee
JB
9482009-03-23 Joel Brobecker <brobecker@adacore.com>
949
950 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
951 to make sure we try to get the modulus of the actual type, not the
952 associated typedef.
953
5bc23cb3
JB
9542009-03-23 Joel Brobecker <brobecker@adacore.com>
955
956 * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
957 [OP_ATR_LENGTH]: When using the attribute on a type, make sure
958 to get the real type, not the associated typedef.
959
872c8b51
JB
9602009-03-23 Joel Brobecker <brobecker@adacore.com>
961
962 * ada-lang.c (ada_get_field_index): Add handling of the case
963 when TYPE is a typedef of a struct.
964
dcb626be
JB
9652009-03-23 Joel Brobecker <brobecker@adacore.com>
966
e0cfd8e3 967 Add gdb_usleep as a portable version of usleep based on gdb_select.
dcb626be
JB
968 * gdb_usleep.h, gdb_usleep.c: New files.
969 * Makefile.in (SFILES): Add gdb_usleep.c.
970 (HFILES_NO_SRCDIR): Add gdb_usleep.h.
971 (COMMON_OBS): Add gdb_usleep.o.
972 * ser-unix.c (hardwire_send_break): Replace call to gdb_select
973 by call to gdb_usleep.
974
24be086d
JB
9752009-03-23 Joel Brobecker <brobecker@adacore.com>
976
977 * buildsym.c (end_symtab): If we ignore the subfiles, then
978 unlink the associated symtabs if they were already allocated.
979
cb01cfba
JB
9802009-03-23 Jerome Guitton <guitton@adacore.com>
981
982 Provide a way to force building of GDB with libcurses.
983 * configure.ac: Add --with-curses.
984 * configure: Regenerated.
985
9c482037
TT
9862009-03-23 Tom Tromey <tromey@redhat.com>
987
988 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
989 error message.
990
e2dd7057
PP
9912009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
992
993 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
994 solib_contains_address_p instead of searching.
c2c8d75b 995
0dd7fb99
TT
9962009-03-23 Tom Tromey <tromey@redhat.com>
997
998 * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
999 (iconv): Make 'inbuf' argument const.
1000 (convert_between_encodings): Use ICONV_CONST.
1001 (wchar_iterate): Likewise.
1002
418c6cb3
CF
10032009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
1004
1005 * windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
1006 dynamically loaded function.
1007 (LookupPrivilegeValueA): Ditto.
1008 (OpenProcessToken): Ditto.
1009 (AdjustTokenPrivileges): Rename and define placeholder for address of
c2c8d75b 1010 dynamically loaded function.
418c6cb3
CF
1011 (LookupPrivilegeValueA): Ditto.
1012 (OpenProcessToken): Ditto.
1013 (set_process_privilege): Remove check for loaded functions.
1014 (bad_OpenProcessToken): Define.
1015 (_initialize_loadable): Load token functions from advapi here, setting
1016 OpenProcessToken function to a dummy static function which always return
1017 error if OS doesn't support this functionality.
1018
695de547
CF
10192009-03-22 Nicolas Roche <roche@adacore.com>
1020 Christopher Faylor <me+cygwin@cgf.cx>
1021
1022 * win32-nat.c (ctrl_c_handler): New function.
1023 (win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior
1024 is run in a separate console.
1025
2b008701
CF
10262009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
1027
1028 * windows-nat.c (DebugActiveProcessStop): Implement macro wraparound
1029 for dynamically loaded function.
1030 (DebugBreakProcess): Ditto.
1031 (DebugSetProcessKillOnExit): Ditto.
1032 (EnumProcessModules): Ditto.
1033 (GetModuleFileNameExA): Ditto.
1034 (GetModuleInformation): Ditto.
1035 (DebugActiveProcessStop): Rename and define placeholder for address of
418c6cb3 1036 dynamically loaded function.
2b008701
CF
1037 (DebugBreakProcess): Ditto.
1038 (DebugSetProcessKillOnExit): Ditto.
1039 (EnumProcessModules): Ditto.
1040 (GetModuleFileNameExA): Ditto.
1041 (GetModuleInformation): Ditto.
1042 (psapi_loaded): Delete.
1043 (get_module_name): Don't check psapi_loaded, just rely on the fact that
1044 dynamically loaded functions will return failure if they weren't
1045 previously found.
1046 (has_detach_ability): Delete.
1047 (windows_attach): Remove call to has_detach_ability (). Just rely on
1048 functions being callable.
1049 (bad_DebugActiveProcessStop): Define.
1050 (bad_DebugBreakProcess): Ditto.
1051 (bad_DebugSetProcessKillOnExit): Ditto.
1052 (bad_EnumProcessModules): Ditto.
1053 (bad_GetModuleFileNameExA): Ditto.
1054 (bad_GetModuleInformation): Ditto.
1055 (_initialize_loadable): Rename from _initialize_psapi. Initialize all
1056 dynamic storage here, setting nonexistent functions to dummy static
1057 functions which always return error.
1058
f3b1572e
PA
10592009-03-22 Pedro Alves <pedro@codesourcery.com>
1060
1061 * mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
1062 to the about_to_proceed observer notification.
1063 (mi_about_to_proceed): New.
1064 (mi_on_resume): Only output ^running and the prompt here if the
1065 target was proceeded.
1066 * breakpoint.c (breakpoint_proceeded): New static.
1067 (breakpoint_about_to_proceed): New.
1068 (_initialize_breakpoints): Attach breakpoint_about_to_proceed to
1069 the about_to_proceed observer notification.
1070 * inferior.h (breakpoint_proceeded): Delete declaration.
1071 * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
1072 Notify the about_to_proceed observers.
1073 (struct inferior_status): Delete breakpoint_proceeded member.
1074 (save_inferior_status): Don't save it.
1075 (restore_inferior_status): Don't restore it.
1076 * mi-main.h (mi_proceeded): Declare.
1077 * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
1078 a command.
1079
c5a4d20b
PA
10802009-03-22 Pedro Alves <pedro@codesourcery.com>
1081
1082 * gdbthread.h (struct thread_info): Add in_infcall member.
1083 * infcall.c (run_inferior_call): Save, set and restore in_infcall.
1084 Remove reverences to suppress_resume_observer. Refresh
1085 `call_thread' after returning from `proceed'.
1086 * infcmd.c (suppress_resume_observer): Delete.
1087 * inferior.h (suppress_resume_observer): Delete declaration.
1088 * mi/mi-interp.c (mi_on_resume): Suppress output while calling an
1089 inferior function.
1090 * thread.c (set_running): Remove references to
1091 suppress_resume_observer.
1092 * infrun.c (struct inferior_status): Add in_infcall member.
1093 (save_inferior_status): Save it.
1094 (restore_inferior_status): Restore it.
1095
41d2bdb4
PA
10962009-03-22 Pedro Alves <pedro@codesourcery.com>
1097
1098 * infcall.c (run_inferior_call): Remove references to
1099 suppress_stop_observer.
1100 * infcmd.c (suppress_stop_observer): Delete.
1101 (finish_command_continuation): Remove NOTE. Don't clear
1102 suppress_stop_observer anymore.
1103 (finish_command_continuation_free_arg): Likewise.
1104 (finish_forward): Remove references to suppress_stop_observer.
1105 Call normal_stop observer if we haven't already.
1106 * inferior.h (suppress_stop_observer): Delete.
1107 * infrun.c (normal_stop): When deciding to suppress the
1108 normal_stop observer, check for proceed_to_finish instead of
1109 suppress_stop_observer.
1110
065a2c74
PA
11112009-03-22 Pedro Alves <pedro@codesourcery.com>
1112
1113 * symfile.c (symfile_relocate_debug_section): Remove check for
1114 SEC_DEBUGGING.
1115
cc924cad
TJB
11162009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1117 Jim Blandy <jimb@red-bean.com>
1118 Thiago Jung Bauermann <bauerman@br.ibm.com>
1119 Tom Tromey <tromey@redhat.com>
1120
1121 Miscellaneous fixes to the Python code.
1122 * python/python-cmd.c (cmdpy_init): Accept keyword
1123 arguments.
1124 * python/python-value.c (valpy_string): Accept keyword
1125 arguments.
1126 (valpy_binop): Use `break' to exit from the TRY_CATCH block.
1127 Do not call value_to_value_object on NULL RES_VAL.
1128 (value_object_methods): Change `string' entry to also accept
1129 keyword arguments.
1130 (convert_value_from_python): Return a copy of the value if obj is
1131 a gdb.Value object.
1132 (value_object_methods): Mark the `string' method as accepting
1133 keywords, and show method "prototype" in the doc string.
1134 * python/python.c (get_parameter): Don't return inside a
1135 TRY_CATCH.
1136
bc3b79fd
TJB
11372009-03-20 Tom Tromey <tromey@redhat.com>
1138
1139 Add support for convenience functions in Python.
1140 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
1141 (SUBDIR_PYTHON_SRCS): Add python-function.c.
1142 (python-function.o): New target.
1143 * eval.c: Include "python/python.h" and <ctype.h>.
1144 (evaluate_subexp_standard): Handle values of type
1145 TYPE_CODE_INTERNAL_FUNCTION.
1146 * gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
1147 * parse.c (write_exp_string): Remove duplicate word in comment.
1148 * python/python-function.c: New file.
1149 * python/python-internal.h (gdbpy_initialize_functions): Add
1150 prototype.
1151 * python/python.c (_initialize_python): Call
1152 gdbpy_initialize_functions.
1153 * valprint.c (value_check_printable): Handle values of type
1154 TYPE_CODE_INTERNAL_FUNCTION.
1155 * value.c: Include "cli/cli-decode.h".
1156 (internal_function): New struct.
1157 (functionlist, internal_fn_type): New static variables.
1158 (lookup_only_internalvar,
1159 lookup_internalvar): Add const qualifier to name argument.
1160 (create_internalvar): Likewise. Initialize new field.
1161 (set_internal_var): Fix typo in comment. Don't allow assignment
1162 to canonical variable.
1163 (value_create_internal_function, value_internal_function_name,
1164 call_internal_function, function_command, function_destroyer,
1165 add_internal_function): New functions.
1166 (_initialize_values): Create `function' placeholder command.
1167 Initialize internal_fn_type.
1168 * value.h (lookup_only_internalvar, create_internalvar,
1169 lookup_internalvar): Add const qualifier to name argument.
1170 (internal_function_fn, add_internal_function, call_internal_function,
1171 value_internal_function_name): Add prototypes.
1172 (struct internalvar) <canonical>: New field.
1173
546e879e
TT
11742009-03-20 Tom Tromey <tromey@redhat.com>
1175
1176 * c-lang.c (evaluate_subexp_c): Call check_typedef.
1177
6c7a06a3
TT
11782009-03-20 Tom Tromey <tromey@redhat.com>
1179 Julian Brown <julian@codesourcery.com>
1180
1181 PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
1182 PR i18n/9401, PR exp/9613:
1183 * NEWS: Update
1184 * value.h (value_typed_string): Declare.
1185 (val_print_string): Update.
1186 * valprint.h (print_char_chars): Update.
1187 * valprint.c (print_char_chars): Add type argument. Update.
1188 (val_print_string): Likewise.
1189 * valops.c (value_typed_string): New function.
1190 * utils.c (host_char_to_target): New function.
1191 (parse_escape): Use host_char_to_target, host_hex_value. Update.
1192 Remove '^' case.
1193 (no_control_char_error): Remove.
1194 * typeprint.c (print_type_scalar): Update.
1195 * scm-valprint.c (scm_scmval_print): Update.
1196 * scm-lang.h (scm_printchar, scm_printstr): Update.
1197 * scm-lang.c (scm_printchar): Add type argument.
1198 (scm_printstr): Likewise.
1199 * printcmd.c (print_formatted): Update.
1200 (print_scalar_formatted): Update.
1201 (printf_command) <wide_string_arg, wide_char_arg>: New constants.
1202 Handle '%lc' and '%ls'.
1203 * parser-defs.h (struct typed_stoken): New type.
1204 (struct stoken_vector): Likewise.
1205 (write_exp_string_vector): Declare.
1206 * parse.c (write_exp_string_vector): New function.
1207 * p-valprint.c (pascal_val_print): Update.
1208 * p-lang.h (is_pascal_string_type, pascal_printchar,
1209 pascal_printstr): Update.
1210 * p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
1211 Add 'char_type' argument.
1212 (pascal_emit_char): Add type argument.
1213 (pascal_printchar): Likewise.
1214 (pascal_printstr): Likewise.
1215 * objc-lang.c (objc_emit_char): Add type argument.
1216 (objc_printchar): Likewise.
1217 (objc_printstr): Likewise.
1218 * macroexp.c (get_character_constant): Handle unicode characters.
1219 Use c_parse_escape.
1220 (get_string_literal): Handle unicode strings. Use
1221 c_parse_escape.
1222 * m2-valprint.c (print_unpacked_pointer): Update.
1223 (m2_print_array_contents): Update.
1224 (m2_val_print): Update.
1225 * m2-lang.c (m2_emit_char): Add type argument.
1226 (m2_printchar): Likewise.
1227 (m2_printstr): Likewise.
1228 * language.h (struct language_defn) <la_printchar>: Add type
1229 argument.
1230 <la_printstr, la_emitchar>: Likewise.
1231 (LA_PRINT_CHAR): Likewise.
1232 (LA_PRINT_STRING): Likewise.
1233 (LA_EMIT_CHAR): Likewise.
1234 * language.c (unk_lang_emit_char): Add type argument.
1235 (unk_lang_printchar): Likewise.
1236 (unk_lang_printstr): Likewise.
1237 * jv-valprint.c (java_val_print): Update.
1238 * jv-lang.c (java_emit_char): Add type argument.
1239 * f-valprint.c (f_val_print): Update.
1240 * f-lang.c (f_emit_char): Add type argument.
1241 (f_printchar): Likewise.
1242 (f_printstr): Likewise.
1243 * expprint.c (print_subexp_standard): Update.
1244 * charset.h (target_wide_charset): Declare.
1245 (c_target_char_has_backslash_escape, c_parse_backslash,
1246 host_char_print_literally, host_char_to_target,
1247 target_char_to_host, target_char_to_control_char): Remove.
1248 (enum transliterations): New type.
1249 (convert_between_encodings): Declare.
1250 (HOST_ESCAPE_CHAR): New define.
1251 (host_letter_to_control_character, host_hex_value): Declare.
1252 (enum wchar_iterate_result): New enum.
1253 (struct wchar_iterator): Declare.
1254 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
1255 wchar_push_back): Declare.
1256 * charset-list.h: New file.
1257 * c-valprint.c (textual_name): New function.
1258 (textual_element_type): Handle wide character types.
1259 (c_val_print): Pass original type to textual_element_type. Handle
1260 wide character types.
1261 (c_value_print): Use textual_element_type. Pass original type of
1262 value to val_print.
1263 * c-lang.h (enum c_string_type): New type.
1264 (c_printchar, c_printstr): Update.
1265 * c-lang.c (classify_type): New function.
1266 (print_wchar): Likewise.
1267 (c_emit_char): Add type argument. Handle wide characters.
1268 (c_printchar): Likewise.
1269 (c_printstr): Add type argument. Handle wide and multibyte
1270 character sets.
1271 (convert_ucn): New function.
1272 (emit_numeric_character): Likewise.
1273 (convert_octal): Likewise.
1274 (convert_hex): Likewise.
1275 (ADVANCE): New macro.
1276 (convert_escape): New function.
1277 (parse_one_string): Likewise.
1278 (evaluate_subexp_c): Likewise.
1279 (exp_descriptor_c): New global.
1280 (c_language_defn): Use exp_descriptor_c.
1281 (cplus_language_defn): Likewise.
1282 (asm_language_defn): Likewise.
1283 (minimal_language_defn): Likewise.
1284 (charset_for_string_type): New function.
1285 * c-exp.y (%union): Add 'svec' and 'tsval'.
1286 (CHAR): New token.
1287 (exp): Add CHAR production.
1288 (string_exp): Rewrite.
1289 (exp) <string_exp>: Rewrite.
1290 (tempbuf): Now global.
1291 (tempbuf_init): New global.
1292 (parse_string_or_char): New function.
1293 (yylex) <tempbuf>: Now global.
1294 <tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
1295 Remove.
1296 Handle 'u', 'U', and 'L' prefixes. Call parse_string_or_char.
1297 (c_parse_escape): New function.
1298 * auxv.c (fprint_target_auxv): Update.
1299 * ada-valprint.c (ada_emit_char): Add type argument.
1300 (ada_printchar): Likewise.
1301 (ada_print_scalar): Update.
1302 (printstr): Add type argument. Update calls to ada_emit_char.
1303 (ada_printstr): Add type argument.
1304 (ada_val_print_array): Update.
1305 (ada_val_print_1): Likewise.
1306 * ada-lang.c (emit_char): Add type argument.
1307 * ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
1308 type arguments.
1309 * gdb_locale.h: Include langinfo.h.
1310 * charset.c (_initialize_charset): Set default host charset from
1311 the locale. Don't register charsets. Add target-wide-charset
1312 commands. Call find_charset_names.
1313 (struct charset, struct translation): Remove.
1314 (GDB_DEFAULT_HOST_CHARSET): Remove.
1315 (GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
1316 (target_wide_charset_name): New global.
1317 (show_host_charset_name): Handle "auto".
1318 (show_target_wide_charset_name): New function.
1319 (host_charset_enum, target_charset_enum): Remove.
1320 (charset_enum): New global.
1321 (all_charsets, register_charset, lookup_charset, all_translations,
1322 register_translation, lookup_translation): Remove.
1323 (simple_charset, ascii_print_literally, ascii_to_control): Remove.
1324 (iso_8859_print_literally, iso_8859_to_control,
1325 iso_8859_family_charset): Remove.
1326 (ebcdic_print_literally, ebcdic_to_control,
1327 ebcdic_family_charset): Remove.
1328 (struct cached_iconv, check_iconv_cache, cached_iconv_convert,
1329 register_iconv_charsets): Remove.
1330 (target_wide_charset_be_name, target_wide_charset_le_name): New
1331 globals.
1332 (identity_either_char_to_other): Remove.
1333 (set_be_le_names, validate): New functions.
1334 (backslashable, backslashed, represented): Remove.
1335 (default_c_target_char_has_backslash_escape): Remove.
1336 (default_c_parse_backslash, iconv_convert): Remove.
1337 (ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
1338 ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
1339 iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
1340 ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
1341 ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
1342 ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
1343 (table_convert_char, table_translation, simple_table_translation):
1344 Remove.
1345 (current_host_charset, current_target_charset,
1346 c_target_char_has_backslash_escape_func,
1347 c_target_char_has_backslash_escape_baton): Remove.
1348 (c_parse_backslash_func, c_parse_backslash_baton): Remove.
1349 (host_char_to_target_func, host_char_to_target_baton): Remove.
1350 (target_char_to_host_func, target_char_to_host_baton): Remove.
1351 (cached_iconv_host_to_target, cached_iconv_target_to_host):
1352 Remove.
1353 (lookup_charset_or_error, check_valid_host_charset): Remove.
1354 (set_host_and_target_charsets): Remove.
1355 (set_host_charset, set_target_charset): Remove.
1356 (set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
1357 (set_target_wide_charset_sfunc): New function.
1358 (show_charset): Print target wide character set.
1359 (host_charset, target_charset): Rewrite.
1360 (target_wide_charset): New function.
1361 (c_target_char_has_backslash_escape): Remove.
1362 (c_parse_backslash): Remove.
1363 (host_letter_to_control_character): New function.
1364 (host_char_print_literally): Remove.
1365 (host_hex_value): New function.
1366 (target_char_to_control_char): Remove.
1367 (cleanup_iconv): New function.
1368 (convert_between_encodings): New function.
1369 (target_char_to_host): Remove.
1370 (struct wchar_iterator): Define.
1371 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
1372 wchar_push_back): New functions.
1373 (do_cleanup_iterator): New function.
1374 (char_ptr): New typedef.
1375 (charsets): New global.
1376 (add_one, find_charset_names): New functions.
1377 (default_charset_names): New global.
1378 (auto_host_charset_name): Likewise.
1379 * aclocal.m4, config.in, configure: Rebuild.
1380 * configure.ac: Call AM_LANGINFO_CODESET.
1381 (GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
1382 (AM_ICONV): Invoke earlier.
1383 * acinclude.m4: Include codeset.m4. Subst LIBICONV_INCLUDE and
1384 LIBICONV_LIBDIR. Check for libiconv in build tree.
1385 * Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
1386 (INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
1387 (INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
1388 * gdb_obstack.h (obstack_grow_wstr): New define.
c2c8d75b
AS
1389 * gdb_wchar.h: New file.
1390 * defs.h: Include it.
6c7a06a3 1391
cb249c71
TT
13922009-03-20 Tom Tromey <tromey@redhat.com>
1393 Jan Kratochvil <jan.kratochvil@redhat.com>
1394
1395 * dwarf2read.c (process_die): Handle DW_TAG_typedef.
1396 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
1397 typedef.
1398 * ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
1399 SYMBOL_TYPE result.
1400 * ada-typeprint.c (print_array_type): Do the NULL check
1401 unconditionally.
1402
16ad9370
TT
14032009-03-19 Tom Tromey <tromey@redhat.com>
1404
1405 * utils.c (do_obstack_free): New function.
1406 (make_cleanup_obstack_free): Likewise.
1407 * defs.h (make_cleanup_obstack_free): Declare.
1408
36dc683c
DE
14092009-03-18 Doug Evans <dje@google.com>
1410
89ecc4f5
DE
1411 * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
1412 int, not a long long.
1413 (linux_nat_info_proc_cmd): Store pid in long instead of long long.
1414
a411cd0e
DE
1415 * expprint.c (dump_raw_expression): Print note if non-NULL.
1416
36dc683c
DE
1417 * printcmd.c (display_uses_solib_p): Redo loop, scan element list
1418 backwards.
1419
5b1ba0e5
NS
14202009-03-18 Nathan Sidwell <nathan@codesourcery.com>
1421
1422 * Makefile.in: Update license to GPLv3.
1423 * ada-exp.y: Update license to GPLv3.
1424 * ada-lex.l: Update license to GPLv3.
1425 * c-exp.y: Update license to GPLv3.
1426 * cp-name-parser.y: Update license to GPLv3.
1427 * darwin-nat-info.c: Update license to GPLv3.
1428 * f-exp.y: Update license to GPLv3.
1429 * gdb_thread_db.h: Update license to GPLv3.
1430 * hppanbsd-nat.c: Update license to GPLv3.
1431 * hppanbsd-tdep.c: Update license to GPLv3.
1432 * hppaobsd-tdep.c: Update license to GPLv3.
1433 * jv-exp.y: Update license to GPLv3.
1434 * m2-exp.y: Update license to GPLv3.
1435 * objc-exp.y: Update license to GPLv3.
1436 * p-exp.y: Update license to GPLv3.
1437 * reply_mig_hack.awk: Update license to GPLv3.
1438 * reverse.c: Update license to GPLv3.
1439 * xtensa-xtregs.c: Update license to GPLv3.
1440
8a2492ee
PA
14412009-03-18 Pedro Alves <pedro@codesourcery.com>
1442
1443 * remote.c (remote_close): Don't call generic_mourn_inferior.
1444 (remote_mourn_1): Call generic_mourn_inferior after closing the
1445 target.
1446
5338cef1
PA
14472009-03-18 Pedro Alves <pedro@codesourcery.com>
1448
1449 * remote.c (remote_start_remote): Add missing call to
1450 init_wait_for_inferior in non-stop mode.
1451
717a8278
PA
14522009-03-18 Pedro Alves <pedro@codesourcery.com>
1453
1454 * breakpoint.c (bpstat_should_step): Only consider software
1455 watchpoints that have a location.
1456
7d85a9c0
JB
14572009-03-17 Joel Brobecker <brobecker@adacore.com>
1458
1459 Add a target_ops parameter to the to_kill method in struct target_ops.
1460
1461 * target.h (struct target_ops): Add a "target_ops *" parameter to
1462 method to_kill.
1463 (target_kill): Remove macro. Add declaration.
1464 * target.c (debug_to_kill): Delete, no longer necessary.
1465 (target_kill): New function.
1466 (update_current_target): Stop inheriting the to_kill method.
1467 Do not de_fault it to no_process either.
1468 (setup_target_debug): Do not set current_target.to_kill.
1469 * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
1470 linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
1471 remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
1472 accordingly.
1473
14064aa2
DE
14742009-03-17 Doug Evans <dje@google.com>
1475
1476 * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
1477 glibc 2.3.2 and earlier.
1478
f06eadd9
JB
14792009-03-17 Joel Brobecker <brobecker@adacore.com>
1480
1481 * frame.c (get_prev_frame_1): Do not perform the inner_frame
1482 sanity check if this_frame is not NORMAL.
1483 (frame_id_inner): Update the description of this function.
1484
481df73e
HZ
14852009-03-17 Hui Zhu <teawater@gmail.com>
1486
1487 * stack.c: Change the introduce of "disassemble-next-line".
1488
6b251945
PA
14892009-03-17 Pedro Alves <pedro@codesourcery.com>
1490
1491 * mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
1492 declare as extern.
1493
30c33a9f
HZ
14942009-03-17 Hui Zhu <teawater@gmail.com>
1495
dafb3b41 1496 * stack.c: Include valprint.h.
30c33a9f
HZ
1497 (disassemble_next_line): New enum.
1498 (show_disassemble_next_line): New function. Show the current
1499 value of disassemble-next-line.
1500 (gdb_disassembly_stub_args): New struct for argument passing
1501 between function do_gdb_disassembly and function
1502 gdb_disassembly_stub.
1503 (gdb_disassembly_stub): New function. Helper for
1504 gdb_disassembly.
1505 (do_gdb_disassembly): New function. Use TRY_CATCH to catch
1506 the exception from the gdb_disassembly because it will be
1507 broken by filter sometime.
1508 (print_frame_info): If disassemble-next-line is set to auto
1509 or on and doesn't have the line debug messages for $pc,
1510 output the next instruction.
1511 If disassemble-next-line is set to on and there is line debug
1512 messages, output assembly codes for next line.
1513 (_initialize_stack): Make the "set disassemble-next-line"
1514 command an auto-boolean command. Change its class to
1515 class_stack. Place it in the top level set list. Extend help
1516 to describe the auto mode.
1517
fee0be5d
PA
15182009-03-17 Pedro Alves <pedro@codesourcery.com>
1519
1520 * infrun.c (normal_stop): Don't overwrite old_chain.
1521
a624e111
JB
15222009-03-16 Joel Brobecker <brobecker@adacore.com>
1523
1524 * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
1525 which is undefined, by call to regcache_invalidate, which should
1526 do what the original author wanted to do.
1527
383c0389
JB
15282009-03-16 Joel Brobecker <brobecker@adacore.com>
1529
1530 * remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
1531 (mips_create_inferior): Likewise.
1532
267fbcde
JB
15332009-03-16 Joel Brobecker <brobecker@adacore.com>
1534
1535 * go32-nat.c (go32_create_inferior): Add missing ops parameter.
1536
da66f6a6
JB
15372009-03-16 Joel Brobecker <brobecker@adacore.com>
1538
1539 * darwin-nat.c (darwin_resume): Fix a compiler warning when
1540 building on x86_64-darwin.
1541
58529c02
JB
15422009-03-16 Tristan Gingold <gingold@adacore.com>
1543
1544 * configure.tgt: Add handling for x86_64-darwin.
1545
ba30a4e9
JK
15462009-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1547
1548 * auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
1549
7fc0c7b5
JB
15502009-03-15 Joel Brobecker <brobecker@adacore.com>
1551
1552 * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
1553 Use the ops parameter to get to the target beneath, rather than
1554 using the current_target global. Using the current_target global
1555 was an unintended accident.
1556
1ba0a4ee
JB
15572009-03-15 Joel Brobecker <brobecker@adacore.com>
1558
1559 Fix an error happening while loading symbols from a core file
1560 (on AIX).
1561
1562 * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
1563 to detect whether we're debugging a core file or not.
1564
d30acaa7
JB
15652009-03-15 Joel Brobecker <brobecker@adacore.com>
1566
1567 Modernize the aix-thread later by getting rid of the base_target
1568 global. This brings back to life the AIX port which was otherwise
1569 crashing all the time.
1570
1571 * aix-thread.c (base_target): Delete.
1572 (pd_enable): Do not set base_target.
1573 (aix_thread_attach): Use find_target_beneath instead of base_target.
1574 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
1575 (aix_thread_fetch_registers, aix_thread_store_registers),
1576 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
1577 (aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
1578 (aix_thread_kill): Delete. Does not seem necessary.
1579 (init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
1580
61ff14c6
JK
15812009-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1582
1583 * stack.c (return_command <retval_exp>): New variables retval_expr
1584 and old_chain. Inline parse_and_eval to initialize retval_expr. Check
1585 RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
1586 if RETURN_TYPE is NULL.
1587
0b16c5cf
PA
15882009-03-14 Pedro Alves <pedro@codesourcery.com>
1589
1590 * remote.c (PACKET_qAttached): New.
1591 (remote_query_attached): New.
1592 (remote_add_inferior): Add new `attached' argument. Handle it.
1593 (remote_notice_new_inferior, remote_start_remote): Adjust to pass
1594 -1 to remote_add_inferior in new parameter.
1595 (extended_remote_attach_1): Adjust to pass 1 to
1596 remote_add_inferior in the new parameter.
1597 (extended_remote_create_inferior_1): Adjust to pass 0 to
1598 remote_add_inferior in the new parameter.
1599 (_initialize_remote): Add "set/show remote query-attached-packet"
1600 commands.
1601
9ee6bb93
TT
16022009-03-13 Tom Tromey <tromey@redhat.com>
1603
1604 * symtab.c (lookup_symbol_in_language): Use a cleanup.
1605
787274f0
DE
16062009-03-13 Doug Evans <dje@google.com>
1607
1608 * exceptions.h: Clean up some comments on catch_exceptions usage.
1609 * exceptions.c: Ditto. Plus mark catch_errors as superseded by
1610 catch_exceptions.
1611
24f81874
JB
16122009-02-17 Joel Brobecker <brobecker@adacore.com>
1613
1614 The following patch helps getting rid of a warning inside solib-som.c.
1615
1616 * source.c (source_full_path_of): Constify parameter filename.
1617 * defs.h (source_full_path_of): Update declaration accordingly.
1618
e1578042
JB
16192009-03-12 Joel Brobecker <brobecker@adacore.com>
1620
1621 * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
1622 BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
1623 Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
1624
9c2be529
JB
16252009-03-12 Joel Brobecker <brobecker@adacore.com>
1626
1627 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
1628 promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
1629
2360f94a 16302009-03-12 Joel Brobecker <brobecker@adacore.com>
e22dccb5
JB
1631
1632 * ada-tasks.c (ada_task_is_alive): Move up and make static.
1633 * ada-lang.h (ada_task_is_alive): Remove declaration.
1634
facc390f
JB
16352009-03-12 Jerome Guitton <guitton@adacore.com>
1636
1637 * ada-lang.c (ada_delta): Change the type of numerators and
1638 denominators to DOUBLEST, as they may not fit into a long.
1639 (scaling_factor): Ditto.
1640
47e729a8
JB
16412009-03-12 Jerome Guitton <guitton@adacore.com>
1642
5c20fa2a 1643 * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL.
47e729a8 1644
b79819ba
JB
16452009-03-12 Joel Brobecker <brobecker@adacore.com>
1646
1647 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
1648 types, if we are unable to determine the actual symbol type
1649 from its tag, then use the static approximation instead.
1650
0056e4d5
JB
16512009-03-12 Joel Brobecker <brobecker@adacore.com>
1652
1653 Fix crash printing packed record with packed array.
1654
1655 * ada-lang.c (ada_modulus_from_name): New function.
1656 (ada_modulus): In the case where the type length is bigger than
1657 the size of the type used to hold the bounds, try determining
1658 the modulus from the type name.
1659 (ada_value_primitive_packed_val): Fix bug in the computation of
1660 ntarg causing an out-of-buffer invalid access.
1661
3c513ee6
JB
16622009-03-12 Joel Brobecker <brobecker@adacore.com>
1663
1664 Fix segfault when printing short_integer'last.
1665
1666 * ada-lang.c (ada_find_any_type): Search in the primitive types
1667 if a symbol could not be found.
1668
680f3fad
JB
16692009-03-12 Joel Brobecker <brobecker@adacore.com>
1670
1671 * ada-tasks.c (task_states,long_task_states): Add new states
1672 Activating and Acceptor_Delay_Sleep. Update the description
1673 of state Acceptor_Sleep.
1674
2ab1c2d9
JB
16752009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
1676
1677 Fix a build failure on Darwin following some changes in
1678 the profile of some target_ops methods.
1679
1680 * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
1681 where missing.
1682 (darwin_stop_inferior, darwin_detach): Likewise.
1683
1f31650a
VP
16842009-03-12 Vladimir Prus <vladimir@codesourcery.com>
1685
1686 Include token in ^running notification for CLI commands.
1687
c2c8d75b
AS
1688 * mi/mi-main.c (mi_execute_command): Set current_token here.
1689 (mi_cmd_execute): Do not set current_token here.
1f31650a 1690
4333ada3
VP
16912009-03-12 Vladimir Prus <vladimir@codesourcery.com>
1692
1693 Fix MI timings.
1694
c2c8d75b
AS
1695 * mi/mi-main.c (mi_print_timing_maybe): New.
1696 (captured_mi_execute_command): Simplify. Output timings to
1697 CLI commands, too.
1698 (mi_execute_async_cli_command): Do not print timings.
1699 * mi/mi-main.h (mi_print_timing_maybe): Declare.
1700 * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
4333ada3 1701
c5933f6d
JB
17022009-03-12 Jerome Guitton <guitton@adacore.com>
1703
1704 * xcoffread.c (process_linenos): Check if the line in the
1705 include table refers to the main source file and, if so,
1706 add them to the main subfile.
1707
c7660128
JB
17082009-03-12 Joel Brobecker <brobecker@adacore.com>
1709
1710 Fix a build failure on AIX introduced after a change in the profile
1711 of some of the "methods" in the target_ops structure.
1712 * aix-thread.c: Add missing target_ops parameter throughout.
1713
1714 Implement Ada task switching on AIX.
1715 * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
1716 (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
1717
c5bc3a77
DJ
17182009-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1719
1720 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
1721 value_mark and value_free_to_mark.
1722 * objfiles.c (free_objfile): Call objfile_free_data before
1723 freeing the BFD.
1724
55518360
HZ
17252009-03-10 Hui Zhu <teawater@gmail.com>
1726
1727 * disasm.c (gdb_disassembly): Remove unused argument
1728 "line_num".
1729 * disasm.h (gdb_disassembly): Ditto.
1730 * cli/cli-cmds.c (print_disassembly): Ditto.
1731 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
1732
5fd1a349
PP
17332009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
1734
1735 * solib.c (solib_contains_address_p): New function.
1736 (solib_name_from_address): Use it.
1737 * printcmd.c (display_uses_solib_p): Use it.
c2c8d75b
AS
1738 * solib.h (solib_contains_address_p): Declare it.
1739
36746093
JK
17402009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1741
1742 * varobj.c (free_variable): Call value_free.
1743
757a13d0
JK
17442009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1745
1746 PR gdb/9873:
1747 * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
1748 Move the variable `macinfo_type' out of the loop. Create a new
1749 processing pass before the current one to pre-create `current_file'.
1750 New complaint on misplaced zero/non-zero definitions/includes.
1751 Skip first DW_MACINFO_start_file with `at_commandline' set.
1752
c8fa6cdd
VP
17532008-03-09 Vladimir Prus <vladimir@codesourcery.com>
1754
1755 * solib.c (reload_shared_libraries): Give
1756 inferior a chance to reset solib breakpoint.
1757 Reinit frame cache.
1758
41b4aadc
CF
17592009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
1760
1761 * windows-nat.c (dr): Redefine to use largest possible integer which
1762 holds a pointer.
1763 (cygwin_set_dr): Avoid coercion.
1764
17652009-03-08 Oswald Buddenhagen <oswald.buddenhagen@trolltech.de>
1766
14b69f28 1767 * windows-nat.c (windows_create_inferior): Implement --tty handling on
41b4aadc
CF
1768 non-cygwin.
1769
f5c9a895
PP
17702009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1771
1772 Rename solib_address to solib_name_from_address.
1773 * breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
1774 (disable_breakpoints_in_unloaded_shlib): Update.
1775 * printcmd.c (display_uses_solib_p): Likewise.
1776 * stack.c (print_frame): Likewise.
1777 * solib.c: Rename.
1778 * solib.h: Rename.
c2c8d75b 1779
a3247a22
PP
17802009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
1781
1782 * printcmd.c (do_one_display): Reparse exp_string.
1783 (display_uses_solib_p): New function.
1784 (clear_dangling_display_expressions): New function.
1785 (_initialize_printcmd): Add observer.
1786 * solib.c (no_shared_libraries): Swap order of calls to
1787 clear_solib and objfile_purge_solibs.
c2c8d75b 1788
d36df9c5
JB
17892009-03-05 Joel Brobecker <brobecker@adacore.com>
1790
1791 Implement the target-specific part of Ada tasking support
1792 on Tru64.
1793
1794 * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
1795 (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
1796
b254c0b2
JB
17972009-03-05 Joel Brobecker <brobecker@adacore.com>
1798
1799 Get rid of the global "base_target" and use "find_target_beneath"
1800 to find the underlying target.
1801 * dec-thread.c (base_target): Delete.
1802 (enable_dec_thread): Remove assignement to base_target.
1803 (dec_thread_detach, dec_thread_wait, dec_thread_wait)
1804 (dec_thread_fetch_registers, dec_thread_store_registers)
1805 (dec_thread_mourn_inferior, dec_thread_pid_to_str):
1806 Update the function profile if necessary.
1807 Use find_target_beneath to call the same method but from
1808 the underlying target, removing the need for "base_target".
1809
1810 * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
1811 Fix a copy/paste error in a few debug traces...
1812
1813 * solib-osf.c (init_so): Use a simpler method for computing
1814 the size of lm_info structure. This also gets rid of warning
1815 emitted by the compiler.
1816
aae64587
PA
18172009-03-05 Pedro Alves <pedro@codesourcery.com>
1818
1819 * breakpoint.c (check_duplicates_for): Skip permanent breakpoints
1820 duplicates of permanent breakpoints.
1821
1941c569
PA
18222009-03-04 Pedro Alves <pedro@codesourcery.com>
1823
1824 * inferior.h (notice_new_inferior): Declare.
1825 * infcmd.c (notice_new_inferior): New.
1826 * remote.c (remote_add_inferior, remote_add_thread): New.
1827 (notice_new_inferiors): Rename to...
1828 (remote_notice_new_inferior): ... this. Add RUNNING argument.
1829 Use remote_add_thread instead of add_thread, passing it the
1830 RUNNING argument. Add an inferior with remote_add_inferior. If
1831 we just learned about an inferior, call notice_new_inferior.
1832 (record_currthread): Adjust.
1833 (remote_threads_info): Adjust to use remote_notice_new_inferior.
237d4315
PA
1834 (remote_start_remote, extended_remote_attach_1): Use
1835 remote_add_inferior.
1941c569
PA
1836 (process_stop_reply): Adjust. Call remote_notice_new_inferior
1837 after handling expedited registers and watchpoint state.
1838 (extended_remote_create_inferior_1): Use remote_add_inferior.
1839
9bde0732
AR
18402009-03-04 Aleksandar Ristovski <aristovski@qnx.com>
1841
1842 * infcmd.c (registers_info): Remove register number case.
1843
6aa8e5c2
PA
18442009-03-03 Pedro Alves <pedro@codesourcery.com>
1845
1846 * top.c (quit_target): Check for target_has_execution before
1847 killing or detaching from inferiors.
1848
1d59cee5
JB
18492009-03-02 Joel Brobecker <brobecker@adacore.com>
1850
1851 Remove some unused routines.
1852
1853 * ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
1854 Delete.
1855 * ada-lang.c (ada_task_list_iterator_ftype)
1856 (iterate_over_live_ada_tasks): Delete.
1857 * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
1858 Delete.
1859
223698f8
DE
18602009-03-01 Doug Evans <dje@google.com>
1861
9af17804
DE
1862 * symtab.c: Remove trailing whitespace throughout the file.
1863 (expand_line_sal): Fix some typos and whitespace.
1864
3c54f140
DE
1865 * Makefile.in (clean): rm -f $(DEPDIR)/*.
1866
2aecd87f
DE
1867 * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
1868 (init.c): signals/ -> common/.
1869 (signals.o): Update.
1870 * target.h (target_signal_to_string,target_signal_to_string)
1871 (target_signal_from_name,target_signal_to_host_p)
1872 (target_signal_from_host,target_signal_to_host): Move to ...
1873 * common/gdb_signals.h: ... here. New file.
1874 * common/signals.c: Moved here from signals/signals.c.
1875 #include gdb_signals.h, remove #include of target.h in gdb case.
1876 (target_signal_from_command,default_target_signal_to_host)
1877 (default_target_signal_from_host): Move inside #ifndef GDBSERVER.
1878
223698f8
DE
1879 Include thread ID in target_wait debugging output.
1880 * infrun.c (print_target_wait_results): New function.
1881 (wait_for_inferior,fetch_inferior_event): Call it.
1882
93a91755
PA
18832009-02-27 Pedro Alves <pedro@codesourcery.com>
1884
1885 * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
1886 with a ptid_t field.
1887 * linux-thread-db.c (thread_get_info_callback): Build the ptid
1888 using the pid stored in proc_handle.ptid.
1889 (thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
1890 (check_for_thread_db, thread_db_detach, check_event)
1891 (thread_db_mourn_inferior, find_new_threads_callback)
1892 (thread_db_find_new_threads_1): Adjust.
1893 * proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
1894 (ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
1895
b5096abe
PM
18962009-02-27 Phil Muldoon <pmuldoon@redhat.com>
1897
1898 * valprint.c (read_string): Rework clean-up logic. Use
1899 free_current_contents to clean-up buffer.
1900
a2f63f5e
AS
19012009-02-27 Andreas Schwab <schwab@linux-m68k.org>
1902
1903 * MAINTAINERS: Update e-mail address.
1904
83390453
PM
19052009-02-26 Phil Muldoon <pmuldoon@redhat.com>
1906
1907 * python/python-utils.c (python_string_to_unicode): Always return
1908 a new reference.
1909 (python_string_to_target_string): Decrement transient python
1910 instance.
1911 (python_string_to_host_string): Likewise.
1912
19132007-02-26 Pedro Alves <pedro@codesourcery.com>
a0740d21
PA
1914
1915 * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
1916 call to super_fetch_registers.
1917 (mips64_linux_store_registers): Pass `ops' to call to
1918 super_store_registers.
1919
89c83b10
DE
19202009-02-25 Doug Evans <dje@google.com>
1921
99361f52
DE
1922 * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
1923 error message.
1924
1c2af6c4
DE
1925 * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
1926 disabled_shlib_breaks, unused.
1927
89c83b10
DE
1928 * printcmd.c (build_address_symbolic): Fix comment.
1929
9e2f0ad4
HZ
19302009-02-25 Hui Zhu <teawater@gmail.com>
1931
1932 * cli/cli-script.c (define_command): Add _() to query.
1933 * gnu-nat.c (inf_validate_task_sc): Ditto.
1934 * infcmd.c (kill_if_already_running): Ditto.
1935 (jump_command): Ditto.
1936 (attach_command): Ditto.
1937 * inflow.c (kill_command): Ditto.
1938 * infrun.c (handle_command): Ditto.
1939 * maint.c (maintenance_dump_me): Ditto.
1940 * memattr.c (mem_delete_command): Ditto.
1941 * monitor.c (monitor_interrupt_query): Ditto.
1942 * nto-procfs.c (interrupt_query): Ditto.
1943 * printcmd.c (undisplay_command): Ditto.
1944 * remote-mips.c (mips_kill): Ditto.
1945 * remote.c (interrupt_query): Ditto.
1946 * solib-irix.c (irix_open_symbol_file_object): Ditto.
1947 * solib-osf.c (osf_open_symbol_file_object): Ditto.
1948 * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
1949 * solib-som.c (som_open_symbol_file_object): Ditto.
1950 * solib-svr4.c (open_symbol_file_object): Ditto.
1951 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1952 * target.c (kill_or_be_killed): Ditto.
1953 * tracepoint.c (delete_trace_command): Ditto.
1954 * top.c (quit_confirm): Add _() to s that will be used
1955 in query.
1956
02529b48
PM
19572009-02-24 Pierre Muller <muller@ics.u-strasbg.fr>
1958
1959 Fix windows-nat.c compilation failure.
1960
1961 * windows-nat.c (windows_thread_alive): Fix forward declaration.
1962 (get_windows_debug_event): Add ops parameter to call to windows_resume.
1963
2fb89e62
PA
19642009-02-23 Pedro Alves <pedro@codesourcery.com>
1965
1966 * remote-sim.c (gdbsim_resume): Add target_ops* argument.
1967
6f43c46f
JB
19682009-02-23 Jay Krell <jay.krell@cornell.edu> (tiny change)
1969
1970 * symtab.c (find_line_symtab): Initialize exact to avoid
1971 a compiler warning.
1972
84e473c8
PA
19732009-02-23 Pedro Alves <pedro@codesourcery.com>
1974
1975 * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass
1976 `ops' to recursive call.
1977
28439f5e
PA
19782009-02-23 Pedro Alves <pedro@codesourcery.com>
1979
1980 * corelow.c (get_core_registers): Adjust.
1981 (core_file_thread_alive): Rename to...
1982 (core_thread_alive): ... this.
1983 (core_pid_to_str): Try gdbarch_core_pid_to_str first.
1984 (init_core_ops): Adjust.
1985 (coreops_suppress_target): Delete.
1986 (_initialize_corelow): Unconditionally add core_ops.
1987 * procfs.c: Include "inf-child.h".
1988 (procfs_ops): Delete.
1989 (init_procfs_ops): Delete. Reimplement as...
1990 (procfs_target): ... this, inheriting from inf-child.
1991 (procfs_attach, procfs_detach, procfs_fetch_registers): Adjust.
1992 (procfs_prepare_to_store): Delete.
1993 (procfs_store_registers, procfs_resume): Adjust.
1994 (procfs_open): Delete.
1995 (procfs_suppress_run): Delete.
1996 (procfs_can_run): Delete.
1997 (procfs_mourn_inferior): Adjust.
1998 (procfs_init_inferior): Add target_ops parameter. Adjust.
1999 (procfs_create_inferior): Don't pass procfs_init_inferior to
2000 fork_inferior. Instead call it after fork_inferior returns.
2001 (procfs_find_new_threads): Adjust.
2002 (_initialize_procfs): Adjust to use procfs_target instead of
2003 init_procfs_ops.
2004 * sol-thread.c (orig_core_ops, sol_core_ops): Delete.
2005 (lwp_to_thread): Use target_thread_alive.
2006 (sol_thread_open): Delete.
2007 (sol_thread_attach): Delete.
2008 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
2009 (sol_thread_fetch_registers, sol_thread_store_registers): Adjust
2010 to use find_target_beneath.
2011 (sol_thread_prepare_to_store, sol_thread_xfer_memory): Delete.
2012 (sol_thread_xfer_partial): Adjust to use find_target_beneath.
2013 (sol_thread_files_info, sol_thread_kill_inferior): Delete.
2014 (check_for_thread_db): New.
2015 (sol_thread_notice_signals, sol_thread_create_inferior): Delete.
2016 (sol_thread_new_objfile): Call check_for_thread_db.
2017 (sol_thread_mourn_inferior): Adjust to use find_target_beneath.
2018 (sol_thread_can_run): Delete.
2019 (sol_thread_alive): Adjust to use find_target_beneath.
2020 (sol_thread_stop): Delete.
2021 (rw_common): Use target_write_memory or target_read_memory.
2022 (ps_lgetregs, ps_lgetfpregs): Use target_fetch_registers.
2023 (ps_lsetregs, ps_lsetfpregs): Use target_store_registers.
2024 (solaris_pid_to_str): Remove check for libthread_db initialization
2025 failing.
2026 (sol_find_new_threads): Remove check for libthread_db
2027 initialization failing, or for an invalid inferior_ptid. Adjust
2028 to use find_target_beneath.
2029 (sol_core_open, sol_core_close, sol_core_detach,
2030 sol_core_files_info, sol_find_memory_regions,
2031 sol_make_note_section, ignore): Delete.
2032 (init_sol_thread_ops): Make it a thread_stratum target. Remove
2033 unneeded callback settings.
2034 (init_sol_core_ops): Delete.
2035 (_initialize_sol_thread): No longer call init_sol_core_ops, set
2036 procfs_suppress_run, or hack with core_ops.
2037
2038 * target.h (struct target_ops): Add a target_ops * parameter to
2039 to_resume, to_fetch_registers, to_store_registers, to_thread_alive
2040 and to_find_new_threads.
2041 (target_fetch_registers, target_store_registers)
2042 (target_thread_alive, target_find_new_threads): Redeclare as
2043 function.
a2f63f5e 2044
28439f5e
PA
2045 * target.c (update_current_target): Do not inherit or de_fault
2046 to_resume, to_fetch_registers, to_store_registers,
2047 to_thread_alive, to_find_new_threads.
2048 (target_resume): Adjust.
2049 (target_thread_alive, target_find_new_threads): New.
2050 (debug_to_resume, debug_to_fetch_registers): Delete.
2051 (target_fetch_registers): New.
2052 (debug_to_store_registers): Delete.
2053 (target_store_registers): New.
2054 (debug_to_thread_alive, debug_to_find_new_threads): Delete.
2055 (setup_target_debug): Adjust.
a2f63f5e 2056
28439f5e 2057 * gdbcore.h (core_ops): Delete declaration.
a2f63f5e 2058
28439f5e
PA
2059 * inf-ptrace.c, linux-nat.c, remote.c, amd64-linux-nat.c,
2060 inf-child.c, linux-thread-db.c, bsd-uthread.c, inf-ttrace.c,
2061 i386-sol2-tdep.c, darwin-nat.c, gnu-nat.c, go32-nat.c,
2062 hpux-thread.c, i386-linux-nat.c, i386fbsd-nat.c, monitor.c,
2063 nto-procfs.c, remote-m32r-sdi.c, remote-mips.c, windows-nat.c,
2064 alphabsd-nat.c, amd64bsd-nat.c, arm-linux-nat.c, armnbsd-nat.c,
2065 bsd-kvm.c, hppa-hpux-nat.c, hppa-linux-nat.c, hppabsd-nat.c,
2066 hppanbsd-nat.c, i386-darwin-nat.c, i386bsd-nat.c,
2067 ia64-linux-nat.c, m32r-linux-nat.c, m68kbsd-nat.c,
2068 m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
2069 mips64obsd-nat.c, mipsnbsd-nat.c, ppc-linux-nat.c, ppcnbsd-nat.c,
2070 ppcobsd-nat.c, remote-sim.c, rs6000-nat.c, s390-nat.c,
2071 shnbsd-nat.c, sparc-nat.c, sparc-nat.h, spu-linux-nat.c,
2072 vaxbsd-nat.c, xtensa-linux-nat.c: Adjust to target_ops changes.
2073
2074 * gdbarch.sh (core_pid_to_str): New gdbarch callback.
2075 * gdbarch.h, gdbarch.c: Regenerate.
2076
2077 * sol2-tdep.c: Include "inferior.h".
2078 (sol2_core_pid_to_str): New.
2079 * sol2-tdep.h (sol2_core_pid_to_str): Declare.
2080
2081 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
2082 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
2083 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
2084 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
2085
907083d1
DE
20862009-02-22 Doug Evans <dje@google.com>
2087
2088 * exec.c (exec_file_attach): Fix comment.
2089
63807e1d
PA
20902009-02-22 Pedro Alves <pedro@codesourcery.com>
2091
2092 Silence a few -Wmissing-prototypes warnings.
2093
2094 PR build/9877:
a2f63f5e 2095 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make
63807e1d 2096 it static.
a2f63f5e
AS
2097 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare.
2098 * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static.
2099 * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ...
63807e1d
PA
2100 (_initialize_amd64nbsd_tdep): ... this.
2101 * arm-linux-tdep.c (arm_linux_software_single_step): Make it static.
2102 (_initialize_arm_linux_tdep): Declare.
2103 * armbsd-tdep.c (armbsd_fpreg_offset): Make it static.
2104 * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare.
2105 * armobsd-tdep.c (_initialize_armobsd_tdep): Declare.
2106 * avr-tdep.c (avr_return_value): Make it static.
2107 (avr_frame_unwind_cache): Ditto.
2108 * bsd-uthread.c (bsd_uthread_inferior_created): Ditto.
2109 (bsd_uthread_solib_loaded): Ditto.
2110 (bsd_uthread_solib_unloaded): Ditto.
2111 (bsd_uthread_target): Ditto.
2112 (_initialize_bsd_uthread): Declare.
2113 * cris-tdep.c (crisv32_single_step_through_delay): Make it static.
2114 (cris_frame_unwind_cache): Ditto.
2115 * frv-tdep.c (frv_return_value): Ditto.
2116 * h8300-tdep.c (h8300_use_struct_convention): Ditto.
2117 (h8300h_use_struct_convention): Ditto.
2118 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend):
2119 Ditto.
2120 * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete
2121 declarations.
2122 * hppabsd-tdep.c: Include hppabsd-tdep.h.
2123 (hppabsd_find_global_pointer): Make it static.
2124 * hppabsd-tdep.h: New.
2125 * hppanbsd-tdep.c: Include hppabsd-tdep.h.
2126 (hppabsd_init_abi): Remove declaration.
2127 (_initialize_hppabsd_tdep): Remove declaration.
2128 (_initialize_hppanbsd_tdep): Declare.
2129 * hppaobsd-tdep.c: Include hppabsd-tdep.h.
2130 (hppabsd_init_abi): Delete declaration.
2131 (hppaobsd_init_abi): Make it static.
2132 * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare.
2133 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare.
2134 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare.
2135 * ia64-tdep.c (ia64_register_reggroup_p): Make it static.
2136 * iq2000-tdep.c (_initialize_iq2000_tdep): Declare.
2137 * m32c-tdep.c (m32c_register_reggroup_p): Make it static.
2138 (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto.
2139 (_initialize_m32c_tdep): Declare.
2140 * m32r-rom.c (_initialize_m32r_rom): Declare.
2141 * m32r-tdep.c (m32r_skip_prologue): Make it static.
2142 (m32r_return_value): Ditto.
2143 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static.
2144 (m68hc11_return_value): Ditto.
2145 * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare.
2146 * m88k-tdep.c (m88k_frame_cache): Make it static.
2147 * mep-tdep.c (mep_gdb_print_insn): Ditto.
2148 (mep_return_value): Ditto.
2149 (_initialize_mep_tdep): Declare.
2150 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare.
2151 * mips-linux-tdep.c (supply_64bit_reg): Make it static.
2152 (mips_linux_syscall_next_pc): Ditto.
2153 (_initialize_mips_linux_tdep): Declare.
2154 * mips-tdep.c (mips_single_step_through_delay): Make it static.
2155 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare.
2156 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare.
2157 * mn10300-tdep.c (_initialize_mn10300_tdep): Declare.
2158 * mt-tdep.c (_initialize_mt_tdep): Declare.
2159 * nbsd-tdep.c: Include nbsd-tdep.h.
2160 * nto-tdep.c (find_load_phdr): Make it static.
2161 (_initialize_nto_tdep): Declare.
2162 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it
2163 static.
2164 (_initialize_ppc_linux_tdep): Declare.
2165 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint)
2166 (m32r_insert_watchpoint, m32r_remove_watchpoint)
2167 (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make
2168 static.
2169 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare.
2170 * rs6000-nat.c: Include xcoffread.h.
2171 (find_toc_address): Don't extern declare get_toc_offset. Adjust
2172 to call xcoff_get_to_offset.
2173 * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup)
2174 (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline)
2175 (rs6000_skip_trampoline_code): Make static.
2176 * s390-tdep.c (s390_regset_from_core_section): Ditto.
2177 * sh-tdep.c (sh_register_reggroup_p): Ditto.
2178 * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto.
2179 (_initialize_shnbsd_tdep): Declare.
2180 * solib-frv.c (displacement_from_map): Make static.
2181 (_initialize_frv_solib): Declare.
2182 * solib-irix.c (fetch_lm_info): Make static.
2183 (_initialize_irix_solib): Declare.
2184 * solib-som.c: Include solib-som.h.
2185 (som_solib_select): Line break.
2186 * sparc-tdep.c (sparc_regset_from_core_section): Make static.
2187 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ...
2188 (_initialize_sparcnbsd_tdep): ... this.
2189 * spu-tdep.c (spu_software_single_step): Make it static.
2190 (_initialize_spu_tdep): Declare.
2191 * vax-tdep.c (vax_frame_cache): Make it static.
2192 * xcoffread.c: Include xcoffread.h.
2193 (get_toc_offset): Rename to ...
2194 (xcoff_get_toc_offset): ... this.
2195 (_initialize_xcoffread): Declare.
2196 * xcoffread.h: New.
2197 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare.
2198 * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make
2199 static.
2200 (_initialize_xtensa_tdep): Declare.
2201
2c0b251b
PA
22022008-02-21 Pedro Alves <pedro@codesorcery.com>
2203
2204 Silence a few -Wmissing-prototypes warnings.
2205
2206 PR build/9877:
2207 * amd64-nat.c: Include "amd64-nat.h".
2208 * fork-child.c (_initialize_fork_child): Ditto.
2209 * gcore.c (_initialize_gcore): Ditto.
2210 * inf-ptrace.c: Include "inf-ptrace.h".
2211 (inf_ptrace_store_registers): Make it static.
2212 * linux-nat.c (linux_nat_terminal_ours): Make it static.
2213 (_initialize_linux_nat): Declare before definition.
2214 * linux-tdep.c: Include "linux-tdep.h".
2215 * linux-thread-db.c (_initialize_thread_db): Declare before
2216 definition.
2217 * proc-service.c (_initialize_proc_service): Ditto.
2218 * remote.c (remote_send_printf): Make it static.
2219 * solib.c: Include "solib.h".
2220 * symfile-mem.c (_initialize_symfile_mem): Declare before
2221 definition.
2222 * ada-lang.c (ada_la_decode, ada_match_name)
2223 (ada_suppress_symbol_printing, ada_is_array_type)
2224 (ada_value_ptr_subscript, ada_array_length)
2225 (ada_to_static_fixed_value): Make them static.
2226 (_initialize_ada_language): Declare before definition.
2227 * ada-tasks.c (ada_get_task_number, ada_get_environment_task)
2228 (ada_task_list_changed, ada_new_objfile_observer): Make them
2229 static.
2230 (_initialize_tasks): Declare before definition.
2231 * addrmap.c (_initialize_addrmap): Declare before definition.
2232 * auxv.c (default_auxv_parse): Make it static.
2233 * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make
2234 them static.
2235 * breakpoint.c (remove_sal): Add line break.
2236 (expand_line_sal_maybe): Make it static.
2237 * cp-name-parser.y: Include "cp-support.h".
2238 * cp-valprint.c (cp_find_class_member): Make it static.
2239 * eval.c (value_f90_subarray): Ditto.
2240 * exceptions.c (print_any_exception): Ditto.
2241 * findcmd.c (_initialize_mem_search): Declare before definition.
2242 * frame.c (frame_observer_target_changed): Make it static.
2243 * gnu-v3-abi.c (gnuv3_find_method_in): Make it static.
2244 * inf-child.c: Include "inf-child.h".
2245 * inferior.h (valid_inferior_id): Rename to ...
2246 (valid_gdb_inferior_id): ... this.
2247 * infrun.c (infrun_thread_stop_requested, siginfo_make_value):
2248 Make them static.
2249 * jv-lang.c (java_language_arch_info): Make it static.
2250 * m2-typeprint.c (m2_get_discrete_bounds): Ditto.
2251 * osdata.c (info_osdata_command): Make it static.
2252 * regcache.c (regcache_observer_target_changed): Make it static.
2253 * reverse.c (_initialize_reverse): Declare before definition.
2254 * stabsread.c (cleanup_undefined_types_noname)
2255 (cleanup_undefined_types_1): Make them static.
2256 * symfile.c (place_section): Make it static.
2257 * symtab.c (find_pc_sect_psymtab_closer): Make it static.
2258 * target-descriptions.c (_initialize_target_descriptions): Declare
2259 before definition.
2260 * target.c (default_get_ada_task_ptid, find_default_can_async_p)
2261 (find_default_is_async_p, find_default_supports_non_stop): Make
2262 them static.
2263 (target_supports_non_stop): Add prototype.
2264 (dummy_pid_to_str): Make it static.
2265 * utils.c (_initialize_utils): Declare before definition.
2266 * ada-exp.y (_initialize_ada_exp): Declare before definition.
2267 * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype.
2268 * target.h (struct target_ops): Add a prototype to the
2269 to_can_execute_reverse callback.
a2f63f5e
AS
2270 * macroscope.c (_initialize_macroscope): Declare before definition.
2271 * cp-namespace.c (_initialize_cp_namespace): Declare before definition.
2c0b251b
PA
2272 * python/python.c (_initialize_python): Declare before definition.
2273 * tui/tui-command.c: Include "tui/tui-command.h".
2274 * tui/tui-data.c (init_content_element, init_win_info): Make them
2275 static.
2276 * tui/tui-disasm.c: Include "tui/tui-disasm.h".
2277 * tui/tui-interp.c (_initialize_tui_interp): Declare before
2278 definition.
2279 * tui/tui-layout.c: Include "tui/tui-layout.h".
2280 (_initialize_tui_layout): Declare before definition.
2281 * tui/tui-regs.c: Include "tui/tui-regs.h".
2282 (tui_display_reg_element_at_line): Make it static.
2283 (_initialize_tui_regs): Declare before definition.
2284 * tui/tui-stack.c (_initialize_tui_stack): Declare before
2285 definition.
2286 * tui/tui-win.c: Include "tui/tui-win.h".
2287 (_initialize_tui_win): Declare before definition.
2288 (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH.
2289 * tui/tui-win.h (tui_sigwinch_handler): Delete declaration.
2290 (tui_get_cmd_list): Add a prototype.
2291 * tui/tui-windata.c: Include tui-windata.h.
2292 * tui/tui-wingeneral.c (box_win): Make it static.
2293 * cli/cli-logging.c (show_logging_command): Make it static.
2294 (_initialize_cli_logging): Declare before definition.
2295 * mi/mi-common.c (_initialize_gdb_mi_common): Declare before
2296 definition.
2297
5aca5a82
PM
22982009-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
2299
08c1f091 2300 Extend use of i386_use_watchpoints to all i386 native files
5aca5a82 2301 using hardware watchpoints.
08c1f091
DE
2302 * go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
2303 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
2304 * windows-nat.c (init_windows_ops): Ditto.
2305 * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
2306 * config/i386/nm-cygwin64.h: Ditto.
2307 * config/i386/nm-fbsd.h: Ditto.
2308 * config/i386/nm-go32.h: Ditto.
5aca5a82 2309
1db300f1
JB
23102009-02-19 Joel Brobecker <brobecker@adacore.com>
2311
2312 * ada-typeprint.c (ada_typedef_print): Remove. Unused.
2313
c86cf029
VP
23142009-02-18 Vladimir Prus <vladimir@codesourcery.com>
2315
2316 * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
2317 (mi_interpreter_init): Register the above.
2318 * solib.c (clear_solib): Notify solib unload.
2319 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
2320 disable breakpoints on a.out targets.
2321
3ea85240
VP
23222009-02-17 Vladimir Prus <vladimir@codesourcery.com>
2323
2324 * observer.c (observer_test_first_notification_function)
2325 (observer_test_second_notification_function)
2326 (observer_test_third_notification_function): Adjust prototype.
2327
4c1d2973
PA
23282009-02-17 Pedro Alves <pedro@codesourcery.com>
2329
2330 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
2331 (ALL_TARGET_OBS): Add dicos-tdep.o.
2332 (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
2333 * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
2334 gdb_target_obs.
2335 (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
2336 gdb_target_obs.
2337 * dicos-tdep.h, dicos-tdep.c: New.
2338 * amd64-dicos-tdep.c: New.
2339 * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
2340 inferior.h. Include dicos-tdep.h.
2341 (i386_dicos_init_abi): Call dicos_init_abi.
2342 (i386_dicos_bfd_has_symbol_p): Delete.
2343 (i386_dicos_osabi_sniffer): Use dicos_load_module_p.
2344
2345 * NEWS: Mention x86-64 DICOS target support.
2346
1903f0e6
DE
23472009-02-16 Doug Evans <dje@google.com>
2348
2349 * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
2350 All callers updated.
2351 (amd64_get_insn_details): Handle more 3-byte opcode insns.
2352 (amd64_breakpoint_p): Delete.
2353 (amd64_displaced_step_fixup): When fixing up after stepping an int3,
2354 don't back up pc to the start of the int3.
2355 * i386-tdep.c: #include opcode/i386.h.
2356 (i386_skip_prefixes): New function.
2357 (i386_absolute_jmp_p): Constify argument.
2358 (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
2359 (i386_breakpoint_p): Delete.
2360 (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
2361 When fixing up after stepping an int3, don't back up pc to the start
2362 of the int3.
2363
959b8724
PA
23642009-02-16 Pedro Alves <pedro@codesourcery.com>
2365
2366 * corelow.c (core_close): Don't hardcode the core's pid.
2367 (core_open): Find core threads before calling
2368 post_create_inferior.
2369 (add_to_thread_list, get_core_register_section): Take into account
2370 systems where the regset section names encode the pid of the
2371 inferior.
2372
2373 * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
2374 * gdbarch.h, gdbarch.c: Regenerate.
2375
2376 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
2377 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
2378 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
2379 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
2380
1d33d6ba
VP
23812009-02-14 Vladimir Prus <vladimir@codesourcery.com>
2382
2383 Include frame information for *stopped due to CLI commands.
2384
a2f63f5e
AS
2385 * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
2386 * infcmd.c (finish_command_continuation): Pass '1' for
2387 'print_frame' parameter to the observer.
2388 * infrun.c (normal_stop): Don't print mi-specific information
2389 here. Pass 'stop_print_frame' to the 'print_frame' parameter
2390 of the observer.
2391 * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
2392 If we need to print frame, and current uiout is not the MI one,
2393 print frame again.
1d33d6ba 2394
2ff5e605
PM
23952009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
2396
2397 * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
2398 Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
2399
5d7cb8df
JK
24002009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2401
2402 PR fortran/9806
2403 * dwarf2read.c (process_die <DW_TAG_module>, read_module)
2404 (scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
2405
868a0084
PM
24062009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
2407
2408 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
5d7cb8df 2409 for DW_ATE_signed_char and DW_ATE_unsigned_char
868a0084
PM
2410 for pascal language.
2411
42e2132c
JK
24122009-02-11 Jim Meyering <meyering@redhat.com>
2413 Jan Kratochvil <jan.kratochvil@redhat.com>
2414
2415 Avoid NULL dereference.
2416 * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
2417 New variable func_type.
2418
315aef0a
PA
24192009-02-11 Pedro Alves <pedro@codesourcery.com>
2420
2421 * gdbarch.c: Regenerate.
2422
58159490
PM
24232009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
2424
2425 * p-lang.c (is_pascal_string_type): Fix comment.
2426 Determine exact size of char elements for GPC
2427 strings.
2428 (pascal_printstr): Handle char width of 2 or 4.
2429 * p-valprint.c (pascal_val_print): Handle char
2430 of width 2 or 4.
a2f63f5e 2431
d3f36a39
DJ
24322009-02-07 Daniel Jacobowitz <dan@codesourcery.com>
2433
2434 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
2435 inside the loop. Only call addrmap_set_empty if the compilation unit
2436 had DW_AT_high_pc and DW_AT_low_pc. Update call to
2437 scan_partial_symbols.
2438 (scan_partial_symbols): Take NEED_PC argument and pass it along with
2439 LOWPC and HIGHPC.
2440 (add_partial_namespace): Take NEED_PC argument and pass it through.
2441 (add_partial_subprogram): Take NEED_PC argument. Update the addrmap
2442 if necessary.
2443
47a3467a
PA
24442009-02-07 Pedro Alves <pedro@codesourcery.com>
2445
2446 * NEWS: Mention inspecting extra signal information, $_siginfo,
2447 and the qXfer:siginfo:read and qXfer:siginfo:write packets.
2448
1ef18d08
PA
24492009-02-07 Pedro Alves <pedro@codesourcery.com>
2450
2451 * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
2452 isn't defined.
2453
5b009018
PA
24542009-02-06 Pedro Alves <pedro@codesourcery.com>
2455
2456 * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
2457 (compat_timer_t, compat_clock_t, struct compat_timeval)
2458 (compat_sigval_t, compat_siginfo_t): New types.
2459 (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
2460 (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
2461 (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
2462 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
2463 (amd64_linux_siginfo_fixup): New.
2464 * linux-nat.c (linux_nat_siginfo_fixup): New.
2465 (siginfo_fixup): New.
2466 (linux_xfer_siginfo): Use siginfo_fixup to convert between the
2467 siginfo layout expected by ptrace and the siginfo layout of the
2468 inferior.
2469 (linux_nat_set_siginfo_fixup): New.
2470 * linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
2471
4aa995e1
PA
24722009-02-06 Pedro Alves <pedro@codesourcery.com>
2473
2474 * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
2475 * infrun.c (siginfo_value_read, siginfo_value_write): New.
2476 (siginfo_value_funcs): New.
2477 (siginfo_make_value): New.
2478 (_initialize_infrun): Create the $_siginfo convenience variable.
2479 * gdbtypes.h (append_composite_type_field_aligned): Declare.
2480 * gdbtypes.c (append_composite_type_field): Rename to...
2481 (append_composite_type_field_aligned): ... this. Add ALIGNMENT
2482 argument. Handle it.
2483 (append_composite_type_field): Rewrite on top of
2484 append_composite_type_field_aligned.
2485 * value.h (internalvar_make_value): New typedef.
2486 (struct internalvar) <make_value>: New field.
2487 (create_internalvar_type_lazy): Declare.
2488 * value.c (create_internalvar): Clear make_value.
2489 (create_internalvar_type_lazy): New.
2490 (value_of_internalvar): If make_value is set use it.
2491 (preserve_values): Skip internal variables that don't have a
2492 value.
2493 * gdbarch.sh (get_siginfo_type): New.
2494 * gdbarch.h, gdbarch.c: Regenerate.
2495
2496 * linux-tdep.h, linux-tdep.c: New.
2497 * amd64-linux-tdep.c: Include "linux-tdep.h".
2498 (amd64_linux_init_abi): Register linux_get_siginfo_type and
2499 linux_get_siginfo_mapper.
2500 * i386-linux-tdep.c: Include "linux-tdep.h".
2501 (i386_linux_init_abi): Register linux_get_siginfo_type and
2502 linux_get_siginfo_mapper.
2503 * arm-linux-tdep.c: Include "linux-tdep.h".
2504 (i386_linux_init_abi): Register linux_get_siginfo_type and
2505 linux_get_siginfo_mapper.
2506
2507 * linux-nat.c (linux_xfer_siginfo): New.
2508 (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
2509 * remote.c (PACKET_qXfer_siginfo_read)
2510 (PACKET_qXfer_siginfo_write): New.
2511 (feature remote_protocol_features): Add "qXfer:siginfo:read" and
2512 "qXfer:siginfo:write" features.
2513 (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
2514 (_initialize_remote): Add "set/show remote read-siginfo-object"
2515 and "set/show remote write-siginfo-object" commands.
2516
2517 * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
2518 (HFILES_NO_SRCDIR): Add linux-tdep.h.
2519 (ALLDEPFILES): Add linux-tdep.c.
a2f63f5e 2520
4aa995e1
PA
2521 * configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
2522 (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
2523 gdb_target_obs.
2524
5f5233d4
PA
25252009-02-06 Jim Blandy <jimb@codesourcery.com>
2526 Daniel Jacobowitz <dan@codesourcery.com>
2527 Vladimir Prus <vladimir@codesourcery.com>
2528 Pedro Alves <pedro@codesourcery.com>
2529
2530 * defs.h (enum lval_type): New value: lval_computed.
2531 * value.h (struct lval_funcs): New type.
2532 (allocate_computed_value, value_computed_funcs)
2533 (value_computed_closure): New declarations.
2534 * value.c (struct value): Add a structure to the location union
2535 for computed lvalues, containing 'funcs' and 'closure' members.
2536 (allocate_computed_value, value_computed_funcs)
2537 (value_computed_closure): New functions.
2538 (value_free): For computed lvalues, call the closure's
2539 'free_closure' function before freeing the value itself.
2540 (value_copy): If we're copying an lval_computed value, call the
2541 closure's 'copy_closure' function.
2542 (set_value_component_location): If the original value is a
2543 computed lvalue, then call the closure's 'copy_closure' function.
2544 (value_of_internalvar): If an internal variable's value is a
2545 computed lvalue, make retrieving its value produce an equivalent
2546 computed lvalue.
2547 * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
2548 their read function.
2549 (value_assign): Assign to computed lvalues by calling their write
2550 function.
2551
117de6a9
PA
25522009-02-06 Pedro Alves <pedro@codesourcery.com>
2553
2554 * linux-nat.c (linux_nat_wait): Adjust.
2555 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
2556 * linux-nat.h (thread_db_init): Delete declaration.
2557 * linux-thread-db.c (target_beneath): Delete.
2558 (thread_db_init): Delete.
2559 (thread_db_detach): Use find_target_beneath.
2560 (thread_db_wait): Adjust interface. Use find_target_beneath.
2561 (thread_db_mourn_inferior): Use find_target_beneath.
2562 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
2563 (thread_db_async_mask): Delete.
2564 (thread_db_pid_to_str): Adjust interface. Use
2565 find_target_beneath.
2566 (thread_db_get_thread_local_address): Adjust interface. Use
2567 find_target_beneath.
2568 (init_thread_db_ops): Delete references to delete functions.
2569 * target.c (update_current_target): Don't inherit or default
2570 to_wait. Don't inherit to_pid_to_str and
2571 to_get_thread_local_address.
2572 (target_translate_tls_address): Look for a pushed target that
2573 implements to_get_thread_local_address, and use it instead of
2574 checking for target_get_thread_local_address_p.
2575 (target_wait, target_pid_to_str): Reimplement as functions.
2576 (dummy_pid_to_str): New.
2577 (init_dummy_target): Register it.
2578 (debug_to_wait): Delete.
2579 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
2580 to_get_thread_local_address accept a pointer to struct target_ops.
2581 (target_wait): Delete macro, and declare as function.
2582 (target_pid_to_str): Likewise.
2583 (target_get_thread_local_address)
2584 (target_get_thread_local_address_p): Delete.
2585 (noprocess): Add NORETURN and ATTR_NORETURN tags.
2586 * inf-ptrace.c (inf_ptrace_wait): Adjust.
2587 (inf_ptrace_pid_to_str): New.
2588 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
2589 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
2590 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
2591 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
2592 Adjust.
2593 * corelow.c (core_pid_to_str): Adjust.
2594 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
2595 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
2596 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
2597 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
2598 * hpux-thread.c (hpux_thread_wait): Adjust.
2599 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
2600 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
2601 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
2602 * procfs.c (procfs_pid_to_str): Adjust.
2603 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
2604 * remote-mips.c (mips_wait): Adjust.
2605 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
2606 * remote.c (remote_wait, remote_pid_to_str)
2607 (remote_get_thread_local_address): Adjust.
2608 * rs6000-nat.c (rs6000_wait): Adjust.
2609 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
2610 (sol_thread_wait, solaris_pid_to_str): Adjust.
2611 * spu-linux-nat.c (spu_child_wait): Adjust.
2612 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
2613
d8906c6f
TJB
26142009-02-06 Tom Tromey <tromey@redhat.com>
2615
2616 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
2617 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
2618 (python-cmd.o): New target.
2619 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
2620 completer prototype.
2621 (add_cmd): Initialize destroyer member of cmd_list_element. Use
2622 make_symbol_completion_list_fn as completer.
2623 (delete_cmd): Call destroyer if one is set.
2624 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
2625 completer member. Add destroyer member.
2626 (set_cmd_completer): Add self parameter to
2627 completer prototype.
2628 * command.h (set_cmd_completer): Add cmd parameter to
2629 completer prototype.
2630 * completer.c (noop_completer, filename_completer,
2631 location_completer, expression_completer, command_completer): Adapt
2632 to new completer prototype.
2633 (complete_line_internal): Pass new parameter to completer function.
2634 * completer.h (noop_completer, filename_completer,
2635 location_completer, expression_completer, command_completer): Adapt
2636 prototypes to new completer prototype.
2637 * interps.c (interpreter_completer): Adapt to new completer
2638 prototype.
2639 * python/python-cmd.c: New file.
2640 * python/python-internal.h (gdbpy_initialize_commands): Add
2641 prototype.
2642 (gdbpy_doc_cst): Add forward declaration.
2643 * python/python.c (gdbpy_doc_cst): Declare.
2644 (_initialize_python): Call gdbpy_initialize_commands. Initialize
2645 gdbpy_doc_cst.
2646 * symtab.c (make_symbol_completion_list_fn): New function.
2647 * symtab.h (make_symbol_completion_list_fn): Add prototype.
2648
739ef7fb
PA
26492009-02-06 Pedro Alves <pedro@codesourcery.com>
2650
2651 * target.c (target_get_osdata): Check for equal or higher than
2652 process_stratum, not dummy_stratum.
2653
6d097e65
PA
26542009-02-06 Pedro Alves <pedro@codesourcery.com>
2655
2656 * remote.c (extended_remote_can_run): Delete.
2657 (init_remote_ops): Don't register it.
2658 * target.c (target_get_osdata): Don't check for target_can_run.
2659 Instead any target that has already been pushed, otherwise
739ef7fb 2660 fallback to the default run target.
6d097e65 2661
947b8855
PA
26622009-02-06 Pedro Alves <pedro@codesourcery.com>
2663
2664 * target.c (target_create_inferior, target_detach)
2665 (target_mourn_inferior, target_attach, target_close): Do target
2666 debug output.
2667 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
2668 (debug_to_mourn_inferior, debug_to_close): Delete.
2669 (setup_target_debug): Adjust.
2670
611041af
PA
26712009-02-05 Pedro Alves <pedro@codesourcery.com>
2672
2673 * target.h (target_stopped_data_address_p): Delete declaration,
2674 and don't define as macro.
2675 * target.c (target_stopped_data_address_p): Delete.
2676
b6cb8e7d
TJB
26772009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2678 Tom Tromey <tromey@redhat.com>
2679
2680 * python/python-utils.c (target_string_to_unicode): New function.
2681 * python/python-internal.h (target_string_to_unicode): New prototype.
2682 * python/python-value.c (valpy_string): New function.
2683 (value_object_methods): Add `string' entry.
2684
54ba13f7
PA
26852009-02-05 Pedro Alves <pedro@codesourcery.com>
2686
2687 * target.h (target_tid_to_str): Delete.
2688 * thread.c (print_thread_info, thread_apply_all_command)
2689 (thread_apply_command, thread_command, do_captured_thread_select):
2690 Use target_pid_to_str instead of target_tid_to_str.
2691 * linux-fork.c (delete_fork_command): Likewise.
2692
9d49bdc2
PA
26932009-02-05 Pedro Alves <pedro@codesourcery.com>
2694
2695 * frame.c (has_stack_frames): Make public.
2696 (get_prev_frame): Don't allow a NULL this_frame anymore.
2697 * frame.h (has_stack_frames): Declare.
2698 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
2699 to get_prev_frame, instead start at get_current_frame.
2700 (varobj_create): Check has_stack_frames before getting any frame;
2701 eliminate one usage of deprecated_safe_get_selected_frame.
2702
12453b93
TJB
27032009-02-05 Tom Tromey <tromey@redhat.com>
2704 Thiago Jung Bauermann <bauerman@br.ibm.com>
2705
2706 * python/python.c (GdbMethods): Move to bottom of file.
2707 (get_parameter, execute_gdb_command, gdbpy_write,
2708 gdbpy_flush): Remove forward declarations.
2709 (eval_python_from_control_command): Fix error checking of function
2710 PyRun_SimpleString. Fix error string.
2711 (python_command): Likewise.
2712 (execute_gdb_command): Added from_tty argument.
2713
ae6a3a4c
TJB
27142009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2715
2716 * language.h (language_dfn): Add la_get_string member.
2717 (LA_GET_STRING): New macro.
2718 (default_get_string): New prototype.
2719 * language.c (default_get_string): New function.
2720 (unknown_language_defn, auto_language_defn, local_language_defn): Use
2721 default_get_string for la_get_string.
2722 * c-lang.c (c_get_string): New function.
2723 (c_language_defn, cplus_language_defn, asm_language_defn): Use
2724 c_get_string for la_get_string.
2725 (minimal_language_defn): Likewise
2726 * ada-lang.c (ada_language_defn): Likewise.
2727 * f-lang.c (f_language_defn): Use default_get_string for
2728 la_get_string.
2729 * jv-lang.c (java_language_defn): Likewise.
2730 * m2-lang.c (m2_language_defn): Likewise.
2731 * objc-lang.c (objc_language_defn): Likewise.
2732 * p-lang.c (p_language_defn): Likewise.
2733 * scm-lang.c (scm_language_defn): Likewise.
2734 * typeprint.c (type_to_string): New function.
2735 * value.h (type_to_string): New prototype.
2736 * valprint.c (val_print_string): Factor out code for reading string
2737 from the inferior into its own function. Put 2 spaces after period
2738 in comments.
2739 (read_string): New function.
2740 * valprint.h (read_string): New prototype.
2741
fa8a61dc
TT
27422009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
2743 Tom Tromey <tromey@redhat.com>
2744
2745 PR breakpoints/8079:
2746 * breakpoint.c (print_one_breakpoint): Use exp_string field
2747 to display expression of watchpoints.
2748 (mention): Likewise.
2749 (watch_command_1): Remove trailing whitespace from expression.
2750 * printcmd.c (struct display) <exp_string>: New field.
2751 (display_command): Set exp_string.
2752 (free_display): Free exp_string.
2753 (clear_displays): Use free_display.
2754 (do_one_display): Print exp_string.
2755 (display_info): Likewise.
2756
08c637de
TJB
27572009-02-04 Tom Tromey <tromey@redhat.com>
2758 Thiago Jung Bauermann <bauerman@br.ibm.com>
2759 Phil Muldoon <pmuldoon@redhat.com>
2760
2761 * python/python-internal.h (gdbpy_get_value_from_history): Rename
2762 prototype to gdbpy_history.
2763 (gdbpy_is_string): Declare.
2764 (python_string_to_host_string): Declare.
2765 * python/python-utils.c (gdbpy_is_string): New function.
2766 (unicode_to_encoded_string): New function.
2767 (unicode_to_target_string): Use it.
2768 (python_string_to_host_string): New function.
2769 * python/python-value.c (valpy_address): New function.
2770 (convert_value_from_python): Use gdbpy_is_string. Change to throw
2771 Python exception instead of a GDB exception on error. Properly check
2772 Python booleans.
2773 (valpy_getitem): Convert field name to host string. Handle array
2774 accesses. Adapt to new behaviour of convert_value_from_python.
2775 (valpy_new): Adapt to new behaviour of convert_value_from_python.
2776 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
2777 VALPY_BITXOR, VALPY_BITOR>: New constants.
2778 (valpy_binop): Update. Adapt to new behaviour of
2779 convert_value_from_python.
2780 (valpy_invert): New function.
2781 (valpy_lsh): Likewise.
2782 (valpy_rsh): Likewise.
2783 (valpy_and): Likewise.
2784 (valpy_or): Likewise.
2785 (valpy_xor): Likewise.
2786 (valpy_richcompare): Call convert_value_from_python instead of doing
2787 conversions itself.
2788 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
2789 (gdbpy_get_value_from_history): Rename
2790 function to gdbpy_history.
2791 (gdbpy_initialize_values): Don't set tp_new.
2792 (value_object_type): Add valpy_new.
2793 (value_object_methods): Add `address' entry.
2794 (value_object_as_number): Update for new methods.
2795 * python/python.c (GdbMethods): Rename entry from
2796 `get_value_from_history' to `history'.
2797
538e13a6 27982009-02-04 Jerome Guitton <guitton@adacore.com>
b5304971
JG
2799
2800 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
2801 of type to guard against a crash.
2802
33d502b4
JG
28032009-02-04 Jerome Guitton <guitton@adacore.com>
2804
2805 * value.c (value_from_contents_and_address): Always return
2806 a lval_memory value, even if address is null.
2807
9f08ae4f
TG
28082009-02-04 Tristan Gingold <gingold@adacore.com>
2809
2810 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
2811 (amd64_darwin_sigcontext_addr): Ditto.
2812 (darwin_dwarf_signal_frame_p): Ditto.
2813 (i386_darwin_init_abi): Handle signal frames, use the const for
2814 sc_num_regs.
2815 (x86_darwin_init_abi_64): Ditto.
2816
4bd207ef
TG
28172009-02-04 Tristan Gingold <gingold@adacore.com>
2818
2819 * i386-tdep.c (i386_sigtramp_p): Make it public.
2820 * i386-tdep.h (i386_sigtramp_p): Declare.
2821
4aa99a88
TG
28222009-02-04 Tristan Gingold <gingold@adacore.com>
2823
2824 * machoread.c (macho_symfile_read): Read minsymtab also from
2825 shared libraries.
2826 (macho_symfile_read): Try to read dwarf2 frame info from main
2827 object file, but not from OSO files.
2828 (macho_symfile_offsets): Update section names for latest BFD
2829 changes.
2830 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
2831 (x86_darwin_init_abi_64): Ditto.
2832 * solib-darwin.c: New file.
2833 * solib-darwin.h: New file.
2834 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
2835
7a848be1
TG
28362009-02-04 Tristan Gingold <gingold@adacore.com>
2837
2838 * solist.h (struct target_so_ops): Comment fallback behavior for
2839 operation same.
2840
b32d97f3
TT
28412009-02-03 Tom Tromey <tromey@redhat.com>
2842
2843 * completer.c (add_struct_fields): Check type_name against NULL
2844 before use.
2845
692263b8
JB
28462009-02-03 Joel Brobecker <brobecker@adacore.com>
2847
2848 * MAINTAINERS: Update Elena's email address.
2849
bfa149ac
JB
28502009-02-02 Joel Brobecker <brobecker@adacore.com>
2851
2852 * breakpoint (update_watchpoint): Minor comment adjustment.
2853
1c71341a
TT
28542009-02-02 Tom Tromey <tromey@redhat.com>
2855
52e44b43 2856 PR gdb/9594:
1c71341a
TT
2857 * completer.c (count_struct_fields): Count method names.
2858 (add_struct_fields): Add matching method names.
2859
85541719
DE
28602009-02-02 Doug Evans <dje@google.com>
2861
2862 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
2863 doing any further tcl/tk configury. Don't configure gdbtk if
2864 tcl or tk check fails.
2865 * aclocal.m4: Regenerate.
2866 * configure: Regenerate.
2867
a4295225
TT
28682009-02-02 Tom Tromey <tromey@redhat.com>
2869
2870 PR exp/9059:
2871 * valops.c (find_overload_match): Follow typedefs before taking
2872 address of object argument.
2873
f00150c9
DE
28742009-02-01 Doug Evans <dje@google.com>
2875
2876 * target.h (target_waitstatus_to_string): Declare.
2877 * target.c (target_waitstatus_to_string): New function. Copied from
2878 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
2879 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
2880 TARGET_WAITKIND_NO_HISTORY.
2881 (debug_to_wait): Call it.
2882 * infrun.c (wait_for_inferior): If debug_infrun, print result of
2883 target_wait.
2884 (fetch_inferior_event): Ditto.
2885
5abdf4bd
TT
28862009-01-30 Tom Tromey <tromey@redhat.com>
2887
2888 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
2889
592375cd
VP
28902009-01-30 Vladimir Prus <vladimir@codesourcery.com>
2891
2892 PR 8145.
2893 * thread.c (do_captured_list_thread_ids): Report the current
2894 thread id.
2895
41447f92
VP
28962009-01-30 Vladimir Prus <vladimir@codesourcery.com>
2897
2898 * breakpoint.c (create_breakpoint, create_breakpoints)
2899 (break_command_really, set_breakpoint): New parameter enabled.
2900 (create_breakpoint, break_command_really): Make breakpoint
2901 disabled if so requested.
2902 * breakpoint.h (set_breakpoint): New parameter enabled.
2903 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
2904
35669430
DE
29052009-01-28 Doug Evans <dje@google.com>
2906
2907 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
2908 (amd64_displaced_step_fixup): Declare.
2909 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
2910 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
2911 and make static global.
2912 (amd64_arch_regmap_len): New static global.
2913 (amd64_arch_reg_to_regnum): New function.
2914 (struct amd64_insn): New struct.
2915 (struct displaced_step_closure): New struct.
2916 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
2917 (rex_prefix_p,skip_prefixes)
2918 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
2919 (amd64_insn_length,amd64_get_unused_input_int_reg)
2920 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
2921 (amd64_displaced_step_copy_insn)
2922 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
2923 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
2924 (amd64_displaced_step_fixup): New functions.
2925 * amd64-linux-tdep.c: #include arch-utils.h.
2926 (amd64_linux_init_abi): Install displaced stepping support.
2927
4eb7c016
JG
29282009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
2929 Jerome Guitton <guitton@adacore.com>
2930
2931 * configure, config.in: Regenerated.
2932 * configure.ac: Add --with-system-gdbinit.
2933 * main.c (get_init_files): New.
2934 (captured_main): Use get_init_files. Load system gdbinit before
2935 $HOME/.gdbinit.
2936 (print_gdb_help): Print location of init files.
2937
7df3ce47
PA
29382009-01-28 Pedro Alves <pedro@codesourcery.com>
2939
2940 * corefile.c (generic_search): Delete disabled code.
2941 * gdbcore.h (generic_search): Delete declaration.
2942
77435e4c
PA
29432009-01-26 Pedro Alves <pedro@codesourcery.com>
2944
2945 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
2946 parent to the child.
2947 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2948 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
2949 remove_breakpoints to remove breakpoints from the parent.
2950
1e275f79
PA
29512009-01-26 Pedro Alves <pedro@codesourcery.com>
2952
7488432f 2953 PR backtrace/9458, PR backtrace/8864:
1e275f79
PA
2954 * frame.c (create_new_frame): Update the frame's cached PC before
2955 finding its unwinder. Use frame_id_build to build the new frame's
2956 id.
2957 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
2958 array values from the ``args'' array values.
2959
1deafd4e
PA
29602009-01-26 Pedro Alves <pedro@codesourcery.com>
2961
2962 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
2963 (create_array_type, create_set_type, init_flags_type)
2964 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
2965 with a call to XZALLOC or XCALLOC, and pairs of calls to
2966 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
2967
3c16cced
PA
29682009-01-26 Pedro Alves <pedro@codesourcery.com>
2969
2970 Add "maint set|show internal-error|internal-warning quit|corefile
2971 ask|yes|no" commands.
2972
2973 PR gdb/7580:
2974 * utils.c (internal_problem_ask, internal_problem_yes)
2975 (internal_problem_no, internal_problem_modes): New.
2976 (struct internal_problem): Remove FIXME. Make should_quit and
2977 should_dump_core types to char *.
2978 (internal_vproblem, internal_error_problem)
2979 (internal_warning_problem): Adjust.
2980 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
2981 functions.
2982 (add_internal_problem_command): New.
2983 (_initialize_utils): New.
2984
616d7dd2
PA
29852009-01-25 Pedro Alves <pedro@codesourcery.com>
2986
2987 * infcmd.c (program_info): Use paddress instead of casting stop_pc
2988 to unsigned long.
2989
0516318b
PA
29902009-01-24 Pedro Alves <pedro@codesourcery.com>
2991
2992 * infrun.c (normal_stop): Don't call
2993 deprecated_update_frame_pc_hack.
2994 * frame.c (deprecated_update_frame_pc_hack)
2995 (deprecated_update_frame_base_hack): Delete, and ...
2996 (create_new_frame): ... inline here.
2997 * frame.h (deprecated_update_frame_pc_hack)
2998 (deprecated_update_frame_base_hack): Delete declarations.
2999
1e8fb976
PA
30002009-01-23 Pedro Alves <pedro@codesourcery.com>
3001
3002 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
3003 * cli/cli-setshow.c (do_setshow_command): Handle it.
3004 * command.h (enum var_types): Add var_zuinteger.
3005 (add_setshow_zuinteger_cmd): Declare.
3006
3007 * valprint.c (_initialize_valprint): Change the set input-radix
3008 and set output-radix commands to zuinteger type.
3009
dd7e2d2b
PA
30102009-01-23 Pedro Alves <pedro@codesourcery.com>
3011
3012 PR gdb/9664:
3013 * infrun.c (normal_stop): Tag threads as stopped, and run the
3014 hook-stop before printing the stack frame.
3015
392452f6
PA
30162009-01-22 Pedro Alves <pedro@codesourcery.com>
3017
3018 PR c++/9631:
3019 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
3020 vbasetype.
3021
f6a96b83
KH
30222009-01-20 Kazu Hirata <kazu@codesourcery.com>
3023
3024 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
3025 unsigned long.
3026
5d277928 30272009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
a12cc160
DJ
3028
3029 PR gdb/9346
3030 * infcmd.c (signal_command): Do not specify a resume PC.
3031
b89667eb
DE
30322009-01-19 Doug Evans <dje@google.com>
3033
3034 * dummy-frame.c (dummy_frame): Replace regcache member with
3035 caller_state.
3036 (dummy_frame_push): Replace caller_regcache arg with caller_state.
3037 All callers updated.
3038 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
3039 (dummy_frame_pop): Rewrite. Verify requested frame is in the
3040 dummy frame stack. Restore program state.
3041 (cleanup_dummy_frames): Rewrite.
3042 (dummy_frame_sniffer): Update. Make static.
3043 * dummy-frame.h (regcache,frame_info): Delete forward decls.
3044 (inferior_thread_state): New forward decl.
3045 (dummy_frame_push): Update prototype.
3046 * frame.c (frame_pop): dummy_frame_pop now does all the work for
3047 DUMMY_FRAMEs.
3048 * infcall.c (breakpoint_auto_delete_contents): Delete.
3049 (get_function_name,run_inferior_call): New fns.
3050 (call_function_by_hand): Simplify by moving some code to
3051 get_function_name, run_inferior_call. Inferior function call wrapped
3052 in TRY_CATCH so there's less need for cleanups and all exits from
3053 proceed are handled similarily. Detect program exit.
3054 Detect program stopping in a different thread.
3055 Make error messages more consistent.
3056 * inferior.h (inferior_thread_state): Declare (opaque type).
3057 (save_inferior_thread_state,restore_inferior_thread_state,
3058 make_cleanup_restore_inferior_thread_state,
3059 discard_inferior_thread_state, get_inferior_thread_state_regcache):
3060 Declare.
3061 (save_inferior_status): Update prototype.
3062 * infrun.c: (normal_stop): When stopped for the completion of an
3063 inferior function call, verify the expected stack frame kind.
3064 (inferior_thread_state): New struct.
3065 (save_inferior_thread_state,restore_inferior_thread_state,
3066 do_restore_inferior_thread_state_cleanup,
3067 make_cleanup_restore_inferior_thread_state,
3068 discard_inferior_thread_state,
3069 get_inferior_thread_state_regcache): New functions.
3070 (inferior_status): Move stop_signal, stop_pc, registers to
3071 inferior_thread_state. Remove restore_stack_info.
3072 (save_inferior_status): Remove arg restore_stack_info.
3073 All callers updated. Remove saving of state now saved by
3074 save_inferior_thread_state.
3075 (restore_inferior_status): Remove restoration of state now done by
3076 restore_inferior_thread_state.
3077 (discard_inferior_status): Remove freeing of registers, now done by
3078 discard_inferior_thread_state.
3079
aefc7064
PA
30802009-01-18 Pedro Alves <pedro@codesourcery.com>
3081
3082 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
3083 at a time, times NUM_TO_SCROLL.
3084 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
3085 fetch the selected frame if there is no stack.
3086
29f49a6a
PA
30872009-01-18 Pedro Alves <pedro@codesourcery.com>
3088
3089 PR gdb/9747:
3090 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
3091 Declare.
3092 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
3093 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
3094 is thrown while handling an event, finish the thread state.
3095 (normal_stop): Use finish_thread_state cleanup.
3096 * infcmd.c (run_command_1): If an error is thrown while starting
3097 the inferior, finish the thread state.
3098
e7243d73
PA
30992009-01-18 Pedro Alves <pedro@codesourcery.com>
3100
3101 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
3102 skip breakpoints without a location (pending breakpoints).
3103
e74994b5
PA
31042009-01-18 Pedro Alves <pedro@codesourcery.com>
3105
3106 PR build/9186:
3107 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
3108
8405c36e
NR
31092009-01-18 Nick Roberts <nickrob@snap.net.nz>
3110
3111 * thread.c (thread_command): Move call to annotate_thread_changed
3112 to...
3113 (do_captured_thread_select): ... here, to avoid printing an
3114 annotation if the thread change generates an exception.
3115
b8bfd3ed
JB
31162009-01-16 Joel Brobecker <brobecker@adacore.com>
3117
3118 * NEWS: Document x86_64/MinGW as a new native configuration.
3119
2dde91e9
JB
31202009-01-16 Joel Brobecker <brobecker@adacore.com>
3121
3122 * NEWS: Move the documentation of "info os processes" to
3123 the appropriate section (documenting the new commands).
3124
54363045
DE
31252009-01-15 Doug Evans <dje@google.com>
3126
3127 * target.h (target_signal_to_string): Make return type const char *.
3128 (target_signal_to_name): Ditto.
3129 (target_signal_from_name): Make arg const char *.
54363045 3130 * infrun.c (sig_print_info): Update.
54363045
DE
3131 * signals/signals.c (signals): Make array and struct members const.
3132 (target_signal_to_string): Make return type const char *.
3133 (target_signal_to_name): Ditto.
3134 (target_signal_from_name): Make arg const char *.
3135
572d275c
UW
31362009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
3137 Tristan Gingold <gingold@adacore.com>
3138
3139 * solist.h (struct target_so_ops): New member bfd_open.
3140 (solib_find): Add prototype.
3141 (solib_bfd_fopen): Add prototype.
3142 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
3143 from solib_bfd_open.
3144 (solib_bfd_open): Use ops->bfd_open override if present. Call
3145 solib_find and solib_bfd_open otherwise.
3146
3147 * objfiles.h (OBJF_KEEPBFD): New define.
3148 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
3149 objfile flag is set.
3150 * solib.c (symbol_add_stub): Do not allocate second BFD for
3151 shared library; use OBJF_KEEPBFD flag on solib objfile.
3152
0701b271
UW
31532009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
3154
3155 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
3156
61212c0f
UW
31572009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
3158
3159 * value.h (address_of_variable): Add prototype.
3160 (locate_var_value): Remove prototype.
3161
3162 * findvar.c (read_var_value): Do not attempt to default frame
3163 to selected frame.
3164 (locate_var_value): Remove function.
3165 * valops.c (value_of_variable): Retrieve selected frame for
3166 symbols that require a frame when called with NULL block.
3167 * valops.c (address_of_variable): New function.
3168
3169 * eval.c (evaluate_subexp_for_address): Call address_of_variable
3170 instead of calling locate_var_value.
3171 (evaluate_subexp_with_coercion): Likewise.
3172
adb483fe
DJ
31732009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
3174
3175 * NEWS: Document "define" for prefixed commands.
3176 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
3177 show_user_1 for prefix commands.
3178 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
3179 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
3180 commands. Return the containing command list.
3181 (define_command, document_command): Update to handle prefix commands.
3182 (show_user_1): Add prefix and name arguments. Handle prefix
3183 commands.
3184 * cli/cli-script.h (show_user_1): Update prototype.
3185
a32d7317
KT
31862009-01-14 Kai Tietz <kai.tietz@onevision.com>
3187
3188 * mingw-ser.c (console_select_thread): Add return to make
3189 compiler happy.
3190 (pipe_select_thread): Likewise.
3191 (file_select_thread): Likewise.
3192
041d0fd7
PA
31932009-01-14 Pedro Alves <pedro@codesourcery.com>
3194
3195 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
3196 previous change.
3197
dc1981d7
PA
31982009-01-14 Pedro Alves <pedro@codesourcery.com>
3199
3200 * remote.c (extended_remote_mourn_1): Invalidate our notion of
3201 current general thread.
3202
244bf9ae
PA
32032009-01-14 Pedro Alves <pedro@codesourcery.com>
3204
3205 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
3206 without a live selected thread.
3207
e4d013fc
JB
32082009-01-14 Joel Brobecker <brobecker@adacore.com>
3209
3210 Update the copyright notice of some of the files I missed
3211 in the previous copyright update.
3212
a588db63
JB
32132009-01-14 Joel Brobecker <brobecker@adacore.com>
3214
3215 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
3216 base address instead of casting it to DWORD.
3217
77a732d9
UW
32182009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
3219
3220 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
3221 for NULL frame pointers.
3222
773698b5
JB
32232009-01-13 Mark Kettenis <kettenis@gnu.org>
3224
3225 * utils.c (host_address_to_string): Reimplement in a way that
3226 avoids the cast of the address to long.
3227
9918cab9
JB
32282009-01-13 Joel Brobecker <brobecker@adacore.com>
3229
3230 * mdebugread.c (parse_symbol): Save the symbol private data
3231 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
3232 (psymtab_to_symtab_1): Likewise.
3233 (parse_procedure): Declare variable "e" only in the scope
3234 where it is used. Extract the symbol private data using
3235 SYMBOL_VALUE_BYTES.
3236
74bcbdf3
PA
32372009-01-13 Jim Blandy <jimb@codesourcery.com>
3238
3239 Abstract out common code for copying value locations.
3240
3241 * value.h (set_value_component_location): New declaration.
3242 * value.c (set_value_component_location): New function.
3243 (value_primitive_field): Use it.
3244 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
3245 * valops.c (search_struct_field, value_slice): Same.
3246 * ada-lang.c (coerce_unspec_val_to_type)
3247 (ada_value_primitive_packed_val): Same.
3248
d7dc3873
JB
32492009-01-13 Joel Brobecker <brobecker@adacore.com>
3250
3251 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
3252
dc05df57
CF
32532009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
3254
3255 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
3256 throughout.
3257 * i386-cygwin-tdep.c: Ditto.
3258 * i386-windows-nat.c: Ditto.
3259 * windows-nat.h: Ditto.
3260 * windows-tdep.c: Ditto.
3261 * windows-tdep.h: Ditto.
3262 * windows-nat.c: Ditto.
3263 (cygwin_load_start): Redefine as CORE_ADDR.
3264 (cygwin_load_end): Ditto.
b8511eeb 3265 (windows_make_so): Coerce result of address arithmetic to uintptr_t
dc05df57
CF
3266 before coercing to CORE_ADDR to avoid a compiler warning.
3267 (handle_exception): Define addr as CORE_ADDR and coerce
3268 ExceptionAddress to uintptr_t before assigining to avoid a compiler
3269 warning.
3270 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
3271 files.
3272
31b060a2
CF
32732009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3274
3275 Fix linking with --enable-targets=all:
3276 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
3277 (HFILES_NO_SRCDIR): Add windows-tdep.h.
3278 (ALLDEPFILES): Add windows-tdep.c.
3279
f3b6bd60 32802009-01-11 Chris Faylor <me.gdb@cgf.cx>
31b060a2
CF
3281
3282 * win32-nat.h: Delete.
3283 * windows-nat.h: Rename from win32-nat.h.
3284 * win32-nat.c: Delete.
3285 * windows-nat.c: Rename from win32-nat.c.
3286 * win32-termcap.c: Delete.
3287 * windows-termcap.c: Rename from win32-termcap.c.
3288 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
3289 * configure.ac: Handle rename from win32-termcap.c ->
3290 windows-termcap.c.
3291 * configure: Regenerate.
3292 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
3293 -> windows-termcap.c.
3294 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
3295 windows-tdep.h.
3296 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
3297 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
3298 windows-tdep.h.
3299 (win32_make_so): Handle cygwin compiler warning due to change of
3300 load_addr from DWORD to LPVOID.
3301 (handle_load_dll): Use %p in format string to properly print address
3302 and avoid a compiler warning.
3303 (DEBUG_EXCEPTION_SIMPLE): Ditto.
3304 (handle_exception): Ditto.
3305 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
3306 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
3307 windows-nat.o.
3308 * config/i386/mingw.mh: Ditto.
3309 * config/i386/mingw64.mh: Ditto.
3310
0311118f
JK
33112009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3312
3313 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
3314 arrayprint_recurse_level to a parameter. Update all the callers. New
3315 comment at autovariables.
3316
5f61c20e
JK
33172009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3318
3319 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
3320 coding style.
3321
33222009-01-11 Joel Brobecker <brobecker@adacore.com>
53b71562
JB
3323
3324 * target.c (target_xfer_partial): Use host_address_to_string to
3325 print the address of readbuf and writebuf. Cast the address of
3326 elements inside the myaddr buffer into intptr_t.
3327 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
3328 Cast the address of elements inside the myaddr buffer into
3329 intptr_t.
3330
5f61c20e 33312009-01-11 Joel Brobecker <brobecker@adacore.com>
d0761299
JB
3332
3333 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
3334 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
3335 * configure.host, configure.tgt: Add handling for x86_64/windows.
3336 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
3337 and amd64-windows-tdep.c.
3338
5f61c20e 33392009-01-11 Joel Brobecker <brobecker@adacore.com>
bfb87e33
JB
3340
3341 * win32-tdep.h, win32-tdep.c: New files.
3342 * i386-cygwin-tdep.h: Delete.
3343 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
3344 i386-cygwin-tdep.h.
3345 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
3346 * win32-nat.c: Likewise.
3347 * configure.tgt: Add win32-tdep.o to the list of target object
3348 files for i386-cygwin and i386-mingw targets.
3349
5f61c20e 33502009-01-11 Joel Brobecker <brobecker@adacore.com>
7e63b4e4
JB
3351
3352 * win32-nat.h: New file.
3353 * win32-nat.c (mappings): Initialize to NULL.
3354 (win32_set_context_register_offsets): New function.
3355 * i386-windows-nat.c: New file.
3356 (mappings): Moved here from win32-nat.c.
3357 (_initialize_i386_windows_nat): New function.
3358 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
3359 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
3360
25fc6591
AS
33612009-01-09 Andreas Schwab <schwab@suse.de>
3362
3363 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
3364
87f70781
PA
33652009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
3366
3367 * gdbtypes.c (append_composite_type_field): Correct the location of
3368 appended fields.
3369
58d4abe1
PA
33702009-01-09 Pedro Alves <pedro@codesourcery.com>
3371
3372 * defs.h (deprecated_error_hook): Delete declaration.
3373 * interps.c (clear_interpreter_hooks): Adjust.
3374 * remote-sim.c (gdb_os_error): Don't try to call
3375 deprecated_error_hook. No need to call exit anymore.
3376 * top.c (deprecated_error_hook): Delete.
3377
e3cb3832
JB
33782009-01-09 Joel Brobecker <brobecker@adacore.com>
3379
3380 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
3381 to print the address of the gdbarch pointer.
3382
30737ed9
JB
33832009-01-09 Joel Brobecker <brobecker@adacore.com>
3384
3385 * gdbarch.sh: Fix all the compilation errors on amd64-windows
3386 due to casting a pointer to a long when printing a function
3387 address. Instead, use host_address_to_string to convert our
3388 address to a string.
3389 * gdbarch.c: Regenerate.
3390
ec4dfccf
JB
33912009-01-09 Joel Brobecker <brobecker@adacore.com>
3392
3393 * event-top.c (async_disconnect, async_stop_sig): use "raise"
3394 instead of "kill" to raise a signal.
3395
d3653bf6
JB
33962009-01-09 Joel Brobecker <brobecker@adacore.com>
3397
3398 * win32-nat.c (get_module_name): Change the type of parameter
3399 "base_address" to LPVOID. Remove unnecessary cast.
3400 (struct lm_info): Change type of load_addr to LPVOID.
3401 (win32_make_so): Change the type of parameter "load_addr"
3402 to LPVOID. Remove some unnecessary casts.
3403 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
3404 (win32_xfer_shared_libraries): Add missing cast.
3405
308a8808
JB
34062009-01-09 Joel Brobecker <brobecker@adacore.com>
3407
3408 * win32-nat.c (has_detach_ability, set_process_privilege):
3409 Cast the result of GetProcAddress to (void *) to avoid
3410 a compilation warning.
3411
5851ab76
JB
34122009-01-09 Joel Brobecker <brobecker@adacore.com>
3413
3414 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
3415 already defined.
3416
5732a500
JB
34172009-01-09 Joel Brobecker <brobecker@adacore.com>
3418
3419 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
3420 definition of local variable "done".
3421 (info_w32_command, handle_exception): Remove unnecessary cast.
3422
def4de3a
JB
34232009-01-09 Joel Brobecker <brobecker@adacore.com>
3424
3425 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
3426 DebugSetProcessKillOnExit. Update all uses in this file.
3427 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
3428 Update all uses in this file.
3429
34302009-01-09 Joel Brobecker <brobecker@adacore.com>
0795be10
JB
3431
3432 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
3433 and use it when pushing the target.
3434 (win32_attach, win32_create_inferior): Update call to
3435 do_initial_win32_stuff.
3436 (win32_detach, win32_mourn_inferior): Use our ops parameter
3437 instead of the global win32_ops to unpush the target.
3438
1be7fe8d
JB
34392009-01-09 Joel Brobecker <brobecker@adacore.com>
3440
3441 * ser-mingw.c (ser_windows_open): Use proper type when casting
3442 in call to _open_osfhandle.
3443
1dac1b47
KT
34442009-01-09 Kai Tietz <kai.tietz@onevision.com>
3445
3446 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
3447
ecf180db
JB
34482009-01-09 Joel Brobecker <brobecker@adacore.com>
3449
3450 * CONTRIBUTE: Minor reformatting.
3451
8234eceb
KT
34522009-01-08 Kai Tietz <kai.tietz@onevision.com>
3453
3454 * MAINTAINERS: Add myself to Write After Approval.
a68ddad5
KT
3455 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
3456 export directory.
8234eceb 3457
72ee8797
NF
34582009-01-08 Nathan Froyd <froydnj@codesourcery.com>
3459
3460 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
3461 Call exit to make it obvious to GCC.
3462
f7545552
TT
34632009-01-08 Tom Tromey <tromey@redhat.com>
3464
3465 PR breakpoints/9350:
3466 * varobj.c (varobj_invalidate): Unconditionally free
3467 all_rootvarobj.
3468 * symfile.c (syms_from_objfile): Free local_addr when returning
3469 normally.
3470 * exec.c (exec_file_attach): Do cleanups before returning.
3471 (exec_file_command): Likewise.
3472 * corefile.c (reopen_exec_file): Do cleanups before returning.
3473 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
a2f63f5e 3474 returning.
f7545552
TT
3475 (do_vec_free): New function.
3476 (update_global_location_list): Make a cleanup for old_locations.
3477 Do cleanups before returning. Remove unused variable 'e'.
3478 (find_condition_and_thread): Free result of parsing the
3479 expression.
3480 (print_it_typical): Do cleanups before returning.
3481 (breakpoint_re_set_one): Always free sals.sals.
3482
dde02812
ES
34832009-01-08 Joel Brobecker <brobecker@adacore.com>
3484 Emi Suzuki <emi-suzuki@tjsys.co.jp>
a2f63f5e 3485
dde02812
ES
3486 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
3487 watchpoints.
3488
69bcc6bc
DE
34892009-01-07 Doug Evans <dje@google.com>
3490
3491 * top.c (gdb_prompt_string): Delete, unused.
3492
fa3a767f
PA
34932009-01-07 Pedro Alves <pedro@codesourcery.com>
3494
3495 Delete ONE_PROCESS_WRITETEXT leftovers.
3496
3497 * breakpoint.c (insert_bp_location): Delete process_warning
3498 argument. Adjust.
3499 (insert_breakpoint_locations): Adjust.
3500 (reattach_breakpoints): Adjust.
3501 * infrun.c (normal_stop): Drop "It might be running in another
3502 process" notice.
3503
7b93f36d
SS
35042009-01-07 Stan Shebs <stan@codesourcery.com>
3505
3506 * config/pa/linux.mh (XDEPFILES): Remove.
3507
0380c18b
DE
35082009-01-07 Doug Evans <dje@google.com>
3509
3510 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
3511
60023297
JK
35122009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3513
3514 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
3515 spacing, a regression from 2008-04-22.
3516
ea8992ce
JB
35172009-01-07 Joel Brobecker <brobecker@adacore.com>
3518
3519 * utils.c (gdb_print_host_address): Adjust implementation to
3520 reuse host_address_to_string. Move comment explaining the conversion
3521 from host address to string from here...
3522 (host_address_to_string): ... to there.
3523
301d2c47
ES
35242009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
3525
3526 * MAINTAINERS: Add myself for write after approval privileges.
3527
170ce852
TT
35282009-01-06 Tom Tromey <tromey@redhat.com>
3529
3530 * value.c (set_internalvar): Use value_free, not xfree.
3531
fdb7262a
JB
35322009-01-06 Jim Blandy <jimb@red-bean.com>
3533
bf1d7d9c
JB
3534 Check return values of functions declared with warn_unused_result
3535 attribute in GLIBC 2.8.
3536 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
3537 * inflow.c (check_syscall): New function.
3538 (new_tty): Use check_syscall to check return values from open and dup.
3539 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
3540 * main.c (captured_main): Call cwd after setting up gdb_stderr;
3541 check for errors from getcwd.
3542 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
3543 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
3544 (stdio_file_fputs): Same.
3545 * utils.c (internal_vproblem): abort if last-ditch error message
3546 write fails.
3547
fdb7262a
JB
3548 * top.c (gdb_init): Don't set the current directory here; that's
3549 already been done in captured_main.
3550
84603566
SL
35512009-01-06 Sandra Loosemore <sandra@codesourcery.com>
3552
3553 * ser-tcp.c: Adjust includes.
3554 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
3555 (tcp_auto_retry, tcp_retry_limit): Declare.
3556 (TIMEOUT): Remove, in favor of tcp_retry_limit.
3557 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
3558 (wait_for_connect): New function.
3559 (net_open): Use it. Add auto-retry logic.
3560 (set_tcp_cmd, show_tcp_cmd): New functions.
3561 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
3562 and "set/show tcp connect-timeout" commands.
3563 * NEWS: Document new commands.
3564
5171e6b3
TT
35652009-01-05 Tom Tromey <tromey@redhat.com>
3566
3567 * python/python-internal.h (Py_ssize_t): Define as int.
3568
a367a1f2
JB
35692009-01-05 Jim Blandy <jimb@red-bean.com>
3570
3571 * MAINTAINERS: Fix my e-mail address as steering committee member.
3572
0fb0cc75
JB
35732009-01-03 Joel Brobecker <brobecker@adacore.com>
3574
3575 Updated copyright notices for most files.
3576
c9fc347d
JB
35772009-01-03 Joel Brobecker <brobecker@adacore.com>
3578
3579 * top.c (print_gdb_version): Update copyright year.
3580
a85d99b4
JB
35812009-01-03 Joel Brobecker <brobecker@adacore.com>
3582
3583 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
3584
4d78a120
JB
35852009-01-01 Pedro Alves <pedro@codesourcery.com>
3586
3587 PR breakpoints/9681:
3588 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
3589 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
3590 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
3591 retrow all other exceptions.
3592
67de2a4c 3593For older changes see ChangeLog-2008.
c906108c
SS
3594\f
3595Local Variables:
3596mode: change-log
3597left-margin: 8
3598fill-column: 74
3599version-control: never
57da7796 3600coding: utf-8
c906108c 3601End:
This page took 1.153409 seconds and 4 git commands to generate.