gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
4 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
5 found by bfd_get_section_by_name.
6 * symfile.h (struct section_addr_info) <sectindex>: New comment.
7
8 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9
10 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
11 7.0 section" into "Changes in 7.1".
12
13 2010-02-19 Joel Brobecker <brobecker@adacore.com>
14
15 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
16 * version.in: Bump version to 7.1.50.20100219-cvs.
17
18 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
19
20 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
21 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
22
23 2010-02-17 Tom Tromey <tromey@redhat.com>
24
25 * NEWS: Add Python API Improvements section.
26
27 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
28
29 * NEWS: Correct typo.
30
31 2010-02-17 Tom Tromey <tromey@redhat.com>
32
33 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
34
35 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
36
37 * symfile.c (build_section_addr_info_from_objfile): Include sections
38 only if they are SEC_ALLOC or SEC_LOAD.
39
40 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
41
42 PR shlibs/11293
43 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
44 of ULONGEST for address size.
45
46 2010-02-17 Tom Tromey <tromey@redhat.com>
47
48 * NEWS: Add C++ improvements section.
49
50 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
51
52 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
53 PyThreadState_Swap): Avoid "statement with no effect" warning.
54
55 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
56
57 * solib-svr4.c (enable_break <target_auxv_search>): New variable
58 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
59
60 2010-02-17 Tristan Gingold <gingold@adacore.com>
61 Petr HluzĂ­n <petr.hluzin@gmail.com>
62
63 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
64 gdb_assert. Fix info->size for SIG prologue.
65
66 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
67
68 * infcmd.c (show_inferior_tty_command): Check for NULL.
69 Correct output message.
70
71 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
72
73 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
74 FUNCTION contains parentheses. Improve removal of a trailing
75 single quote.
76
77 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
78
79 * gcore.c (do_bfd_delete_cleanup): New function.
80 (gcore_command): Use it. Discard the cleanup after success.
81 (gcore_copy_callback): Delete dead code.
82
83 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
84
85 * symfile.c (addr_info_make_relative): Always use
86 find_lowest_section.
87
88 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
89
90 * NEWS: Added entry for namespace fixes.
91
92 2010-02-15 Tom Tromey <tromey@redhat.com>
93
94 * dwarf2read.c (guess_structure_name): Allocate name on the
95 objfile obstack.
96
97 2010-02-15 Tom Tromey <tromey@redhat.com>
98
99 * c-typeprint.c (c_type_print_base): Reverse order of test.
100
101 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
102
103 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
104 initialize it from ELF BFD. Extend the prelink condition by it.
105
106 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
107
108 * defs.h (parse_pid_to_attach): New.
109 * utils.c (parse_pid_to_attach): New.
110 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
111 * gnu-nat.c (gnu_attach): Likewise.
112 * nto-procfs.c (procfs_attach): Likewise.
113 * procfs.c (procfs_attach): Likewise.
114 * windows-nat.c (windows_attach): Likewise.
115 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
116 * inf-ttrace.c (inf_ttrace_attach): Likewise.
117 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
118 check.
119
120 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
121
122 * MAINTAINERS: Add myself for write after approval privileges.
123
124 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
125
126 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
127 block.
128
129 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
130
131 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
132 only if INFO_VERBOSE.
133
134 2010-02-12 Tomas Holmberg <th@virtutech.com>
135
136 * mi/mi-main.c: Added the --reverse flag to the following MI
137 commands: exec-continue, exec-finish, exec-next, exec-step,
138 exec-next-instruction, exec-step-instruction. This is to
139 support reverse execution over the MI interface to gdb.
140
141 2010-02-12 Pedro Alves <pedro@codesourcery.com>
142
143 * tracepoint.c (_initialize_tracepoint): Specify that the address
144 range of `tfind outsize' is exclusive, and that the address range
145 of `tfind range' is inclusive, in the commands' help strings.
146
147 2010-02-12 Joel Brobecker <brobecker@adacore.com>
148
149 Spurious "dll not found" error messages on x64-windows.
150 * windows-nat.c: Add include of complaints.h.
151 (handle_unload_dll): Change dll-not-found error into a complaint.
152
153 2010-02-12 Pedro Alves <pedro@codesourcery.com>
154
155 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
156 bp_tracepoint and bp_fast_tracepoint, not
157 bp_loc_software_breakpoint.
158 (update_global_location_list): Tracepoints are never duplicates of
159 anything.
160
161 2010-02-12 Pedro Alves <pedro@codesourcery.com>
162
163 * breakpoint.c (break_command_really): Change return type to int.
164 Return false if no breakpoint was created, true otherwise.
165 (trace_command): Don't set the tracepoint count if no tracepoint
166 was created.
167 (ftrace_command): Ditto.
168 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
169 created in the breakpoints table.
170
171 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
172 Ulrich Weigand <uweigand@de.ibm.com>
173
174 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
175
176 2010-02-11 Pedro Alves <pedro@codesourcery.com>
177
178 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
179 the offset value isn't of integral type.
180
181 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
182
183 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
184 New.
185
186 2010-02-11 Pedro Alves <pedro@codesourcery.com>
187
188 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
189 non-subscriptable types.
190 * valarith.c (binop_types_user_defined_p): New, abstracted out
191 from ...
192 (binop_user_defined_p): ... this.
193 * value.h (binop_types_user_defined_p): Declare.
194
195 2010-02-11 Pedro Alves <pedro@codesourcery.com>
196
197 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
198 Merge uploaded TSVs before merging uploaded tracepoints.
199
200 2010-02-11 Pedro Alves <pedro@codesourcery.com>
201
202 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
203
204 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
205
206 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
207 whitespace character after a dot in comment.
208 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
209 Likewise.
210 (list_args_or_locals): For the 'all' (that is
211 -stack-list-variables) case, always output list of tuples.
212 Output 'arg' field if variable is argument.
213
214 2010-02-10 Tom Tromey <tromey@redhat.com>
215
216 * parser-defs.h (parser_debug): Declare.
217 * parse.c (_initialize_parse): Install "debug parser" set/show
218 command.
219 (parser_debug): New global.
220 (show_parserdebug): New function.
221 * c-exp.y (c_parse): Set yydebug.
222
223 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
224
225 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
226 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
227 (tdesc_predefined_types): Add i387_ext, i386_eflags and
228 i386_mxcsr.
229 (tdesc_find_type): New.
230 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
231 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
232
233 * target-descriptions.h (tdesc_find_type): New.
234
235 2010-02-10 Michael Snyder <msnyder@vmware.com>
236
237 * gdb-gdb.py: Comment fix.
238
239 2010-02-09 Tristan Gingold <gingold@adacore.com>
240
241 * machoread.c (macho_symfile_relocate): New function.
242 (macho_sym_fns): Use macho_symfile_relocate instead of
243 default_symfile_relocate.
244 (macho_oso_data): New type.
245 (current_oso): New variable.
246 (macho_add_oso_symfile): Do not compute section_addr_info, but
247 instead set vma of sections.
248 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
249 Set and clear current_oso.
250
251 2010-02-09 Joel Brobecker <brobecker@adacore.com>
252
253 Wrong type description for tagged type parameter.
254 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
255 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
256 reference to a tagged type.
257
258 2010-02-09 Tristan Gingold <gingold@adacore.com>
259
260 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
261 brothers of the parent.
262
263 2010-02-08 Tom Tromey <tromey@redhat.com>
264
265 PR c++/8017:
266 * value.h: Update.
267 * valops.c (search_struct_field): Make 'name' const.
268 (search_struct_method): Likewise.
269 (find_method_list): Make 'method' const.
270 (value_struct_elt): Make 'name' and 'err' const.
271 (value_find_oload_method_list): Make 'method' const.
272 (find_overload_match): Make 'name' const.
273 * eval.c (evaluate_subexp_standard): New locals function,
274 function_name.
275 <OP_FUNCALL>: Handle OP_SCOPE specially.
276
277 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
278
279 * infrun.c (handle_inferior_event): Do not look up regcache
280 for exited processes.
281
282 Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
283
284 PR gdb/10728
285 * valarith.c (value_ptrdiff): Added a test for a zero type length,
286 warn if found, and assume length = 1.
287
288 2010-02-08 Chris Moller <cmoller@redhat.com>
289
290 PR gdb/9067
291 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
292 cp_print_static_field) Fix use of obstacks.
293
294 2010-02-08 Pedro Alves <pedro@codesourcery.com>
295
296 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
297 resumed LWPs as resumed.
298 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
299 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
300 of throwing an internal error. If an LWP of a process we're not
301 waiting for reports a signal, don't force collecting a SIGSTOP,
302 and if it was breakpoint hit in non-stop mode, cancel it. Don't
303 go through all LWPs cancelling breakpoints in non-stop mode.
304 (resume_stopped_resumed_lwps): New.
305 (linux_nat_wait): Use it.
306
307 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
308
309 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
310 i386/amd64 and i386/amd64-linux.
311 (i386/i386-expedite): New.
312 (i386/i386-linux-expedite): Likewise.
313 (i386/amd64-expedite):Likewise.
314 (i386/amd64-linux-expedite): Likewise.
315 ($(outdir)/i386/i386-linux.dat): Likewise.
316 ($(outdir)/i386/amd64.dat): Likewise.
317 ($(outdir)/i386/amd64-linux.dat): Likewise.
318
319 * features/i386/32bit-core.xml: New.
320 * features/i386/32bit-linux.xml: Likewise.
321 * features/i386/32bit-sse.xml: Likewise.
322 * features/i386/64bit-core.xml: Likewise.
323 * features/i386/64bit-linux.xml: Likewise.
324 * features/i386/64bit-sse.xml: Likewise.
325 * features/i386/i386-linux.xml: Likewise.
326 * features/i386/i386.xml: Likewise.
327 * features/i386/amd64-linux.xml: Likewise.
328 * features/i386/amd64.xml: Likewise.
329 * features/i386/i386-linux.c: Likewise.
330 * features/i386/i386.c: Likewise.
331 * features/i386/amd64-linux.c: Likewise.
332 * features/i386/amd64.c: Likewise.
333
334 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
335
336 PR c++/7935:
337 * cp-support.h: Added char* alias element to using_direct data
338 struct.
339 (cp_add_using): Added char* alias argument.
340 (cp_add_using_directive): Ditto.
341 * cp-namespace.c: Updated with the above changes.
342 (cp_lookup_symbol_imports): Check for aliases.
343 * dwarf2read.c (read_import_statement): Figure out local alias
344 for the import and pass it on to cp_add_using.
345 (read_namespace): Pass alias argument to cp_add_using.
346
347 2010-02-05 Hui Zhu <teawater@gmail.com>
348
349 * defs.h (gdb_bfd_errmsg): New extern.
350 * exec.c (exec_file_attach): Change bfd_errmsg to
351 gdb_bfd_errmsg.
352 * utils.c (AMBIGUOUS_MESS1): New macro.
353 (AMBIGUOUS_MESS2): New macro.
354 (gdb_bfd_errmsg): New function.
355
356 2010-02-04 Doug Evans <dje@google.com>
357
358 * solib-svr4.c (enable_break): Add comment.
359
360 2010-02-04 Anthony Green <green@moxielogic.com>
361
362 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
363 gracefully.
364
365 2010-02-04 Tom Tromey <tromey@redhat.com>
366
367 * valops.c (search_struct_field): Account for
368 value_embedded_offset. Fix check for virtual base past the end of
369 the object. Use value_copy when making a slice of the value.
370
371 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
372
373 PR tui/9622
374 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
375 only if gdb_stdout is a tty.
376
377 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
378
379 * target-descriptions.c: Include "osabi.h".
380 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
381 OSABI.
382
383 2010-02-04 Tristan Gingold <gingold@adacore.com>
384
385 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
386 (macho_symtab_read): Adjust calls to macho_add_oso.
387 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
388 (macho_symfile_read): Adjust call to macho_oso_symfile.
389 (macho_new_init): Move this function after declarations.
390 (macho_symfile_init): Ditto.
391 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
392 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
393
394 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
395
396 Include MI command in remotelog.
397
398 * mi/mi-main.c (mi_execute_command): Call target_log_command.
399
400 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
401
402 * remote.c (remote_state): Remove gdbarch.
403 (init_remote_state): Don't set gdbarch.
404 (remote_query_supported): Pass target_gdbarch instead of
405 rs->gdbarch to gdbarch_qsupported.
406
407 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
408
409 * gdbarch.sh: Add qsupported.
410
411 * gdbarch.c: Regenerated.
412 * gdbarch.h: Likewise.
413
414 * remote.c (remote_state): Add gdbarch.
415 (init_remote_state): Set gdbarch.
416 (remote_query_supported): Support gdbarch_qsupported.
417
418 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
419
420 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
421 __FreeBSD_kernel_version.
422
423 2010-02-03 Tristan Gingold <gingold@adacore.com>
424
425 * symfile.h (struct sym_fns): Add sym_relocate field.
426 (default_symfile_relocate): New prototype.
427 (symfile_relocate_debug_section): First argument is now an objfile.
428 * symfile.c (default_symfile_relocate): Rename from
429 symfile_relocate_debug_section, first argument is now an objfile.
430 (symfile_relocate_debug_section): New function.
431 * coffread.c (coff_sym_fns): Set sym_relocate field.
432 * somread.c (som_sym_fns): Ditto.
433 * mipsread.c (ecoff_sym_fns): Ditto.
434 * machoread.c (macho_sym_fns): Ditto.
435 * elfread.c (elf_sym_fns): Ditto.
436 * dwarf2read.c (dwarf2_read_section): Ditto.
437 * xcoffread.c (xcoff_sym_fns): Ditto.
438 * dbxread.c (aout_sym_fns): Ditto.
439 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
440 (elfstab_build_psymtabs): Ditto.
441
442 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
443
444 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
445
446 2010-02-02 Tom Tromey <tromey@redhat.com>
447
448 * valops.c (value_cast_structs): Try downcasting using the RTTI
449 type.
450
451 2010-02-02 Tom Tromey <tromey@redhat.com>
452
453 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
454 (gnuv2_baseclass_offset): Now static.
455 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
456 * gnu-v2-abi.h: Remove.
457
458 2010-02-02 Tom Tromey <tromey@redhat.com>
459
460 * m2-typeprint.c (m2_record_fields): Don't use
461 TYPE_DECLARED_TYPE.
462 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
463 (struct main_type) <flag_declared_class>: New field.
464 (struct cplus_struct_type) <declared_type>: Remove.
465 <ntemplate_args>: Move earlier.
466 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
467 (DECLARED_TYPE_TEMPLATE): Remove.
468 (TYPE_DECLARED_TYPE): Remove.
469 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
470 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
471 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
472 TYPE_DECLARED_TYPE.
473
474 2010-02-02 Tom Tromey <tromey@redhat.com>
475
476 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
477 * valops.c (search_struct_field): Compute nbases after calling
478 CHECK_TYPEDEF.
479 (check_field): Call CHECK_TYPEDEF.
480 * cp-valprint.c (cp_print_value): Pass correct address to
481 baseclass_offset. Fix check for virtual base past the end of the
482 object. Don't offset address passed to cp_print_value_fields or
483 apply_val_pretty_printer.
484 (cp_print_value_fields): Fix call to val_print.
485 (cp_print_value_fields_rtti): New function.
486 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
487 * p-valprint.c (pascal_object_print_value_fields): Fix call to
488 val_print.
489 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
490 offset to address.
491 * language.h (struct language_defn) <la_val_print>: Document.
492 * c-lang.h (cp_print_value_fields_rtti): Declare.
493
494 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
495
496 PR libc/11214:
497 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
498 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
499 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
500
501 2010-02-01 Michael Matz <matz@suse.de>
502 Daniel Jacobowitz <dan@codesourcery.com>
503
504 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
505 functions use a frame pointer.
506
507 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
508
509 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
510 by a conditional setting DYN_ADDR. Use DYN_ADDR.
511 * config/djgpp/fnchange.lst: Add translations for
512 symbol-without-target_section.exp and symbol-without-target_section.c.
513
514 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
515
516 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
517 (remote_breakpoint_for_pc): Correct invalid_p check.
518 * gdbarch.c: Regenerated.
519
520 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
521
522 * arm-tdep.c (arm_find_mapping_symbol): New function, from
523 arm_pc_is_thumb.
524 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
525 (extend_buffer_earlier): New function.
526 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
527 (arm_adjust_breakpoint_address): New function.
528 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
529
530 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
531
532 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
533 (arm_linux_thumb2_le_breakpoint): New constants.
534 (arm_linux_init_abi): Set thumb2_breakpoint and
535 thumb2_breakpoint_size.
536 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
537 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
538 Implement support for single stepping through IT blocks if
539 a 32-bit Thumb breakpoint instruction is available.
540 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
541 is available, use it when needed.
542 (arm_remote_breakpoint_from_pc): New function.
543 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
544 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
545 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
546
547 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
548
549 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
550 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
551 * gdbarch.c, gdbarch.h: Regenerated.
552 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
553 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
554 gdbarch_remote_breakpoint_from_pc.
555
556 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
557
558 * infrun.c (prepare_to_proceed): Handle other signals which might
559 match a breakpoint.
560 (handle_inferior_event): Move the check for unusual breakpoint
561 signals earlier.
562
563 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
564
565 amd64 - function returning record with field straddling 2 registers.
566 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
567 a record of length <= 16 in which a field straddles the two
568 eightbytes.
569
570 2010-01-29 Joel Brobecker <brobecker@adacore.com>
571
572 Implement return values on amd64-windows.
573 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
574 (amd64_windows_return_value): New function.
575 (amd64_windows_init_abi): Call set_gdbarch_return_value with
576 amd64_windows_return_value.
577
578 2010-01-29 Joel Brobecker <brobecker@adacore.com>
579
580 amd64-windows: 32 bytes allocated on stack by caller for integer
581 parameter registers.
582 * i386-tdep.h (struct gdbarch_tdep): Add new field
583 integer_param_regs_saved_in_caller_frame.
584 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
585 tdep->integer_param_regs_saved_in_caller_frame to 1.
586 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
587 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
588
589 2010-01-29 Joel Brobecker <brobecker@adacore.com>
590
591 amd64-windows: memory args passed by pointer during function calls.
592 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
593 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
594 where tdep->memory_args_by_pointer is non-zero.
595 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
596 tdep->memory_args_by_pointer to 1.
597
598 2010-01-29 Joel Brobecker <brobecker@adacore.com>
599
600 amd64-windows: Integer parameters in function calls.
601 * i386-tdep.h (enum amd64_reg_class): New, moved here from
602 amd64-tdep.c.
603 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
604 call_dummy_integer_regs, and classify.
605 * amd64-tdep.h (amd64_classify): Add declaration.
606 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
607 (amd64_reg_class): Delete, moved to i386-tdep.h.
608 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
609 Replace call to amd64_classify by call to tdep->classify.
610 (amd64_push_arguments): Get the list of registers to use for
611 passing integer parameters from the gdbarch tdep structure,
612 rather than using a hardcoded one. Replace calls to amd64_classify
613 by calls to tdep->classify.
614 (amd64_push_dummy_call): Get the register number used for
615 the "hidden" argument from tdep->call_dummy_integer_regs.
616 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
617 and tdep->call_dummy_integer_regs. Set tdep->classify.
618 * amd64-windows-tdep.c: Add include of gdbtypes.h.
619 (amd64_windows_dummy_call_integer_regs): New static global.
620 (amd64_windows_classify): New function.
621 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
622 tdep->call_dummy_integer_regs and tdep->classify.
623
624 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
625
626 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
627 for the new regcache. All callers updated.
628 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
629 (get_thread_arch_regcache): Do not set aspace here.
630 * regcache.h (regcache_xmalloc): Update declaration.
631
632 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
633 regcache_xmalloc updated.
634
635 2010-01-28 Joel Brobecker <brobecker@adacore.com>
636
637 Another -Wunused-function error in procfs.c (sparc-solaris)
638 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
639 Only define if SYS_syssgi is defined.
640 (remove_dbx_link_breakpoint): Delete declaration. Move up.
641 (dbx_link_addr, insert_dbx_link_bpt_in_file)
642 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
643 is itself defined.
644
645 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
646
647 * windows-nat.c (windows_initialization_done): New variable.
648 (get_windows_debug_event): Issue error when process dies before
649 completely initializing.
650 (do_initial_windows_stuff): Set flag to indicate when we are done with
651 the initial steps of attaching to the child.
652
653 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
654
655 * symtab.h (struct symbol <symtab>): New comment on NULL values.
656
657 2010-01-27 Doug Evans <dje@google.com>
658
659 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
660
661 * breakpoint.c (bpstat_stop_status): Delete useless code.
662
663 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
664
665 * printcmd.c (display_uses_solib_p): Remove variable section. Access
666 objfile via SYMBOL_SYMTAB.
667
668 2010-01-26 Tom Tromey <tromey@redhat.com>
669
670 PR exp/7643:
671 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
672 coerce_array on result.
673
674 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
675
676 * cp-namespace.c (cp_lookup_symbol_namespace): Added
677 search_parent argument.
678 (cp_add_using): Initialize 'searched' field.
679 (reset_directive_searched): New function.
680 * cp-support.h: Add 'searched' field to using_direct struct.
681 (cp_lookup_symbol_imports): Ditto.
682 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
683 Perform recursive search.
684 Implement non parent search.
685 * valops.c (value_maybe_namespace_elt): Updated.
686
687 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
688
689 PR gdb/10929:
690 * dwarf2read.c (read_lexical_block_scope): Create blocks for
691 scopes which contain using directives even if they contain no
692 declarations.
693 * symtab.c (lookup_symbol_aux): Pass lowest level block to
694 la_lookup_symbol_nonlocal.
695 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
696 cp_lookup_symbol_namespace.
697 (cp_lookup_symbol_namespace): Perform an import lookup at every
698 block level.
699 (cp_lookup_symbol_imports): New function.
700 (cp_lookup_symbol_in_namespace): New function.
701
702 2010-01-25 Tom Tromey <tromey@redhat.com>
703
704 PR gdb/11049:
705 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
706 result.
707
708 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
709
710 * configure.ac: Only use host_os part when disabling TUI on osf.
711 Use test to check variables, prefix strings with x.
712 * configure: Regenerate.
713
714 * solib-osf.c (osf_current_sos): Initialize tail.
715
716 2010-01-25 gingold <gingold@adacore.com>
717
718 * windows-nat.c (windows_continue): Use %x to print thread id.
719 (get_windows_debug_event): Ditto.
720
721 2010-01-22 Tom Tromey <tromey@redhat.com>
722
723 PR symtab/11199:
724 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
725 type and arguments. Use smash_to_methodptr_type.
726 (read_structure_type): Call quirk_gcc_member_function_pointer
727 later.
728 * gdbtypes.h (smash_to_methodptr_type): Declare.
729 * gdbtypes.c (smash_to_methodptr_type): New function.
730 (lookup_methodptr_type): Use it.
731
732 2010-01-21 Tom Tromey <tromey@redhat.com>
733
734 PR symtab/11198:
735 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
736 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
737 * glibc-tdep.c (find_minsym_and_objfile): Remove.
738 (glibc_skip_solib_resolver): Use
739 lookup_minimal_symbol_and_objfile.
740
741 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
742
743 * inflow.c (check_syscall): Guard by #if clause for GO32 and
744 WIN32 targets.
745
746 2010-01-20 Tom Tromey <tromey@redhat.com>
747
748 PR backtrace/10770:
749 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
750 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
751 * dwarf2expr.c (new_dwarf_expr_context): Allocate
752 dwarf_stack_values, not CORE_ADDRs.
753 (execute_stack_op): Change DW_OP_div and comparison operators to
754 use signed operands.
755
756 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
757
758 Per-inferior args and tty and environment.
759
760 * infcmd.c (inferior_args): Rename to ...
761 (inferior_args_scratch): ... this.
762 (inferior_io_terminal): Rename to ...
763 (inferior_io_terminal_scratch): ... this.
764 (inferior_argc, inferior_argv): Remove.
765 (set_inferior_io_terminal, get_inferior_io_terminal): Store
766 inside current_inferior().
767 (set_inferior_tty_command, show_inferior_tty_command): New.
768 (get_inferior_args, set_inferior_args): Store inside
769 current_inferior().
770 (notice_args_set): Likewise and rename to...
771 (set_args_command): ... this.
772 (set_inferior_args_vector): Likewise.
773 (notice_args_read): Rename to...
774 (show_args_command): ...new.
775 (tty_command): Remove.
776 (run_command_1): Don't free old args, as they are freed by
777 set_inferior_arg now.
778 (run_no_args_command): Likewise.
779 (inferior_environ): Remove.
780 (run_command_1): Use environment of the current inferior.
781 (environment_info, set_environment_command)
782 (unset_environment_command, path_info, path_command): Likewise.
783 (_initialize_infcmd): Adjust for function and variable renames.
784 Do not init inferior_environ.
785 * inferior.h (set_inferior_arg): Adjust prototype.
786 (struct inferior): New fields args, argc, argv, terminal, environment.
787 (inferior_environ): Remove declaration.
788 * inferior.c (free_inferior): Free new fields.
789 (add_inferior_silent): Initialize 'environment' field.
790 * main.c (captured_main): Set arguments only after the initial
791 inferior has been created. Set set_inferior_io_terminal,
792 not tty_command.
793 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
794 inferior.
795 (_initialize_mi_cmd_env): Adjust for disappearance of global
796 inferior_environ.
797 * solib.c (solib_find): Use environment of the current inferior.
798
799 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
800
801 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
802 HAVE_PYTHON.
803 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
804
805 2010-01-20 Joel Brobecker <brobecker@adacore.com>
806
807 Get rid of ada-lang.c:function_name_from_pc.
808 * ada-lang.c: Add "stack.h" #include.
809 (function_name_from_pc): Delete.
810 (is_known_support_routine): Replace call to function_name_from_pc
811 by call to find_frame_funname.
812 (ada_unhandled_exception_name_addr_from_raise): Likewise.
813
814 2010-01-19 Tom Tromey <tromey@redhat.com>
815
816 PR c++/11026:
817 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
818 objfile obstack.
819
820 2010-01-19 Tom Tromey <tromey@redhat.com>
821
822 * top.c (stop_sig, float_handler, do_nothing): Remove.
823
824 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
825
826 * breakpoint.c (watchpoint_check): Check the call
827 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
828 Extend the comment.
829 * config/djgpp/fnchange.lst: Add translations for
830 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
831 watchpoint-cond-gone-stripped.c.
832
833 2010-01-19 Tom Tromey <tromey@redhat.com>
834
835 PR c++/8000:
836 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
837 into parent scope, and enumerator into grandparent scope.
838
839 2010-01-19 Joel Brobecker <brobecker@adacore.com>
840
841 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
842
843 2010-01-19 Joel Brobecker <brobecker@adacore.com>
844
845 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
846 i[34567]86-*-solaris2.1[0-9]*.
847 * configure.tgt: Likewise.
848
849 2010-01-19 Joel Brobecker <brobecker@adacore.com>
850
851 * NEWS: Document the source command enhancement allowing it
852 to load Python scripts. Document the "set/show script-extension"
853 commands.
854
855 2010-01-19 Joel Brobecker <brobecker@adacore.com>
856
857 Add -Wunused-function to compile flags.
858 * configure.ac: Add -Wunused-function to build_warnings.
859 * configure: Regenerate.
860
861 2010-01-19 Joel Brobecker <brobecker@adacore.com>
862
863 "delete" ada-lex.c:input function, not used.
864 * ada-lex.l: #define YY_NO_INPUT.
865
866 2010-01-19 Joel Brobecker <brobecker@adacore.com>
867
868 Delete free_named_symtabs and associated cleanup.
869 * symfile.h (free_named_symtabs): Delete declaration.
870 * symfile.c: Remove some commented out code (clear_symtab_users_once).
871 (cashier_psymtab): Comment function out.
872 Delete declaration.
873 (free_named_symtabs): Delete.
874 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
875 * dbxread.c (end_psymtab): Likewise.
876 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
877 * exec.c (exec_close_1): Ditto.
878 * xcoffread.c (xcoff_end_psymtab): Likewise.
879
880 2010-01-19 Joel Brobecker <brobecker@adacore.com>
881
882 * stack.c (print_block_frame_labels): Comment function out.
883
884 2010-01-19 Joel Brobecker <brobecker@adacore.com>
885
886 Delete unused or undefined functions.
887 * breakpoint.c (ep_parse_optional_filename): Delete.
888 * dcache.c (dcache_write_line): Remove declaration.
889 * infrun.c (build_infrun): Remove declaration.
890 * tracepoint.c (tracepoint_save_command): Remove declaration.
891 * linux-nat.c (init_lwp_list): Delete. No longer used.
892 * event-loop.c (check_async_signal_handlers): Delete declaration.
893 * infrun.c (init_execution_control_state): Delete.
894 (proceed): Update comment to avoid mentioning
895 init_execution_control_state.
896 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
897 * ada-lang.c (ada_to_static_fixed_value): Delete.
898 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
899 * cp-namespace.c (cp_copy_usings): Delete.
900 * xml-syscall.c (xml_number_of_syscalls): Delete.
901 * progspace.c (find_program_space_by_num): Delete.
902 * inflow.c (handle_sigio): Delete declaration.
903 * hppa-tdep.c (hppa_alignof): Delete.
904 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
905 (mipsnbsd_core_osabi_sniffer): Delete.
906
907 2010-01-18 Tom Tromey <tromey@redhat.com>
908
909 PR c++/9680:
910 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
911 (CONST_CAST): New tokens.
912 (exp): Add new productions.
913 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
914 reinterpret_cast.
915 (is_cast_operator): New function.
916 (yylex): Handle cast operators specially.
917 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
918 UNOP_REINTERPRET_CAST>: New cases.
919 * expprint.c (print_subexp_standard): Likewise.
920 (op_name_standard): Likewise.
921 (dump_subexp_body_standard): Likewise.
922 * parse.c (operator_length_standard): Likewise.
923 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
924 UNOP_REINTERPRET_CAST.
925 * gdbtypes.c (class_types_same_p): New function.
926 (is_ancestor): Use it.
927 (is_public_ancestor): New function.
928 (is_unique_ancestor_worker): Likewise.
929 (is_unique_ancestor): Likewise.
930 * gdbtypes.h (class_types_same_p, is_public_ancestor)
931 (is_unique_ancestor): Declare.
932 * valops.c (value_reinterpret_cast): New function.
933 (dynamic_cast_check_1): Likewise.
934 (dynamic_cast_check_2): Likewise.
935 (value_dynamic_cast): Likewise.
936 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
937
938 2010-01-18 Joel Brobecker <brobecker@adacore.com>
939
940 Fix build failure when building without Python support.
941 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
942 is not defined.
943
944 2010-01-18 Joel Brobecker <brobecker@adacore.com>
945
946 Use XVS field type instead of doing a parallel lookup.
947 * ada-lang.c (ada_get_base_type): Follow the XVS field type
948 if it is a reference type instead of doing a type lookup using
949 the XVS field name.
950
951 2010-01-18 Joel Brobecker <brobecker@adacore.com>
952
953 Trust PAD types instead of using PAD___XVS.
954 * ada-lang.c (trust_pad_over_xvs): New static variable.
955 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
956 parallel XVS type, follow the XVS type instead of the PAD type.
957 (unwrap_value): Make sure that there is no parallel XVE type
958 before returning the value as is.
959 (set_ada_list, show_ada_list): New static variables.
960 (set_ada_command, show_ada_command): New functions.
961 (_initialize_ada_language): Add new "set/show ada" prefix commands.
962 Add new "set/show ada trust-PAD-over-XVS" setting.
963
964 2010-01-18 Tom Tromey <tromey@redhat.com>
965 Thiago Jung Bauermann <bauerman@br.ibm.com>
966
967 Allow "source" to load python scripts.
968 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
969 * python/python.c (source_python_script): New function.
970 * python/python.h (source_python_script): Add declaration.
971 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
972 (script_ext_off, script_ext_soft, script_ext_strict)
973 (script_ext_enums, script_ext_mode): New static constants.
974 (show_script_ext_mode, find_and_open_script): New functions.
975 (source_script): Enhance to handle Python scripts.
976 (init_cli_cmds): Add set/show script-extension commands.
977
978 2010-01-16 Stan Shebs <stan@codesourcery.com>
979
980 * tracepoint.h (struct trace_status): Use unsigned long long
981 instead of size_t.
982 * tracepoint.c (trace_status_command): Fix printf directive.
983 (trace_save_command): Check fwrite returns, fix printf directive.
984 (trace_filename): New global.
985 (tfile_open): Set it, check read returns.
986 (tfile_close): Free trace_filename.
987 (tfile_get_traceframe_address): Check read returns.
988 (tfile_trace_find): Ditto.
989 (tfile_fetch_registers): Ditto.
990 (tfile_xfer_partial): Ditto.
991 (tfile_get_trace_state_variable_value): Ditto.
992
993 2010-01-15 Stan Shebs <stan@codesourcery.com>
994
995 Add trace file support.
996 * tracepoint.h (enum trace_stop_reason): New enum.
997 (struct trace_status): New struct.
998 (parse_trace_status): Declare.
999 (struct uploaded_tp): Move here from remote.c,
1000 add fields for actions.
1001 (struct uploaded_tsv): New struct.
1002 * tracepoint.c (tfile_ops): New target vector.
1003 (trace_fd): New global.
1004 (tfile_open): New function.
1005 (tfile_close): New function.
1006 (tfile_files_info): New function.
1007 (tfile_get_trace_status): New function.
1008 (tfile_get_traceframe_address): New function.
1009 (tfile_trace_find): New function.
1010 (tfile_fetch_registers): New function.
1011 (tfile_xfer_partial): New function.
1012 (tfile_get_trace_state_variable_value): New function.
1013 (init_tfile_ops): New function.
1014 (_initialize_tracepoint): Call it, add tfile target.
1015 (trace_status): New global.
1016 (current_trace_status): New function.
1017 (trace_running_p): Remove, change all users to get from
1018 current_trace_status()->running.
1019 (get_trace_status): Remove.
1020 (trace_status_command): Call target_get_trace_status directly,
1021 report more detail including tracing stop reasons.
1022 (trace_find_command): Always allow tfind on a file.
1023 (trace_find_pc_command): Ditto.
1024 (trace_find_tracepoint_command): Ditto.
1025 (trace_find_line_command): Ditto.
1026 (trace_find_range_command): Ditto.
1027 (trace_find_outside_command): Ditto.
1028 (trace_frames_offset, cur_offset): Declare as off_t.
1029 (trace_regblock_size): Rename from reg_size, update users.
1030 (parse_trace_status): New function.
1031 (tfile_interp_line): New function.
1032 (disconnect_or_stop_tracing): Ensure current trace
1033 status before asking what to do.
1034 (stop_reason_names): New global.
1035 (trace_save_command): New command.
1036 (get_uploaded_tp): Move here from remote.c.
1037 (find_matching_tracepoint): Ditto.
1038 (merge_uploaded_tracepoints): New function.
1039 (parse_trace_status): Use stop_reason_names.
1040 (_initialize_tracepoint): Define tsave command.
1041 * target.h (target_ops): New fields to_save_trace_data,
1042 to_upload_tracepoints, to_upload_trace_state_variables,
1043 to_get_raw_trace_data, change to_get_trace_status
1044 to take a pointer to a status struct.
1045 (target_save_trace_data): New macro.
1046 (target_upload_tracepoints): New macro.
1047 (target_upload_trace_state_variables): New macro.
1048 (target_get_raw_trace_data): New macro.
1049 * target.c (update_current_target): Add new methods, change
1050 signature of to_get_trace_status.
1051 * remote.c (hex2bin): Make globally visible.
1052 (bin2hex): Ditto.
1053 (remote_download_trace_state_variable): Download name also.
1054 (remote_get_trace_status): Update parameter, use
1055 parse_trace_status.
1056 (remote_save_trace_data): New function.
1057 (remote_upload_tracepoints): New function.
1058 (remote_upload_trace_state_variables): New function.
1059 (remote_get_raw_trace_data): New function.
1060 (remote_start_remote): Use them.
1061 (_initialize_remote_ops): Add operations.
1062 * ax-gdb.c: Include breakpoint.h.
1063 * breakpoint.c (create_tracepoint_from_upload): Use
1064 break_command_really, return tracepoint, warn about unimplemented
1065 parts.
1066 * NEWS: Mention trace file addition.
1067
1068 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1069
1070 Fix compilation warning on gcc-3.4.
1071 * exec.c (print_section_info): Move the `displacement' variable
1072 initialization to its declaration.
1073
1074 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1075
1076 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
1077 comparison.
1078
1079 2010-01-15 Eric Botcazou <botcazou@adacore.com>
1080
1081 "info tasks" broken by typedefs in ATCB type definitions.
1082 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
1083 ada_check_typedef before retrieving the length of the type for
1084 regular fields.
1085
1086 2010-01-15 Joel Brobecker <brobecker@adacore.com>
1087
1088 Do not use name-based lookup for unconstrained packed arrays.
1089 * ada-lang.c (find_parallel_type_by_descriptive_type):
1090 Limit the fallback to name-based lookups to the case where
1091 the type is a constrained packed array.
1092
1093 2010-01-15 Joel Brobecker <brobecker@adacore.com>
1094
1095 Enhance gdb-gdb.py to handle main_type.type_specific.
1096 * gdb-gdb.py: Print the type-specific part of struct main_type.
1097
1098 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1099
1100 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
1101 * configure: Regenerate.
1102 * config.in: Regenerate.
1103 * utils.c: Include sys/resource.h.
1104 (dump_core, can_dump_core): New.
1105 (internal_vproblem): Update the comment. Check can_dump_core while
1106 setting dump_core_p. Replace two abort calls by dump_core calls.
1107
1108 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1109 Eli Zaretskii <eliz@gnu.org>
1110
1111 * NEWS: Document the PIE support.
1112
1113 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1114
1115 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
1116 (check_is_pie_binary, _initialize_linux_tdep): Remove.
1117
1118 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1119
1120 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
1121 Replace exec_entry_point call by bfd_get_start_address.
1122
1123 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1124
1125 Support Valgrind attachments broken by the PIE support.
1126 * auxv.c: Include gdbcore.h.
1127 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
1128 parameters ops, object and annex. Remove their assertions.
1129 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
1130 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
1131 (memory_xfer_auxv): ... here.
1132 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
1133 memory_xfer_auxv.
1134 * procfs.c (procfs_xfer_partial): Likewise.
1135 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
1136 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
1137 (svr4_solib_create_inferior_hook): Conditionalize the
1138 svr4_relocate_main_executable call.
1139
1140 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1141
1142 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
1143 target_section. Find SECT in current_target_sections, gdb_assert it.
1144 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
1145 New variable abfd.
1146 * symtab.c (lookup_objfile_from_block): Return the binary file instead
1147 of separate debug info file.
1148
1149 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1150
1151 Support PIEs with no symfile_objfile.
1152 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
1153 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
1154
1155 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1156
1157 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
1158 code part to ...
1159 (svr4_static_exec_displacement): ... a new function.
1160 (svr4_exec_displacement): New function.
1161 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
1162 new_offsets using alloca now. Remove variable old_chain and changed.
1163 Call objfile_relocate unconditionally now.
1164
1165 2010-01-14 Doug Evans <dje@google.com>
1166
1167 * gdbtypes.c (arch_flags_type): Fix comment.
1168 * gdbtypes.h (arch_composite_type): Fix comment.
1169
1170 2009-01-14 Tristan Gingold <gingold@adacore.com>
1171
1172 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
1173 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
1174 to symbol_file_add_from_bfd. Add OSO as separate objfile.
1175 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
1176 macho_add_oso_symfile.
1177 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
1178
1179 2010-01-14 Joel Brobecker <brobecker@adacore.com>
1180
1181 Tru64: Dead threads are never deleted.
1182 * dec-thread.c (dec_thread_ptid_is_alive): New function.
1183 (dec_thread_count_gdb_threads): Fix counter increment.
1184 (dec_thread_add_gdb_thread): Fix *listp increment.
1185 (resync_thread_list): Fix bug in deletion of dead threads that
1186 caused all threads to be deleted, instead of just the dead ones.
1187
1188 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
1189
1190 PR python/10705
1191
1192 * python/python-internal.h: Add lazy_string_object_type
1193 definition.
1194 (create_lazy_string_object, gdbpy_initialize_lazy_string)
1195 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
1196 * python/py-value.c (valpy_lazy_string): New function.
1197 (convert_value_from_python): Add lazy string conversion.
1198 * python/py-prettyprint.c (pretty_print_one_value): Check if
1199 return is also a lazy string.
1200 (print_string_repr): Add lazy string printing branch.
1201 (print_children): Likewise.
1202 * python/py-lazy-string.c: New file. Implement lazy strings.
1203 * python/python.c (_initialize_python): Call
1204 gdbpy_initialize_lazy_string.
1205 * varobj.c (value_get_print_value): Add lazy string printing
1206 branch. Account for encoding.
1207 * c-lang.c (c_printstr): Account for new encoding argument. If
1208 encoding is NULL, find encoding suited for type, otherwise use
1209 user encoding.
1210 * language.h (language_defn): Add encoding argument.
1211 (LA_PRINT_STRING): Likewise.
1212 * language.c (unk_lang_printstr): Update to reflect new encoding
1213 argument to language_defn.
1214 * ada-lang.h (ada_printstr): Likewise.
1215 * c-lang.h (c_printstr): Likewise.
1216 * p-lang.h (pascal_printstr);
1217 * f-lang.c (f_printstr): Likewise.
1218 * m2-lang.c (m2_printstr): Likewise.
1219 * objc-lang.c (objc_printstr): Likewise.
1220 * p-lang.c (pascal_printstr): Likewise.
1221 * scm-lang.c (scm_printstr): Likewise.
1222 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
1223 encoding argument.
1224 * ada-valprint.c (ada_printstr): Likewise.
1225 * f-valprint.c (f_val_print): Likewise
1226 * m2-valprint.c (m2_val_print): Likewise.
1227 * p-valprint.c (pascal_val_print): Likewise.
1228 * expprint.c (print_subexp_standard): Likewise.
1229 * valprint.c (val_print_string): Likewise.
1230 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
1231 (SUBDIR_PYTHON_SRCS): Likewise.
1232 (py-lazy-string.o): New rule.
1233
1234 2010-01-13 Doug Evans <dje@google.com>
1235
1236 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
1237 uninitialized" warning from gcc on local `tree'.
1238
1239 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
1240
1241 Implement core awareness.
1242
1243 * bcache.c (compare_ints): Remove
1244 (print_percentage): Use compare_positive_ints.
1245 * defs.h (compare_positive_ints): Declare.
1246 * linux-nat.h (struct lin_lwp): New field core.
1247 (linux_nat_core_of_thread_1): Declare.
1248 * linux-nat.c (add_lwp): Init the 'core' field.
1249 (linux_nat_wait_1): Record the core.
1250 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
1251 (linux_nat_add_target): Register the above.
1252 * linux-thread-db.c (update_thread_core): New.
1253 (thread_db_find_new_threads): Update core information for
1254 every thread.
1255 * remote.c (struct private_thread_info): New.
1256 (free_private_thread_info, demand_private_info): New.
1257 (PACKET_qXfer_threads, use_osdata_threads): New.
1258 (struct thread_item, threads_parsing_context
1259 (start_thread, end_thread, thread_attributes)
1260 (thread_children, threads_children, threads_elements): New.
1261 (remote_threads_info): Try qXfer:threads before anything
1262 else.
1263 (remote_protocol_packets): Register qXfer:threads.
1264 (remote_open_1): Init use_osdata_threads.
1265 (struct stop_reply): New field 'core'.
1266 (remote_parse_stop_reply): Parse core number.
1267 (process_stop_reply): Record core number.
1268 (remote_xfer_partial): Handle qXfer:threads.
1269 (remote_core_of_thread): New.
1270 (init_remote_ops): Register remote_core_of_thread.
1271 (_initialize_remote): Register qXfer:read.
1272 * target.c (target_core_of_thread): New
1273 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
1274 (struct target_ops): New field to_core_of_threads.
1275 (target_core_of_thread): Declare.
1276 * gdbthread.h (struct thread_info): New field private_dtor.
1277 * thread.c (print_thread_info): Report the core.
1278 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
1279 * utils.c (compare_positive_ints): New.
1280 * features/threads.dtd: New.
1281 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
1282 * mi/mi-main.c (struct collect_cores_data, collect_cores)
1283 (do_nothing, free_vector_of_osdata_items)
1284 (splay_tree_int_comparator, free_splay_tree): New.
1285 (print_one_inferior_data): Implemented printing of selected
1286 inferiors. Collect and print cores.
1287 (output_cores): New.
1288 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
1289 thread groups together with --available.
1290
1291 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1292
1293 * configure: Regenerate (for _STRUCTURED_PROC).
1294
1295 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1296
1297 Delete dead function.
1298 * ada-lang.c (extract_string): Delete. No longer used.
1299
1300 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1301
1302 Fix -Wunused warning in dec-thread.c.
1303 * dec-thread.c (dec_thread_count_gdb_threads)
1304 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
1305
1306 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1307
1308 * ada-valprint.c (ada_print_floating): Remove trailing space.
1309
1310 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1311
1312 Add support for DW_AT_GNAT_descriptive_type.
1313 * gdbtypes.h (enum type_specific_kind): New enum.
1314 (struct main_type) [type_specific_field]: New component.
1315 [type_specific]: Add new component "gnat_stuff".
1316 (struct gnat_aux_type): New type.
1317 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
1318 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
1319 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
1320 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
1321 (TYPE_SPECIFIC_FIELD): New macros.
1322 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
1323 type does not hold any cplus-specific data.
1324 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
1325 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
1326 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
1327 cplus-specific data.
1328 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
1329 Set new component TYPE_SPECIFIC_FIELD (type).
1330 (gnat_aux_default): New constant.
1331 (allocate_gnat_aux_type): New function.
1332 (init_type): Add initialization the type-specific stuff for
1333 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
1334 (print_gnat_stuff): New function.
1335 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
1336 specific data. Adjust code that prints the contents of the
1337 type-specific union using the TYPE_SPECIFIC_FIELD value.
1338 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
1339 the type cplus stuff for Ada types.
1340 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
1341 Error out if these routines are called with an Ada type.
1342 (read_structure_type, read_array_type, read_subrange_type):
1343 Add call to set_descriptive_type.
1344 (set_die_type): Initialize the gnat-specific data if necessary.
1345 (need_gnat_info, die_descriptive_type, set_descriptive_type):
1346 New functions.
1347 * ada-lang.c (decode_constrained_packed_array_type): Use
1348 decode_constrained_packed_array_type instead of doing a standard
1349 lookup to locate a parallel type.
1350 (find_parallel_type_by_descriptive_type): New function.
1351 (ada_find_parallel_type_with_name): New function.
1352 (ada_find_parallel_type): Reimplement using
1353 ada_find_parallel_type_with_name.
1354 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
1355 to check if type has a cplus stuff.
1356 * linespec.c (total_number_of_methods): Likewise.
1357 * mdebugread.c (new_type): Likewise.
1358
1359 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1360
1361 * NEWS: Document the 0b binary number prefix parsing.
1362
1363 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1364
1365 * objfiles.c (objfile_relocate1): Change the return type to int.
1366 Describe the new return value. Return non-zero if data changed.
1367 (objfile_relocate): New variable changed. Set it. Call
1368 breakpoint_re_set depending on CHANGED.
1369
1370 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1371
1372 Implement binary numbers parsing.
1373 * c-exp.y (parse_number): New case 'b' and 'B'.
1374
1375 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1376 Tristan Gingold <gingold@adacore.com>
1377
1378 * solib.c (info_sharedlibrary_command): Replace
1379 objfile_has_partial_symbols and objfile_has_full_symbols calls by
1380 objfile_has_symbols.
1381
1382 2010-01-10 Joel Brobecker <brobecker@adacore.com>
1383
1384 * NEWS: Document the improvements made to the mips-irix port.
1385
1386 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1387
1388 Fix the documentation of valprint.c:value_print.
1389 * valprint.c (value_print): Update the function description to
1390 mention that the syntax of the output follows the current_language,
1391 not necessarily C.
1392
1393 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1394
1395 Fix displacement of separate debug info files.
1396 * objfiles.c (objfile_relocate): Rename to ...
1397 (objfile_relocate1): ... here and make it static. Extend the comment.
1398 (objfile_relocate): New function.
1399 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
1400 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
1401 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
1402 allocated using alloca.
1403 * symfile.c (copy_section_addr_info): Remove.
1404 (build_section_addr_info_from_objfile): Make it global. New variables
1405 addr_bit and mask, use them.
1406 * symfile.h (build_section_addr_info_from_objfile): New prototype.
1407 (copy_section_addr_info): Remove.
1408
1409 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1410
1411 Signal unwinder for mips-irix N32.
1412 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
1413 tramp-frame.h.
1414 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
1415 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
1416 (SIGCONTEXT_LO_OFF): New macros.
1417 (mips_irix_n32_tramp_frame_init): New function.
1418 (mips_irix_n32_tramp_frame): New static constant.
1419 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
1420
1421 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1422
1423 Breakpoint in shared library does not work on mips-irix.
1424 * procfs.c: #include "observer.h".
1425 (procfs_inferior_created): New function, moving here the code
1426 which unsets the syssgi syscall-exit notifications.
1427 (procfs_create_inferior): Remove the code which unsets the syssgi
1428 syscall-exit notifications. It is too early to do this here.
1429 (_initialize_procfs): Attach the procfs_inferior_created observer.
1430
1431 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1432
1433 Wrong return convention for arrays (mips-irix).
1434 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
1435 128 bits or smaller are returned the same way as structs
1436 and unions of the the same size.
1437
1438 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1439
1440 Cannot set the PC on mips-irix.
1441 * irix5-nat.c (fill_gregset): Check regno against the raw PC
1442 register number, no the cooked one.
1443
1444 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1445
1446 Error while loading core file on mips-irix.
1447 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
1448 if debugging from a core file.
1449
1450 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1451
1452 GDB hangs when attaching to process on mips-irix.
1453 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
1454 attaching to a process.
1455
1456 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1457
1458 Use the correct breakpoint instruction on mips-irix.
1459 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
1460 containing the correct breakpoint instruction to use on mips-irix.
1461 Use it when the osabi is GDB_OSABI_IRIX.
1462
1463 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1464
1465 -Wunused warning in procfs.c (mips-irix only).
1466 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
1467 throughout instead of using praddset and prdelset respectively.
1468
1469 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1470
1471 GDB crash while stepping into function.
1472 * infrun.c (handle_inferior_event): Refetch the current frame
1473 after handling what.main_action, in case that pointer became
1474 dangling.
1475
1476 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1477
1478 Fix build failure of solaris-hosted cross debuggers.
1479 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
1480
1481 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
1482
1483 Fix build failure on sparc-solaris.
1484 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
1485
1486 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1487
1488 Move some symfile code into subroutines.
1489 * symfile.h (relative_addr_info_to_section_offsets)
1490 (addr_info_make_relative): New prototypes.
1491 * symfile.c (default_symfile_offsets): Move a part to ...
1492 (relative_addr_info_to_section_offsets): ... this new function.
1493 (default_symfile_offsets): Call it.
1494 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
1495 this part to ...
1496 (addr_info_make_relative): ... this new function.
1497
1498 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1499
1500 Add from_tty to solib_create_inferior_hook.
1501 * infcmd.c (post_create_inferior): Move solib_add after
1502 solib_create_inferior_hook. Pass from_tty to
1503 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
1504 0 from_tty and comment why.
1505 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
1506 * linux-nat.c (linux_child_follow_fork): Likewise.
1507 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
1508 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
1509 from_tty.
1510 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
1511 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1512 * solib-null.c (null_solib_create_inferior_hook): Likewise.
1513 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1514 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
1515 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1516 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
1517 Pass it to svr4_so_ops.solib_create_inferior_hook.
1518 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
1519 from_tty.
1520 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
1521 solib_add.
1522 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
1523 enable_break.
1524 * solib-target.c (solib_target_solib_create_inferior_hook): New
1525 parameter from_tty.
1526 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
1527 it to ops->solib_create_inferior_hook.
1528 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
1529 Move solib_add after solib_create_inferior_hook, call it now with
1530 from_tty as 0. New comment there.
1531 * solib.h (solib_create_inferior_hook): New parameter from_tty.
1532 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
1533 Likewise.
1534
1535 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
1536
1537 Fix multiexec race.
1538 * infrun.c (handle_inferior_event): Use get_thread_regcache
1539 with events ptid, not get_current_regcache.
1540
1541 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1542
1543 GDB crash with empty executable name (MinGW).
1544 * source.c (openp): Add assert that parameter string is not NULL.
1545 if parameter string is an empty string, then return with a failure
1546 immediately.
1547
1548 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1549
1550 Get rid of support for VAX Floats.
1551 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1552 (ada_vax_float_print_function): Delete.
1553 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1554 (ada_vax_float_print_function): Delete.
1555 * ada-typeprint.c (print_vax_floating_point_type): Delete.
1556 (ada_print_type): Remove support for VAX floats.
1557 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
1558
1559 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1560
1561 * stabsread.c (read_args): Handle zero arguments.
1562
1563 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1564
1565 Cannot find in-tree libiconv.a after reconfigure.
1566 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
1567 that we can use, then cache the path to this archive.
1568 * configure: Regenerate.
1569
1570 2010-01-07 Stan Shebs <stan@codesourcery.com>
1571
1572 Make tracepoint operations go through target vector.
1573 * target.h (enum trace_find_type): New enum.
1574 (struct target_ops): New fields to_trace_init,
1575 to_download_tracepoint, to_download_trace_state_variable,
1576 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
1577 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
1578 to_set_disconnected_tracing.
1579 (target_trace_init): New macro.
1580 (target_download_tracepoint): New macro.
1581 (target_download_trace_state_variable): New macro.
1582 (target_trace_start): New macro.
1583 (target_trace_set_readonly_regions): New macro.
1584 (target_get_trace_status): New macro.
1585 (target_trace_stop): New macro.
1586 (target_trace_find): New macro.
1587 (target_get_trace_state_variable_value): New macro.
1588 (target_set_disconnected_tracing): New macro.
1589 * target.c (update_current_target): Inherit and set defaults for
1590 tracepoint operations.
1591 * tracepoint.c (default_collect): Make globally visible.
1592 (target_is_remote): Remove, along with all calls.
1593 (tvariables_info): Call target_get_trace_state_variable_value.
1594 (remote_set_transparent_ranges): Remove.
1595 (trace_start_command): Call target_trace_init,
1596 target_download_tracepoint, etc.
1597 (download_tracepoint): Remove.
1598 (trace_stop_command): Simplify.
1599 (stop_tracing): Call target_trace_stop.
1600 (get_trace_status): Call target_get_trace_status.
1601 (trace_status_command): Add case for targets that cannot trace.
1602 (finish_tfind_command): Change to take numerical arguments, call
1603 target_trace_find.
1604 (trace_find_command): Update call to finish_tfind_command.
1605 (trace_find_pc_command): Ditto.
1606 (trace_find_tracepoint_command): Ditto.
1607 (trace_find_line_command): Ditto.
1608 (trace_find_range_command): Ditto.
1609 (trace_find_outside_command): Ditto.
1610 (set_disconnected_tracing_value): Call
1611 target_set_disconnected_tracing.
1612 * remote.c: Add protocol encoding bits from tracepoint.c.
1613 (trace_error): Move from tracepoint.c.
1614 (remote_get_noisy_reply): Ditto.
1615 (free_actions_list_cleanup_wrapper): Ditto.
1616 (free_actions_list): Ditto.
1617 (remote_trace_init): New function.
1618 (remote_download_tracepoint): New function.
1619 (remote_download_trace_state_variable): New function.
1620 (remote_trace_set_readonly_regions): New function.
1621 (remote_trace_start): New function.
1622 (remote_get_trace_status): New function.
1623 (remote_trace_stop): New function.
1624 (remote_trace_find): New function.
1625 (remote_download_trace_state_variable): New function.
1626 (remote_set_disconnected_tracing): New function.
1627 (init_remote_ops): Add tracepoint operations.
1628
1629 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
1630
1631 2010-01-07 Tristan Gingold <gingold@adacore.com>
1632
1633 * symfile.c (build_section_addr_info_from_objfile): New function.
1634 (symbol_file_add_separate): Don't use offsets from objfile but
1635 built an addr info.
1636
1637 2010-01-06 Stan Shebs <stan@codesourcery.com>
1638
1639 Support disconnected tracing.
1640 * infcmd.c (detach_command): Ask whether to stop tracing.
1641 * cli/cli-cmds.c (quit_command): Ditto.
1642 * breakpoint.h (struct breakpoint): New field number_on_target.
1643 * breakpoint.c (create_tracepoint_from_upload): New function.
1644 (get_tracepoint_by_number_on_target): New function.
1645 * remote.c (struct remote): New field disconnected_tracing.
1646 (remote_disconnected_tracing_feature): New function.
1647 (remote_protocol_features): Add DisconnectedTracing.
1648 (struct uploaded_tp): New struct.
1649 (uploaded_tps): New global.
1650 (get_uploaded_tp): New function.
1651 (find_matching_tracepoint): New function.
1652 (remote_get_tracing_state): New function.
1653 (remote_start_remote): Call it.
1654 * tracepoint.c (disconnected_tracing): New global.
1655 (trace_start_command): Initialize number_on_target.
1656 (stop_tracing): New function, split out from...
1657 (trace_stop_command): Call stop_tracing.
1658 (get_trace_status): New function, split out from...
1659 (trace_status_command): Call get_trace_status, add info on
1660 disconnection behavior.
1661 (disconnect_or_stop_tracing): New function.
1662 (finish_tfind_command): Translate from number on target.
1663 (trace_find_tracepoint_command): Translate to number on target.
1664 (send_disconnected_tracing_value): New function.
1665 (set_disconnected_tracing): New function.
1666 (_initialize_tracepoint): Add disconnected-tracing variable.
1667 * NEWS: Mention disconnected tracing.
1668
1669 2010-01-06 Tristan Gingold <gingold@adacore.com>
1670
1671 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
1672 parameter to main_objfile. Iterate on all separate debug objfiles.
1673 * symfile.h (symbol_file_add_separate)
1674 (find_separate_debug_file_by_debuglink): Remove parameter names.
1675 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
1676 (reread_symbols): Use free_objfile_separate_debug.
1677 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
1678 Adjust comment.
1679 (objfile_separate_debug_iterate, add_separate_debug_objfile)
1680 (free_objfile_separate_debug): New prototypes.
1681 * objfiles.c (objfile_separate_debug_iterate): New function.
1682 (add_separate_debug_objfile, free_objfile_separate_debug): New
1683 functions.
1684 (free_objfile): Use free_objfile_separate_debug. Adjust for
1685 multiple separate debug objfile.
1686 (objfile_has_symbols): Adjust comment. Iterate on all separate
1687 debug objfiles.
1688 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
1689 debug objfile.
1690 (lookup_minimal_symbol_text): Ditto.
1691 (lookup_minimal_symbol_by_pc_name): Ditto.
1692 (lookup_minimal_symbol_solib_trampoline): Ditto.
1693 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
1694 debug objfiles.
1695
1696 2010-01-05 Stan Shebs <stan@codesourcery.com>
1697
1698 Add fast tracepoints.
1699 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
1700 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
1701 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
1702 * breakpoint.c (tracepoint_type): New function.
1703 (ALL_TRACEPOINTS): Use it.
1704 (should_be_inserted): Ditto.
1705 (bpstat_check_location): Ditto.
1706 (print_one_breakpoint_location): Ditto.
1707 (user_settable_breakpoint): Ditto.
1708 (set_breakpoint_location_function): Ditto.
1709 (disable_breakpoints_in_shlibs): Ditto.
1710 (delete_trace_command): Ditto.
1711 (print_it_typical): Add bp_fast_tracepoint case.
1712 (bpstat_what): Ditto.
1713 (print_one_breakpoint_location): Ditto.
1714 (allocate_bp_location): Ditto.
1715 (mention): Ditto.
1716 (breakpoint_re_set_one): Ditto.
1717 (disable_command): Ditto.
1718 (enable_command): Ditto.
1719 (check_fast_tracepoint_sals): New function.
1720 (break_command_really): Call it.
1721 (ftrace_command): New function.
1722 (_initialize_breakpoint): Add ftrace command.
1723 * gdbarch.sh (fast_tracepoint_valid_at): New.
1724 * gdbarch.h, gdbarch.c: Regenerate.
1725 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
1726 (i386_gdbarch_init): Use it.
1727 * remote.c (struct remote_state): New field fast_tracepoints.
1728 (PACKET_FastTracepoints): New packet config type.
1729 (remote_fast_tracepoint_feature): New function.
1730 (remote_protocol_features): Add FastTracepoints.
1731 (remote_supports_fast_tracepoints): New function.
1732 (_initialize_remote): Add FastTracepoints.
1733 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
1734 * NEWS: Mention fast tracepoints.
1735
1736 2010-01-06 Joel Brobecker <brobecker@adacore.com>
1737
1738 * gdb-gdb.py: New file.
1739
1740 2010-01-05 Michael Snyder <msnyder@vmware.com>
1741
1742 * infrun.c (handle_inferior_event): Fix typo in comment.
1743
1744 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1745
1746 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
1747
1748 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1749
1750 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
1751 and s390x-linux64.
1752 (s390-linux32-expedite): Define.
1753 (s390-linux64-expedite): Define.
1754 (s390x-linux64-expedite): Define.
1755 * features/s390-acr.xml: New file.
1756 * features/s390-fpr.xml: New file.
1757 * features/s390-core32.xml: New file.
1758 * features/s390-core64.xml: New file.
1759 * features/s390x-core64.xml: New file.
1760 * features/s390-linux32.xml: New file.
1761 * features/s390-linux64.xml: New file.
1762 * features/s390x-linux64.xml: New file.
1763 * features/s390-linux32.c: New generated file.
1764 * features/s390-linux64.c: New generated file.
1765 * features/s390x-linux64.c: New generated file.
1766
1767 * regformats/s390-linux32.dat: New generated file.
1768 * regformats/s390-linux64.dat: New generated file.
1769 * regformats/s390x-linux64.dat: New generated file.
1770 * regformats/reg-s390.dat: Remove.
1771 * regformats/reg-s390x.dat: Remove.
1772
1773 * s390-nat.c: Include "auxv.h" and <elf.h>.
1774 (HWCAP_S390_HIGH_GPRS): Define if undefined.
1775 (s390_target_wordsize): New function.
1776 (s390_auxv_parse): Likewise.
1777 (s390_get_hwcap): Likewise.
1778 (s390_read_description): Likewise.
1779 (_initialize_s390_nat): Install s390_auxv_parse and
1780 s390_read_description.
1781
1782 * s390-tdep.c: Include "features/s390-linux32.c",
1783 "features/s390-linux64.c", and "features/s390x-linux64.c".
1784 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
1785 (s390_register_call_saved): New function.
1786 (s390_register_name): Remove.
1787 (s390_register_type): Remove.
1788 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
1789 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
1790 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
1791 (s390_pseudo_register_name): New function.
1792 (s390_pseudo_register_type): New function.
1793 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
1794 Handle full GPR pesudos and varying pseudo register numbers.
1795 (s390_pseudo_register_write): Likewise
1796 (s390x_pseudo_register_read): Remove.
1797 (s390x_pseudo_register_write): Likewise.
1798 (s390_register_group): Remove.
1799 (s390_pseudo_register_group): New function.
1800 (s390_regmap_gregset): Add GPR upper halves.
1801 (s390x_regmap_gregset): Likewise.
1802 (s390_regmap_fpregset): Likewise.
1803 (s390_regmap_upper): New global variable.
1804 (s390_upper_regset): New global variable.
1805 (s390_upper_regset_sections): New global variable.
1806 (s390_regset_from_core_section): Handle GPR upper halves.
1807 (s390_core_read_description): New function.
1808 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
1809 register information. Handle varying pseudo register numbers.
1810 (s390_backchain_frame_unwind_cache): Likewise.
1811 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
1812 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
1813 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
1814 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
1815 Handle varying pseudo register numbers.
1816 (s390_unwind_pc): Handle varying pseudo register numbers.
1817 (s390_dwarf2_prev_register): New function.
1818 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
1819 register information. Handle varying pseudo register numbers.
1820 Install s390_dwarf2_prev_register to unwind full GPRs.
1821 (s390_gdbarch_init): Handle target descriptions. Assign varying
1822 pseudo register numbers. Install s390_adjust_frame_regnum.
1823 (_initialize_s390_tdep): Initialize target descriptions.
1824
1825 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
1826 (S390_NUM_REGS): Redefine to include upper half registers.
1827 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
1828 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
1829 (tdesc_s390_linux32): Add declaration.
1830 (tdesc_s390_linux64): Likewise.
1831 (tdesc_s390x_linux64): Likewise.
1832
1833 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1834
1835 * regset.h (struct core_regset_section): Add HUMAN_NAME.
1836 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
1837 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1838 (ppc_linux_vmx_regset_sections): Likewise.
1839 (ppc_linux_fp_regset_sections): Likewise.
1840
1841 * corelow.c (get_core_register_section): Constify arguments.
1842 (get_core_registers): Use gdbarch_core_regset_sections instead
1843 of hard-coded platform-specific register section names.
1844
1845 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1846
1847 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
1848 a register, assume the least-significant part is used.
1849 (write_pieced_value): Likewise.
1850
1851 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1852
1853 * printcmd.c: Include "arch-utils.h".
1854 (do_one_display): Re-parse expression if current architecture changed.
1855
1856 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1857 Joel Brobecker <brobecker@adacore.com>
1858
1859 * gdbtypes.c (check_typedef): New comment on type length.
1860 * value.c (allocate_value_lazy): Remove the unused atype variable. New
1861 comment on type length.
1862 (value_primitive_field): Keep the original TYPE value, new comment.
1863
1864 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1865
1866 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
1867 p_start. Change != comparisons to > and < comparisons.
1868
1869 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1870
1871 * cli/cli-script.c (process_next_line): Check P2 overrun.
1872
1873 2009-01-01 Joel Brobecker <brobecker@adacore.com>
1874
1875 Update the copyright hearder to add year 2010 for most GDB files.
1876
1877 2009-01-01 Joel Brobecker <brobecker@adacore.com>
1878
1879 Fix build failure in inf-ptrace.c.
1880 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
1881
1882 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1883
1884 * top.c (print_gdb_version): Update copyright year.
1885
1886 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1887
1888 Fix break *FUN'address thread NUM.
1889 * ada-lex.l (task): Expand rule to also match the thread keyword.
1890
1891 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1892
1893 Fix break *FUN'address task NUM.
1894 * ada-lex.l (task): New rule.
1895 * ada-lang.c (valid_task_id): Make sure the Ada task list has
1896 been built before using it.
1897
1898 For older changes see ChangeLog-2009.
1899 \f
1900 Local Variables:
1901 mode: change-log
1902 left-margin: 8
1903 fill-column: 74
1904 version-control: never
1905 coding: utf-8
1906 End:
This page took 0.098258 seconds and 4 git commands to generate.