*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-20 Jiong Wang <jiwang@tilera.com>
2
3 * MAINTAINERS (Write After Approval): Add myself to the list.
4
5 2013-02-19 Pedro Alves <palves@redhat.com>
6
7 Garbage collect 'struct monitor_ops'::load_routine.
8
9 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10 * monitor.c (monitor_load): No longer call
11 current_monitor->load_routine.
12 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
13 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
14 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
15
16 2013-02-19 Pedro Alves <palves@redhat.com>
17
18 PR gdb/15161
19
20 Harmonize with generic_load.
21
22 * monitor.c: Include "readline/readline.h".
23 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
24 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
25 long/strtol for the 'load_offset' local. Error out if no argument
26 is given or if too many arguments are given. Tilde expand the
27 passed in file name.
28
29 2013-02-19 Kai Tietz <ktietz@redhat.com>
30
31 PR gdb/15161
32 * symfile.c (load_section_data): Change type of load_offset
33 to CORE_ADDR.
34 (generic_load): User strtoulst instead of strtoul for conversion
35 of load_offset.
36
37 2013-02-19 Jiong Wang <jiwang@tilera.com>
38
39 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
40 for return address, "lr" register, saved on stack.
41 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
42 after we invoke tilegx_analyze_prologue.
43
44 2013-02-19 Jiong Wang <jiwang@tilera.com>
45
46 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
47
48 2013-02-19 Jiong Wang <jiwang@tilera.com>
49
50 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
51
52 2013-02-19 Jiong Wang <jiwang@tilera.com>
53
54 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
55 (tilegx_write_pc): New function.
56 (tilegx_cannot_reference_register): Return zero if REGNO
57 is TILEGX_FAULTNUM_REGNUM.
58 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
59 (tilegx_register_name): Add handling of "faultnum" register.
60 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
61 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
62 handling of TILEGX_FAULTNUM_REGNUM.
63 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
64
65 2013-02-19 Jiong Wang <jiwang@tilera.com>
66
67 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
68 should be aligned to 64bit.
69
70 2013-02-19 Kai Tietz <ktietz@redhat.com>
71
72 * windows-nat.c (windows_xfer_memory): Fix debug-output
73 for LLP64.
74
75 2013-02-19 Lei Liu <lei.liu2@windriver.com>
76
77 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
78 Don't check DSP register number if HAVE_DSP is not set.
79
80 2013-02-19 Alan Modra <amodra@gmail.com>
81
82 * elfread.c (struct build_id): Delete. Use struct elf_build_id
83 throughout file instead.
84 (build_id_bfd_get): Update to use new elf_tdata build_id field.
85 Don't xmalloc return value.
86 (build_id_verify): Similarly. Don't xfree.
87 (build_id_to_debug_filename): Update.
88 (find_separate_debug_file_by_buildid): Update, don't xfree.
89
90 2013-02-18 Tom Tromey <tromey@redhat.com>
91
92 PR gdb/15102:
93 * dwarf2read.c (read_subrange_type): Use result of
94 'check_typedef'.
95
96 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
97
98 * frame.c: Remove one extra white space after #include
99 directive.
100
101 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
102
103 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
104
105 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
106
107 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
108 and dir commands into an if block.
109
110 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
111
112 * python/py-breakpoint (struct pybp_code): Use int instead of
113 enum type_code.
114
115 2013-02-15 Pedro Alves <pedro@codesourcery.com>
116 Hafiz Abid Qadeer <abidh@codesourcery.com>
117
118 * NEWS: Mention new field "trace-file".
119 * tracepoint.c (trace_status_mi): Output "trace-file" field.
120 (tfile_open): Record the trace file's filename in the trace
121 status.
122 (tfile_files_info): Mention the name of the trace file.
123 Check the "filename" field explicitely.
124 (trace_status_command): Explicitely check "filename" field.
125 (trace_find_command): Ditto.
126 (trace_find_pc_command): Ditto.
127 (trace_find_tracepoint_command): Ditto.
128 (trace_find_line_command): Ditto.
129 (trace_find_range_command): Ditto.
130 (trace_find_outside_command): Ditto.
131 * tracepoint.h (struct trace_status) <from_file>: Rename it
132 to "filename" and make it hold the trace file's filename
133 instead of a boolean.
134 * remote.c (remote_get_trace_status): Initialize "filename"
135 field with NULL instead of 0.
136
137 2013-02-15 Yao Qi <yao@codesourcery.com>
138
139 * remote.c: Fix a typo.
140
141 2013-02-14 Pierre Muller <muller@sourceware.org>
142
143 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
144
145 2013-02-14 Pedro Alves <palves@redhat.com>
146
147 * utils.c (savestring): Don't #undef it. Move function to
148 common/common-utils.c.
149 * common/common-utils.c: Include gdb_string.h.
150 (savestring): Move here from utils.c.
151 * common/common-utils.h (savestring): Declare.
152
153 2013-02-14 Pedro Alves <palves@redhat.com>
154
155 * utils.c (savestring): Rename parameter 'size' to 'len'.
156
157 2013-02-14 Pedro Alves <palves@redhat.com>
158 Yufeng Zhang <yufeng.zhang@arm.com>
159
160 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
161 (aarch64_inferior_data, struct aarch64_inferior_data):
162 Delete.
163 (struct aarch64_process_info): New.
164 (aarch64_process_list): New global.
165 (aarch64_find_process_pid, aarch64_add_process)
166 (aarch64_process_info_get): New functions.
167 (aarch64_inferior_data_get): Delete.
168 (aarch64_process_info_get): New function.
169 (aarch64_forget_process): New function.
170 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
171 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
172 aarch64_get_debug_reg_state.
173 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
174 instead of linux_nat_iterate_watchpoint_lwps.
175 (aarch64_linux_new_fork): New function.
176 (aarch64_linux_child_post_startup_inferior): Use
177 aarch64_forget_process instead of aarch64_init_debug_reg_state.
178 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
179 (aarch64_linux_remove_hw_breakpoint)
180 (aarch64_handle_aligned_watchpoint)
181 (aarch64_handle_unaligned_watchpoint)
182 (aarch64_linux_insert_watchpoint)
183 (aarch64_linux_remove_watchpoint)
184 (aarch64_linux_stopped_data_address): Adjust to pass the current
185 process id to aarch64_debug_reg_state.
186 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
187 linux_nat_new_fork hook, and aarch64_forget_process as
188 linux_nat_forget_process hook; remove the call to
189 register_inferior_data_with_cleanup.
190
191 2013-02-14 Pedro Alves <palves@redhat.com>
192
193 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
194 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
195 lval_memory.
196
197 2013-02-14 Pedro Alves <pedro@codesourcery.com>
198 Hafiz Abid Qadeer <abidh@codesourcery.com>
199
200 * tracepoint.h (validate_trace_state_variable_name): Declare.
201 * tracepoint.c (validate_trace_state_variable_name): New.
202 (trace_variable_command): Parse the trace state variable's name
203 without using parse_expression. Do several validations.
204 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
205 trace state variable's name with parse_expression. Validate it.
206
207 2013-02-14 Yao Qi <yao@codesourcery.com>
208
209 * infcmd.c (breakpoint_proceeded): Remove it.
210
211 2013-02-14 Yao Qi <yao@codesourcery.com>
212
213 * tracepoint.c (end_actions_pseudocommand): Make it static.
214 (while_stepping_pseudocommand): Likewise.
215 * tracepoint.h (end_actions_pseudocommand): Remove the
216 declaration.
217 (while_stepping_pseudocommand): Likewise.
218
219 2013-02-14 Yao Qi <yao@codesourcery.com>
220
221 * cli/cli-decode.c (help_cmd): Remove the declaration of
222 "cmdlist".
223 (help_all): Likewise.
224
225 2013-02-13 Pedro Alves <palves@redhat.com>
226
227 * amd64-linux-nat.c (update_debug_registers_callback):
228 Update comment.
229 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
230 iterate_over_lwps.
231 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
232 i386_debug_reg_state.
233 (amd64_linux_new_fork): New function.
234 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
235 linux_nat_new_fork hook, and i386_forget_process as
236 linux_nat_forget_process hook.
237 * i386-linux-nat.c (update_debug_registers_callback):
238 Update comment.
239 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
240 iterate_over_lwps.
241 (i386_linux_prepare_to_resume): Pass the lwp's pid to
242 i386_debug_reg_state.
243 (i386_linux_new_fork): New function.
244 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
245 linux_nat_new_fork hook, and i386_forget_process as
246 linux_nat_forget_process hook.
247 * i386-nat.c (i386_init_dregs): Delete.
248 (i386_inferior_data, struct i386_inferior_data):
249 Delete.
250 (struct i386_process_info): New.
251 (i386_process_list): New global.
252 (i386_find_process_pid, i386_add_process, i386_process_info_get):
253 New functions.
254 (i386_inferior_data_get): Delete.
255 (i386_process_info_get): New function.
256 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
257 (i386_forget_process): New function.
258 (i386_cleanup_dregs): Rewrite.
259 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
260 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
261 (i386_stopped_data_address, i386_insert_hw_breakpoint)
262 (i386_remove_hw_breakpoint): Adjust to pass the current process id
263 to i386_debug_reg_state.
264 (i386_use_watchpoints): Don't register inferior data.
265 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
266 adjust comment.
267 (i386_forget_process): Declare.
268 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
269 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
270 New static globals.
271 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
272 (add_initial_lwp): New, factored out from ...
273 (add_lwp): ... this. Don't check the number of lwps before
274 calling linux_nat_new_thread.
275 (linux_nat_iterate_watchpoint_lwps): Delete.
276 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
277 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
278 forks and vforks.
279 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
280 initial lwp.
281 (linux_nat_kill, linux_nat_mourn_inferior): Call
282 linux_nat_forget_process.
283 (linux_nat_set_new_fork, linux_nat_set_forget_process)
284 (linux_nat_forget_process): New functions.
285 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
286 type.
287 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
288 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
289 types.
290 (linux_nat_set_new_fork, linux_nat_set_forget_process)
291 (linux_nat_forget_process): New declarations.
292
293 * amd64fbsd-nat.c (super_mourn_inferior): New global.
294 (amd64fbsd_mourn_inferior): New function.
295 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
296 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
297
298 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
299
300 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
301 Adding _().
302
303 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
304
305 * aarch64-linux-nat.c (debug_reg_change_callback)
306 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
307 %s and phex().
308
309 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
310
311 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
312 with LONGEST.
313
314 2013-02-13 Pedro Alves <palves@redhat.com>
315 Hafiz Abid Qadeer <abidh@codesourcery.com>
316
317 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
318
319 2013-02-12 Tom Tromey <tromey@redhat.com>
320
321 PR symtab/11464:
322 * c-exp.y (lex_one_token): Initialize other fields of yylval on
323 NAME return.
324 (classify_inner_name): Remove 'first_name' argument, add
325 'context'. Remove unused variable.
326 (yylex): Explicitly maintain the context type. Exit loop earlier
327 if NAME result is seen.
328
329 2013-02-12 Pedro Alves <palves@redhat.com>
330
331 * amd64-darwin-tdep.c: Add (C) after Copyright.
332 * cli/cli-cmds.h: Ditto.
333 * cli/cli-decode.c: Ditto.
334 * cli/cli-decode.h: Ditto.
335 * cli/cli-dump.c: Ditto.
336 * cli/cli-dump.h: Ditto.
337 * cli/cli-interp.c: Ditto.
338 * cli/cli-logging.c: Ditto.
339 * cli/cli-script.c: Ditto.
340 * cli/cli-script.h: Ditto.
341 * cli/cli-setshow.c: Ditto.
342 * cli/cli-setshow.h: Ditto.
343 * cli/cli-utils.c: Ditto.
344 * cli/cli-utils.h: Ditto.
345 * config/alpha/nm-osf3.h: Ditto.
346 * config/djgpp/djconfig.sh: Ditto.
347 * config/i386/nm-fbsd.h: Ditto.
348 * config/i386/nm-i386gnu.h: Ditto.
349 * config/nm-linux.h: Ditto.
350 * config/nm-nto.h: Ditto.
351 * config/rs6000/nm-rs6000.h: Ditto.
352 * config/sparc/nm-sol2.h: Ditto.
353 * darwin-nat-info.c: Ditto.
354 * dfp.c: Ditto.
355 * dfp.h: Ditto.
356 * gdb-demangle.h: Ditto.
357 * i386-darwin-nat.c: Ditto.
358 * i386-darwin-tdep.c: Ditto.
359 * linux-fork.h: Ditto.
360 * m32c-tdep.c: Ditto.
361 * microblaze-linux-tdep.c: Ditto.
362 * microblaze-rom.c: Ditto.
363 * microblaze-tdep.c: Ditto.
364 * microblaze-tdep.h: Ditto.
365 * mips-linux-tdep.h: Ditto.
366 * ppc-ravenscar-thread.c: Ditto.
367 * ppc-ravenscar-thread.h: Ditto.
368 * prologue-value.c: Ditto.
369 * prologue-value.h: Ditto.
370 * ravenscar-thread.c: Ditto.
371 * ravenscar-thread.h: Ditto.
372 * sparc-ravenscar-thread.c: Ditto.
373 * sparc-ravenscar-thread.h: Ditto.
374 * tilegx-linux-tdep.c: Ditto.
375 * unwind_stop_reasons.def: Ditto.
376 * windows-nat.h: Ditto.
377 * xtensa-linux-tdep.c: Ditto.
378 * xtensa-xtregs.c: Ditto.
379 * regformats/regdat.sh: Ditto.
380 * regformats/regdef.h: Ditto.
381
382 2013-02-12 Pedro Alves <palves@redhat.com>
383
384 * break-catch-sig.c: Update copyright years.
385
386 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
387
388 Add support for a destructor for ui_out data and use it to
389 provide a ui_out destructor.
390 * ui-out.h: Declare the new ui_out destructor.
391 (ui_out_impl): Add a field for data destructor in ui_out_impl.
392 * ui-out.c (default_data_destroy): Add a default data destructor
393 which does nothing.
394 (default_ui_out_impl): Set the new data_destroy field to
395 default_data_destroy
396 (uo_data_destroy): Local function which invokes the data
397 destructor if present.
398 (clear_table): Local function which clears the table data of a
399 ui_out object.
400 (ui_out_destroy): Public function which frees a ui_out object.
401 (ui_out_table_end): Use the new clear_table function.
402 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
403 NULL.
404 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
405 to NULL.
406
407 2013-02-11 Doug Evans <dje@google.com>
408
409 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
410 (printf_decfloat): New function. Broken out from ui_printf.
411 Remove unnecessary code to shift the entire format string down.
412 (printf_pointer): New function.
413 (ui_printf): Code to print C strings, wide C strings, decfloats,
414 and pointers moved to separate functions.
415
416 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
417
418 * valops.c (value_assign): Handling bitfield offset in
419 `lval_internalvar_component' case.
420
421 2013-02-08 Doug Evans <dje@google.com>
422
423 * common/format.c (parse_format_string): Fix whitespace.
424
425 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
426
427 * stack.c (return_command): Work around uninitialized variable
428 warning.
429
430 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
431
432 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
433 number of the registers from 36 to 34.
434
435 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
436
437 * NEWS: Mention new AArch64 native and target support.
438
439 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
440
441 * MAINTAINERS (Write After Approval): Add myself.
442
443 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
444 Marcus Shawcroft <marcus.shawcroft@arm.com>
445 Nigel Stephens <nigel.stephens@arm.com>
446 Yufeng Zhang <yufeng.zhang@arm.com>
447
448 * aarch64-linux-nat.c: New file.
449 * config/aarch64/linux.mh: New file.
450 * configure.host: Add AArch64.
451 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
452
453 2013-02-07 Doug Evans <dje@google.com>
454
455 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
456 disassemble command.
457
458 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
459
460 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
461 set_gdbarch_fetch_tls_load_module_address.
462
463 2013-02-06 David S. Miller <davem@davemloft.net>
464
465 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
466 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
467 * value.c (struct_return_convention): New function.
468 (using_struct_return): Implement in terms of struct_return_convention.
469 * value.h (struct_return_convention): Declare.
470 * stack.c (return_command): Allow successful overriding of the return
471 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
472
473 2013-02-06 Tom Tromey <tromey@redhat.com>
474
475 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
476 outside of TRY_CATCH.
477
478 2013-02-06 Yao Qi <yao@codesourcery.com>
479
480 * mi/mi-interp.c: Include "tracepoint.h".
481 (mi_tsv_modified): Declare.
482 (mi_tsv_created, mi_tsv_deleted): Update declaration.
483 (mi_interpreter_init): Call observer_attach_tsv_modified.
484 (mi_tsv_modified): New.
485 (mi_tsv_created, mi_tsv_deleted): Update.
486 * tracepoint.c (trace_variable_command): Call
487 observer_notify_tsv_modified if the initial value of tsv is
488 changed.
489 (delete_trace_state_variable): Call
490 observer_notify_tsv_deleted earlier.
491 (trace_variable_command): Caller update.
492 (create_tsv_from_upload): Likewise.
493 * observer.sh: Declare "struct trace_state_variable".
494
495 * NEWS: Mention the new MI notification "=tsv-modified".
496
497 2013-02-05 Doug Evans <dje@google.com>
498
499 * completer.c (location_completer): Fix typo in comment.
500
501 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
502
503 * breakpoint.c (add_location_to_breakpoint): Insert the location with
504 ADDRESS sorted.
505
506 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
507
508 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
509 Refactor if statement to avoid trailing || operator.
510
511 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
512
513 * NEWS: Add PowerPC FreeBSD as a new native configuration.
514
515 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
516
517 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
518 * configure.host: Add powerpc*-*-freebsd* target.
519 * configure.tgt: Add target info for powerpc*-*-freebsd*.
520 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
521 * config/powerpc/fbsd.mh: New file.
522
523 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
524 Denys Vlasenko <dvlasenk@redhat.com>
525 Pedro Alves <palves@redhat.com>
526
527 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
528 (struct elf_internal_linux_prpsinfo): Forward declare.
529 * gdbarch.h, gdbarch.c: Regenerate.
530 * linux-tdep.c: Include `cli/cli-utils.h'.
531 (linux_fill_prpsinfo): New function.
532 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
533 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
534 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
535 depending on gdbarch pointer bitness.
536 * ppc-linux-tdep.c: Include elf-bfd.h.
537 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
538 on 32-bit.
539
540 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
541 Marcus Shawcroft <marcus.shawcroft@arm.com>
542 Nigel Stephens <nigel.stephens@arm.com>
543 Yufeng Zhang <yufeng.zhang@arm.com>
544
545 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
546
547 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
548 Marcus Shawcroft <marcus.shawcroft@arm.com>
549 Nigel Stephens <nigel.stephens@arm.com>
550 Yufeng Zhang <yufeng.zhang@arm.com>
551
552 * aarch64-newlib-tdep.c: New file.
553 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
554 aarch64*-*-elf.
555 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
556 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
557 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
558 * osabi.c (gdb_osabi_names): Add "Newlib".
559
560 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
561 Marcus Shawcroft <marcus.shawcroft@arm.com>
562 Nigel Stephens <nigel.stephens@arm.com>
563 Yufeng Zhang <yufeng.zhang@arm.com>
564
565 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
566 (ALLDEPFILES): Add aarch64-linux-tdep.c.
567 * aarch64-linux-tdep.c: New file.
568 * aarch64-linux-tdep.h: New file.
569 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
570 * configure.tgt: Add aarch64-none-linux-gnu.
571
572 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
573 Marcus Shawcroft <marcus.shawcroft@arm.com>
574 Nigel Stephens <nigel.stephens@arm.com>
575 Yufeng Zhang <yufeng.zhang@arm.com>
576
577 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
578 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
579 (ALLDEPFILES): Add aarch64-tdep.c.
580 * aarch64-tdep.c: New file.
581 * aarch64-tdep.h: New file.
582 * configure.tgt: Add AArch64.
583 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
584 (aarch64-expedite): New definition.
585 * features/aarch64-core.xml: New file.
586 * features/aarch64-fpu.xml: New file.
587 * features/aarch64-without-fpu.c: New file (generated).
588 * features/aarch64-without-fpu.xml: New file.
589 * features/aarch64.c: New file (generated).
590 * features/aarch64.xml: New file.
591 * regformats/aarch64-without-fpu.dat: New file (generated).
592 * regformats/aarch64.dat: New file (generated).
593
594 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
595
596 * contrib/expect-read1.c: New file.
597 * contrib/expect-read1.sh: New file.
598
599 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
600
601 * dwarf2read.c (file_file_name): New function with code from
602 file_full_name.
603 (file_full_name): Move most of the code to file_file_name.
604 (macro_start_file): Rename variable full_name to file_name and use
605 file_file_name for it. Add comp_dir parameter to new_macro_table.
606 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
607 macro_source_file->filename access by macro_source_fullname call.
608 * macroscope.c (_initialize_macroscope): Update the new_macro_table
609 caller.
610 * macrotab.c (struct macro_table): New field comp_dir.
611 (macro_include): New variables link_fullname and source_fullname.
612 Replace any macro_source_file->filename access by macro_source_fullname
613 call.
614 (macro_lookup_inclusion): Remove the partial filenames checking code.
615 (check_for_redefinition): New variables source_fullname and
616 found_key_fullname. Replace any macro_source_file->filename access by
617 macro_source_fullname call.
618 (macro_undef): New variables source_fullname and key_fullname. Replace
619 any macro_source_file->filename access by macro_source_fullname call.
620 (macro_lookup_definition): New variables retval and source_fullname.
621 Replace any macro_source_file->filename access by macro_source_fullname
622 call.
623 (foreach_macro): New variable key_fullname. Replace any
624 macro_source_file->filename access by macro_source_fullname call.
625 (foreach_macro_in_scope): New variable datum_fullname. Replace any
626 macro_source_file->filename access by macro_source_fullname call.
627 (new_macro_table): Add parameter comp_dir. Initialize T with it.
628 (macro_source_fullname): New function.
629 * macrotab.h (struct macro_source_file): Extent the filename field
630 comment.
631 (new_macro_table): New parameter comp_dir, add a comment for it.
632 (macro_source_fullname): new declaration.
633
634 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
635
636 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
637 this_real_name to outer block. Use it also for
638 compare_filenames_for_search.
639 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
640 with dw2_get_real_path for file_matcher, considering also
641 BASENAMES_MAY_DIFFER.
642 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
643
644 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
645
646 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
647 to the file_matcher parameter. Pass 0 to it.
648 (dwarf2_create_include_psymtab): Copy also DIRNAME.
649 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
650 NULL psymtab_to_fullname result.
651 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
652 an expected filename instead.
653 (expand_symtabs_matching_via_partial): Add basenames parameter to the
654 file_matcher parameter. Call also psymtab_to_fullname, after newly
655 considering BASENAMES_MAY_DIFFER.
656 * source.c (rewrite_source_path): Remove static.
657 * source.h (rewrite_source_path): New declaration.
658 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
659 the expand_symtabs_matching field. Comment it.
660 * symtab.c (file_matches): New function comment. Add parameter
661 basenames, implement it.
662 (search_symbols_file_matches): Add basenames parameter. Update the
663 file_matches caller.
664 (search_symbols): Match FILES also against symtab_to_fullname.
665 Optimize it for BASENAMES_MAY_DIFFER.
666
667 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
668
669 * source.c (print_source_lines_base): Print for TUI also "fullname".
670 * tui/tui-data.c (init_content_element): Change tui_locator_element
671 field to full_name.
672 * tui/tui-data.h (struct tui_locator_element): Likewise.
673 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
674 tui_update_locator_filename calls to tui_update_locator_fullname.
675 Replace symtab->filename refererence by symtab_to_fullname call.
676 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
677 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
678 field to full_name. Replace symtab->filename refererence by
679 symtab_to_fullname call.
680 (tui_show_symtab_source): Rename parameter to fullname. Change
681 tui_locator_element field to full_name.
682 * tui/tui-stack.c: Include source.h.
683 (tui_set_locator_filename): Rename the declaration to ...
684 (tui_set_locator_fullname): ... here. Rename its parameter to
685 fullname, updates its comment.
686 (tui_set_locator_info): Rename its parameter to fullname.
687 (tui_set_locator_filename): Rename the definition to ...
688 (tui_set_locator_fullname): ... here. Rename its parameter to
689 fullname, updates its comment. Change tui_locator_element field to
690 full_name.
691 (tui_set_locator_info): Rename its parameter to fullname.
692 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
693 (tui_update_locator_filename): Rename to ...
694 (tui_update_locator_fullname): ... here. Rename callee to
695 tui_set_locator_fullname.
696 (tui_show_frame_info): Replace symtab->filename refererence by
697 symtab_to_fullname call.
698 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
699 (tui_update_locator_fullname): ... here.
700 * tui/tui-winsource.c (tui_display_main): Rename the callee to
701 tui_update_locator_fullname. Replace symtab->filename refererence by
702 symtab_to_fullname call.
703 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
704 Rename the callee to tui_update_locator_fullname.
705 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
706
707 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
708
709 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
710 by symtab_to_filename_for_display calls.
711 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
712 (clear_command): New variable sal_fullname, initialize it. Replace
713 compare_filenames_for_search by filename_cmp with sal_fullname.
714 (say_where, update_static_tracepoint): Replace symtab->filename
715 refererences by symtab_to_filename_for_display calls.
716 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
717 Likewise.
718 * dwarf2read.c: Include source.h.
719 (fixup_go_packaging): Replace symtab->filename refererences by
720 symtab_to_filename_for_display calls.
721 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
722 Replace symtab->filename refererences by symtab_to_filename_for_display
723 calls.
724 (create_sals_line_offset, convert_linespec_to_sals): New variable
725 fullname, initialize it, replace symtab->filename reference by the
726 variable.
727 * linux-fork.c: Include source.h.
728 (info_checkpoints_command): Replace symtab->filename refererences by
729 symtab_to_filename_for_display calls.
730 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
731 by symtab_to_filename_for_display calls.
732 * mdebugread.c: Include source.h.
733 (psymtab_to_symtab_1): Replace symtab->filename refererences by
734 symtab_to_filename_for_display calls.
735 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
736 (mi_cmd_file_list_exec_source_files): Likewise.
737 * printcmd.c: Include source.h.
738 (build_address_symbolic): Replace symtab->filename refererences by
739 symtab_to_filename_for_display calls.
740 * psymtab.c (partial_map_symtabs_matching_filename)
741 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
742 with psymtab_to_fullname.
743 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
744 by symtab_to_filename_for_display calls.
745 (stpy_get_filename): New variable filename, initialize it, use instead
746 of symtab->filename refererences.
747 (salpy_str): Make variable filename const char *. Replace
748 symtab->filename refererences by symtab_to_filename_for_display calls.
749 * skip.c: Include source.h and filenames.h.
750 (skip_file_command): Remove const from the symtab variable. Replace
751 symtab->filename refererences by symtab_to_fullname call.
752 (function_name_is_marked_for_skip): New variables searched_for_fullname
753 and fullname. Use them to search also with symtab's fullname.
754 * source.c (find_source_lines): Replace symtab->filename refererences
755 by symtab_to_filename_for_display calls.
756 (print_source_lines_base): New variable filename, use it instead of
757 symtab->filename. Replace symtab->filename refererences by
758 symtab_to_filename_for_display calls.
759 (line_info, forward_search_command): Replace symtab->filename
760 refererences by symtab_to_filename_for_display calls.
761 (reverse_search_command): Replace symtab->filename refererences by
762 symtab_to_filename_for_display calls. New variable filename for it.
763 * stack.c (frame_info): Likewise.
764 * symmisc.c: Include source.h.
765 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
766 (maintenance_info_symtabs): Replace symtab->filename refererences by
767 symtab_to_filename_for_display calls.
768 * symtab.c (iterate_over_some_symtabs): Call
769 compare_filenames_for_search also with symtab_to_fullname.
770 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
771 symtab->filename refererences by symtab_to_filename_for_display calls.
772 (find_line_symtab): Replace symtab->filename refererences by
773 symtab_to_filename_for_display calls.
774 (file_matches): Replace filename_cmp by compare_filenames_for_search.
775 (print_symbol_info): Make the last parameter const char *. New
776 variable s_filename. Use it in the function.
777 (symtab_symbol_info): Make the last_filename variable const char *.
778 Replace symtab->filename refererences by symtab_to_filename_for_display
779 calls.
780 (rbreak_command): New variable fullname. Use it. Replace
781 symtab->filename refererence by symtab_to_filename_for_display call.
782 * tracepoint.c (set_traceframe_context, trace_find_line_command)
783 (print_one_static_tracepoint_marker): Replace symtab->filename
784 refererences by symtab_to_filename_for_display calls.
785 * tui/tui-source.c (tui_set_source_content): New variables filename and
786 s_filename. Replace symtab->filename refererences by this variable.
787 Replace other symtab->filename refererences by
788 symtab_to_filename_for_display calls.
789
790 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
791 Jan Kratochvil <jan.kratochvil@redhat.com>
792
793 Add a new variable that controls a way in which filenames are
794 displayed.
795 * NEWS (set filename-display): New entry.
796 * source.c (filename_display_basename, filename_display_relative)
797 (filename_display_absolute, filename_display_kind_names)
798 (filename_display_string, show_filename_display_string)
799 (symtab_to_filename_for_display): New.
800 (_initialize_source): Added initialization of 'filename-display'
801 variable.
802 * source.h (symtab_to_filename_for_display): Added declaration.
803 * stack.c (print_frame): Added new variable and calling of a new
804 function and condition with this variable. Changed third argument of
805 calling of a function.
806
807 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
808
809 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
810 Rename field reference filename to fullname.
811 * tui/tui-data.h (struct tui_source_info): Rename field filename to
812 fullname. New comment for it.
813 * tui/tui-source.c (tui_set_source_content): Rename field reference
814 filename to fullname. Initialize field by symtab_to_fullname now.
815 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
816 reference filename to fullname. Use symtab_to_fullname during
817 comparison.
818
819 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
820
821 Code cleanup.
822 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
823 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
824 filename to fullname. Rename variable this_name to this_fullname.
825 Lowercase FILENAME_CMP call.
826 (dw2_find_symbol_file): New comment for the returned string.
827 (dwarf2_gdb_index_functions): Rename the function to
828 dw2_expand_symtabs_with_fullname.
829 * psymtab.c (read_psymtabs_with_filename): Rename to ...
830 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
831 fullname.
832 (psym_functions): Rename the function to read_psymtabs_with_fullname.
833 * symfile.h (struct quick_symbol_functions): Rename field
834 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
835 parameter filename to fullname. Document returned string meaning for
836 find_symbol_file.
837 * symtab.c (find_line_symtab): Rename the called function to
838 expand_symtabs_with_fullname.
839
840 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
841
842 Code cleanup.
843 * breakpoint.c (clear_command): Remove variable is_abs, unify the
844 call of filename_cmp with compare_filenames_for_search.
845 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
846 is_abs, unify the call of FILENAME_CMP with
847 compare_filenames_for_search. New gdb_asserts for real_path and name.
848 Unify the call of compare_filenames_for_search with FILENAME_CMP.
849 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
850 * symfile.h (struct quick_symbol_functions): Extend the comment for
851 map_symtabs_matching_filename.
852 * symtab.c (compare_filenames_for_search): Remove the function comment
853 relative path requirement. Handle absolute filenames, with a comment.
854 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
855 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
856 real_path and name. Unify the call of compare_filenames_for_search
857 with FILENAME_CMP.
858 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
859
860 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
861
862 Code cleanup.
863 * breakpoint.c (print_breakpoint_location): Replace bp_location field
864 source_file references by symtab field references. Remove variables
865 sal and fullname.
866 (momentary_breakpoint_from_master, add_location_to_breakpoint):
867 (clear_command, say_where): Replace bp_location field source_file
868 references by symtab field references.
869 (bp_location_dtor): Remove the source_file reference.
870 (update_static_tracepoint): Replace bp_location field source_file
871 references by symtab field references.
872 (breakpoint_free_objfile): New function.
873 * breakpoint.h (struct bp_location): Extend the comment for line_number.
874 Replace the field source_file by field symtab, extend its comment.
875 (breakpoint_free_objfile): New declaration.
876 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
877 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
878 field source_file references by symtab field references.
879
880 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
881
882 Replace xfullpath calls by gdb_realpath calls.
883 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
884 function comment.
885 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
886 Remove it from the iterate_over_some_symtabs call.
887 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
888 Remove it from the dw2_map_expand_apply calls, remove a block handling
889 it.
890 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
891 Remove it from the iterate_over_some_symtabs call.
892 (partial_map_symtabs_matching_filename): Remove parameter full_path.
893 Remove it from the partial_map_expand_apply calls, remove a block
894 handling it. Drop gdb_realpath call and cleanups from the real_path
895 handling.
896 * source.c (openp): Drop the comment part about xfullpath. Replace
897 xfullpath calls by gdb_realpath calls.
898 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
899 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
900 from method map_symtabs_matching_filename and its comment.
901 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
902 gdb_realpath call.
903 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
904 remove it also from the function comment, remove a block handling it.
905 Drop gdb_realpath call and cleanups from the real_path handling.
906 (iterate_over_symtabs): Drop variable full_path and its use.
907 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
908 * utils.c (xfullpath): Remove.
909 * utils.h (xfullpath): Remove.
910
911 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
912
913 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
914 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
915 (ALLDEPFILES): Add ppc64-tdep.c.
916 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
917 ppc64-tdep.o to gdb_target_obs.
918 * ppc64-tdep.h: New file.
919 * ppc64-tdep.c: New file.
920 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
921 ppc-linux-tdep.c to here.
922 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
923 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
924 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
925 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
926 from ppc-linux-tdep.c to here.
927 (ppc64_convert_from_func_ptr_addr): Rename from
928 ppc64_linux_convert_from_func_ptr_addr to
929 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
930 here.
931 * rs6000-tdep.c:
932 (read_insn): Move from ppc-linux-tdep.c to here.
933 (insns_match_pattern, insn_d_field, insn_ds_field): Move
934 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
935 * ppc-linux-tdep.c: Include ppc64-tdep.h.
936 Removed above functions.
937 (ppc_linux_init_abi): Adjust.
938
939 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
940
941 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
942
943 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
944
945 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
946
947 2013-02-01 Pedro Alves <palves@redhat.com>
948
949 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
950 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
951
952 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
953
954 * elfread.c (elf_symfile_read): Limit separate debug info additions to
955 files with no separate debug info.
956 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
957 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
958 only for files with no separate debug info.
959
960 2013-01-31 Tom Tromey <tromey@redhat.com>
961
962 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
963 change type.
964 (struct jit_program_space_data): Rename from jit_inferior_data.
965 Update comments.
966 (get_jit_program_space_data): Rename from get_jit_inferior_data.
967 Change return type. Attach data to program space.
968 (jit_program_space_data_cleanup): Rename from
969 jit_inferior_data_cleanup; change argument type.
970 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
971 change type.
972 (jit_register_code): Update.
973 (jit_update_inferior_cache): Remove.
974 (jit_breakpoint_deleted): Get jit data from the location's program
975 space.
976 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
977 'ps_data', change type.
978 (jit_inferior_init, jit_breakpoint_re_set_internal)
979 (jit_event_handler): Update.
980 (free_objfile_data): Get data from objfile's program space.
981 (_initialize_jit): Update.
982
983 2013-01-31 Tom Tromey <tromey@redhat.com>
984
985 PR gdb/13987:
986 * jit.c (struct jit_inferior_data) <cached_code_address,
987 jit_breakpoint>: New fields.
988 (jit_breakpoint_re_set_internal): Fix logging. Only create
989 breakpoint if cached address has changed.
990 (jit_update_inferior_cache, jit_breakpoint_deleted): New
991 functions.
992 (_initialize_jit): Register breakpoint deleted observer.
993
994 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
995
996 * infrun.c (handle_syscall_event): Remove unused gdbarch.
997 (save_infcall_suspend_state): Ifdef out unused inf.
998 (restore_infcall_suspend_state): Ifdef out unused inf.
999 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1000 (jit_frame_sniffer): Remove unused inf_data.
1001
1002 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1003
1004 * c-exp.y (classify_inner_name): Remove unused type.
1005 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1006 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1007 need_escape.
1008 (c_get_string): Remove unused kind.
1009 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1010
1011 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1012
1013 * charset.c (intermediate_encoding): Remove unused i.
1014 * completer.c (signal_completer): Remove unused i.
1015 * continuations.c (discard_my_continuations_1): Remove unused
1016 continuation_ptr.
1017 * corelow.c (core_close): Remove unuseD name.
1018 (get_core_siginfo): Remove unused pid.
1019 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1020 i, cps.
1021 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1022 (loclist_describe_location): Remove unused first.
1023 * event-top.c (command_line_handler): Remove unused got_eof.
1024 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1025 (resize_section_table): Remove unused old_value.
1026 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1027 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1028 * i386-tdep.c (i386_process_record): Remove unused rex.
1029 * infcmd.c (get_return_value): Remove unused uiout.
1030 * jv-lang.c (type_from_class): Remove unused is_array.
1031 * jv-valprint.c (java_val_print): Remove unused i.
1032 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1033 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1034 * m2-typeprint.c (m2_print_type): Remove unused code.
1035 * macroexp.c (get_character_constant): Remove unused body_start.
1036 (macro_stringify): Remove unused result.
1037 * objc-lang.c (find_methods): Remove unused gdbarch.
1038 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1039 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1040 * stack.c (print_frame_args): Remove unused summary.
1041 * thread.c (thread_apply_command): Remove unused p.
1042 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1043 * valops.c (search_struct_method): Remove unused skip.
1044 * valprint.c (generic_val_print): Remove unused byte_order.
1045 * varobj.c (varobj_update): Remove unused changed.
1046 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1047 (alias_command): Remove unused c.
1048 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1049 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1050 format.
1051 (mi_cmd_data_write_memory): Remove unused word_format.
1052 (mi_cmd_data_write_memory_bytes): Remove unused r.
1053 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1054 p_start, p_end.
1055 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1056 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1057 line_width.
1058
1059 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1060
1061 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1062 * symtab.c (iterate_over_symtabs): Remove unused s.
1063 (find_pc_sect_symtab): Remove unused pspAce.
1064 (find_pc_sect_line): Remove unused alt_symtab.
1065 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1066 (completion_list_add_name): Remove unused newsize.
1067
1068 2013-01-31 Tom Tromey <tromey@redhat.com>
1069
1070 PR c++/14998:
1071 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1072 TYPE_CODE_FUNC.
1073
1074 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1075
1076 * target.c (target_read_string): Remove unused origlen.
1077
1078 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1079
1080 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1081 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1082 * ax-general.c (ax_print): Remove unused is_float.
1083 * blockframe.c (block_innermost_frame): Remove unused start, end.
1084 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1085
1086 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1087
1088 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1089 (svr4_read_so_list): Remove unused lmo.
1090 * solib-target.c (solib_target_relocate_section_addresses): Remove
1091 unused flags.
1092
1093 2013-01-30 Tom Tromey <tromey@redhat.com>
1094
1095 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1096
1097 2013-01-30 Tom Tromey <tromey@redhat.com>
1098
1099 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1100 * utils.c (gnu_debuglink_crc32): Remove.
1101 * utils.h (gnu_debuglink_crc32): Don't declare.
1102
1103 2013-01-30 Tom Tromey <tromey@redhat.com>
1104
1105 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1106 (read_structure_type, read_enumeration_type): Remove cast.
1107
1108 2013-01-30 Tom Tromey <tromey@redhat.com>
1109
1110 * dwarf2read.c (read_namespace_type): Remove cast.
1111 (read_typedef): Likewise.
1112
1113 2013-01-29 Tom Tromey <tromey@redhat.com>
1114
1115 * dwarf2read.c (free_dwo_file): Remove assert.
1116
1117 2013-01-29 Tom Tromey <tromey@redhat.com>
1118
1119 * value.c (deprecated_set_value_modifiable): Remove.
1120 * value.h (deprecated_set_value_modifiable): Remove.
1121
1122 2013-01-28 Doug Evans <dje@google.com>
1123
1124 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1125 to addresses from dwo files.
1126
1127 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1128
1129 * valops.c (find_overload_match): Remove unused argument 'lax'.
1130 * value.h: Remove unused argument 'lax' from the declaration of
1131 find_overload_match.
1132 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1133 to find_overload_match.
1134 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1135 argument to find_overload_match.
1136
1137 2013-01-25 Tom Tromey <tromey@redhat.com>
1138
1139 * dwarf2read.c (processing_has_namespace_info): Remove.
1140 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1141 (process_die, read_func_scope, dwarf2_start_symtab)
1142 (new_symbol_full): Update.
1143
1144 2013-01-25 Tom Tromey <tromey@redhat.com>
1145
1146 * cp-namespace.c (cp_set_block_scope): Remove.
1147 * cp-support.h (cp_set_block_scope): Remove.
1148 * dbxread.c: Include block.h.
1149 (cp_set_block_scope): New function.
1150 (process_one_symbol): Update.
1151 * dwarf2read.c (read_func_scope): Use block_set_scope.
1152
1153 2013-01-25 Pedro Alves <palves@redhat.com>
1154
1155 * remote.c (add_current_inferior_and_thread): Tweak comment.
1156
1157 2013-01-25 Tom Tromey <tromey@redhat.com>
1158
1159 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1160 (cp_add_using_directive): Add 'copy_names' argument.
1161 * cp-support.h (cp_add_using_directive): Update.
1162 (struct using_direct) <import_src, import_dest, alias,
1163 declaration>: Now const.
1164 * dwarf2read.c (read_import_statement): Use obconcat.
1165 Don't copy names passed to cp_add_using_directive.
1166
1167 2013-01-25 Tom Tromey <tromey@redhat.com>
1168
1169 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1170
1171 2013-01-25 Pedro Alves <palves@redhat.com>
1172
1173 * remote.c (stop_reply_extract_thread): New.
1174 (add_current_inferior_and_thread): New parameter 'wait_status'.
1175 Handle it.
1176 (remote_start_remote): Pass wait status to
1177 add_current_inferior_and_thread.
1178 (extended_remote_run): Update comment.
1179 (extended_remote_create_inferior_1): Pass wait status to
1180 add_current_inferior_and_thread.
1181
1182 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1183 Ulrich Weigand <uweigand@de.ibm.com>
1184
1185 * valarith.c (value_vector_widen): New function for replicating a
1186 scalar into a vector.
1187 (value_binop): Use value_vector_widen to widen scalar to vector
1188 rather than casting, this better matches gcc C behaviour.
1189 * valops.c (value_casst): Update logic for casting between vector
1190 types, and for casting from scalar to vector, try to match gcc C
1191 behaviour.
1192 * value.h (value_vector_widen): Declare.
1193 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1194 function, handle special case for casting scalar to vector.
1195 (opencl_relop): Use opencl_value_cast.
1196 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1197 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1198 in order to use opencl_value_cast.
1199
1200 2013-01-25 Yao Qi <yao@codesourcery.com>
1201
1202 * event-loop.c: Include "queue.h".
1203 (gdb_event_p): New typedef.
1204 (DECLARE_QUEUE_P): Use.
1205 (DEFINE_QUEUE_P): Use.
1206 (async_queue_event): Remove.
1207 (gdb_event_xfree): New.
1208 (initialize_event_loop): New.
1209 (process_event): Use QUEUE macros.
1210 (event_queue): Remove.
1211 (gdb_wait_for_event): Caller update.
1212 (check_async_event_handlers): Likewise.
1213 (poll_timers): Likewise.
1214 * event-loop.h (initialize_event_loop): Declare.
1215 * event-loop.c (gdb_event_xfree): New.
1216 * top.c (gdb_init): Call initialize_event_loop.
1217
1218 2013-01-25 Yao Qi <yao@codesourcery.com>
1219
1220 * event-loop.c (async_queue_event): Remove one parameter
1221 'position'. Remove code handling 'position' == TAIL.
1222 (gdb_wait_for_event): Caller update.
1223 (check_async_event_handlers): Caller update.
1224 (poll_timers): Caller update.
1225 * event-loop.h (enum queue_position): Remove.
1226
1227 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1228
1229 * MAINTAINERS: Update my email.
1230
1231 2013-01-25 Yao Qi <yao@codesourcery.com>
1232
1233 * main.c (print_gdb_help): Remove "--epoch" from the help
1234 message.
1235
1236 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1237
1238 * symtab.c (skip_prologue_using_sal): Consider a file
1239 change the same as an increased line number
1240
1241 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1242
1243 * MAINTAINERS (Write After Approval): Add myself to the list.
1244
1245 2013-01-24 Tom Tromey <tromey@redhat.com>
1246
1247 * ada-lang.h (ada_decode_symbol): Make return type const.
1248 * ada-lang.c (ada_decode_symbol): Likewise.
1249
1250 2013-01-23 Doug Evans <dje@google.com>
1251
1252 * linespec.c (find_linespec_symbols): Make static.
1253
1254 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1255
1256 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1257 type on float conversion for complex type.
1258
1259 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1260
1261 Add a new class gdb.Architecture which exposes GDB's
1262 internal representation of architecture via GDB Python API.
1263 * Makefile.in: Add entries corresponding to the new file
1264 python/py-arch.c.
1265 * NEWS (Python Scripting): Add entries for the new class
1266 gdb.Architecture and the new method gdb.Frame.architecture.
1267 * python/py-arch.c: Implement gdb.Architecture class.
1268 * python/py-frame.c (frapy_arch): Implement the method
1269 gdb.Frame.architecture().
1270 (frame_object_methods): Add 'architecture' to the method table.
1271 * python/python-internal.h: Add declarations of new utility
1272 functions.
1273 * python/python.c (_initialize_python): Initialize
1274 gdb.Architecture class.
1275
1276 2013-01-23 Doug Evans <dje@google.com>
1277
1278 Work around binutils/15021.
1279 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1280 type_unit_group out of union s. All uses updated.
1281 (read_index_from_section): Watch for index version 8.
1282 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1283 an imported symtab.
1284 (write_psymtabs_to_index): Increment version number to 8.
1285
1286 2013-01-22 Pedro Alves <palves@redhat.com>
1287
1288 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1289 user-visible.
1290
1291 2013-01-22 Pedro Alves <palves@redhat.com>
1292
1293 * annotate.c (annotate_breakpoints_changed): Rename to ...
1294 (annotate_breakpoints_invalid): ... this. Make static.
1295 (breakpoint_changed): Adjust.
1296 (_initialize_annotate): Always install the observers. Install a
1297 "breakpoint_created" observer.
1298 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1299 * breakpoint.c (set_breakpoint_condition)
1300 (breakpoint_set_commands, do_map_commands_command)
1301 (init_raw_breakpoint, clear_command, set_ignore_count)
1302 (enable_breakpoint_disp): No longer call
1303 annotate_breakpoints_changed.
1304
1305 2013-01-22 Pedro Alves <palves@redhat.com>
1306
1307 * annotate.c: Include "inferior.h".
1308 (frames_invalid_emitted)
1309 (breakpoints_invalid_emitted): New globals.
1310 (async_background_execution_p): New function.
1311 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1312 emitting the annotation if it has already been emitted.
1313 (annotate_display_prompt): New function.
1314 * annotate.h (annotate_display_prompt): New declaration.
1315 * event-top.c: Include annotate.h.
1316 (display_gdb_prompt): Call annotate_display_prompt.
1317
1318 2013-01-22 Pedro Alves <palves@redhat.com>
1319
1320 * annotate.c (ignore_count_changed): Delete.
1321 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1322 (annotate_ignore_count_change): Delete.
1323 (annotate_stopped): Don't emit a delayed breakpoints-changed
1324 annotation.
1325 * annotate.h (annotate_ignore_count_change): Delete.
1326 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1327 annotate_ignore_count_change.
1328
1329 2013-01-22 Tom Tromey <tromey@redhat.com>
1330
1331 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1332 require_rvalue for a register location.
1333
1334 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1335
1336 * breakpoint.c (print_one_breakpoint_location): Add MI
1337 field 'thread-groups' when printing a breakpoint.
1338 (output_thread_groups): New function.
1339
1340 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1341
1342 * python/lib/gdb/commands/explore.py
1343 (CompoundExplorer.explore_expr): Correct the name of a method
1344 being invoked.
1345 (ExploreTypeCommand.invoke): Add a missing 'return'.
1346
1347 2013-01-21 Tom Tromey <tromey@redhat.com>
1348
1349 * gdb_obstack.h (obconcat): Move declaration here, from...
1350 * symfile.h (obconcat): ... here.
1351 * gdb_obstack.c: New file.
1352 (obconcat): Move from...
1353 * symfile.c (obconcat): ... here.
1354 * Makefile.in (SFILES): Add gdb_obstack.c.
1355 (COMMON_OBS): Add gdb_obstack.o.
1356
1357 2013-01-21 Tom Tromey <tromey@redhat.com>
1358
1359 * symfile.h (obsavestring): Don't declare.
1360 * symfile.c (obsavestring): Remove.
1361 * ada-exp.y: Use obstack_copy0, not obsavestring.
1362 * ada-lang.c: Use obstack_copy0, not obsavestring.
1363 * coffread.c: Use obstack_copy0, not obsavestring.
1364 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1365 * dbxread.c: Use obstack_copy0, not obsavestring.
1366 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1367 * jit.c: Use obstack_copy0, not obsavestring.
1368 * mdebugread.c: Use obstack_copy0, not obsavestring.
1369 * psymtab.c: Use obstack_copy0, not obsavestring.
1370 * stabsread.c: Use obstack_copy0, not obsavestring.
1371 * xcoffread.c: Use obstack_copy0, not obsavestring.
1372
1373 2013-01-21 Tom Tromey <tromey@redhat.com>
1374
1375 * dwarf2read.c (fixup_go_packaging): Save package name
1376 on objfile obstack.
1377 * gdbtypes.c (init_type): Don't copy name.
1378
1379 2013-01-21 Tom Tromey <tromey@redhat.com>
1380
1381 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1382 const.
1383 (struct attribute) <u.str>: Now const.
1384 (struct fnfieldlist) <name>: Now const.
1385 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1386 (partial_die_parent_scope): Make return type const.
1387 (partial_die_full_name, add_partial_symbol): Update.
1388 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1389 'name' const.
1390 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1391 (read_file_scope, read_func_scope, dwarf2_add_field)
1392 (dwarf2_add_member_fn, read_structure_type)
1393 (process_enumeration_scope, read_array_type, read_module_type)
1394 (read_base_type, read_subrange_type): Update.
1395 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1396 (new_symbol_full, guess_full_die_structure_name): Update.
1397 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1398 (dwarf2_name): Return const type.
1399 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1400 const.
1401
1402 2013-01-21 Tom Tromey <tromey@redhat.com>
1403
1404 * gdbtypes.c (init_type): Make 'name' const.
1405 * gdbtypes.h (init_type): Update.
1406
1407 2013-01-21 Tom Tromey <tromey@redhat.com>
1408
1409 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1410 (start_symtab): Make 'name' and 'dirname' const. Use
1411 set_last_source_file.
1412 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1413 (last_source_file): Define. Now static.
1414 (set_last_source_file, get_last_source_file): New functions.
1415 * buildsym.h (last_source_file): Don't declare.
1416 (start_symtab): Update.
1417 (set_last_source_file, get_last_source_file): Declare.
1418 * coffread.c (complete_symtab): Use set_last_source_file.
1419 (coff_end_symtab): Likewise.
1420 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1421 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1422 set_last_source_file.
1423 (process_one_symbol): Use get_last_source_file.
1424 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1425 (psymtab_to_symtab_1): Use get_last_source_file.
1426 * xcoffread.c (process_linenos): Use get_last_source_file.
1427 (complete_symtab): Use set_last_source_file.
1428 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1429 (scan_xcoff_symtab): Use set_last_source_file.
1430
1431 2013-01-21 Tom Tromey <tromey@redhat.com>
1432
1433 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1434 (symbol_set_names): Remove casts. Handle field const-ness.
1435
1436 2013-01-21 Tom Tromey <tromey@redhat.com>
1437
1438 * dwarf2read.c (new_symbol_full): Remove cast.
1439 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1440 * symtab.h (symbol_set_demangled_name): Update.
1441
1442 2013-01-21 Tom Tromey <tromey@redhat.com>
1443
1444 * main.c (captured_main): Call bfd_init.
1445
1446 2013-01-21 Tom Tromey <tromey@redhat.com>
1447
1448 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1449 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1450 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1451 * NEWS: Update.
1452
1453 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1454
1455 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1456
1457 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1458
1459 Fix gdb.fortran/common-block.exp crash in PIE mode.
1460 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1461 LOC_COMMON_BLOCK.
1462 * f-valprint.c (info_common_command_for_block): Expect
1463 LOC_COMMON_BLOCK in gdb_assert.
1464 * symtab.h (struct general_symbol_info): Update comment for the
1465 common_block member.
1466 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1467 (enum address_class): New member LOC_COMMON_BLOCK.
1468
1469 2013-01-18 David Blaikie <dblaikie@gmail.com>
1470
1471 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1472
1473 2013-01-18 Tom Tromey <tromey@redhat.com>
1474
1475 PR c++/14999:
1476 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1477 Call require_rvalue.
1478
1479 2013-01-18 Yao Qi <yao@codesourcery.com>
1480
1481 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1482 (dbx_read_symtab): New declaration.
1483 (dbx_psymtab_to_symtab): Delete.
1484 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1485 Rename parameter PST to SELF. Exchanged two parameters.
1486 (start_psymtab): Caller update.
1487 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1488 (dwarf2_read_symtab): New declaration.
1489 (dwarf2_psymtab_to_symtab): Delete.
1490 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1491 Rename parameter PST to SELF. Exchanged two parameters.
1492 (create_partial_symtab): Caller update.
1493 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1494 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1495 Rename parameter PST to SELF. Exchanged two parameters.
1496 (parse_partial_symbols, new_psymtab): Caller update.
1497 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1498 two parameters.
1499 * psymtab.c (psymtab_to_symtab): Caller update.
1500 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1501 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1502 Rename parameter PST to SELF. Exchanged two parameters.
1503 (xcoff_start_psymtab): Caller update.
1504
1505 2013-01-18 Yao Qi <yao@codesourcery.com>
1506
1507 * infrun.c (proceed): Rename local variable 'oneproc' to
1508 'force_step'.
1509
1510 2013-01-17 Doug Evans <dje@google.com>
1511
1512 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1513 (dw2_build_type_unit_groups): Delete. All uses updated.
1514
1515 * symtab.h (struct symbol_search): Add comment.
1516
1517 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1518
1519 * symtab.c (compare_filenames_for_search): New comment for
1520 HAS_DRIVE_SPEC.
1521
1522 2013-01-17 Tom Tromey <tromey@redhat.com>
1523
1524 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1525
1526 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1527
1528 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1529 initialize it by existing make_cleanup. Call new do_cleanups.
1530
1531 2013-01-17 Tom Tromey <tromey@redhat.com>
1532
1533 * cp-abi.c (cp_abi_completer): New function.
1534 (_initialize_cp_abi): Set completer for "set cp-abi".
1535
1536 2013-01-17 Tom Tromey <tromey@redhat.com>
1537
1538 * mem-break.c: Remove obsolete comment.
1539 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1540
1541 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1542
1543 * jit.c (jit_reader_load_command): Interpret the jit reader name
1544 as an absolute path if it begins with a forward slash.
1545
1546 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1547
1548 PR gdb/14550
1549
1550 * jit.c (finalize_symtab): Ensure that only the global block has a
1551 NULL superblock.
1552
1553 2013-01-17 Pedro Alves <palves@redhat.com>
1554
1555 * acinclude.m4: Include ../config/plugins.m4,
1556 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1557 * Makefile.in (aclocal_m4_deps): Update.
1558 * aclocal.m4: Renegerate.
1559
1560 2013-01-16 Doug Evans <dje@google.com>
1561
1562 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1563
1564 2013-01-16 Pedro Alves <palves@redhat.com>
1565 Tom Tromey <tromey@redhat.com>
1566
1567 PR cli/7221:
1568 * NEWS: Add "catch signal".
1569 * breakpoint.c (base_breakpoint_ops): No longer static.
1570 (bpstat_explains_signal): New function.
1571 (init_catchpoint): No longer static.
1572 (base_breakpoint_explains_signal): New function.
1573 (base_breakpoint_ops): Initialize new field.
1574 * breakpoint.h (enum bpstat_signal_value): New.
1575 (struct breakpoint_ops) <explains_signal>: New field.
1576 (bpstat_explains_signal): Remove macro, declare as function.
1577 (base_breakpoint_ops, init_catchpoint): Declare.
1578 * break-catch-sig.c: New file.
1579 * inferior.h (signal_catch_update): Declare.
1580 * infrun.c (signal_catch): New global.
1581 (handle_syscall_event): Update for change to
1582 bpstat_explains_signal.
1583 (handle_inferior_event): Likewise. Always handle random signals
1584 via bpstats.
1585 (signal_cache_update): Check signal_catch.
1586 (signal_catch_update): New function.
1587 (_initialize_infrun): Initialize signal_catch.
1588 * Makefile.in (SFILES): Add break-catch-sig.c.
1589 (COMMON_OBS): Add break-catch-sig.o.
1590
1591 2013-01-16 Tom Tromey <tromey@redhat.com>
1592
1593 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1594 (print_one_catch_solib, print_one_catch_syscall)
1595 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1596 "catch-type".
1597
1598 2013-01-16 Yao Qi <yao@codesourcery.com>
1599
1600 * printcmd.c (current_display_number): Make it static.
1601
1602 2013-01-16 Yao Qi <yao@codesourcery.com>
1603
1604 * infcmd.c (step_once): Don't check '!single_inst' as it was
1605 checked before.
1606
1607 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1608
1609 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1610
1611 2013-01-14 Tom Tromey <tromey@redhat.com>
1612
1613 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1614 set command.
1615 * command.h (add_setshow_string_noescape_cmd): Update.
1616 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1617 (complete_set_gnutarget): New function.
1618 (_initialize_core): Set the "set gnutarget" completer.
1619
1620 2013-01-14 Tom Tromey <tromey@redhat.com>
1621
1622 PR symtab/14442:
1623 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1624 (c_type_print_modifier): Likewise.
1625 * dwarf2read.c (read_tag_restrict_type): New function.
1626 (read_type_die_1): Handle DW_TAG_restrict_type.
1627 * gdbtypes.c (make_restrict_type): New function.
1628 (recursive_dump_type): Handle TYPE_RESTRICT.
1629 * gdbtypes.h (enum type_flag_values): Renumber.
1630 (enum type_instance_flag_value): Add
1631 TYPE_INSTANCE_FLAG_RESTRICT.
1632 (TYPE_RESTRICT): New macro.
1633 (make_restrict_type): Declare.
1634
1635 2013-01-14 Tom Tromey <tromey@redhat.com>
1636
1637 PR symtab/14931:
1638 * psymtab.c (struct psymtab_state): New.
1639 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1640 functions.
1641 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1642 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1643
1644 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1645 Pedro Alves <palves@redhat.com>
1646
1647 PR remote/14786
1648
1649 * remote.c (remote_threads_info): Make a copy of the reply from
1650 qfThreadInfo and use that instead of rs->buf.
1651
1652 2013-01-14 Yao Qi <yao@codesourcery.com>
1653
1654 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1655 (dbx_psymtab_to_symtab): Likewise.
1656 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1657 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1658 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1659
1660 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1661
1662 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1663 make_cleanup_restore_current_language. Call set_language. Move
1664 OLD_CHAIN and INNER_CHAIN cleanups.
1665 * utils.c (do_restore_current_language)
1666 (make_cleanup_restore_current_language): New functions.
1667 * utils.h (make_cleanup_restore_current_language): New declaration.
1668
1669 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1670
1671 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1672 non-existing files.
1673
1674 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1675 non-existing files if FILENAME is already absolute.
1676
1677 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1678
1679 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1680 fputs_filtered. Append trailing newline.
1681
1682 2013-01-11 Yao Qi <yao@codesourcery.com>
1683 Stan Shebs <stan@codesourcery.com>
1684
1685 * psymtab.c (init_psymbol_list): Clarify the comment.
1686
1687 2013-01-11 Yao Qi <yao@codesourcery.com>
1688
1689 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1690 (update_dprintf_command_list): Assert that 'printf_line' is
1691 non-null. Remove condition check.
1692
1693 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1694
1695 Code cleanup.
1696 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1697 type const char *.
1698 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1699 const char *.
1700 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1701
1702 2013-01-09 Anthony Green <green@moxielogic.com>
1703
1704 * cp-abi.c (cplus_print_vtable): Don't return value from void
1705 function.
1706 * ada-lang.c (re_set_catch_assert): Ditto.
1707
1708 2013-01-09 Doug Evans <dje@google.com>
1709
1710 * symfile.h (quick_symbol_functions): Delete member
1711 pre_expand_symtabs_matching. All uses removed.
1712 * dwarf2read.c (dw2_lookup_symbol): Implement.
1713 (dw2_do_expand_symtabs_matching): Delete.
1714 (dw2_pre_expand_symtabs_matching): Delete.
1715 (struct dw2_symtab_iterator): New type.
1716 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1717 (dw2_expand_symtabs_for_function): Rewrite.
1718 (dwarf2_gdb_index_functions): Update.
1719 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1720 (psym_functions): Update.
1721
1722 2013-01-09 Tom Tromey <tromey@redhat.com>
1723
1724 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1725 * configure: Rebuild.
1726 * configure.ac: Add somread.o to the build if BFD has SOM
1727 support.
1728 * somread.c: Include som/aout.h, not syms.h.
1729 (som_symtab_read): Use som_external_symbol_dictionary_record.
1730 Unpack records manually.
1731 (_initialize_somread): Declare.
1732
1733 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1734
1735 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1736 Cast return_address to 64bits.
1737
1738 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1739
1740 * printcmd.c: Remove define of function output_command.
1741 * tracepoint.c: Remove extern of function output_command.
1742 * valprint.h: (output_command): New extern.
1743
1744 2013-01-07 Tom Tromey <tromey@redhat.com>
1745
1746 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1747 Remove.
1748 (objc_language_defn): Use c_printchar, c_printstr,
1749 c_emit_char.
1750
1751 2013-01-07 Tom Tromey <tromey@redhat.com>
1752
1753 PR cli/7719:
1754 * NEWS: Update.
1755 * ada-valprint.c (printstr, print_field_values): Remove
1756 "inspect_it" code.
1757 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1758 code.
1759 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1760 code.
1761 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1762 * main.c (captured_main): Remove "epoch" argument.
1763 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1764 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1765 * p-valprint.c (pascal_object_print_value_fields): Remove
1766 "inspect_it" code.
1767 * printcmd.c (print_command_1): Remove 'inspect' argument.
1768 (print_command, call_command): Update.
1769 (inspect_command): Remove.
1770 (_initialize_printcmd): Make "inspect" an alias for "print".
1771 * top.c (epoch_interface): Remove.
1772 * top.h (epoch_interface): Remove.
1773 * valprint.c (user_print_options): Update.
1774 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1775 * valprint.h (struct value_print_options) <inspect_it>: Remove
1776 field.
1777
1778 2013-01-04 Tom Tromey <tromey@redhat.com>
1779
1780 * valprint.h (read_string): Add 'extern'.
1781
1782 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1783
1784 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1785 used to decide whether to define darwin_read_dyld_info or not.
1786
1787 2013-01-03 Pierre Muller <muller@sourceware.org>
1788
1789 * main.c (relocate_gdb_directory): Avoid calling stat function
1790 if DIR is empty.
1791
1792 2013-01-03 Yao Qi <yao@codesourcery.com>
1793
1794 * psymtab.c (fixup_psymbol_section): Update declaration.
1795 (fixup_psymbol_section): Remove code returning value.
1796
1797 2013-01-03 Yao Qi <yao@codesourcery.com>
1798
1799 * symtab.h: Remove some out of date comments.
1800 (enum exception_event_kind): Move it ...
1801 * breakpoint.c: ... here.
1802
1803 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1804
1805 PR gdb/14405
1806 * darwin-nat.c (darwin_read_dyld_info): Only build if
1807 TASK_DYLD_INFO_COUNT is defined.
1808 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1809 TASK_DYLD_INFO_COUNT is defined.
1810
1811 2013-01-02 Tom Tromey <tromey@redhat.com>
1812
1813 * symfile.h (struct ecoff_debug_hack): Remove.
1814 * objfiles.c: Don't include mdebugread.h.
1815
1816 2013-01-02 Tom Tromey <tromey@redhat.com>
1817
1818 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1819 * configure.ac: Check for Mach-O support in BFD. Update
1820 CONFIG_OBS.
1821 * configure: Rebuild.
1822
1823 2013-01-02 Tom Tromey <tromey@redhat.com>
1824
1825 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1826 * configure.ac: Use GDB_AC_CHECK_BFD.
1827 * configure: Rebuild.
1828
1829 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1830
1831 * MAINTAINERS: Update my email.
1832
1833 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1834
1835 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1836
1837 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1838
1839 * rs6000-nat.c (bss_data_overlap): New function.
1840 (vmap_symtab): Use it to adjust the .bss section's offset.
1841
1842 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1843
1844 Update year range in copyright notice of all files.
1845
1846 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1847
1848 * top.c (print_gdb_version): Update copyright year.
1849
1850 For older changes see ChangeLog-2012.
1851 \f
1852 Local Variables:
1853 mode: change-log
1854 left-margin: 8
1855 fill-column: 74
1856 version-control: never
1857 coding: utf-8
1858 End:
This page took 0.068479 seconds and 4 git commands to generate.