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