* config/tc-i386.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7155de5a
HZ
12010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2 Hui Zhu <teawater@gmail.com>
3
4 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5 tmp_to_stopped_data_address.
6 (record_open): Reset tmp_to_stopped_by_watchpoint and
7 tmp_to_stopped_data_address.
8 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9 to_stopped_data_address.
10
580879fc
HZ
112010-03-08 Hui Zhu <teawater@gmail.com>
12
13 * i386-tdep.c (i386_process_record): Initialize regnum.
14
b0fcb67f
JK
152010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16
17 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
18 Do not warn on ".gnu.liblist" and ".gnu.conflict".
19
08597104
JB
202010-03-08 Joel Brobecker <brobecker@adacore.com>
21
22 Memory error when reading wrong core file.
23 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
24 errors while reading the inferior memory, and return zero if
25 an exception was raised.
26
425b824a
MS
272010-03-07 Michael Snyder <msnyder@vmware.com>
28
ec6dbf37
MS
29 * record.c (record_restore): Rename tmpu8 to rectype.
30
648d0c8b
MS
31 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
32 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
33
34 (i386_record_push): Rename local tmpulongest to addr.
35
36 (i386_process_record): Rename local tmpulongest to addr.
37
38 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
39 addr64.
955db0c0
MS
40
41 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 42
10760264
JB
432010-03-07 Joel Brobecker <brobecker@adacore.com>
44
45 * remote.c (remote_get_ada_task_ptid): New function.
46 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
47
b3c613f2
CF
482010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
49
50 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
51 block. Define helper macros to reduce ifdefs in code.
52 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
53 size. Call unadorned GetModuleFileNameEx rather than
54 GetModuleFileNameEx*.
55 (windows_make_so): Use __PMAX to denote maximum buffer size and
56 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
57 appropriate.
58 (get_image_name): Use __PMAX to denote maximum buffer size.
59 (handle_load_dll): Likewise.
60 (windows_pid_to_exec_file): Likewise.
61 (windows_create_inferior): Add many accommodations for older Cygwin and
62 non-Cygwin.
63 (bad_GetModuleFileNameExW): Control inclusion of this function based on
64 __USEWIDE conditional.
65 (bad_GetModuleFileNameExA): Likewise.
66 (_initialize_loadable): Just use real function names without the dyn_
67 part since they are defined earlier.
68
f870a310
TT
692010-03-05 Corinna Vinschen <vinschen@redhat.com>
70 Tom Tromey <tromey@redhat.com>
71
72 * utils.c (host_char_to_target): Add 'gdbarch' argument.
73 (parse_escape): Likewise.
74 * python/py-utils.c (unicode_to_target_string): Update.
75 (unicode_to_target_python_string): Update.
76 (target_string_to_unicode): Update.
77 * printcmd.c (printf_command): Update.
78 * p-exp.y (yylex): Update.
79 * objc-exp.y (yylex): Update.
80 * mi/mi-parse.c: Include charset.h.
81 (mi_parse_escape): New function.
82 (mi_parse_argv): Use it.
83 * jv-exp.y (yylex): Update.
84 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
85 function.
86 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
87 * gdbarch.sh (auto_charset, auto_wide_charset): New.
88 * gdbarch.c: Rebuild.
89 * gdbarch.h: Rebuild.
90 * defs.h (parse_escape): Update.
91 * cli/cli-setshow.c: Include arch-utils.h.
92 (do_setshow_command): Update.
93 * cli/cli-cmds.c (echo_command): Update.
94 * charset.h (target_charset, target_wide_charset): Update.
95 * charset.c: Include arch-utils.h.
96 (target_charset_name): Default to "auto".
97 (target_wide_charset_name): Likewise.
98 (show_target_charset_name): Handle "auto".
99 (show_target_wide_charset_name): Likewise.
100 (be_le_arch): New global.
101 (set_be_le_names): Add 'gdbarch' argument.
102 (validate): Likewise. Don't call set_be_le_names.
103 (set_charset_sfunc, set_host_charset_sfunc)
104 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
105 Update.
106 (target_charset): Add 'gdbarch' argument.
107 (target_wide_charset): Likewise. Remove 'byte_order' argument.
108 (auto_target_charset_name): New global.
109 (default_auto_charset, default_auto_wide_charset): New functions.
110 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
111 for target charsets. Copy result of nl_langinfo. Use GetACP if
112 USE_WIN32API.
113 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
114 remove 'byte_order' argument. Update.
115 (classify_type): Likewise.
116 (c_emit_char): Update.
117 (c_printchar): Update.
118 (c_printstr): Update.
119 (c_get_string): Update.
120 (evaluate_subexp_c): Update.
121 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
122 Declare.
123 * python/python.c (gdbpy_target_charset): New function.
124 (gdbpy_target_wide_charset): Likewise.
125 (GdbMethods): Update.
126 * NEWS: Update.
127
4e7386b0
UW
1282010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
129
130 * symfile.c (build_section_addr_info_from_objfile): Do not mask
131 off high address bits.
132
aab48ede
UW
1332010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
134
135 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
136 address as UnsignedLongLong, not LongLong.
137
8eeafb51
KB
1382010-03-05 Kevin Buettner <kevinb@redhat.com>
139 Pedro Alves <pedro@codesourcery.com>
140
141 * remote-mips.c (gdbthread.h): Include.
142 (remote_mips_ptid): Declare.
143 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
144 (common_open): Set inferior_ptid, add it as an inferior, and
145 as a thread too. Delete FIXME comment regarding start_remote().
146 (mips_close): Invoke generic_mourn_inferior().
147 (mips_kill): Make sure that target_mourn_inferior is invoked.
148 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
149 it's now invoked from mips_close().
150 (mips_load): Don't null out inferior_ptid. Don't call
151 clear_symtab_users().
152 (mips_thread_alive, mips_pid_to_str): New functions.
153 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
154 to_thread_alive and to_pid_to_str operations.
155
ae411497
TT
1562010-03-04 Tom Tromey <tromey@redhat.com>
157
158 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
159 in DWARF 3 and later.
160 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
161
0e0b460e
KS
1622010-03-04 Keith Seitz <keiths@redhat.com>
163
164 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
165 If the filename portion of the linespec was quoted, recheck the
166 remainder for additional quoting.
167 (locate_first_half): Skip over completer chars, too.
168
1b93ff13
TT
1692010-03-04 Tom Tromey <tromey@redhat.com>
170
171 * printcmd.c (printf_command): Pass dummy argument to
172 printf_filtered.
173
fc36e839
DE
1742010-03-04 Doug Evans <dje@google.com>
175
111f853c
DE
176 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
177 unwound_fp.
178
fc36e839
DE
179 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
180
c7437ca6
PA
1812010-03-04 Pedro Alves <pedro@codesourcery.com>
182
183 * breakpoint.c (update_watchpoint): Create a sentinel location if
184 the software watchpoint isn't watching any memory.
185 (breakpoint_address_bits): Skip dummy software watchpoint locations.
186
58dadb1b
PA
1872010-03-04 Pedro Alves <pedro@codesourcery.com>
188
189 * utils.c (fputs_maybe_filtered): Check if there's already a top
190 level interpreter before dereferencing it. If there isn't one,
191 don't paginate either.
192
50e98be4
DJ
1932010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
194
195 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
196 the state right when single stepping.
197 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
198 Get the next PC along with the instruction state.
199 (thumb_get_next_pc): Remove.
200 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
201
2e3ceee9
HZ
2022010-03-04 Hui Zhu <teawater@gmail.com>
203
204 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
205
390a8aca
PA
2062010-03-03 Pedro Alves <pedro@codesourcery.com>
207
208 * utils.c (fputs_maybe_filtered): Always disable pagination if the
209 top level interpreter is MI.
210
9355b391
SS
2112010-03-03 Stan Shebs <stan@codesourcery.com>
212
213 * remote.c (remote_download_tracepoint): Iterate over locations.
214 * tracepoint.c (validate_actionline): Ditto.
215 (encode_actions): Add location argument.
216 (trace_dump_command): Check all locations to see if stepping
217 frame.
390a8aca 218
8685c86f
L
2192010-03-03 H.J. Lu <hongjiu.lu@intel.com>
220 Eli Zaretskii <eliz@gnu.org>
221
222 * NEWS: Add X86 general purpose registers section.
223
e8f781e2
TT
2242010-03-03 Tom Tromey <tromey@redhat.com>
225
226 PR mi/11098:
227 * varobj.c (install_new_value): Handle case where new print_value
228 is NULL.
229
a0e0ef55
TT
2302010-03-03 Dainis Jonitis <jonitis@gmail.com>
231
232 PR gdb/11345:
233 * printcmd.c (printf_command): Print end of format string using
234 printf_filtered.
235
a58d7472
TT
2362010-03-02 Tom Tromey <tromey@redhat.com>
237
238 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
239 * defs.h (read_command_lines_1): Add missing 'void'.
240 * cli/cli-script.c (recurse_read_control_structure): Add missing
241 'void'.
242 (read_next_line): Likewise.
243 (read_command_lines_1): Likewise.
244
ce50d78b
UW
2452010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
246
247 * spu-tdep.c (spu_analyze_prologue): Track instruction to
248 store backchain as part of prologue.
249
7e9af34a
DJ
2502010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
251
252 * progspace.c (update_address_spaces): Update inferior address spaces
253 also.
254
01637564
DE
2552010-03-02 Doug Evans <dje@google.com>
256
257 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
258 lowpc,highpc args to addrmap_set_empty.
259
1ba53b71
L
2602010-03-02 H.J. Lu <hongjiu.lu@intel.com>
261
262 * amd64-tdep.c (amd64_byte_names): New.
263 (amd64_word_names): Likewise.
264 (amd64_dword_names): Likewise.
265 (amd64_pseudo_register_name): Likewise.
266 (amd64_pseudo_register_read): Likewise.
267 (amd64_pseudo_register_write): Likewise.
268 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
269 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
270 set_gdbarch_pseudo_register_write and
271 set_tdesc_pseudo_register_name. Don't call
272 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
273
274 * i386-tdep.c (i386_num_mmx_regs): Removed.
275 (i386_num_pseudo_regs): Likewise.
276 (i386_byte_names): New.
277 (i386_word_names): Likewise.
278 (i386_byte_regnum_p): Likewise.
279 (i386_word_regnum_p): Likewise.
280 (i386_mmx_regnum_p): Updated.
281 (i386_pseudo_register_name): Make it global. Handle byte and
282 word pseudo-registers.
283 (i386_pseudo_register_read): Likewise.
284 (i386_pseudo_register_write): Likewise.
285 (i386_pseudo_register_type): Handle byte, word and dword
286 pseudo-registers
287 (i386_register_reggroup_p): Don't include pseudo
288 registers, except for MXX, in any register groups. Don't
289 include pseudo byte, word, dword registers in general_reggroup.
290 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
291 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
292 pseudo-registers after word pseudo-registers. Call
293 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
294
295 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
296 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
297 eax_regnum.
298 (i386_byte_regnum_p): New.
299 (i386_word_regnum_p): Likewise.
300 (i386_dword_regnum_p): Likewise.
301 (i386_pseudo_register_name): Likewise.
302 (i386_pseudo_register_read): Likewise.
303 (i386_pseudo_register_write): Likewise.
304
a6f5ef51
L
3052010-03-01 H.J. Lu <hongjiu.lu@intel.com>
306
307 * target-descriptions.c (tdesc_type): Remove
308 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
309 (tdesc_predefined_types): Likewise.
310 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
311 if flag name is empty.
312 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
313
314 * features/i386/32bit-core.xml: Define i386_eflags.
315 * features/i386/64bit-core.xml: Likewise.
316
317 * features/i386/32bit-sse.xml: Define i386_mxcsr.
318 * features/i386/64bit-sse.xml: Likewise.
319
320 * features/i386/amd64-linux.c: Regenerated.
321 * features/i386/amd64.c: Likewise.
322 * features/i386/i386-linux.c: Likewise.
323 * features/i386/i386.c: Likewise.
324
f5dff777
DJ
3252010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
326
327 * gdbtypes.c (append_composite_type_field_raw): New.
328 (append_composite_type_field_aligned): Use the new function.
329 * gdbtypes.h (append_composite_type_field_raw): Declare.
330 * target-descriptions.c (struct tdesc_type_field): Add start and end.
331 (struct tdesc_type_flag): New type.
332 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
333 kind. Add size to u.u. Add u.f for flags.
334 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
335 (tdesc_free_type): Likewise.
336 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
337 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
338 (tdesc_add_bitfield, tdesc_add_flag): New.
339 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
340 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
341 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
342 current_type. Add current_type_size and current_type_is_flags.
343 (tdesc_start_union): Clear the new fields.
344 (tdesc_start_struct, tdesc_start_flags): New.
345 (tdesc_start_field): Handle struct fields, including bitfields.
346 (field_attributes): Make type optional. Add start and end.
347 (union_children): Rename to struct_union_children.
348 (union_attributes): Rename to struct_union_attributes. Add optional
349 size.
350 (flags_attributes): New.
351 (feature_children): Add struct and flags.
352 * features/gdb-target.dtd: Add flags and struct to features.
353 Make field type optional. Add field start and end.
354
90884b2b
L
3552010-03-01 H.J. Lu <hongjiu.lu@intel.com>
356
357 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
358 (amd64_linux_read_description): Likewise.
359 (_initialize_amd64_linux_nat): Set to_read_description to
360 amd64_linux_read_description.
361
362 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
363 (amd64_linux_register_name): Removed.
364 (amd64_linux_register_type): Likewise.
365 (amd64_linux_core_read_description): New.
366 (amd64_linux_init_abi): Set target description to
367 tdesc_amd64_linux if needed. Support orig_rax in target
368 description. Don't call set_gdbarch_register_name nor
369 set_gdbarch_register_type. Call
370 set_gdbarch_core_read_description.
371 (_initialize_amd64_linux_tdep): Call
372 initialize_tdesc_amd64_linux.
373
374 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
375
376 * amd64-tdep.c: Include "features/i386/amd64.c".
377 (amd64_register_names): Removed.
378 (amd64_register_name): Likewise.
379 (amd64_register_type): Likewise.
380 (amd64_init_abi): Set num_core_regs and register_names. Set
381 target description to tdesc_amd64 if needed. Don't call
382 set_gdbarch_register_name nor set_gdbarch_register_type.
383 (_initialize_amd64_tdep): New.
384
385 * i386-linux-nat.c (i386_linux_read_description): New.
386 (_initialize_i386_linux_nat): Set to_read_description to
387 i386_linux_read_description.
388
389 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
390 (i386_linux_register_name): Removed.
391 (i386_linux_core_read_description): New.
392 (i386_linux_read_description): Likewise.
393 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
394 Set target description to tdesc_i386_linux if needed. Support
395 orig_eax. Set register_reggroup_p. Call
396 set_gdbarch_core_read_description.
397 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
398
399 * i386-linux-tdep.h (tdesc_i386_linux): New.
400
401 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
402 with I387_NUM_REGS.
403
404 * i386-tdep.c: Include "features/i386/i386.c".
405 (i386_register_names): Make it const.
406 (i386_mmx_names): Likewise.
407 (i386_num_register_names): Removed.
408 (i386_register_name): Likewise.
409 (i386_eflags_type): Likewise.
410 (i386_mxcsr_type): Likewise.
411 (i386_sse_type): Likewise.
412 (i386_register_type): Likewise.
413 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
414 (i386_pseudo_register_name): New.
415 (i386_pseudo_register_type): Likewise.
416 (i386_mmx_type): Make it static.
417 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
418 I387_NUM_REGS. Set num_core_regs and register_names. Don't
419 call set_gdbarch_register_name nor set_gdbarch_register_type.
420 Set register_reggroup_p. Set target description to tdesc_i386
421 if needed. Call set_tdesc_pseudo_register_type,
422 set_tdesc_pseudo_register_name and tdesc_use_registers.
423 (_initialize_i386_tdep): Call initialize_tdesc_i386.
424 initialize_tdesc_x86_64.
425
426 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
427 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
428 register_names, tdesc and register_reggroup_p.
429 (I386_NUM_FREGS): Removed.
430 (i386_eflags_type): Likewise.
431 (i386_mxcsr_type): Likewise.
432 (i386_mmx_type): Likewise.
433 (i386_sse_type): Likewise.
434 (i386_register_name): Likewise.
435 (i386_regnum): Add I386_MXCSR_REGNUM.
436 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
437
438 * i387-tdep.h (I387_NUM_REGS): New.
439
440 * regformats/i386/i386-linux.dat: Generated.
441 * regformats/i386/i386.dat: Likewise.
442 * regformats/i386/amd64-linux.dat: Likewise.
443 * regformats/i386/amd64.dat: Likewise.
444
445 * regformats/reg-i386-linux.dat: Removed.
446 * regformats/reg-i386.dat: Likewise.
447 * regformats/reg-x86-64-linux.dat: Likewise.
448 * regformats/reg-x86-64.dat: Likewise.
449
d0d0ab16
CV
4502010-03-01 Corinna Vinschen <vinschen@redhat.com>
451
452 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
453 cygwin_conv_path API rather than the deprecated
454 cygwin_conv_to_full_posix_path.
455 * windows-nat.c:
456 (GetModuleFileNameExA): Undefine for Cygwin.
457 (GetModuleFileNameExW): Define for Cygwin.
458 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
459 Call GetModuleFileNameExW and convert path to POSIX using
460 cygwin_conv_path.
461 (windows_make_so): Always define p. Drop unused variable m.
462 Don't use Win32 functions to check file existance, rather use
463 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
464 Use canonicalize_file_name to get full path.
465 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
466 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
467 use correct target buffer size in call to WideCharToMultiByte.
468 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
469 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
470 (windows_create_inferior): Convert all paths and arguments to wchar_t
471 and use CreateProcessW on Cygwin.
472 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
473 (bad_GetModuleFileNameExA): Undefine for Cygwin.
474 (bad_GetModuleFileNameExW): Define for Cygwin.
475 (_initialize_loadable): Load GetModuleFileNameExW into
476 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
477
dc00d89f
PM
4782010-02-28 Phil Muldoon <pmuldoon@redhat.com>
479
480 PR python/11036
481 * python/py-frame.c (frapy_read_var): Add block argument and logic
482 to cope with user provided blocks.
483
0e095b7e
JK
4842010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
485
486 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
487 New comment.
488
2f9e05b4
CV
4892010-02-28 Corinna Vinschen <vinschen@redhat.com>
490
491 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
492 (COMMON_OBS): ... to here since it's used unconditionally.
493 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
494 (SFILES): To here.
495
eb195664
DD
4962010-02-26 David Daney <ddaney@caviumnetworks.com>
497
498 * mips-linux-tdep.c: Update struct sigframe comments.
499 (SIGFRAME_CODE_OFFSET): Delete macro.
500 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
501 this_frame's sp.
502 (mips_linux_n32n64_sigframe_init): Same.
503
97b0f3e2
KB
5042010-02-26 Kevin Buettner <kevinb@redhat.com>
505
506 * remote-mips.c (mips_load): Don't use pseudo-register when
507 invalidating regcache.
508
4069ebbe
DJ
5092010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
510
511 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
512
05071a4d
PA
5132010-02-26 Pedro Alves <pedro@codesourcery.com>
514
515 * NEWS: Add "New targets" section, and mention ARM Symbian
516 support.
517
6063c216
UW
5182010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
519
520 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
521 add ADDR_SIZE member.
522 (allocate_piece_closure): Update.
523 (copy_pieced_value_closure): Likewise.
524 (dwarf2_evaluate_loc_desc): Likewise.
525 (read_pieced_value): Use DWARF address size instead of
526 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
527
5107b149
PM
5282010-02-26 Phil Muldoon <pmuldoon@redhat.com>
529 Tom Tromey <tromey@redhat.com>
530
531 * python/py-type.c (typy_lookup_typename): Add in block argument.
532 If provided restrict lookup to specified blocks.
533 (gdbpy_lookup_type): Likewise.
534 (typy_lookup_type): Likewise.
535
78664fa3
PA
5362010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
537
538 Symbian config
539
540 gdb/
541 * arm-symbian-tdep.c: New.
542 * configure.tgt (arm*-*-symbianelf*): New target.
543 (*-*-symbianelf*): New OS.
544 * osabi.c (gdb_osabi_names): Add Symbian.
545 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
546 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
547 (ALLDEPFILES): Add arm-symbian-tdep.c.
548
eb73e134
DJ
5492010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
550
551 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
552
46ef47e5
PA
5532010-02-24 Pedro Alves <pedro@codesourcery.com>
554
555 * mi/mi-main.c (mi_cmd_execute): Fix typo.
556
f3e9a817
PM
5572010-02-24 Phil Muldoon <pmuldoon@redhat.com>
558 Tom Tromey <tromey@redhat.com>
559 Thiago Jung Bauermann <bauerman@br.ibm.com>
560
561 * python/python.c (_initialize_python): Call
562 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
563 gdbpy_initialize_blocks.
564 * python/python-internal.h: Declare struct symbol, block and
565 symtab_and_line. Declare block_object_type and
566 symbol_object_type
567 (gdbpy_lookup_symbol gdbpy_block_for_pc)
568 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
569 (symbol_to_symbol_object, block_to_block_object)
570 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
571 (gdbpy_initialize_blocks ): Declare.
572 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
573 (frapy_select): Add methods.
574 (frapy_read_var): Add symbol branch.
575 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
576 py-block.
577 (SUBDIR_PYTHON_SRCS): Likewise.
578 (py-symbol.o): New rule.
579 (py-symtab.o): Likewise.
580 (py-block.o): Likewise.
581 * python/py-symbol.c: New file.
582 * python/py-symtab.c: Likewise.
583 * python/py-block.c: Likewise.
584
24291992
PA
5852010-02-24 Pedro Alves <pedro@codesourcery.com>
586
587 PR gdb/11321
588
589 * inferior.h (prepare_for_detach): Declare.
590 (struct inferior) <detaching>: New field.
591 * infrun.c (prepare_for_detach): New.
592 (handle_inferior_event) <random signal>: Don't stop if detaching.
593 * target.c (target_detach): Call prepare_for_detach.
594
fc1cf338
PA
5952010-02-24 Pedro Alves <pedro@codesourcery.com>
596
597 Per-process displaced stepping queue.
598
599 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
600 (displaced_step_gdbarch, displaced_step_closure,
601 (displaced_step_original, displaced_step_copy): Move globals to
602 this...
603 (struct displaced_step_inferior_state): ... new structure.
604 (displaced_step_inferior_states): New global.
605 (get_displaced_stepping_state, add_displaced_stepping_state)
606 (remove_displaced_stepping_state, infrun_inferior_exit): New
607 functions.
608 (displaced_step_clear): Add displaced_step_inferior_state
609 parameter, and adjust to handle it.
610 (displaced_step_clear_cleanup): Parameter is now a
611 displaced_step_inferior_state. Adjust.
612 (displaced_step_prepare): Adjust.
613 (displaced_step_fixup, displaced_step_fixup)
614 (infrun_thread_ptid_changed, resume): Adjust.
615 (init_wait_for_inferior): Don't call displaced_step_clear.
616 (infrun_thread_stop_requested): Rewrite.
617 (_initialize_infrun): Install infrun_inferior_exit as
618 inferior_exit observer.
619
0723dbf5
PA
6202010-02-24 Pedro Alves <pedro@codesourcery.com>
621
622 * inferior.h (ptid_match): Declare.
623 * infrun.c (ptid_match): New.
624 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
625 (handle_notification): Add debug output.
626 * linux-nat.c (ptid_match): Delete.
627
09de9781
DM
6282010-02-24 David S. Miller <davem@davemloft.net>
629
630 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
631 * syscalls/sparc-linux.xml: New.
632 * syscalls/sparc64-linux.xml: New.
633 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
634 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
635 (sparc32_linux_get_syscall_number): New function.
636 (sparc32_linux_init_abi): Set syscall XML file name and hook up
637 syscall number fetcher.
638 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
639 (sparc64_linux_get_syscall_number): New function.
640 (sparc64_linux_init_abi): Set syscall XML file name and hook up
641 syscall number fetcher.
642
a79b8f6e
VP
6432010-02-24 Vladimir Prus <vladimir@codesourcery.com>
644
645 Multiexec MI
646
647 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
648 * inferior.c (add_inferior_silent): Notify inferior_added
649 observer.
650 (delete_inferior_1): Notify inferior_removed observer.
651 (exit_inferior_1): Pass inferior, not pid, to observer.
652 (inferior_appeared): Likewise.
653 (add_inferior_with_spaces): New.
654 (add_inferior_command): Use the above.
655 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
656 Declare.
657
658 * inflow.c (inflow_inferior_exit): Likewise.
659 * jit.c (jit_inferior_exit_hook): Likewise.
660
661 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
662 remove-inferior.
663 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
664 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
665 (report_initial_inferior): New.
666 (mi_inferior_removed): Register the above. Make sure
667 inferior_added observer is called on the first inferior.
668 (mi_new_thread, mi_thread_exit): Thread group is now identified by
669 inferior number, not pid.
670 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
671 affected.
672 * mi/mi-main.c (current_context): New.
673 (proceed_thread_callback): Use typed closure.
674 Proceed everything if pid is 0. Most implementation split into
675 (proceed_thread): ... this.
676 (run_one_inferior): New.
677 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
678 Adjust for multiexec behaviour.
679 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
680 (mi_cmd_execute): Handle the 'thread-group' option here.
681 Do some extra checks.
682 * mi-parse.c (mi_parse): Handle the --all and --thread-group
683 options.
684 * mi-parse.h (struct mi_parse): New fields all and thread_group.
685
115d30f9
VP
6862010-02-24 Vladimir Prus <vladimir@codesourcery.com>
687
688 Make -exec-run a proper MI commands.
689
690 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
691 * mi/mi-cmds.c (mi_cmds): Adjust.
692 * mi/mi-main.c (mi_cmd_exec_run): New.
693
06cd862c
PA
6942010-02-24 Pedro Alves <pedro@codesourcery.com>
695 Stan Shebs <stan@codesourcery.com>
696
697 * tracepoint.h (set_traceframe_number)
698 (cleanup_restore_current_traceframe): Declare.
699 * tracepoint.c (set_traceframe_number): New.
700 (struct current_traceframe_cleanup): New.
701 (do_restore_current_traceframe_cleanup)
702 (restore_current_traceframe_cleanup_dtor)
703 (make_cleanup_restore_current_traceframe): New.
704 * infrun.c: Include tracepoint.h.
705 (fetch_inferior_event): Switch out and in of tfind mode.
706
ab92d69b
PA
7072010-02-24 Pedro Alves <pedro@codesourcery.com>
708
709 * breakpoint.c (breakpoint_init_inferior): Also delete
710 bp_shlib_event breakpoints.
711 * solib-frv.c (enable_break): Remove call to
712 remove_solib_event_breakpoints.
713 * solib-svr4.c (enable_break): Ditto.
714 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
715 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
716 * solib-som.c (som_solib_create_inferior_hook): Ditto.
717 * solib-spu.c (spu_enable_break): Ditto.
718
e707a91d
PA
7192010-02-23 Harald Koenig <H.Koenig@science-computing.de>
720
721 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
722
cfce2ea2
PA
7232010-02-23 Harald Koenig <H.Koenig@science-computing.de>
724
725 * varobj.c (varobj_update): Avoid non-constants in initializers.
726
05566b3b
TT
7272010-02-23 Tom Tromey <tromey@redhat.com>
728
729 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
730 handle big-endian values.
731 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
732
85d721b8
PA
7332010-02-22 Pedro Alves <pedro@codesourcery.com>
734
735 PR9605
736
737 gdb/
738 * breakpoint.c (insert_bp_location): If inserting the read
739 watchpoint failed, fallback to an access watchpoint.
740 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
741 if the value changed, if not watching the same memory for writes.
742 (watchpoint_locations_match): Add comment.
743 (update_global_location_list): Copy the location's watchpoint type.
744 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
745 handle read watchpoints here.
746 (i386_insert_watchpoint): Read watchpoints aren't supported.
747 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
748 packets.
749 * target.h (target_insert_watchpoint): Update description.
750
48ea67a7
TT
7512010-02-19 Tom Tromey <tromey@redhat.com>
752
753 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
754 * m2-typeprint.c (m2_print_type): Update.
755 * gdbtypes.c (recursive_dump_type): Update.
756 (copy_type_recursive): Update.
757 * c-typeprint.c (c_type_print_varspec_prefix): Update.
758 (c_type_print_base): Update.
759 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
760 Remove.
761 (struct cplus_struct_type) <ntemplate_args>: Remove.
762 <struct template_arg>: Remove.
763 <is_dynamic>: Move earlier.
764 (TYPE_TEMPLATE_ARGS): Remove.
765 (TYPE_NTEMPLATE_ARGS): Remove.
766 (TYPE_TEMPLATE_ARG): Remove.
767
48e32051
TT
7682010-02-19 Tom Tromey <tromey@redhat.com>
769
770 PR c++/8693, PR c++/9496:
771 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
772 * c-exp.y (lex_one_token): Rename from yylex. Don't call
773 write_dollar_variable. Don't try to classify NAME tokens.
774 (token_and_value): New type.
775 (token_fifo, popping, name_obstack): New globals.
776 (classify_name): New function.
777 (classify_inner_name): Likewise.
778 (yylex): Likewise.
779 (VARIABLE): Now has type sval.
780 (exp : VARIABLE): Call write_dollar_variable.
781 (qualified_name): Use TYPENAME, not typebase. Add production for
782 multiple "::" instances.
783 (variable): Use name_not_typename.
784 (qualified_type): Remove.
785 (typebase): Update.
786
672d9c23
JK
7872010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
788
789 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
790 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
791 found by bfd_get_section_by_name.
792 * symfile.h (struct section_addr_info) <sectindex>: New comment.
793
bfbf3774
JB
7942010-02-19 Joel Brobecker <brobecker@adacore.com>
795
796 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
797 7.0 section" into "Changes in 7.1".
798
6756b09b 7992010-02-19 Joel Brobecker <brobecker@adacore.com>
800
801 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
802 * version.in: Bump version to 7.1.50.20100219-cvs.
803
202b96c1
PA
8042010-02-18 Harald Koenig <H.Koenig@science-computing.de>
805
806 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
807 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
808
de2e5182
TT
8092010-02-17 Tom Tromey <tromey@redhat.com>
810
811 * NEWS: Add Python API Improvements section.
812
7280022e
DJ
8132010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
814
815 * NEWS: Correct typo.
816
6f451e5e
TT
8172010-02-17 Tom Tromey <tromey@redhat.com>
818
819 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
820
012836ea
JK
8212010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
822
823 * symfile.c (build_section_addr_info_from_objfile): Include sections
824 only if they are SEC_ALLOC or SEC_LOAD.
825
d182d057
L
8262010-02-17 H.J. Lu <hongjiu.lu@intel.com>
827
828 PR shlibs/11293
829 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
830 of ULONGEST for address size.
831
4eef138c
TT
8322010-02-17 Tom Tromey <tromey@redhat.com>
833
834 * NEWS: Add C++ improvements section.
835
548a926a
UW
8362010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
837
838 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
839 PyThreadState_Swap): Avoid "statement with no effect" warning.
840
ad3a0e5b
JK
8412010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
842
843 * solib-svr4.c (enable_break <target_auxv_search>): New variable
844 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
845
243e2c5d
TG
8462010-02-17 Tristan Gingold <gingold@adacore.com>
847 Petr Hluzín <petr.hluzin@gmail.com>
848
849 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
850 gdb_assert. Fix info->size for SIG prologue.
851
275f2e57
DJ
8522010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
853
854 * infcmd.c (show_inferior_tty_command): Check for NULL.
855 Correct output message.
856
791dfb64
DJ
8572010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
858
859 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
860 FUNCTION contains parentheses. Improve removal of a trailing
861 single quote.
862
14d1346b
DJ
8632010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
864
865 * gcore.c (do_bfd_delete_cleanup): New function.
866 (gcore_command): Use it. Discard the cleanup after success.
867 (gcore_copy_callback): Delete dead code.
868
e76ab67f
DJ
8692010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
870
871 * symfile.c (addr_info_make_relative): Always use
872 find_lowest_section.
873
71dee663
SW
8742010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
875
876 * NEWS: Added entry for namespace fixes.
877
a9854bd5
TT
8782010-02-15 Tom Tromey <tromey@redhat.com>
879
880 * dwarf2read.c (guess_structure_name): Allocate name on the
881 objfile obstack.
882
fd9e29b5
TT
8832010-02-15 Tom Tromey <tromey@redhat.com>
884
885 * c-typeprint.c (c_type_print_base): Reverse order of test.
886
4e1fc9c9
JK
8872010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
888
889 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
890 initialize it from ELF BFD. Extend the prelink condition by it.
891
74164c56
JK
8922010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
893
894 * defs.h (parse_pid_to_attach): New.
895 * utils.c (parse_pid_to_attach): New.
896 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
897 * gnu-nat.c (gnu_attach): Likewise.
898 * nto-procfs.c (procfs_attach): Likewise.
899 * procfs.c (procfs_attach): Likewise.
900 * windows-nat.c (windows_attach): Likewise.
901 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
902 * inf-ttrace.c (inf_ttrace_attach): Likewise.
903 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
904 check.
905
bf6adea8
MM
9062010-02-14 Masaki Muranaka <monaka@monami-software.com>
907
908 * MAINTAINERS: Add myself for write after approval privileges.
909
28f34a8f
JK
9102010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
911
912 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
913 block.
914
701ed6dc
JK
9152010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
916
917 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
918 only if INFO_VERBOSE.
919
e5829bee
MS
9202010-02-12 Tomas Holmberg <th@virtutech.com>
921
922 * mi/mi-main.c: Added the --reverse flag to the following MI
923 commands: exec-continue, exec-finish, exec-next, exec-step,
924 exec-next-instruction, exec-step-instruction. This is to
925 support reverse execution over the MI interface to gdb.
926
081dfbf7
PA
9272010-02-12 Pedro Alves <pedro@codesourcery.com>
928
929 * tracepoint.c (_initialize_tracepoint): Specify that the address
930 range of `tfind outsize' is exclusive, and that the address range
931 of `tfind range' is inclusive, in the commands' help strings.
932
ecc13e53
JB
9332010-02-12 Joel Brobecker <brobecker@adacore.com>
934
935 Spurious "dll not found" error messages on x64-windows.
936 * windows-nat.c: Add include of complaints.h.
937 (handle_unload_dll): Change dll-not-found error into a complaint.
938
15c3d785
PA
9392010-02-12 Pedro Alves <pedro@codesourcery.com>
940
941 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
942 bp_tracepoint and bp_fast_tracepoint, not
943 bp_loc_software_breakpoint.
944 (update_global_location_list): Tracepoints are never duplicates of
945 anything.
946
fd9b8c24
PA
9472010-02-12 Pedro Alves <pedro@codesourcery.com>
948
949 * breakpoint.c (break_command_really): Change return type to int.
950 Return false if no breakpoint was created, true otherwise.
951 (trace_command): Don't set the tracepoint count if no tracepoint
952 was created.
953 (ftrace_command): Ditto.
954 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
955 created in the breakpoints table.
956
5c0d192f
JK
9572010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
958 Ulrich Weigand <uweigand@de.ibm.com>
959
960 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
961
5d5b640e
PA
9622010-02-11 Pedro Alves <pedro@codesourcery.com>
963
964 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
965 the offset value isn't of integral type.
966
e5a0a904
JK
9672010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
968
969 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
970 New.
971
be636754
PA
9722010-02-11 Pedro Alves <pedro@codesourcery.com>
973
974 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
975 non-subscriptable types.
976 * valarith.c (binop_types_user_defined_p): New, abstracted out
977 from ...
978 (binop_user_defined_p): ... this.
979 * value.h (binop_types_user_defined_p): Declare.
980
10ef8d6a
PA
9812010-02-11 Pedro Alves <pedro@codesourcery.com>
982
983 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
984 Merge uploaded TSVs before merging uploaded tracepoints.
985
b1028c8e
PA
9862010-02-11 Pedro Alves <pedro@codesourcery.com>
987
988 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
989
7a93fb82 9902010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 991
7a93fb82
VP
992 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
993 whitespace character after a dot in comment.
994 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
995 Likewise.
996 (list_args_or_locals): For the 'all' (that is
997 -stack-list-variables) case, always output list of tuples.
998 Output 'arg' field if variable is argument.
84d90c10 999
92981e24
TT
10002010-02-10 Tom Tromey <tromey@redhat.com>
1001
1002 * parser-defs.h (parser_debug): Declare.
1003 * parse.c (_initialize_parse): Install "debug parser" set/show
1004 command.
1005 (parser_debug): New global.
1006 (show_parserdebug): New function.
1007 * c-exp.y (c_parse): Set yydebug.
1008
9fd3625f
L
10092010-02-10 H.J. Lu <hongjiu.lu@intel.com>
1010
1011 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
1012 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1013 (tdesc_predefined_types): Add i387_ext, i386_eflags and
1014 i386_mxcsr.
1015 (tdesc_find_type): New.
1016 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
1017 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1018
1019 * target-descriptions.h (tdesc_find_type): New.
1020
2fe842e5
MS
10212010-02-10 Michael Snyder <msnyder@vmware.com>
1022
1023 * gdb-gdb.py: Comment fix.
1024
f18b4cab
TG
10252010-02-09 Tristan Gingold <gingold@adacore.com>
1026
1027 * machoread.c (macho_symfile_relocate): New function.
1028 (macho_sym_fns): Use macho_symfile_relocate instead of
1029 default_symfile_relocate.
1030 (macho_oso_data): New type.
1031 (current_oso): New variable.
1032 (macho_add_oso_symfile): Do not compute section_addr_info, but
1033 instead set vma of sections.
1034 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
1035 Set and clear current_oso.
1036
31dbc1c5
JB
10372010-02-09 Joel Brobecker <brobecker@adacore.com>
1038
1039 Wrong type description for tagged type parameter.
1040 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
1041 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
1042 reference to a tagged type.
1043
399f313b
TG
10442010-02-09 Tristan Gingold <gingold@adacore.com>
1045
1046 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
1047 brothers of the parent.
1048
714f19d5
TT
10492010-02-08 Tom Tromey <tromey@redhat.com>
1050
1051 PR c++/8017:
1052 * value.h: Update.
1053 * valops.c (search_struct_field): Make 'name' const.
1054 (search_struct_method): Likewise.
1055 (find_method_list): Make 'method' const.
1056 (value_struct_elt): Make 'name' and 'err' const.
1057 (value_find_oload_method_list): Make 'method' const.
1058 (find_overload_match): Make 'name' const.
1059 * eval.c (evaluate_subexp_standard): New locals function,
1060 function_name.
1061 <OP_FUNCALL>: Handle OP_SCOPE specially.
1062
de0a0249
UW
10632010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1064
1065 * infrun.c (handle_inferior_event): Do not look up regcache
1066 for exited processes.
1067
83b10087
CM
1068Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
1069
1070 PR gdb/10728
1071 * valarith.c (value_ptrdiff): Added a test for a zero type length,
1072 warn if found, and assume length = 1.
1073
99903ae3
CM
10742010-02-08 Chris Moller <cmoller@redhat.com>
1075
1076 PR gdb/9067
1077 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
1078 cp_print_static_field) Fix use of obstacks.
1079
e3e9f5a2
PA
10802010-02-08 Pedro Alves <pedro@codesourcery.com>
1081
1082 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
1083 resumed LWPs as resumed.
1084 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
1085 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
1086 of throwing an internal error. If an LWP of a process we're not
1087 waiting for reports a signal, don't force collecting a SIGSTOP,
1088 and if it was breakpoint hit in non-stop mode, cancel it. Don't
1089 go through all LWPs cancelling breakpoints in non-stop mode.
1090 (resume_stopped_resumed_lwps): New.
1091 (linux_nat_wait): Use it.
1092
46763423
L
10932010-02-07 H.J. Lu <hongjiu.lu@intel.com>
1094
1095 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
1096 i386/amd64 and i386/amd64-linux.
1097 (i386/i386-expedite): New.
1098 (i386/i386-linux-expedite): Likewise.
1099 (i386/amd64-expedite):Likewise.
1100 (i386/amd64-linux-expedite): Likewise.
1101 ($(outdir)/i386/i386-linux.dat): Likewise.
1102 ($(outdir)/i386/amd64.dat): Likewise.
1103 ($(outdir)/i386/amd64-linux.dat): Likewise.
1104
1105 * features/i386/32bit-core.xml: New.
1106 * features/i386/32bit-linux.xml: Likewise.
1107 * features/i386/32bit-sse.xml: Likewise.
1108 * features/i386/64bit-core.xml: Likewise.
1109 * features/i386/64bit-linux.xml: Likewise.
1110 * features/i386/64bit-sse.xml: Likewise.
1111 * features/i386/i386-linux.xml: Likewise.
1112 * features/i386/i386.xml: Likewise.
1113 * features/i386/amd64-linux.xml: Likewise.
1114 * features/i386/amd64.xml: Likewise.
1115 * features/i386/i386-linux.c: Likewise.
1116 * features/i386/i386.c: Likewise.
1117 * features/i386/amd64-linux.c: Likewise.
1118 * features/i386/amd64.c: Likewise.
1119
82856980
SW
11202010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
1121
1122 PR c++/7935:
1123 * cp-support.h: Added char* alias element to using_direct data
1124 struct.
1125 (cp_add_using): Added char* alias argument.
1126 (cp_add_using_directive): Ditto.
1127 * cp-namespace.c: Updated with the above changes.
1128 (cp_lookup_symbol_imports): Check for aliases.
1129 * dwarf2read.c (read_import_statement): Figure out local alias
1130 for the import and pass it on to cp_add_using.
1131 (read_namespace): Pass alias argument to cp_add_using.
1132
d18b8b7a
HZ
11332010-02-05 Hui Zhu <teawater@gmail.com>
1134
1135 * defs.h (gdb_bfd_errmsg): New extern.
1136 * exec.c (exec_file_attach): Change bfd_errmsg to
1137 gdb_bfd_errmsg.
1138 * utils.c (AMBIGUOUS_MESS1): New macro.
1139 (AMBIGUOUS_MESS2): New macro.
1140 (gdb_bfd_errmsg): New function.
1141
48379de6
DE
11422010-02-04 Doug Evans <dje@google.com>
1143
1144 * solib-svr4.c (enable_break): Add comment.
1145
4ee73e90
AG
11462010-02-04 Anthony Green <green@moxielogic.com>
1147
1148 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
1149 gracefully.
1150
1a334831
TT
11512010-02-04 Tom Tromey <tromey@redhat.com>
1152
1153 * valops.c (search_struct_field): Account for
1154 value_embedded_offset. Fix check for virtual base past the end of
1155 the object. Use value_copy when making a slice of the value.
1156
1180b2c8
L
11572010-02-04 H.J. Lu <hongjiu.lu@intel.com>
1158
1159 PR tui/9622
1160 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
1161 only if gdb_stdout is a tty.
1162
c3f08eb7
L
11632010-02-04 H.J. Lu <hongjiu.lu@intel.com>
1164
1165 * target-descriptions.c: Include "osabi.h".
1166 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
1167 OSABI.
1168
2d33f7b8
TG
11692010-02-04 Tristan Gingold <gingold@adacore.com>
1170
1171 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
1172 (macho_symtab_read): Adjust calls to macho_add_oso.
1173 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
1174 (macho_symfile_read): Adjust call to macho_oso_symfile.
1175 (macho_new_init): Move this function after declarations.
1176 (macho_symfile_init): Ditto.
1177 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
1178 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
1179
11334b82
VP
11802010-02-04 Vladimir Prus <vladimir@codesourcery.com>
1181
1182 Include MI command in remotelog.
1183
1184 * mi/mi-main.c (mi_execute_command): Call target_log_command.
1185
ff97be06
L
11862010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1187
1188 * remote.c (remote_state): Remove gdbarch.
1189 (init_remote_state): Don't set gdbarch.
1190 (remote_query_supported): Pass target_gdbarch instead of
1191 rs->gdbarch to gdbarch_qsupported.
1192
75cebea9
L
11932010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1194
1195 * gdbarch.sh: Add qsupported.
1196
1197 * gdbarch.c: Regenerated.
1198 * gdbarch.h: Likewise.
1199
1200 * remote.c (remote_state): Add gdbarch.
1201 (init_remote_state): Set gdbarch.
1202 (remote_query_supported): Support gdbarch_qsupported.
1203
c1dec97b
DJ
12042010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
1205
1206 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
1207 __FreeBSD_kernel_version.
1208
ac8035ab
TG
12092010-02-03 Tristan Gingold <gingold@adacore.com>
1210
1211 * symfile.h (struct sym_fns): Add sym_relocate field.
1212 (default_symfile_relocate): New prototype.
1213 (symfile_relocate_debug_section): First argument is now an objfile.
1214 * symfile.c (default_symfile_relocate): Rename from
1215 symfile_relocate_debug_section, first argument is now an objfile.
1216 (symfile_relocate_debug_section): New function.
1217 * coffread.c (coff_sym_fns): Set sym_relocate field.
1218 * somread.c (som_sym_fns): Ditto.
1219 * mipsread.c (ecoff_sym_fns): Ditto.
1220 * machoread.c (macho_sym_fns): Ditto.
1221 * elfread.c (elf_sym_fns): Ditto.
1222 * dwarf2read.c (dwarf2_read_section): Ditto.
1223 * xcoffread.c (xcoff_sym_fns): Ditto.
1224 * dbxread.c (aout_sym_fns): Ditto.
1225 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
1226 (elfstab_build_psymtabs): Ditto.
1227
be52b756
L
12282010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1229
1230 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
1231
9c3c02fd
TT
12322010-02-02 Tom Tromey <tromey@redhat.com>
1233
1234 * valops.c (value_cast_structs): Try downcasting using the RTTI
1235 type.
1236
f23f4c59
TT
12372010-02-02 Tom Tromey <tromey@redhat.com>
1238
1239 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
1240 (gnuv2_baseclass_offset): Now static.
1241 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
1242 * gnu-v2-abi.h: Remove.
1243
0cc2414c
TT
12442010-02-02 Tom Tromey <tromey@redhat.com>
1245
1246 * m2-typeprint.c (m2_record_fields): Don't use
1247 TYPE_DECLARED_TYPE.
1248 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
1249 (struct main_type) <flag_declared_class>: New field.
1250 (struct cplus_struct_type) <declared_type>: Remove.
1251 <ntemplate_args>: Move earlier.
1252 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
1253 (DECLARED_TYPE_TEMPLATE): Remove.
1254 (TYPE_DECLARED_TYPE): Remove.
1255 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
1256 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
1257 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
1258 TYPE_DECLARED_TYPE.
1259
edf3d5f3
TT
12602010-02-02 Tom Tromey <tromey@redhat.com>
1261
1262 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
1263 * valops.c (search_struct_field): Compute nbases after calling
1264 CHECK_TYPEDEF.
1265 (check_field): Call CHECK_TYPEDEF.
1266 * cp-valprint.c (cp_print_value): Pass correct address to
1267 baseclass_offset. Fix check for virtual base past the end of the
1268 object. Don't offset address passed to cp_print_value_fields or
1269 apply_val_pretty_printer.
1270 (cp_print_value_fields): Fix call to val_print.
1271 (cp_print_value_fields_rtti): New function.
1272 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
1273 * p-valprint.c (pascal_object_print_value_fields): Fix call to
1274 val_print.
1275 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
1276 offset to address.
1277 * language.h (struct language_defn) <la_val_print>: Document.
1278 * c-lang.h (cp_print_value_fields_rtti): Declare.
1279
e4b7f41c
JK
12802010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 PR libc/11214:
1283 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1284 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
1285 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1286
7618e12b
DJ
12872010-02-01 Michael Matz <matz@suse.de>
1288 Daniel Jacobowitz <dan@codesourcery.com>
1289
e4b7f41c 1290 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
1291 functions use a frame pointer.
1292
b381ea14
JK
12932010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1294
1295 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
1296 by a conditional setting DYN_ADDR. Use DYN_ADDR.
1297 * config/djgpp/fnchange.lst: Add translations for
1298 symbol-without-target_section.exp and symbol-without-target_section.c.
1299
0e05dfcb
DJ
13002010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1301
1302 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
1303 (remote_breakpoint_for_pc): Correct invalid_p check.
1304 * gdbarch.c: Regenerated.
1305
f9d67f43
DJ
13062010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1307
1308 * arm-tdep.c (arm_find_mapping_symbol): New function, from
1309 arm_pc_is_thumb.
1310 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
1311 (extend_buffer_earlier): New function.
1312 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
1313 (arm_adjust_breakpoint_address): New function.
1314 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
1315
177321bd
DJ
13162010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1317
1318 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
1319 (arm_linux_thumb2_le_breakpoint): New constants.
1320 (arm_linux_init_abi): Set thumb2_breakpoint and
1321 thumb2_breakpoint_size.
1322 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
1323 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
1324 Implement support for single stepping through IT blocks if
1325 a 32-bit Thumb breakpoint instruction is available.
1326 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
1327 is available, use it when needed.
1328 (arm_remote_breakpoint_from_pc): New function.
1329 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
1330 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
1331 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
1332
a1dcb23a
DJ
13332010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1334
1335 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
1336 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
1337 * gdbarch.c, gdbarch.h: Regenerated.
1338 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
1339 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
1340 gdbarch_remote_breakpoint_from_pc.
1341
2b009048
DJ
13422010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1343
1344 * infrun.c (prepare_to_proceed): Handle other signals which might
1345 match a breakpoint.
1346 (handle_inferior_event): Move the check for unusual breakpoint
1347 signals earlier.
1348
e4e2711a
JB
13492010-01-29 Paul Hilfinger <hilfinger@adacore.com>
1350
1351 amd64 - function returning record with field straddling 2 registers.
1352 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
1353 a record of length <= 16 in which a field straddles the two
1354 eightbytes.
1355
cba6fab5
JB
13562010-01-29 Joel Brobecker <brobecker@adacore.com>
1357
1358 Implement return values on amd64-windows.
1359 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
1360 (amd64_windows_return_value): New function.
1361 (amd64_windows_init_abi): Call set_gdbarch_return_value with
1362 amd64_windows_return_value.
1363
3af6ddfe
JB
13642010-01-29 Joel Brobecker <brobecker@adacore.com>
1365
1366 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 1367 parameter registers.
3af6ddfe
JB
1368 * i386-tdep.h (struct gdbarch_tdep): Add new field
1369 integer_param_regs_saved_in_caller_frame.
1370 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1371 tdep->integer_param_regs_saved_in_caller_frame to 1.
1372 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1373 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1374
80d19a06
JB
13752010-01-29 Joel Brobecker <brobecker@adacore.com>
1376
1377 amd64-windows: memory args passed by pointer during function calls.
1378 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1379 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1380 where tdep->memory_args_by_pointer is non-zero.
1381 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1382 tdep->memory_args_by_pointer to 1.
1383
ba581dc1
JB
13842010-01-29 Joel Brobecker <brobecker@adacore.com>
1385
4966b6c2 1386 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
1387 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1388 amd64-tdep.c.
1389 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1390 call_dummy_integer_regs, and classify.
1391 * amd64-tdep.h (amd64_classify): Add declaration.
1392 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1393 (amd64_reg_class): Delete, moved to i386-tdep.h.
1394 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1395 Replace call to amd64_classify by call to tdep->classify.
1396 (amd64_push_arguments): Get the list of registers to use for
1397 passing integer parameters from the gdbarch tdep structure,
1398 rather than using a hardcoded one. Replace calls to amd64_classify
1399 by calls to tdep->classify.
1400 (amd64_push_dummy_call): Get the register number used for
1401 the "hidden" argument from tdep->call_dummy_integer_regs.
1402 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1403 and tdep->call_dummy_integer_regs. Set tdep->classify.
1404 * amd64-windows-tdep.c: Add include of gdbtypes.h.
1405 (amd64_windows_dummy_call_integer_regs): New static global.
1406 (amd64_windows_classify): New function.
1407 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
1408 tdep->call_dummy_integer_regs and tdep->classify.
1409
d37346f0
DJ
14102010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1411
1412 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
1413 for the new regcache. All callers updated.
1414 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
1415 (get_thread_arch_regcache): Do not set aspace here.
1416 * regcache.h (regcache_xmalloc): Update declaration.
1417
1418 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
1419 regcache_xmalloc updated.
1420
7434dadd
JB
14212010-01-28 Joel Brobecker <brobecker@adacore.com>
1422
1423 Another -Wunused-function error in procfs.c (sparc-solaris)
1424 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
1425 Only define if SYS_syssgi is defined.
1426 (remove_dbx_link_breakpoint): Delete declaration. Move up.
1427 (dbx_link_addr, insert_dbx_link_bpt_in_file)
1428 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
1429 is itself defined.
1430
16d905e2
CF
14312010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
1432
1433 * windows-nat.c (windows_initialization_done): New variable.
1434 (get_windows_debug_event): Issue error when process dies before
1435 completely initializing.
1436 (do_initial_windows_stuff): Set flag to indicate when we are done with
1437 the initial steps of attaching to the child.
1438
cd55e50f
JK
14392010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1440
1441 * symtab.h (struct symbol <symtab>): New comment on NULL values.
1442
99cc78aa
DE
14432010-01-27 Doug Evans <dje@google.com>
1444
4c7dcb84
DE
1445 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
1446
99cc78aa
DE
1447 * breakpoint.c (bpstat_stop_status): Delete useless code.
1448
52334bf5
JK
14492010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1450
1451 * printcmd.c (display_uses_solib_p): Remove variable section. Access
1452 objfile via SYMBOL_SYMTAB.
1453
708ead4e
TT
14542010-01-26 Tom Tromey <tromey@redhat.com>
1455
1456 PR exp/7643:
1457 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
1458 coerce_array on result.
1459
b14e635e
SW
14602010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
1461
1462 * cp-namespace.c (cp_lookup_symbol_namespace): Added
1463 search_parent argument.
1464 (cp_add_using): Initialize 'searched' field.
1465 (reset_directive_searched): New function.
1466 * cp-support.h: Add 'searched' field to using_direct struct.
1467 (cp_lookup_symbol_imports): Ditto.
1468 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
1469 Perform recursive search.
1470 Implement non parent search.
1471 * valops.c (value_maybe_namespace_elt): Updated.
1472
8540c487
SW
14732010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
1474
1475 PR gdb/10929:
1476 * dwarf2read.c (read_lexical_block_scope): Create blocks for
1477 scopes which contain using directives even if they contain no
1478 declarations.
1479 * symtab.c (lookup_symbol_aux): Pass lowest level block to
1480 la_lookup_symbol_nonlocal.
1481 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
1482 cp_lookup_symbol_namespace.
1483 (cp_lookup_symbol_namespace): Perform an import lookup at every
1484 block level.
1485 (cp_lookup_symbol_imports): New function.
1486 (cp_lookup_symbol_in_namespace): New function.
1487
421d5d99
TT
14882010-01-25 Tom Tromey <tromey@redhat.com>
1489
1490 PR gdb/11049:
1491 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
1492 result.
1493
6bcc772d
RO
14942010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1495
1496 * configure.ac: Only use host_os part when disabling TUI on osf.
1497 Use test to check variables, prefix strings with x.
1498 * configure: Regenerate.
1499
1500 * solib-osf.c (osf_current_sos): Initialize tail.
1501
1c1238a5
TG
15022010-01-25 gingold <gingold@adacore.com>
1503
1504 * windows-nat.c (windows_continue): Use %x to print thread id.
1505 (get_windows_debug_event): Ditto.
1506
0b92b5bb
TT
15072010-01-22 Tom Tromey <tromey@redhat.com>
1508
1509 PR symtab/11199:
1510 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
1511 type and arguments. Use smash_to_methodptr_type.
1512 (read_structure_type): Call quirk_gcc_member_function_pointer
1513 later.
1514 * gdbtypes.h (smash_to_methodptr_type): Declare.
1515 * gdbtypes.c (smash_to_methodptr_type): New function.
1516 (lookup_methodptr_type): Use it.
1517
0d5392b8
TT
15182010-01-21 Tom Tromey <tromey@redhat.com>
1519
1520 PR symtab/11198:
1521 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
1522 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
1523 * glibc-tdep.c (find_minsym_and_objfile): Remove.
1524 (glibc_skip_solib_resolver): Use
1525 lookup_minimal_symbol_and_objfile.
1526
e6d088ec
KT
15272010-01-21 Kai Tietz <kai.tietz@onevision.com>
1528
1529 * inflow.c (check_syscall): Guard by #if clause for GO32 and
1530 WIN32 targets.
1531
b966cb8a
TT
15322010-01-20 Tom Tromey <tromey@redhat.com>
1533
1534 PR backtrace/10770:
1535 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
1536 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
1537 * dwarf2expr.c (new_dwarf_expr_context): Allocate
1538 dwarf_stack_values, not CORE_ADDRs.
1539 (execute_stack_op): Change DW_OP_div and comparison operators to
1540 use signed operands.
1541
3f81c18a
VP
15422010-01-20 Vladimir Prus <vladimir@codesourcery.com>
1543
1544 Per-inferior args and tty and environment.
1545
1546 * infcmd.c (inferior_args): Rename to ...
1547 (inferior_args_scratch): ... this.
1548 (inferior_io_terminal): Rename to ...
1549 (inferior_io_terminal_scratch): ... this.
1550 (inferior_argc, inferior_argv): Remove.
1551 (set_inferior_io_terminal, get_inferior_io_terminal): Store
1552 inside current_inferior().
1553 (set_inferior_tty_command, show_inferior_tty_command): New.
1554 (get_inferior_args, set_inferior_args): Store inside
1555 current_inferior().
1556 (notice_args_set): Likewise and rename to...
1557 (set_args_command): ... this.
1558 (set_inferior_args_vector): Likewise.
1559 (notice_args_read): Rename to...
1560 (show_args_command): ...new.
1561 (tty_command): Remove.
1562 (run_command_1): Don't free old args, as they are freed by
1563 set_inferior_arg now.
1564 (run_no_args_command): Likewise.
1565 (inferior_environ): Remove.
1566 (run_command_1): Use environment of the current inferior.
1567 (environment_info, set_environment_command)
1568 (unset_environment_command, path_info, path_command): Likewise.
1569 (_initialize_infcmd): Adjust for function and variable renames.
1570 Do not init inferior_environ.
1571 * inferior.h (set_inferior_arg): Adjust prototype.
1572 (struct inferior): New fields args, argc, argv, terminal, environment.
1573 (inferior_environ): Remove declaration.
1574 * inferior.c (free_inferior): Free new fields.
1575 (add_inferior_silent): Initialize 'environment' field.
1576 * main.c (captured_main): Set arguments only after the initial
1577 inferior has been created. Set set_inferior_io_terminal,
1578 not tty_command.
1579 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
1580 inferior.
1581 (_initialize_mi_cmd_env): Adjust for disappearance of global
1582 inferior_environ.
1583 * solib.c (solib_find): Use environment of the current inferior.
1584
d8b65138
JK
15852010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1586
1587 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
1588 HAVE_PYTHON.
1589 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
1590
692465f1
JB
15912010-01-20 Joel Brobecker <brobecker@adacore.com>
1592
1593 Get rid of ada-lang.c:function_name_from_pc.
1594 * ada-lang.c: Add "stack.h" #include.
1595 (function_name_from_pc): Delete.
1596 (is_known_support_routine): Replace call to function_name_from_pc
1597 by call to find_frame_funname.
1598 (ada_unhandled_exception_name_addr_from_raise): Likewise.
1599
95519e0e
TT
16002010-01-19 Tom Tromey <tromey@redhat.com>
1601
1602 PR c++/11026:
1603 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
1604 objfile obstack.
1605
95c11dc7
TT
16062010-01-19 Tom Tromey <tromey@redhat.com>
1607
1608 * top.c (stop_sig, float_handler, do_nothing): Remove.
1609
a0f49112
JK
16102010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1611
1612 * breakpoint.c (watchpoint_check): Check the call
1613 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
1614 Extend the comment.
1615 * config/djgpp/fnchange.lst: Add translations for
1616 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
1617 watchpoint-cond-gone-stripped.c.
1618
ceeb3d5a
TT
16192010-01-19 Tom Tromey <tromey@redhat.com>
1620
1621 PR c++/8000:
1622 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
1623 into parent scope, and enumerator into grandparent scope.
1624
2b71fc8e
JB
16252010-01-19 Joel Brobecker <brobecker@adacore.com>
1626
1627 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
1628
03564ed9
JB
16292010-01-19 Joel Brobecker <brobecker@adacore.com>
1630
1631 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
1632 i[34567]86-*-solaris2.1[0-9]*.
1633 * configure.tgt: Likewise.
1634
fb2e7cb4
JB
16352010-01-19 Joel Brobecker <brobecker@adacore.com>
1636
1637 * NEWS: Document the source command enhancement allowing it
1638 to load Python scripts. Document the "set/show script-extension"
1639 commands.
1640
1cb5e2a4
JB
16412010-01-19 Joel Brobecker <brobecker@adacore.com>
1642
1643 Add -Wunused-function to compile flags.
1644 * configure.ac: Add -Wunused-function to build_warnings.
1645 * configure: Regenerate.
1646
0ec6cd0c
JB
16472010-01-19 Joel Brobecker <brobecker@adacore.com>
1648
1649 "delete" ada-lex.c:input function, not used.
1650 * ada-lex.l: #define YY_NO_INPUT.
1651
b74845da
JB
16522010-01-19 Joel Brobecker <brobecker@adacore.com>
1653
1654 Delete free_named_symtabs and associated cleanup.
1655 * symfile.h (free_named_symtabs): Delete declaration.
1656 * symfile.c: Remove some commented out code (clear_symtab_users_once).
1657 (cashier_psymtab): Comment function out.
1658 Delete declaration.
1659 (free_named_symtabs): Delete.
1660 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
1661 * dbxread.c (end_psymtab): Likewise.
1662 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
1663 * exec.c (exec_close_1): Ditto.
1664 * xcoffread.c (xcoff_end_psymtab): Likewise.
1665
65c06092
JB
16662010-01-19 Joel Brobecker <brobecker@adacore.com>
1667
1668 * stack.c (print_block_frame_labels): Comment function out.
1669
d5cd6034
JB
16702010-01-19 Joel Brobecker <brobecker@adacore.com>
1671
1672 Delete unused or undefined functions.
1673 * breakpoint.c (ep_parse_optional_filename): Delete.
1674 * dcache.c (dcache_write_line): Remove declaration.
1675 * infrun.c (build_infrun): Remove declaration.
1676 * tracepoint.c (tracepoint_save_command): Remove declaration.
1677 * linux-nat.c (init_lwp_list): Delete. No longer used.
1678 * event-loop.c (check_async_signal_handlers): Delete declaration.
1679 * infrun.c (init_execution_control_state): Delete.
1680 (proceed): Update comment to avoid mentioning
1681 init_execution_control_state.
1682 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
1683 * ada-lang.c (ada_to_static_fixed_value): Delete.
1684 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
1685 * cp-namespace.c (cp_copy_usings): Delete.
1686 * xml-syscall.c (xml_number_of_syscalls): Delete.
1687 * progspace.c (find_program_space_by_num): Delete.
1688 * inflow.c (handle_sigio): Delete declaration.
1689 * hppa-tdep.c (hppa_alignof): Delete.
1690 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
1691 (mipsnbsd_core_osabi_sniffer): Delete.
1692
4e8f195d
TT
16932010-01-18 Tom Tromey <tromey@redhat.com>
1694
1695 PR c++/9680:
1696 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
1697 (CONST_CAST): New tokens.
1698 (exp): Add new productions.
1699 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
1700 reinterpret_cast.
1701 (is_cast_operator): New function.
1702 (yylex): Handle cast operators specially.
1703 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
1704 UNOP_REINTERPRET_CAST>: New cases.
1705 * expprint.c (print_subexp_standard): Likewise.
1706 (op_name_standard): Likewise.
1707 (dump_subexp_body_standard): Likewise.
1708 * parse.c (operator_length_standard): Likewise.
1709 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
1710 UNOP_REINTERPRET_CAST.
1711 * gdbtypes.c (class_types_same_p): New function.
1712 (is_ancestor): Use it.
1713 (is_public_ancestor): New function.
1714 (is_unique_ancestor_worker): Likewise.
1715 (is_unique_ancestor): Likewise.
1716 * gdbtypes.h (class_types_same_p, is_public_ancestor)
1717 (is_unique_ancestor): Declare.
1718 * valops.c (value_reinterpret_cast): New function.
1719 (dynamic_cast_check_1): Likewise.
1720 (dynamic_cast_check_2): Likewise.
1721 (value_dynamic_cast): Likewise.
1722 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
1723
d9c57d9f
JB
17242010-01-18 Joel Brobecker <brobecker@adacore.com>
1725
1726 Fix build failure when building without Python support.
1727 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
1728 is not defined.
1729
f80d3ff2
JB
17302010-01-18 Joel Brobecker <brobecker@adacore.com>
1731
1732 Use XVS field type instead of doing a parallel lookup.
1733 * ada-lang.c (ada_get_base_type): Follow the XVS field type
1734 if it is a reference type instead of doing a type lookup using
1735 the XVS field name.
1736
5bf03f13
JB
17372010-01-18 Joel Brobecker <brobecker@adacore.com>
1738
1739 Trust PAD types instead of using PAD___XVS.
1740 * ada-lang.c (trust_pad_over_xvs): New static variable.
1741 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
1742 parallel XVS type, follow the XVS type instead of the PAD type.
1743 (unwrap_value): Make sure that there is no parallel XVE type
1744 before returning the value as is.
1745 (set_ada_list, show_ada_list): New static variables.
1746 (set_ada_command, show_ada_command): New functions.
1747 (_initialize_ada_language): Add new "set/show ada" prefix commands.
1748 Add new "set/show ada trust-PAD-over-XVS" setting.
1749
973817a3
JB
17502010-01-18 Tom Tromey <tromey@redhat.com>
1751 Thiago Jung Bauermann <bauerman@br.ibm.com>
1752
1753 Allow "source" to load python scripts.
1754 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
1755 * python/python.c (source_python_script): New function.
1756 * python/python.h (source_python_script): Add declaration.
1757 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
1758 (script_ext_off, script_ext_soft, script_ext_strict)
1759 (script_ext_enums, script_ext_mode): New static constants.
1760 (show_script_ext_mode, find_and_open_script): New functions.
1761 (source_script): Enhance to handle Python scripts.
1762 (init_cli_cmds): Add set/show script-extension commands.
1763
98e03262
SS
17642010-01-16 Stan Shebs <stan@codesourcery.com>
1765
1766 * tracepoint.h (struct trace_status): Use unsigned long long
1767 instead of size_t.
1768 * tracepoint.c (trace_status_command): Fix printf directive.
1769 (trace_save_command): Check fwrite returns, fix printf directive.
1770 (trace_filename): New global.
1771 (tfile_open): Set it, check read returns.
1772 (tfile_close): Free trace_filename.
1773 (tfile_get_traceframe_address): Check read returns.
1774 (tfile_trace_find): Ditto.
1775 (tfile_fetch_registers): Ditto.
1776 (tfile_xfer_partial): Ditto.
1777 (tfile_get_trace_state_variable_value): Ditto.
1778
00bf0b85
SS
17792010-01-15 Stan Shebs <stan@codesourcery.com>
1780
1781 Add trace file support.
1782 * tracepoint.h (enum trace_stop_reason): New enum.
1783 (struct trace_status): New struct.
1784 (parse_trace_status): Declare.
1785 (struct uploaded_tp): Move here from remote.c,
1786 add fields for actions.
1787 (struct uploaded_tsv): New struct.
1788 * tracepoint.c (tfile_ops): New target vector.
1789 (trace_fd): New global.
1790 (tfile_open): New function.
1791 (tfile_close): New function.
1792 (tfile_files_info): New function.
1793 (tfile_get_trace_status): New function.
1794 (tfile_get_traceframe_address): New function.
1795 (tfile_trace_find): New function.
1796 (tfile_fetch_registers): New function.
1797 (tfile_xfer_partial): New function.
1798 (tfile_get_trace_state_variable_value): New function.
1799 (init_tfile_ops): New function.
1800 (_initialize_tracepoint): Call it, add tfile target.
1801 (trace_status): New global.
1802 (current_trace_status): New function.
1803 (trace_running_p): Remove, change all users to get from
1804 current_trace_status()->running.
1805 (get_trace_status): Remove.
1806 (trace_status_command): Call target_get_trace_status directly,
1807 report more detail including tracing stop reasons.
1808 (trace_find_command): Always allow tfind on a file.
1809 (trace_find_pc_command): Ditto.
1810 (trace_find_tracepoint_command): Ditto.
1811 (trace_find_line_command): Ditto.
1812 (trace_find_range_command): Ditto.
1813 (trace_find_outside_command): Ditto.
1814 (trace_frames_offset, cur_offset): Declare as off_t.
1815 (trace_regblock_size): Rename from reg_size, update users.
1816 (parse_trace_status): New function.
1817 (tfile_interp_line): New function.
1818 (disconnect_or_stop_tracing): Ensure current trace
1819 status before asking what to do.
1820 (stop_reason_names): New global.
1821 (trace_save_command): New command.
1822 (get_uploaded_tp): Move here from remote.c.
1823 (find_matching_tracepoint): Ditto.
1824 (merge_uploaded_tracepoints): New function.
1825 (parse_trace_status): Use stop_reason_names.
1826 (_initialize_tracepoint): Define tsave command.
1827 * target.h (target_ops): New fields to_save_trace_data,
1828 to_upload_tracepoints, to_upload_trace_state_variables,
1829 to_get_raw_trace_data, change to_get_trace_status
1830 to take a pointer to a status struct.
1831 (target_save_trace_data): New macro.
1832 (target_upload_tracepoints): New macro.
1833 (target_upload_trace_state_variables): New macro.
1834 (target_get_raw_trace_data): New macro.
1835 * target.c (update_current_target): Add new methods, change
1836 signature of to_get_trace_status.
1837 * remote.c (hex2bin): Make globally visible.
1838 (bin2hex): Ditto.
1839 (remote_download_trace_state_variable): Download name also.
1840 (remote_get_trace_status): Update parameter, use
1841 parse_trace_status.
1842 (remote_save_trace_data): New function.
1843 (remote_upload_tracepoints): New function.
1844 (remote_upload_trace_state_variables): New function.
1845 (remote_get_raw_trace_data): New function.
1846 (remote_start_remote): Use them.
1847 (_initialize_remote_ops): Add operations.
1848 * ax-gdb.c: Include breakpoint.h.
1849 * breakpoint.c (create_tracepoint_from_upload): Use
1850 break_command_really, return tracepoint, warn about unimplemented
1851 parts.
1852 * NEWS: Mention trace file addition.
1853
d904de5b
JK
18542010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1855
1856 Fix compilation warning on gcc-3.4.
1857 * exec.c (print_section_info): Move the `displacement' variable
1858 initialization to its declaration.
1859
64aa9731
JK
18602010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1861
1862 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
1863 comparison.
1864
ca1f5def 18652010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
1866
1867 "info tasks" broken by typedefs in ATCB type definitions.
1868 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
1869 ada_check_typedef before retrieving the length of the type for
1870 regular fields.
1871
12ab9e09
JB
18722010-01-15 Joel Brobecker <brobecker@adacore.com>
1873
1874 Do not use name-based lookup for unconstrained packed arrays.
1875 * ada-lang.c (find_parallel_type_by_descriptive_type):
1876 Limit the fallback to name-based lookups to the case where
1877 the type is a constrained packed array.
1878
c389c3dc
JB
18792010-01-15 Joel Brobecker <brobecker@adacore.com>
1880
1881 Enhance gdb-gdb.py to handle main_type.type_specific.
1882 * gdb-gdb.py: Print the type-specific part of struct main_type.
1883
7991dee7
JK
18842010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1885
1886 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
1887 * configure: Regenerate.
1888 * config.in: Regenerate.
1889 * utils.c: Include sys/resource.h.
1890 (dump_core, can_dump_core): New.
1891 (internal_vproblem): Update the comment. Check can_dump_core while
1892 setting dump_core_p. Replace two abort calls by dump_core calls.
1893
93c26624
JK
18942010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1895 Eli Zaretskii <eliz@gnu.org>
1896
1897 * NEWS: Document the PIE support.
1898
55235ad7
JK
18992010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1900
1901 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
1902 (check_is_pie_binary, _initialize_linux_tdep): Remove.
1903
41752192
JK
19042010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1905
1906 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
1907 Replace exec_entry_point call by bfd_get_start_address.
1908
9f2982ff
JK
19092010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1910
1911 Support Valgrind attachments broken by the PIE support.
1912 * auxv.c: Include gdbcore.h.
1913 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
1914 parameters ops, object and annex. Remove their assertions.
1915 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
1916 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
1917 (memory_xfer_auxv): ... here.
1918 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
1919 memory_xfer_auxv.
1920 * procfs.c (procfs_xfer_partial): Likewise.
1921 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
1922 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
1923 (svr4_solib_create_inferior_hook): Conditionalize the
1924 svr4_relocate_main_executable call.
1925
61f0d762
JK
19262010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1927
1928 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
1929 target_section. Find SECT in current_target_sections, gdb_assert it.
1930 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
1931 New variable abfd.
1932 * symtab.c (lookup_objfile_from_block): Return the binary file instead
1933 of separate debug info file.
1934
51bee8e9
JK
19352010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1936
1937 Support PIEs with no symfile_objfile.
1938 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
1939 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
1940
b8040f19
JK
19412010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1942
1943 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
1944 code part to ...
1945 (svr4_static_exec_displacement): ... a new function.
1946 (svr4_exec_displacement): New function.
1947 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
1948 new_offsets using alloca now. Remove variable old_chain and changed.
1949 Call objfile_relocate unconditionally now.
1950
eb90ce83
DE
19512010-01-14 Doug Evans <dje@google.com>
1952
1953 * gdbtypes.c (arch_flags_type): Fix comment.
1954 * gdbtypes.h (arch_composite_type): Fix comment.
1955
bdfed3bc
TG
19562009-01-14 Tristan Gingold <gingold@adacore.com>
1957
1958 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
1959 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
1960 to symbol_file_add_from_bfd. Add OSO as separate objfile.
1961 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
1962 macho_add_oso_symfile.
1963 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
1964
1596ad23
JB
19652010-01-14 Joel Brobecker <brobecker@adacore.com>
1966
1967 Tru64: Dead threads are never deleted.
1968 * dec-thread.c (dec_thread_ptid_is_alive): New function.
1969 (dec_thread_count_gdb_threads): Fix counter increment.
1970 (dec_thread_add_gdb_thread): Fix *listp increment.
1971 (resync_thread_list): Fix bug in deletion of dead threads that
1972 caused all threads to be deleted, instead of just the dead ones.
1973
be759fcf
PM
19742010-01-13 Phil Muldoon <pmuldoon@redhat.com>
1975
1976 PR python/10705
1977
1978 * python/python-internal.h: Add lazy_string_object_type
1979 definition.
1980 (create_lazy_string_object, gdbpy_initialize_lazy_string)
1981 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
1982 * python/py-value.c (valpy_lazy_string): New function.
1983 (convert_value_from_python): Add lazy string conversion.
1984 * python/py-prettyprint.c (pretty_print_one_value): Check if
1985 return is also a lazy string.
1986 (print_string_repr): Add lazy string printing branch.
1987 (print_children): Likewise.
1988 * python/py-lazy-string.c: New file. Implement lazy strings.
1989 * python/python.c (_initialize_python): Call
1990 gdbpy_initialize_lazy_string.
1991 * varobj.c (value_get_print_value): Add lazy string printing
1992 branch. Account for encoding.
1993 * c-lang.c (c_printstr): Account for new encoding argument. If
1994 encoding is NULL, find encoding suited for type, otherwise use
1995 user encoding.
1996 * language.h (language_defn): Add encoding argument.
1997 (LA_PRINT_STRING): Likewise.
1998 * language.c (unk_lang_printstr): Update to reflect new encoding
1999 argument to language_defn.
2000 * ada-lang.h (ada_printstr): Likewise.
2001 * c-lang.h (c_printstr): Likewise.
2002 * p-lang.h (pascal_printstr);
2003 * f-lang.c (f_printstr): Likewise.
2004 * m2-lang.c (m2_printstr): Likewise.
2005 * objc-lang.c (objc_printstr): Likewise.
2006 * p-lang.c (pascal_printstr): Likewise.
2007 * scm-lang.c (scm_printstr): Likewise.
2008 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
2009 encoding argument.
2010 * ada-valprint.c (ada_printstr): Likewise.
2011 * f-valprint.c (f_val_print): Likewise
2012 * m2-valprint.c (m2_val_print): Likewise.
2013 * p-valprint.c (pascal_val_print): Likewise.
2014 * expprint.c (print_subexp_standard): Likewise.
2015 * valprint.c (val_print_string): Likewise.
2016 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
2017 (SUBDIR_PYTHON_SRCS): Likewise.
2018 (py-lazy-string.o): New rule.
2019
1fe72117 20202010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
2021
2022 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
2023 uninitialized" warning from gcc on local `tree'.
2024
dc146f7c
VP
20252010-01-13 Vladimir Prus <vladimir@codesourcery.com>
2026
2027 Implement core awareness.
2028
2029 * bcache.c (compare_ints): Remove
2030 (print_percentage): Use compare_positive_ints.
2031 * defs.h (compare_positive_ints): Declare.
2032 * linux-nat.h (struct lin_lwp): New field core.
2033 (linux_nat_core_of_thread_1): Declare.
2034 * linux-nat.c (add_lwp): Init the 'core' field.
2035 (linux_nat_wait_1): Record the core.
2036 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
2037 (linux_nat_add_target): Register the above.
2038 * linux-thread-db.c (update_thread_core): New.
2039 (thread_db_find_new_threads): Update core information for
2040 every thread.
2041 * remote.c (struct private_thread_info): New.
2042 (free_private_thread_info, demand_private_info): New.
2043 (PACKET_qXfer_threads, use_osdata_threads): New.
2044 (struct thread_item, threads_parsing_context
2045 (start_thread, end_thread, thread_attributes)
2046 (thread_children, threads_children, threads_elements): New.
2047 (remote_threads_info): Try qXfer:threads before anything
2048 else.
2049 (remote_protocol_packets): Register qXfer:threads.
2050 (remote_open_1): Init use_osdata_threads.
2051 (struct stop_reply): New field 'core'.
2052 (remote_parse_stop_reply): Parse core number.
2053 (process_stop_reply): Record core number.
2054 (remote_xfer_partial): Handle qXfer:threads.
2055 (remote_core_of_thread): New.
2056 (init_remote_ops): Register remote_core_of_thread.
2057 (_initialize_remote): Register qXfer:read.
2058 * target.c (target_core_of_thread): New
2059 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
2060 (struct target_ops): New field to_core_of_threads.
2061 (target_core_of_thread): Declare.
2062 * gdbthread.h (struct thread_info): New field private_dtor.
2063 * thread.c (print_thread_info): Report the core.
2064 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
2065 * utils.c (compare_positive_ints): New.
2066 * features/threads.dtd: New.
2067 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
2068 * mi/mi-main.c (struct collect_cores_data, collect_cores)
2069 (do_nothing, free_vector_of_osdata_items)
2070 (splay_tree_int_comparator, free_splay_tree): New.
2071 (print_one_inferior_data): Implemented printing of selected
2072 inferiors. Collect and print cores.
2073 (output_cores): New.
2074 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
2075 thread groups together with --available.
2076
d30c5336
JK
20772010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2078
2079 * configure: Regenerate (for _STRUCTURED_PROC).
2080
02893727
JB
20812010-01-12 Joel Brobecker <brobecker@adacore.com>
2082
2083 Delete dead function.
2084 * ada-lang.c (extract_string): Delete. No longer used.
2085
46ed2d6f
JB
20862010-01-12 Joel Brobecker <brobecker@adacore.com>
2087
2088 Fix -Wunused warning in dec-thread.c.
2089 * dec-thread.c (dec_thread_count_gdb_threads)
2090 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
2091
606b8d1a
JB
20922010-01-12 Joel Brobecker <brobecker@adacore.com>
2093
2094 * ada-valprint.c (ada_print_floating): Remove trailing space.
2095
b4ba55a1
JB
20962010-01-12 Joel Brobecker <brobecker@adacore.com>
2097
2098 Add support for DW_AT_GNAT_descriptive_type.
2099 * gdbtypes.h (enum type_specific_kind): New enum.
2100 (struct main_type) [type_specific_field]: New component.
2101 [type_specific]: Add new component "gnat_stuff".
2102 (struct gnat_aux_type): New type.
2103 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
2104 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
2105 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
2106 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
2107 (TYPE_SPECIFIC_FIELD): New macros.
2108 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
2109 type does not hold any cplus-specific data.
2110 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
2111 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
2112 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
2113 cplus-specific data.
2114 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
2115 Set new component TYPE_SPECIFIC_FIELD (type).
2116 (gnat_aux_default): New constant.
2117 (allocate_gnat_aux_type): New function.
2118 (init_type): Add initialization the type-specific stuff for
2119 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
2120 (print_gnat_stuff): New function.
2121 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
2122 specific data. Adjust code that prints the contents of the
2123 type-specific union using the TYPE_SPECIFIC_FIELD value.
2124 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
2125 the type cplus stuff for Ada types.
2126 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
2127 Error out if these routines are called with an Ada type.
2128 (read_structure_type, read_array_type, read_subrange_type):
2129 Add call to set_descriptive_type.
2130 (set_die_type): Initialize the gnat-specific data if necessary.
2131 (need_gnat_info, die_descriptive_type, set_descriptive_type):
2132 New functions.
2133 * ada-lang.c (decode_constrained_packed_array_type): Use
2134 decode_constrained_packed_array_type instead of doing a standard
2135 lookup to locate a parallel type.
2136 (find_parallel_type_by_descriptive_type): New function.
2137 (ada_find_parallel_type_with_name): New function.
2138 (ada_find_parallel_type): Reimplement using
2139 ada_find_parallel_type_with_name.
2140 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
2141 to check if type has a cplus stuff.
2142 * linespec.c (total_number_of_methods): Likewise.
2143 * mdebugread.c (new_type): Likewise.
2144
b0f02ee9
JK
21452010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 * NEWS: Document the 0b binary number prefix parsing.
2148
b260e109
JK
21492010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2150
2151 * objfiles.c (objfile_relocate1): Change the return type to int.
2152 Describe the new return value. Return non-zero if data changed.
2153 (objfile_relocate): New variable changed. Set it. Call
2154 breakpoint_re_set depending on CHANGED.
2155
b5cfddf5
JK
21562010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2157
2158 Implement binary numbers parsing.
2159 * c-exp.y (parse_number): New case 'b' and 'B'.
2160
e0ae4240
JK
21612010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2162 Tristan Gingold <gingold@adacore.com>
2163
2164 * solib.c (info_sharedlibrary_command): Replace
2165 objfile_has_partial_symbols and objfile_has_full_symbols calls by
2166 objfile_has_symbols.
2167
6e0e5977
JB
21682010-01-10 Joel Brobecker <brobecker@adacore.com>
2169
2170 * NEWS: Document the improvements made to the mips-irix port.
2171
7348c5e1
JB
21722010-01-09 Joel Brobecker <brobecker@adacore.com>
2173
2174 Fix the documentation of valprint.c:value_print.
2175 * valprint.c (value_print): Update the function description to
2176 mention that the syntax of the output follows the current_language,
2177 not necessarily C.
2178
567995e1
JK
21792010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2180
2181 Fix displacement of separate debug info files.
2182 * objfiles.c (objfile_relocate): Rename to ...
2183 (objfile_relocate1): ... here and make it static. Extend the comment.
2184 (objfile_relocate): New function.
2185 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
2186 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
2187 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
2188 allocated using alloca.
2189 * symfile.c (copy_section_addr_info): Remove.
2190 (build_section_addr_info_from_objfile): Make it global. New variables
2191 addr_bit and mask, use them.
2192 * symfile.h (build_section_addr_info_from_objfile): New prototype.
2193 (copy_section_addr_info): Remove.
2194
6d8eadbd
JB
21952010-01-09 Joel Brobecker <brobecker@adacore.com>
2196
2197 Signal unwinder for mips-irix N32.
2198 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
2199 tramp-frame.h.
2200 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
2201 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
2202 (SIGCONTEXT_LO_OFF): New macros.
2203 (mips_irix_n32_tramp_frame_init): New function.
2204 (mips_irix_n32_tramp_frame): New static constant.
2205 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
2206
27087a3d
JB
22072010-01-09 Joel Brobecker <brobecker@adacore.com>
2208
2209 Breakpoint in shared library does not work on mips-irix.
2210 * procfs.c: #include "observer.h".
2211 (procfs_inferior_created): New function, moving here the code
2212 which unsets the syssgi syscall-exit notifications.
2213 (procfs_create_inferior): Remove the code which unsets the syssgi
2214 syscall-exit notifications. It is too early to do this here.
2215 (_initialize_procfs): Attach the procfs_inferior_created observer.
2216
f08877ba
JB
22172010-01-09 Joel Brobecker <brobecker@adacore.com>
2218
2219 Wrong return convention for arrays (mips-irix).
2220 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
2221 128 bits or smaller are returned the same way as structs
2222 and unions of the the same size.
2223
e4b97d48
JB
22242010-01-09 Joel Brobecker <brobecker@adacore.com>
2225
2226 Cannot set the PC on mips-irix.
2227 * irix5-nat.c (fill_gregset): Check regno against the raw PC
2228 register number, no the cooked one.
2229
11377e68
JB
22302010-01-09 Joel Brobecker <brobecker@adacore.com>
2231
2232 Error while loading core file on mips-irix.
2233 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
2234 if debugging from a core file.
2235
b2391021
JB
22362010-01-09 Joel Brobecker <brobecker@adacore.com>
2237
2238 GDB hangs when attaching to process on mips-irix.
2239 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
2240 attaching to a process.
2241
f2ec0ecf
JB
22422010-01-09 Joel Brobecker <brobecker@adacore.com>
2243
2244 Use the correct breakpoint instruction on mips-irix.
2245 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
2246 containing the correct breakpoint instruction to use on mips-irix.
2247 Use it when the osabi is GDB_OSABI_IRIX.
2248
3c95f01c
JB
22492010-01-09 Joel Brobecker <brobecker@adacore.com>
2250
2251 -Wunused warning in procfs.c (mips-irix only).
2252 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
2253 throughout instead of using praddset and prdelset respectively.
2254
4b7703ad
JB
22552010-01-09 Joel Brobecker <brobecker@adacore.com>
2256
2257 GDB crash while stepping into function.
2258 * infrun.c (handle_inferior_event): Refetch the current frame
2259 after handling what.main_action, in case that pointer became
2260 dangling.
2261
12c89474
JB
22622010-01-09 Joel Brobecker <brobecker@adacore.com>
2263
2264 Fix build failure of solaris-hosted cross debuggers.
2265 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
2266
1a3fd262 22672010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
2268
2269 Fix build failure on sparc-solaris.
2270 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
2271
75242ef4
JK
22722010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2273
2274 Move some symfile code into subroutines.
2275 * symfile.h (relative_addr_info_to_section_offsets)
2276 (addr_info_make_relative): New prototypes.
2277 * symfile.c (default_symfile_offsets): Move a part to ...
2278 (relative_addr_info_to_section_offsets): ... this new function.
2279 (default_symfile_offsets): Call it.
2280 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
2281 this part to ...
2282 (addr_info_make_relative): ... this new function.
2283
268a4a75
JK
22842010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2285
2286 Add from_tty to solib_create_inferior_hook.
2287 * infcmd.c (post_create_inferior): Move solib_add after
2288 solib_create_inferior_hook. Pass from_tty to
2289 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
2290 0 from_tty and comment why.
2291 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
2292 * linux-nat.c (linux_child_follow_fork): Likewise.
2293 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
2294 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
2295 from_tty.
2296 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
2297 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2298 * solib-null.c (null_solib_create_inferior_hook): Likewise.
2299 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2300 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
2301 * solib-som.c (som_solib_create_inferior_hook): Likewise.
2302 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
2303 Pass it to svr4_so_ops.solib_create_inferior_hook.
2304 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
2305 from_tty.
2306 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
2307 solib_add.
2308 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
2309 enable_break.
2310 * solib-target.c (solib_target_solib_create_inferior_hook): New
2311 parameter from_tty.
2312 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
2313 it to ops->solib_create_inferior_hook.
2314 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
2315 Move solib_add after solib_create_inferior_hook, call it now with
2316 from_tty as 0. New comment there.
2317 * solib.h (solib_create_inferior_hook): New parameter from_tty.
2318 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
2319 Likewise.
2320
cf00dfa7
VP
23212010-01-08 Vladimir Prus <vladimir@codesourcery.com>
2322
2323 Fix multiexec race.
2324 * infrun.c (handle_inferior_event): Use get_thread_regcache
2325 with events ptid, not get_current_regcache.
2326
f91e5ac3
JB
23272009-01-08 Joel Brobecker <brobecker@adacore.com>
2328
2329 GDB crash with empty executable name (MinGW).
2330 * source.c (openp): Add assert that parameter string is not NULL.
2331 if parameter string is an empty string, then return with a failure
2332 immediately.
2333
92b9ce5b
JB
23342009-01-08 Joel Brobecker <brobecker@adacore.com>
2335
2336 Get rid of support for VAX Floats.
2337 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2338 (ada_vax_float_print_function): Delete.
2339 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2340 (ada_vax_float_print_function): Delete.
2341 * ada-typeprint.c (print_vax_floating_point_type): Delete.
2342 (ada_print_type): Remove support for VAX floats.
2343 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
2344
268a4a75 23452010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
2346
2347 * stabsread.c (read_args): Handle zero arguments.
2348
f0f20949
JB
23492009-01-08 Joel Brobecker <brobecker@adacore.com>
2350
2351 Cannot find in-tree libiconv.a after reconfigure.
2352 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
2353 that we can use, then cache the path to this archive.
2354 * configure: Regenerate.
2355
6b6218c5
SS
23562010-01-07 Stan Shebs <stan@codesourcery.com>
2357
35b1e5cc
SS
2358 Make tracepoint operations go through target vector.
2359 * target.h (enum trace_find_type): New enum.
2360 (struct target_ops): New fields to_trace_init,
2361 to_download_tracepoint, to_download_trace_state_variable,
2362 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
2363 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
2364 to_set_disconnected_tracing.
2365 (target_trace_init): New macro.
2366 (target_download_tracepoint): New macro.
2367 (target_download_trace_state_variable): New macro.
2368 (target_trace_start): New macro.
2369 (target_trace_set_readonly_regions): New macro.
2370 (target_get_trace_status): New macro.
2371 (target_trace_stop): New macro.
2372 (target_trace_find): New macro.
2373 (target_get_trace_state_variable_value): New macro.
2374 (target_set_disconnected_tracing): New macro.
2375 * target.c (update_current_target): Inherit and set defaults for
2376 tracepoint operations.
2377 * tracepoint.c (default_collect): Make globally visible.
2378 (target_is_remote): Remove, along with all calls.
2379 (tvariables_info): Call target_get_trace_state_variable_value.
2380 (remote_set_transparent_ranges): Remove.
2381 (trace_start_command): Call target_trace_init,
2382 target_download_tracepoint, etc.
2383 (download_tracepoint): Remove.
2384 (trace_stop_command): Simplify.
2385 (stop_tracing): Call target_trace_stop.
2386 (get_trace_status): Call target_get_trace_status.
2387 (trace_status_command): Add case for targets that cannot trace.
2388 (finish_tfind_command): Change to take numerical arguments, call
2389 target_trace_find.
2390 (trace_find_command): Update call to finish_tfind_command.
2391 (trace_find_pc_command): Ditto.
2392 (trace_find_tracepoint_command): Ditto.
2393 (trace_find_line_command): Ditto.
2394 (trace_find_range_command): Ditto.
2395 (trace_find_outside_command): Ditto.
2396 (set_disconnected_tracing_value): Call
2397 target_set_disconnected_tracing.
2398 * remote.c: Add protocol encoding bits from tracepoint.c.
2399 (trace_error): Move from tracepoint.c.
2400 (remote_get_noisy_reply): Ditto.
2401 (free_actions_list_cleanup_wrapper): Ditto.
2402 (free_actions_list): Ditto.
2403 (remote_trace_init): New function.
2404 (remote_download_tracepoint): New function.
2405 (remote_download_trace_state_variable): New function.
2406 (remote_trace_set_readonly_regions): New function.
2407 (remote_trace_start): New function.
2408 (remote_get_trace_status): New function.
2409 (remote_trace_stop): New function.
2410 (remote_trace_find): New function.
2411 (remote_download_trace_state_variable): New function.
2412 (remote_set_disconnected_tracing): New function.
2413 (init_remote_ops): Add tracepoint operations.
2414
6b6218c5
SS
2415 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
2416
089b4803
TG
24172010-01-07 Tristan Gingold <gingold@adacore.com>
2418
2419 * symfile.c (build_section_addr_info_from_objfile): New function.
2420 (symbol_file_add_separate): Don't use offsets from objfile but
2421 built an addr info.
2422
d5551862
SS
24232010-01-06 Stan Shebs <stan@codesourcery.com>
2424
2425 Support disconnected tracing.
2426 * infcmd.c (detach_command): Ask whether to stop tracing.
2427 * cli/cli-cmds.c (quit_command): Ditto.
2428 * breakpoint.h (struct breakpoint): New field number_on_target.
2429 * breakpoint.c (create_tracepoint_from_upload): New function.
2430 (get_tracepoint_by_number_on_target): New function.
2431 * remote.c (struct remote): New field disconnected_tracing.
2432 (remote_disconnected_tracing_feature): New function.
2433 (remote_protocol_features): Add DisconnectedTracing.
2434 (struct uploaded_tp): New struct.
2435 (uploaded_tps): New global.
2436 (get_uploaded_tp): New function.
2437 (find_matching_tracepoint): New function.
2438 (remote_get_tracing_state): New function.
2439 (remote_start_remote): Call it.
2440 * tracepoint.c (disconnected_tracing): New global.
2441 (trace_start_command): Initialize number_on_target.
2442 (stop_tracing): New function, split out from...
2443 (trace_stop_command): Call stop_tracing.
2444 (get_trace_status): New function, split out from...
2445 (trace_status_command): Call get_trace_status, add info on
2446 disconnection behavior.
2447 (disconnect_or_stop_tracing): New function.
2448 (finish_tfind_command): Translate from number on target.
2449 (trace_find_tracepoint_command): Translate to number on target.
2450 (send_disconnected_tracing_value): New function.
2451 (set_disconnected_tracing): New function.
2452 (_initialize_tracepoint): Add disconnected-tracing variable.
2453 * NEWS: Mention disconnected tracing.
2454
15d123c9
TG
24552010-01-06 Tristan Gingold <gingold@adacore.com>
2456
2457 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
2458 parameter to main_objfile. Iterate on all separate debug objfiles.
2459 * symfile.h (symbol_file_add_separate)
2460 (find_separate_debug_file_by_debuglink): Remove parameter names.
2461 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
2462 (reread_symbols): Use free_objfile_separate_debug.
2463 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
2464 Adjust comment.
2465 (objfile_separate_debug_iterate, add_separate_debug_objfile)
2466 (free_objfile_separate_debug): New prototypes.
2467 * objfiles.c (objfile_separate_debug_iterate): New function.
2468 (add_separate_debug_objfile, free_objfile_separate_debug): New
2469 functions.
2470 (free_objfile): Use free_objfile_separate_debug. Adjust for
2471 multiple separate debug objfile.
2472 (objfile_has_symbols): Adjust comment. Iterate on all separate
2473 debug objfiles.
2474 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
2475 debug objfile.
2476 (lookup_minimal_symbol_text): Ditto.
2477 (lookup_minimal_symbol_by_pc_name): Ditto.
2478 (lookup_minimal_symbol_solib_trampoline): Ditto.
2479 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
2480 debug objfiles.
2481
7a697b8d
SS
24822010-01-05 Stan Shebs <stan@codesourcery.com>
2483
2484 Add fast tracepoints.
2485 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
2486 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
2487 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
2488 * breakpoint.c (tracepoint_type): New function.
2489 (ALL_TRACEPOINTS): Use it.
2490 (should_be_inserted): Ditto.
2491 (bpstat_check_location): Ditto.
2492 (print_one_breakpoint_location): Ditto.
2493 (user_settable_breakpoint): Ditto.
2494 (set_breakpoint_location_function): Ditto.
2495 (disable_breakpoints_in_shlibs): Ditto.
2496 (delete_trace_command): Ditto.
2497 (print_it_typical): Add bp_fast_tracepoint case.
2498 (bpstat_what): Ditto.
2499 (print_one_breakpoint_location): Ditto.
2500 (allocate_bp_location): Ditto.
2501 (mention): Ditto.
2502 (breakpoint_re_set_one): Ditto.
2503 (disable_command): Ditto.
2504 (enable_command): Ditto.
2505 (check_fast_tracepoint_sals): New function.
2506 (break_command_really): Call it.
2507 (ftrace_command): New function.
2508 (_initialize_breakpoint): Add ftrace command.
2509 * gdbarch.sh (fast_tracepoint_valid_at): New.
2510 * gdbarch.h, gdbarch.c: Regenerate.
2511 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
2512 (i386_gdbarch_init): Use it.
2513 * remote.c (struct remote_state): New field fast_tracepoints.
2514 (PACKET_FastTracepoints): New packet config type.
2515 (remote_fast_tracepoint_feature): New function.
2516 (remote_protocol_features): Add FastTracepoints.
2517 (remote_supports_fast_tracepoints): New function.
2518 (_initialize_remote): Add FastTracepoints.
2519 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
2520 * NEWS: Mention fast tracepoints.
2521
737a160e
JB
25222010-01-06 Joel Brobecker <brobecker@adacore.com>
2523
2524 * gdb-gdb.py: New file.
2525
ce6cca6d
MS
25262010-01-05 Michael Snyder <msnyder@vmware.com>
2527
2528 * infrun.c (handle_inferior_event): Fix typo in comment.
2529
0d15807d
JK
25302010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2531
2532 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
2533
7803799a
UW
25342010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2535
2536 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
2537 and s390x-linux64.
2538 (s390-linux32-expedite): Define.
2539 (s390-linux64-expedite): Define.
2540 (s390x-linux64-expedite): Define.
2541 * features/s390-acr.xml: New file.
2542 * features/s390-fpr.xml: New file.
2543 * features/s390-core32.xml: New file.
2544 * features/s390-core64.xml: New file.
2545 * features/s390x-core64.xml: New file.
2546 * features/s390-linux32.xml: New file.
2547 * features/s390-linux64.xml: New file.
2548 * features/s390x-linux64.xml: New file.
2549 * features/s390-linux32.c: New generated file.
2550 * features/s390-linux64.c: New generated file.
2551 * features/s390x-linux64.c: New generated file.
2552
2553 * regformats/s390-linux32.dat: New generated file.
2554 * regformats/s390-linux64.dat: New generated file.
2555 * regformats/s390x-linux64.dat: New generated file.
2556 * regformats/reg-s390.dat: Remove.
2557 * regformats/reg-s390x.dat: Remove.
2558
2559 * s390-nat.c: Include "auxv.h" and <elf.h>.
2560 (HWCAP_S390_HIGH_GPRS): Define if undefined.
2561 (s390_target_wordsize): New function.
2562 (s390_auxv_parse): Likewise.
2563 (s390_get_hwcap): Likewise.
2564 (s390_read_description): Likewise.
2565 (_initialize_s390_nat): Install s390_auxv_parse and
2566 s390_read_description.
2567
2568 * s390-tdep.c: Include "features/s390-linux32.c",
2569 "features/s390-linux64.c", and "features/s390x-linux64.c".
2570 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
2571 (s390_register_call_saved): New function.
2572 (s390_register_name): Remove.
2573 (s390_register_type): Remove.
2574 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
2575 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
2576 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
2577 (s390_pseudo_register_name): New function.
2578 (s390_pseudo_register_type): New function.
2579 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
2580 Handle full GPR pesudos and varying pseudo register numbers.
2581 (s390_pseudo_register_write): Likewise
2582 (s390x_pseudo_register_read): Remove.
2583 (s390x_pseudo_register_write): Likewise.
2584 (s390_register_group): Remove.
2585 (s390_pseudo_register_group): New function.
2586 (s390_regmap_gregset): Add GPR upper halves.
2587 (s390x_regmap_gregset): Likewise.
2588 (s390_regmap_fpregset): Likewise.
2589 (s390_regmap_upper): New global variable.
2590 (s390_upper_regset): New global variable.
2591 (s390_upper_regset_sections): New global variable.
2592 (s390_regset_from_core_section): Handle GPR upper halves.
2593 (s390_core_read_description): New function.
2594 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
2595 register information. Handle varying pseudo register numbers.
2596 (s390_backchain_frame_unwind_cache): Likewise.
2597 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
2598 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
2599 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
2600 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
2601 Handle varying pseudo register numbers.
2602 (s390_unwind_pc): Handle varying pseudo register numbers.
2603 (s390_dwarf2_prev_register): New function.
2604 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
2605 register information. Handle varying pseudo register numbers.
2606 Install s390_dwarf2_prev_register to unwind full GPRs.
2607 (s390_gdbarch_init): Handle target descriptions. Assign varying
2608 pseudo register numbers. Install s390_adjust_frame_regnum.
2609 (_initialize_s390_tdep): Initialize target descriptions.
2610
2611 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
2612 (S390_NUM_REGS): Redefine to include upper half registers.
2613 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
2614 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
2615 (tdesc_s390_linux32): Add declaration.
2616 (tdesc_s390_linux64): Likewise.
2617 (tdesc_s390x_linux64): Likewise.
2618
1b1818e4
UW
26192010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2620
2621 * regset.h (struct core_regset_section): Add HUMAN_NAME.
2622 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
2623 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2624 (ppc_linux_vmx_regset_sections): Likewise.
2625 (ppc_linux_fp_regset_sections): Likewise.
2626
2627 * corelow.c (get_core_register_section): Constify arguments.
2628 (get_core_registers): Use gdbarch_core_regset_sections instead
2629 of hard-coded platform-specific register section names.
2630
dcbf108f
UW
26312010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2632
2633 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 2634 a register, assume the least-significant part is used.
dcbf108f
UW
2635 (write_pieced_value): Likewise.
2636
704e9165
UW
26372010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2638
2639 * printcmd.c: Include "arch-utils.h".
2640 (do_one_display): Re-parse expression if current architecture changed.
2641
c54eabfa
JK
26422010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2643 Joel Brobecker <brobecker@adacore.com>
2644
2645 * gdbtypes.c (check_typedef): New comment on type length.
2646 * value.c (allocate_value_lazy): Remove the unused atype variable. New
2647 comment on type length.
2648 (value_primitive_field): Keep the original TYPE value, new comment.
2649
50cb2941
JK
26502010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2651
2652 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
2653 p_start. Change != comparisons to > and < comparisons.
2654
be66db07
JK
26552010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2656
2657 * cli/cli-script.c (process_next_line): Check P2 overrun.
2658
abd775ce
JB
26592009-01-01 Joel Brobecker <brobecker@adacore.com>
2660
2661 Update the copyright hearder to add year 2010 for most GDB files.
2662
6479260d
JB
26632009-01-01 Joel Brobecker <brobecker@adacore.com>
2664
2665 Fix build failure in inf-ptrace.c.
2666 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
2667
4a70f654
JB
26682010-01-01 Joel Brobecker <brobecker@adacore.com>
2669
2670 * top.c (print_gdb_version): Update copyright year.
2671
b9ee2233
JB
26722010-01-01 Joel Brobecker <brobecker@adacore.com>
2673
2674 Fix break *FUN'address thread NUM.
2675 * ada-lex.l (task): Expand rule to also match the thread keyword.
2676
70575d34
JB
26772010-01-01 Joel Brobecker <brobecker@adacore.com>
2678
2679 Fix break *FUN'address task NUM.
2680 * ada-lex.l (task): New rule.
2681 * ada-lang.c (valid_task_id): Make sure the Ada task list has
2682 been built before using it.
2683
e1e4d4a4 2684For older changes see ChangeLog-2009.
c906108c
SS
2685\f
2686Local Variables:
2687mode: change-log
2688left-margin: 8
2689fill-column: 74
2690version-control: never
57da7796 2691coding: utf-8
c906108c 2692End:
This page took 1.882033 seconds and 4 git commands to generate.