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