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